Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
caisar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
caisar
Commits
04fac60c
Commit
04fac60c
authored
2 years ago
by
Michele Alberti
Committed by
Aymeric Varasse
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[aimos] Add test case.
parent
84eff242
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
tests/aimos.t
+25
-0
25 additions, 0 deletions
tests/aimos.t
tests/autodetect.t
+9
-3
9 additions, 3 deletions
tests/autodetect.t
tests/bin/aimos
+12
-0
12 additions, 0 deletions
tests/bin/aimos
tests/dune
+1
-0
1 addition, 0 deletions
tests/dune
with
47 additions
and
3 deletions
tests/aimos.t
0 → 100644
+
25
−
0
View file @
04fac60c
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
This diff is collapsed.
Click to expand it.
tests/autodetect.t
+
9
−
3
View file @
04fac60c
...
@@ -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/p
yrat
.
py
bin
/Marabou bin/sa
ver
bin
/cvc5 bin/nn
enum
.
sh
$
chmod
u
+
x
bin
/alt-ergo bin/p
yrat
.
py
bin
/Marabou bin/sa
ver
bin
/aimos
bin/c
vc5
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/p
yrat
.
py
--
version
)
>
$TMPFILE
2
>&
1
<
autodetect
>
Run:
(
$TESTCASE_ROOT
/bin/p
yrat
.
py
--
version
)
>
$TMPFILE
2
>&
1
<
autodetect
>
Run:
(
$TESTCASE_ROOT
/bin/sa
ver
--
version
2
>&
1
|
head
-
n1
&&
(
which
saver
>
/dev/null
2
>&
1
))
>
$TMPFILE
2
>&
1
<
autodetect
>
Run:
(
$TESTCASE_ROOT
/bin/sa
ver
--
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/al
t
-
ergo
--
version
)
>
$TMPFILE
2
>&
1
<
autodetect
>
Run:
(
$TESTCASE_ROOT
/bin/al
t
-
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/nn
enum
.
sh
--
version
)
>
$TMPFILE
2
>&
1
<
autodetect
>
Run:
(
$TESTCASE_ROOT
/bin/nn
enum
.
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
...
...
This diff is collapsed.
Click to expand it.
tests/bin/aimos
0 → 100644
+
12
−
0
View file @
04fac60c
#!/bin/sh
case
$1
in
--version
)
echo
"AIMOS 1.0"
;;
*
)
echo
"Goal:"
cat
$2
echo
"ACASXU_1_1.nnet, reluplex_rotation, 1.0"
esac
This diff is collapsed.
Click to expand it.
tests/dune
+
1
−
0
View file @
04fac60c
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment