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
1046b8f6
Commit
1046b8f6
authored
1 year ago
by
François Bobot
Browse files
Options
Downloads
Patches
Plain Diff
[NN_prover] Add bounds to all inputs since nn provers requires it
- But it is not very pretty in the debug output
parent
66aceeb9
No related branches found
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/transformations/native_nn_prover.ml
+25
-1
25 additions, 1 deletion
src/transformations/native_nn_prover.ml
tests/acasxu.t
+276
-0
276 additions, 0 deletions
tests/acasxu.t
with
301 additions
and
1 deletion
src/transformations/native_nn_prover.ml
+
25
−
1
View file @
1046b8f6
...
...
@@ -292,7 +292,31 @@ let abstract_nn_term env =
%a" Why3.Pretty.print_ls var (Number.print_int_constant
Number.full_support) out.old_index out.new_index (Fmt.list
~sep:Fmt.comma Why3.Pretty.print_term) out.old_nn_args);*)
(* Add bounds for all inputs *)
let
task
=
Why3
.
Term
.
Mls
.
fold_left
(
fun
task
ls
_
->
let
task
=
Why3
.
Task
.
add_prop_decl
task
Paxiom
(
Why3
.
Decl
.
create_prsymbol
@@
Why3
.
Ident
.
id_fresh
"min_bound"
)
(
Why3
.
Term
.
ps_app
th_float64
.
le
[
Utils
.
term_of_float
env
(
-.
Float
.
max_finite_value
);
Why3
.
Term
.
fs_app
ls
[]
th_float64
.
ty
;
])
in
let
task
=
Why3
.
Task
.
add_prop_decl
task
Paxiom
(
Why3
.
Decl
.
create_prsymbol
@@
Why3
.
Ident
.
id_fresh
"max_bound"
)
(
Why3
.
Term
.
ps_app
th_float64
.
le
[
Why3
.
Term
.
fs_app
ls
[]
th_float64
.
ty
;
Utils
.
term_of_float
env
Float
.
max_finite_value
;
])
in
task
)
task
input_vars
in
(* Add meta for outputs *)
let
task
=
Why3
.
Term
.
Mterm
.
fold_left
...
...
This diff is collapsed.
Click to expand it.
tests/acasxu.t
+
276
−
0
View file @
1046b8f6
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