junxzm1990 / x86-sok

127 stars 20 forks source link

Compare the result - ZeroDivisionError: division by zero #7

Closed akshithg closed 3 years ago

akshithg commented 3 years ago

python3 compareInsts.py -b ./path/to/test_switch -g ./path/to/test_switch.gt -c /tmp/gtRef_test_switch.pb throws a ZeroDivisionError: division by zero.

Am I doing this right?

bin2415 commented 3 years ago

The file /tmp/gtRef_test_switch.pb is the ground truth file that contains cross references, it does not contain instructions. So if you want to compare the instructions, please pass the path of compared instructions from disassemblers(such as Angr, Ghidra and etc.)