export LD_LIBRARY_PATH=../lib/

name1=mer_big_IRP
name2=mer_big_IAP
name3=mer_big_IRE
name4=mer_big_IAE
name5=mer_big_OR
name6=mer_big_OA

echo "Computing mer_big IRP"
java -d64 -Xms400m -Xmx4G -jar ../prism_dectree.jar ../prism-examples/mer/mer2_2_full.nm ../prism-examples/mer/mer.pctl -property 1 -const n=2147483646,x=0.001 -dectree,search=1800,learn=0,onlyTarget,multiLearn,verify=1000,export=../output/csv/$name1 > ../output/txt/$name1.txt
column -s "," -t < ../output/csv/$name1.csv | awk 'NR==1 {print $1,$2,$3,$4}; END{ print $1,$2,$3,$4 }'

echo "Computing mer_big IAP"
java -d64 -Xms400m -Xmx4G -jar ../prism_dectree.jar ../prism-examples/mer/mer2_2_full.nm ../prism-examples/mer/mer.pctl -property 1 -const n=2147483646,x=0.001 -dectree,search=1800,learn=0,multiLearn,verify=1000,export=../output/csv/$name2 > ../output/txt/$name2.txt
column -s "," -t < ../output/csv/$name2.csv | awk 'NR==1 {print $1,$2,$3,$4}; END{ print $1,$2,$3,$4 }'

echo "Computing mer_big IRE"
java -d64 -Xms400m -Xmx4G -jar ../prism_dectree.jar ../prism-examples/mer/mer2_2_full.nm ../prism-examples/mer/mer.pctl -property 1 -const n=2147483646,x=0.001 -dectree,search=1800,learn=0,onlyTarget,verify=1000,export=../output/csv/$name3 > ../output/txt/$name3.txt
column -s "," -t < ../output/csv/$name3.csv | awk 'NR==1 {print $1,$2,$3,$4}; END{ print $1,$2,$3,$4 }'

echo "Computing mer_big IAE"
java -d64 -Xms400m -Xmx4G -jar ../prism_dectree.jar ../prism-examples/mer/mer2_2_full.nm ../prism-examples/mer/mer.pctl -property 1 -const n=2147483646,x=0.001 -dectree,search=1800,learn=0,verify=1000,export=../output/csv/$name4 > ../output/txt/$name4.txt
column -s "," -t < ../output/csv/$name4.csv | awk 'NR==1 {print $1,$2,$3,$4}; END{ print $1,$2,$3,$4 }'

echo "Computing mer_big OR"
java -d64 -Xms400m -Xmx4G -jar ../prism_dectree.jar ../prism-examples/mer/mer2_2_full.nm ../prism-examples/mer/mer.pctl -property 1 -const n=2147483646,x=0.001 -dectree,search=2,learn=2,onlyTarget,verify=1000,export=../output/csv/$name5 > ../output/txt/$name5.txt
column -s "," -t < ../output/csv/$name5.csv | awk 'NR==1 {print $1,$2,$3,$4}; END{ print $1,$2,$3,$4 }'

echo "Computing mer_big OA"
java -d64 -Xms400m -Xmx4G -jar ../prism_dectree.jar ../prism-examples/mer/mer2_2_full.nm ../prism-examples/mer/mer.pctl -property 1 -const n=2147483646,x=0.001 -dectree,search=2,learn=2,verify=1000,export=../output/csv/$name6 > ../output/txt/$name6.txt
column -s "," -t < ../output/csv/$name6.csv | awk 'NR==1 {print $1,$2,$3,$4}; END{ print $1,$2,$3,$4 }'
