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
14de28dc
Commit
14de28dc
authored
1 year ago
by
Michele Alberti
Committed by
François Bobot
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
[tests] Same output value from two different NN calls.
parent
0d884dad
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/transformations/native_nn_prover.ml
+6
-7
6 additions, 7 deletions
src/transformations/native_nn_prover.ml
tests/acasxu.t
+1
-1
1 addition, 1 deletion
tests/acasxu.t
with
7 additions
and
8 deletions
src/transformations/native_nn_prover.ml
+
6
−
7
View file @
14de28dc
...
@@ -66,26 +66,25 @@ let create_new_nn env input_vars outputs : string =
...
@@ -66,26 +66,25 @@ let create_new_nn env input_vars outputs : string =
|
Ok
{
nier
=
Ok
g
;
_
}
->
g
|
Ok
{
nier
=
Ok
g
;
_
}
->
g
in
in
let
input
()
=
let
input
()
=
let
o
=
let
node
=
IR
.
Node
.
create
IR
.
Node
.
create
(
Concat
{
inputs
=
List
.
map
~
f
:
convert_term
old_nn_args
;
axis
=
0
})
(
Concat
{
inputs
=
List
.
map
~
f
:
convert_term
old_nn_args
;
axis
=
0
})
in
in
let
o
=
let
node
=
if
Ir
.
Nier_simple
.
Shape
.
equal
o
.
shape
(
IR
.
input_shape
old_nn
)
if
Ir
.
Nier_simple
.
Shape
.
equal
node
.
shape
(
IR
.
input_shape
old_nn
)
then
o
then
node
else
else
IR
.
Node
.
create
IR
.
Node
.
create
(
Reshape
(
Reshape
{
{
input
=
o
;
input
=
node
;
shape
=
shape
=
IR
.
Node
.
constant_int_array
IR
.
Node
.
constant_int_array
(
Ir
.
Nier_simple
.
Shape
.
to_array
(
IR
.
input_shape
old_nn
));
(
Ir
.
Nier_simple
.
Shape
.
to_array
(
IR
.
input_shape
old_nn
));
allowzero
=
0
;
allowzero
=
0
;
})
})
in
in
node
o
in
in
let
out
=
IR
.
Node
.
replace_input
input
(
IR
.
output
old_nn
)
in
let
out
=
IR
.
Node
.
replace_input
input
(
IR
.
output
old_nn
)
in
Ir
.
Nier_simple
.
Node
.
gather_int
out
old_index
Ir
.
Nier_simple
.
Node
.
gather_int
out
old_index
...
...
This diff is collapsed.
Click to expand it.
tests/acasxu.t
+
1
−
1
View file @
14de28dc
...
@@ -96,7 +96,7 @@ Test verify on acasxu
...
@@ -96,7 +96,7 @@ Test verify on acasxu
>
ensures
{
let
o1
,
o2
=
result
in
o1
.>=
o2
/\
o2
.>=
o1
}
=
>
ensures
{
let
o1
,
o2
=
result
in
o1
.>=
o2
/\
o2
.>=
o1
}
=
>
let
i
=
normalize_input
j
in
>
let
i
=
normalize_input
j
in
>
let
o1
=
(
nn@@i
)[
clear_of_conflict
]
in
>
let
o1
=
(
nn@@i
)[
clear_of_conflict
]
in
>
let
o2
=
(
nn@@i
)[
clear_of_conflic
t
]
in
>
let
o2
=
(
nn@@i
)[
weak_lef
t
]
in
>
o1
,
o2
>
o1
,
o2
>
>
>
(
*
goal
P1:
>
(
*
goal
P1:
...
...
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