Skip to content

Commit 5181386

Browse files
committed
APP: add nop tag to instrxdata
1 parent 27bd08f commit 5181386

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

chb/app/CHVersion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
chbversion: str = "0.3.0-20241005"
1+
chbversion: str = "0.3.0-20241010"

chb/app/FunctionInfo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ def variablenames(self) -> Mapping[int, str]:
133133
if vix is not None and vname is not None:
134134
self._variablenames[int(vix)] = vname
135135
else:
136-
raise UF.CHBError("Index or name missing from variablename")
136+
raise UF.CHBError(
137+
"Index or name missing from variablename")
137138
return self._variablenames
138139

139140
def call_target_info(self, callsite: str) -> CallTargetInfo:

chb/app/InstrXData.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ def vardictionary(self) -> "FnVarDictionary":
111111
def varinvdictionary(self) -> "FnVarInvDictionary":
112112
return self.function.varinvdictionary
113113

114+
@property
115+
def is_nop(self) -> bool:
116+
return len(self.tags) == 1 and self.tags[0] == "nop"
117+
114118
@property
115119
def vars(self) -> List[XVariable]:
116120
if not self.expanded:
@@ -231,6 +235,8 @@ def _expand(self) -> None:
231235
self.expanded = True
232236
if len(self.tags) == 0:
233237
return
238+
if self.tags[0] == "nop":
239+
return
234240
key = self.tags[0]
235241
if key.startswith("a:"):
236242
keyletters = key[2:]

0 commit comments

Comments
 (0)