Skip to content

Commit 3f3ca69

Browse files
committed
Cache instructions when accessing binexport object
1 parent e953e5e commit 3f3ca69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bindiff/bindiff.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,13 @@ def _map_diff_on_programs(self) -> None:
145145
bb_f1.algorithhm = bb_f2.algorithm = bb_match.algorithm
146146

147147
# Iterate instructions to map them
148-
for ins_f1 in bb_f1.uncached_instructions.values():
148+
for ins_f1 in bb_f1.instructions.values():
149149
# Instruction is matched
150150
if ins_f1.addr in self.primary_instruction_match:
151151
# Within the context of the current function
152152
if f1.addr in self.primary_instruction_match[ins_f1.addr]:
153153
ins_f2_addr = self.primary_instruction_match[ins_f1.addr][f1.addr]
154-
ins_f2 = bb_f2.uncached_instructions[ins_f2_addr] # retrieve instruction in secondary basic block
154+
ins_f2 = bb_f2.instructions[ins_f2_addr] # retrieve instruction in secondary basic block
155155
ins_f1.match, ins_f2.match = ins_f2, ins_f1
156156

157157
@staticmethod

0 commit comments

Comments
 (0)