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
34ef7745
Commit
34ef7745
authored
3 years ago
by
François Bobot
Browse files
Options
Downloads
Patches
Plain Diff
[Marabou] Introduce the used symbol in the initial task
parent
ffaac063
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/transformations/vars_on_lhs.ml
+10
-3
10 additions, 3 deletions
src/transformations/vars_on_lhs.ml
tests/marabout.t
+51
-0
51 additions, 0 deletions
tests/marabout.t
with
61 additions
and
3 deletions
src/transformations/vars_on_lhs.ml
+
10
−
3
View file @
34ef7745
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
let
make_rt
env
=
let
make_rt
env
=
let
open
Why3
in
let
open
Why3
in
let
th
=
Env
.
read_theory
env
[
"ieee_float"
]
"Float64"
in
let
th
=
Env
.
read_theory
env
[
"ieee_float"
]
"Float64"
in
let
t
=
Theory
.
ns_find_ts
th
.
th_export
[
"t"
]
in
let
le
=
Theory
.
ns_find_ls
th
.
th_export
[
"le"
]
in
let
le
=
Theory
.
ns_find_ls
th
.
th_export
[
"le"
]
in
let
lt
=
Theory
.
ns_find_ls
th
.
th_export
[
"lt"
]
in
let
lt
=
Theory
.
ns_find_ls
th
.
th_export
[
"lt"
]
in
let
ge
=
Theory
.
ns_find_ls
th
.
th_export
[
"ge"
]
in
let
ge
=
Theory
.
ns_find_ls
th
.
th_export
[
"ge"
]
in
...
@@ -32,11 +33,17 @@ let make_rt env =
...
@@ -32,11 +33,17 @@ let make_rt env =
else
t
else
t
|
_
->
t
|
_
->
t
in
in
rt
let
init
=
None
in
let
init
=
Task
.
add_ty_decl
init
t
in
let
init
=
Task
.
add_param_decl
init
le
in
let
init
=
Task
.
add_param_decl
init
lt
in
let
init
=
Task
.
add_param_decl
init
ge
in
let
init
=
Task
.
add_param_decl
init
gt
in
(
rt
,
init
)
let
vars_on_lhs
env
=
let
vars_on_lhs
env
=
let
rt
=
make_rt
env
in
let
rt
,
init
=
make_rt
env
in
Why3
.
Trans
.
rewrite
rt
None
Why3
.
Trans
.
rewrite
rt
init
let
init
()
=
let
init
()
=
Why3
.
Trans
.
register_env_transform
Why3
.
Trans
.
register_env_transform
...
...
This diff is collapsed.
Click to expand it.
tests/marabout.t
0 → 100644
+
51
−
0
View file @
34ef7745
Test
verify
$
cat
-
>
bin
/
alt
-
ergo
<<
EOF
>
#!/bin/sh
>
echo
"
2.4.0
"
>
EOF
$
cat
-
>
bin
/
Marabou
<<
EOF
>
#!/bin/sh
>
echo
"
1.0.+
"
>
EOF
$
chmod
u
+
x
bin
/alt-ergo bin/p
yrat
.
py
bin
/
Marabou
$
bin
/
alt
-
ergo
2.4.0
$
bin
/
pyrat
.
py
--
version
PyRAT
1.1
$
bin
/
Marabou
1.0
.+
$
PATH
=
$
(
pwd
)
/
bin:$PATH
$
caisar
verify
-
L
.
--
format
whyml
--
prover
=
Marabou
-
2
>&
1
<<
EOF
|
sed
'
s/\/tmp\/[a-z0-9./]*/$TMPFILE/
'
>
theory
T
>
use
TestNetwork
.
AsTuple
>
use
ieee_float
.
Float64
>
use
caisar
.
NNet
>
>
goal
G:
forall
x1
x2
x3
x4
x5
.
>
(
0.0
:
t
)
.<
x1
.<
(
0.5
:
t
)
->
>
let
(
y1
,
_
,
_
,
_
,
_
)
=
nnet_apply
x1
x2
x3
x4
x5
in
>
(
0.0
:
t
)
.<
y1
.<
(
0.5
:
t
)
>
end
>
EOF
<
autodetect
>
0
prover
(
s) added
<autodetect>Generating strategies:
<autodetect>Run: (Marabou --version) > $TMPFILE 2>&1
<autodetect>Run: (alt-ergo --version)
>
$TMPFILE
2
>&
1
<
autodetect
>
Run:
(
pyrat
.
py
--
version
)
>
$TMPFILE
2
>&
1
<
autodetect
>
Found
prover
Alt
-
Ergo
version
2.4.0
,
OK
.
<
autodetect
>
Found
prover
Marabou
version
1.0
.+
,
OK
.
<
autodetect
>
Found
prover
PyRAT
version
1.1
,
OK
.
<
autodetect
>
3
prover
(
s) added
HERE: lt (0.0:t) x1!
HERE: lt (0.0:t)
y
!
Goal
G:
High
failure
Output:
1.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