Commit 352cbe09 authored by Andrea Gussoni's avatar Andrea Gussoni
Browse files

Use `binaries.txt` always as index for binaries

Avoid iterating directly on a directory containing the binaries, and
instead use the `binaries.txt` dir, and specify a folder where the
actual elf are stored.
parent c99beb5c
# This file contains the definition of various support variables useful in different scripts
basepath=$(pwd)
binaries_file=$basepath/binaries.txt
binaries_dir=$basepath/binaries/$arch
matching_script_dir=$basepath/scripting/boundaries-comparison-scripts
computation_script_dir=$basepath/scripting/computation
workdir=$basepath/workdir/$arch
......
......@@ -14,10 +14,10 @@ if [ ! -d $matching_dir ]; then
mkdir $matching_dir;
fi
cd $arch
readarray -t binaries_array < $binaries_file
for filename in *
for filename in ${binaries_array[@]}
do
echo -e "\nAnalyzing binary: $filename"
$matching_script_dir/compare-functions.py $ida_json_dir/$filename.stripped.json.ida $revng_json_dir/$filename.ll.isolated.json.revng $filename $matching_dir/$filename $matching_dir/$filename.matching
$matching_script_dir/compare-functions.py $ida_json_dir/$filename.stripped.json.ida $revng_json_dir/$filename.ll.isolated.json.revng $binaries_dir/$filename $matching_dir/$filename $matching_dir/$filename.matching
done;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment