Skip to content
Snippets Groups Projects
Commit 04fac60c authored by Michele Alberti's avatar Michele Alberti Committed by Aymeric Varasse
Browse files

[aimos] Add test case.

parent 84eff242
No related branches found
No related tags found
No related merge requests found
Test verify
$ cat - > test_data.csv << EOF
> 4.000000000000000000e+02,4.000000000000000222e-01,-3.139370431367570990e+00,2.333333333333333428e+02,0.000000000000000000e+00
> 2.500000000000000000e+02,2.000000000000000111e-01,-3.138814875812015348e+00,2.333333333333333428e+02,0.000000000000000000e+00
> 2.500000000000000000e+02,2.222222222222222376e-01,-3.138814875812015348e+00,2.333333333333333428e+02,0.000000000000000000e+00
> EOF
$ chmod u+x bin/aimos
$ bin/aimos --version
AIMOS 1.0
$ PATH=$(pwd)/bin:$PATH
$ caisar verify -L . --format whyml --prover=AIMOS --dataset=test_data.csv - 2>&1 <<EOF
> theory ACASXU_P5
> use TestNetwork.AsArray
> use ieee_float.Float64
> use caisar.DatasetClassification
> use caisar.DatasetClassificationProps
>
> goal G: meta_robust model dataset (1.0:t)
> end
> EOF
[caisar] Goal G: Valid
...@@ -4,7 +4,7 @@ Test autodetect ...@@ -4,7 +4,7 @@ Test autodetect
> echo "2.4.0" > echo "2.4.0"
> EOF > EOF
$ chmod u+x bin/alt-ergo bin/pyrat.py bin/Marabou bin/saver bin/cvc5 bin/nnenum.sh $ chmod u+x bin/alt-ergo bin/pyrat.py bin/Marabou bin/saver bin/aimos bin/cvc5 bin/nnenum.sh
$ bin/alt-ergo $ bin/alt-ergo
2.4.0 2.4.0
...@@ -18,6 +18,9 @@ Test autodetect ...@@ -18,6 +18,9 @@ Test autodetect
$ bin/saver --version $ bin/saver --version
v1.0 v1.0
$ bin/aimos --version
AIMOS 1.0
$ bin/cvc5 --version $ bin/cvc5 --version
This is cvc5 version 1.0.2 [git tag 1.0.2 branch HEAD] This is cvc5 version 1.0.2 [git tag 1.0.2 branch HEAD]
...@@ -31,6 +34,7 @@ Test autodetect ...@@ -31,6 +34,7 @@ Test autodetect
[caisar][DEBUG] Automatic detection [caisar][DEBUG] Automatic detection
<autodetect>Run: ($TESTCASE_ROOT/bin/pyrat.py --version) > $TMPFILE 2>&1 <autodetect>Run: ($TESTCASE_ROOT/bin/pyrat.py --version) > $TMPFILE 2>&1
<autodetect>Run: ($TESTCASE_ROOT/bin/saver --version 2>&1 | head -n1 && (which saver > /dev/null 2>&1)) > $TMPFILE 2>&1 <autodetect>Run: ($TESTCASE_ROOT/bin/saver --version 2>&1 | head -n1 && (which saver > /dev/null 2>&1)) > $TMPFILE 2>&1
<autodetect>Run: ($TESTCASE_ROOT/bin/aimos --version) > $TMPFILE 2>&1
<autodetect>Run: ($TESTCASE_ROOT/bin/alt-ergo --version) > $TMPFILE 2>&1 <autodetect>Run: ($TESTCASE_ROOT/bin/alt-ergo --version) > $TMPFILE 2>&1
<autodetect>Run: ($TESTCASE_ROOT/bin/Marabou --version) > $TMPFILE 2>&1 <autodetect>Run: ($TESTCASE_ROOT/bin/Marabou --version) > $TMPFILE 2>&1
<autodetect>Run: ($TESTCASE_ROOT/bin/nnenum.sh --version) > $TMPFILE 2>&1 <autodetect>Run: ($TESTCASE_ROOT/bin/nnenum.sh --version) > $TMPFILE 2>&1
...@@ -45,8 +49,10 @@ Test autodetect ...@@ -45,8 +49,10 @@ Test autodetect
<autodetect>Found prover PyRAT version 1.1 (alternative: ACAS) <autodetect>Found prover PyRAT version 1.1 (alternative: ACAS)
<autodetect>Found prover nnenum version dummy, OK. <autodetect>Found prover nnenum version dummy, OK.
<autodetect>Found prover SAVer version v1.0, OK. <autodetect>Found prover SAVer version v1.0, OK.
<autodetect>8 prover(s) added <autodetect>Found prover AIMOS version 1.0, OK.
[caisar] Alt-Ergo 2.4.0 <autodetect>9 prover(s) added
[caisar] AIMOS 1.0
Alt-Ergo 2.4.0
CVC5 1.0.2 CVC5 1.0.2
Marabou 1.0.+ Marabou 1.0.+
PyRAT 1.1 PyRAT 1.1
......
#!/bin/sh
case $1 in
--version)
echo "AIMOS 1.0"
;;
*)
echo "Goal:"
cat $2
echo "ACASXU_1_1.nnet, reluplex_rotation, 1.0"
esac
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
bin/pyrat.py bin/pyrat.py
bin/Marabou bin/Marabou
bin/saver bin/saver
bin/aimos
bin/cvc5 bin/cvc5
bin/nnenum.sh bin/nnenum.sh
filter_tmpdir.sh) filter_tmpdir.sh)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment