MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / compare_disassembly

Function compare_disassembly

arch/arm64/disassembler/disasm_test.py:152–161  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

150 return 0
151
152def compare_disassembly(a, b):
153 if (a and not b) or (b and not a): return -1
154 a = a.split()
155 b = b.split()
156 if len(a) != len(b): return -1
157 if a[0] != b[0]: return -1
158 for (ta,tb) in zip(a,b):
159 if compare_disassembly_token(ta,tb):
160 return -1
161 return 0
162
163def excusable_difference(actual, expected):
164 if actual=='dgh' and expected.startswith('hint'): return True

Callers 1

mainFunction · 0.85

Calls 2

splitMethod · 0.45

Tested by

no test coverage detected