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
cedb1b63
Commit
cedb1b63
authored
2 years ago
by
Julien Girard-Satabin
Browse files
Options
Downloads
Patches
Plain Diff
[SAVer] Reworked tests.
parent
f7951355
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
ovo.opam
+3
-2
3 additions, 2 deletions
ovo.opam
src/verification.ml
+1
-1
1 addition, 1 deletion
src/verification.ml
tests/dune
+1
-0
1 addition, 0 deletions
tests/dune
tests/simple_ovo.t
+6
-8
6 additions, 8 deletions
tests/simple_ovo.t
tests/test_data.csv
+2
-0
2 additions, 0 deletions
tests/test_data.csv
with
13 additions
and
11 deletions
ovo.opam
+
3
−
2
View file @
cedb1b63
...
...
@@ -9,7 +9,7 @@ depends: [
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
["dune" "subst"
"--root" "."
] {dev}
[
"dune"
"build"
...
...
@@ -17,7 +17,8 @@ build: [
name
"-j"
jobs
"--promote-install-files=false"
"--promote-install-files"
"false"
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
...
...
This diff is collapsed.
Click to expand it.
src/verification.ml
+
1
−
1
View file @
cedb1b63
...
...
@@ -138,7 +138,7 @@ let call_prover ~limit config (prover : Why3.Whyconf.config_prover) driver env
=
Int
.
of_string
(
Re__Core
.
Group
.
get
g
2
)
then
Call_provers
.
Valid
else
Call_provers
.
Invalid
|
None
->
assert
fals
e
|
None
->
Call_provers
.
HighFailur
e
(* Any other answer than HighFailure should
* never happen as we do not define
* anything in SAVer's driver *)
)
...
...
This diff is collapsed.
Click to expand it.
tests/dune
+
1
−
0
View file @
cedb1b63
...
...
@@ -4,6 +4,7 @@
TestNetwork.nnet
TestNetworkONNX.onnx
TestSVM.ovo
test_data.csv
bin/pyrat.py
bin/Marabou
bin/saver
...
...
This diff is collapsed.
Click to expand it.
tests/simple_ovo.t
+
6
−
8
View file @
cedb1b63
...
...
@@ -20,16 +20,15 @@ Test verify
$
PATH
=
$
(
pwd
)
/
bin:$PATH
$
caisar
verify
-
L
.
--
format
whyml
--
prover
=
PyRAT
-
2
>&
1
<<
EOF
|
sed
'
s/\/tmp\/[a-z0-9./]*/$TMPFILE/
'
$
caisar
verify
-
L
.
--
format
whyml
--
prover
=
SAVer
--
dataset
-
csv
=
test_data
.
csv
-
2
>&
1
<<
EOF
|
sed
'
s/\/tmp\/[a-z0-9./]*/$TMPFILE/
'
>
theory
T
>
use
TestSVM
.
AsArray
>
use
TestSVM
.
SVM
>
use
ieee_float
.
Float64
>
use
caisar
.
IOShape
>
use
caisar
.
SVM
>
>
goal
G:
forall
x1
x2
x3
.
>
(
0.0
:
t
)
.<
x1
.<
(
0.5
:
t
)
->
>
let
(
y1
,
_
)
=
svm_apply
x1
x2
x3
in
>
(
0.0
:
t
)
.<
y1
.<
(
0.5
:
t
)
>
goal
G:
forall
a
:
input_type
.
>
robust_to
SVM
.
svm_apply
a
(
8.0
:
t
)
>
end
>
EOF
<
autodetect
>
0
prover
(
s) added
...
...
@@ -43,5 +42,4 @@ Test verify
<
autodetect
>
Found
prover
PyRAT
version
1.1
,
OK
.
<
autodetect
>
Found
prover
SAVer
version
v1
.0
,
OK
.
<
autodetect
>
4
prover
(
s
)
added
Goal
G:
Unknown
()
Goal
G:
High
failure
This diff is collapsed.
Click to expand it.
tests/test_data.csv
0 → 100644
+
2
−
0
View file @
cedb1b63
# 1 3
1,0.5,0.5,0.0,
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