You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have troubles to run Binary code similarity measures by following the README instructions:
Binary code similarity measures
1. Download dataset
. Download POJ-104 datasets from here and extract them into data/.
2. Compile and preprocess
Run python extract_obj.py -a data/obj (clang++-3.7.1 required)`
I downloaded the datasets and put it under nberf/data. Since there is no extract_obj.py under nberf, I changed the command to
(py3_env): python preprocess/extract_obj.py -a data/obj`
I got
usage: extract_obj.py [-h] [--poj-dir POJ_DIR] [--filter-list FILTER_LIST] [--asm_type {x86,mips}] [--output-asm-dir OUTPUT_ASM_DIR]
[--num-workers NUM_WORKERS]
extract_obj.py: error: ambiguous option: -a could match -asm_t, -asm
Look at the parse_args in extract_obj.py, there is no '-a' argument, it seems to be a typo of -asm.
If I copy data to preprocessing and run the command:
(py3_env) nberf: cp -r data preprocess/data
(py3_env) nberf: cd preprocess
(py3_env) nberf/preprocess: python extract_obj.py -asm data/obj`
now I got
Traceback (most recent call last):
File "extract_obj.py", line 218, in <module>
main()
File "extract_obj.py", line 181, in main
with open(args.filter_list) as f:
FileNotFoundError: [Errno 2] No such file or directory: './preprocess/filter_list.txt'
My env
Ubuntu 20.04.2 LTS
Python 3.8.5
Any steps I misunderstood or missed? Any help is greatly appreciated.
Dennis
The text was updated successfully, but these errors were encountered:
I have troubles to run Binary code similarity measures by following the README instructions:
I downloaded the datasets and put it under nberf/data. Since there is no extract_obj.py under nberf, I changed the command to
I got
Look at the
parse_args
inextract_obj.py
, there is no '-a' argument, it seems to be a typo of-asm
.If I copy data to preprocessing and run the command:
now I got
My env
Any steps I misunderstood or missed? Any help is greatly appreciated.
Dennis
The text was updated successfully, but these errors were encountered: