-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAE_rerun_cross-compiler.sh
More file actions
46 lines (34 loc) · 1.2 KB
/
AE_rerun_cross-compiler.sh
File metadata and controls
46 lines (34 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
DIR=$VSIM_HOME/test/cross-compiler
echo "Clean cached files"
rm $DIR/table_2/test_pool_pairwise_match.json
if [[ $1 == 'full' ]]; then
echo "Full rerun selected"
cd $DIR
rm -rf logs fp-refined
rm -rf table_2/test_pool_pairwise_match.json
rm -rf cache
rm -rf dump
find . -name "*.df.pkl" | xargs rm -rf
find . -name "*.csv.pkl" | xargs rm -rf
mkdir -p logs
cd $VSIM_HOME
echo "Running value extraction (This can take several hours)"
python $VSIM_HOME/scripts/run_se_cmds.py $DIR/se_cmds.txt
if [ ! -d "$DIR/dump" ]; then
echo "No dumped files. Exit"
exit 1
fi
echo "Running fingerprint generation (This can take several hours)"
python $DIR/fp-gen.py
if [ ! -d "$DIR/fp-refined" ]; then
echo "No refined fingerprints. Exit"
exit 1
fi
fi
cd $VSIM_HOME
echo "Running comparison"
python $DIR/test_pool_pairwise_match.py
echo "There should be a newly generated $DIR/table_2/test_pool_pairwise_match.json"
echo "Show result of Table IV"
python $DIR/show_table.py $DIR/table_2/test_pool_pairwise_match.json