(self)
| 713 | # return list of semantic groups this instruction belongs to. |
| 714 | @property |
| 715 | def groups(self): |
| 716 | if self._raw.id == 0: |
| 717 | raise CsError(CS_ERR_SKIPDATA) |
| 718 | |
| 719 | if self._cs._diet: |
| 720 | # Diet engine cannot provide @groups |
| 721 | raise CsError(CS_ERR_DIET) |
| 722 | |
| 723 | if self._cs._detail: |
| 724 | return self._raw.detail.contents.groups[:self._raw.detail.contents.groups_count] |
| 725 | |
| 726 | raise CsError(CS_ERR_DETAIL) |
| 727 | |
| 728 | def __gen_detail(self): |
| 729 | if self._raw.id == 0: |