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
3abd997c
Commit
3abd997c
authored
1 year ago
by
Julien Girard-Satabin
Committed by
Michele Alberti
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
[tests] Added test oracles to verify-json unit test.
parent
339daf42
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/verification.ml
+0
-1
0 additions, 1 deletion
src/verification.ml
tests/verify_json.t
+74
-1
74 additions, 1 deletion
tests/verify_json.t
with
74 additions
and
2 deletions
src/verification.ml
+
0
−
1
View file @
3abd997c
...
@@ -180,7 +180,6 @@ let combine_prover_answers answers =
...
@@ -180,7 +180,6 @@ let combine_prover_answers answers =
|
Call_provers
.
Valid
,
r
|
r
,
Call_provers
.
Valid
->
r
|
Call_provers
.
Valid
,
r
|
r
,
Call_provers
.
Valid
->
r
|
_
->
acc
)
|
_
->
acc
)
(* TODO: does printing the task means printing the csv here?*)
let
answer_dataset
limit
config
env
prover
config_prover
driver
dataset
task
=
let
answer_dataset
limit
config
env
prover
config_prover
driver
dataset
task
=
let
dataset_predicate
=
let
dataset_predicate
=
let
on_model
ls
=
let
on_model
ls
=
...
...
This diff is collapsed.
Click to expand it.
tests/verify_json.t
+
74
−
1
View file @
3abd997c
...
@@ -14,5 +14,78 @@ Test verify-json
...
@@ -14,5 +14,78 @@ Test verify-json
$
PATH
=
$
(
pwd
)
/
bin:$PATH
$
PATH
=
$
(
pwd
)
/
bin:$PATH
$
caisar
verify
-
json
config
.
json
2
>&
1
<<
EOF
|
./
filter_tmpdir
.
sh
$
caisar
verify
-
json
config
.
json
--
verbosity
=
info
2
>&
1
<<
EOF
|
./
filter_tmpdir
.
sh
[
caisar
][
INFO
]
Specification
to
verify:
;;;
produced
by
PyRAT
/
VNN
-
LIB
driver
;;;
produced
by
VNN
-
LIB
driver
;;
X_0
(
declare
-
const
X_0
Real
)
;;
X_1
(
declare
-
const
X_1
Real
)
;;
X_2
(
declare
-
const
X_2
Real
)
;;
X_3
(
declare
-
const
X_3
Real
)
;;
X_4
(
declare
-
const
X_4
Real
)
;;
Y_0
(
declare
-
const
Y_0
Real
)
;;
Y_1
(
declare
-
const
Y_1
Real
)
;;
Y_2
(
declare
-
const
Y_2
Real
)
;;
Y_3
(
declare
-
const
Y_3
Real
)
;;
Y_4
(
declare
-
const
Y_4
Real
)
;;
axiom_ge_x0
(
assert
(
>=
X_0
0.0
))
;;
axiom_le_x0
(
assert
(
<=
X_0
0.299999999999999988897769753748434595763683319091796875
))
;;
axiom_ge_x1
(
assert
(
>=
X_1
0.6999999999999999555910790149937383830547332763671875
))
;;
axiom_le_x1
(
assert
(
<=
X_1
1.0
))
;;
axiom_ge_x2
(
assert
(
>=
X_2
0.484313724999999972720132745962473563849925994873046875
))
;;
axiom_le_x2
(
assert
(
<=
X_2
1.0
))
;;
axiom_ge_x3
(
assert
(
>=
X_3
0.0
))
;;
axiom_le_x3
(
assert
(
<=
X_3
0.319607843000000002575688995420932769775390625
))
;;
axiom_ge_x4
(
assert
(
>=
X_4
0.476470588000000028205960234117810614407062530517578125
))
;;
axiom_le_x4
(
assert
(
<=
X_4
1.0
))
;;
Goal
robust_record0_y1
(
assert
(
or
(
and
(
>=
Y_0
Y_1
))
(
and
(
>=
Y_2
Y_1
))
(
and
(
>=
Y_3
Y_1
))
(
and
(
>=
Y_4
Y_1
))
))
[
caisar
][
INFO
]
Verification
results
for
theory
'
JSON
'
[
caisar
]
Goal
property:
Unknown
()
[
caisar
]
Goal
property:
Unknown
()
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