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
29d19a81
Commit
29d19a81
authored
2 years ago
by
Julien Girard-Satabin
Browse files
Options
Downloads
Patches
Plain Diff
[SAVer] Modified comment.
parent
f5793dfd
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/language.ml
+4
-3
4 additions, 3 deletions
src/language.ml
src/verification.ml
+3
-4
3 additions, 4 deletions
src/verification.ml
with
7 additions
and
7 deletions
src/language.ml
+
4
−
3
View file @
29d19a81
...
...
@@ -7,8 +7,8 @@
open
Why3
open
Base
(*
--
Support for
the
NNet and ONNX neural network
formats, as well as SVM under
the .ovo format
*)
(* Support for
several model formats: -
NNet and ONNX
for
neural network
s, - OVO
for for SVM
*)
type
nnshape
=
{
nb_inputs
:
int
;
...
...
@@ -57,7 +57,8 @@ let register_svm nb_inputs nb_outputs filename env =
let
ls_svm_apply
=
Term
.
create_fsymbol
(
Ident
.
id_fresh
"svm_apply"
)
[]
(
Ty
.
ty_func
asarray_input_type
asarray_input_type
)
[]
(
Ty
.
ty_func
asarray_input_type
asarray_input_type
)
in
Why3
.
Term
.
Hls
.
add
loaded_svms
ls_svm_apply
{
filename
;
nb_inputs
;
nb_outputs
;
ty_data
=
asarray_input_type
};
...
...
This diff is collapsed.
Click to expand it.
src/verification.ml
+
3
−
4
View file @
29d19a81
...
...
@@ -87,7 +87,7 @@ let answer_saver limit config task env prover dataset_csv =
let
svm_filename
=
match
Language
.
lookup_loaded_svms
svm_app_sym
with
|
Some
t
->
t
.
filename
|
None
->
failwith
"S
vm
file not found in environment."
|
None
->
failwith
"S
VM
file not found in environment."
in
(
eps
,
svm_filename
)
else
failwith
"Wrong predicate found."
...
...
@@ -136,9 +136,8 @@ let answer_saver limit config task env prover dataset_csv =
then
Call_provers
.
Valid
else
Call_provers
.
Invalid
|
None
->
Call_provers
.
HighFailure
(* Any other answer than HighFailure should
* never happen as we do not define
* anything in SAVer's driver *)
)
(* Any other answer than HighFailure should never happen as we do not
define anything in SAVer's driver *)
)
|
_
->
assert
false
in
answer
...
...
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