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
3083de2d
Commit
3083de2d
authored
3 years ago
by
Michele Alberti
Browse files
Options
Downloads
Patches
Plain Diff
Some more rework.
parent
8a5fa8ed
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/language.ml
+3
-3
3 additions, 3 deletions
src/language.ml
src/verification.ml
+1
-1
1 addition, 1 deletion
src/verification.ml
tests/autodetect.t
+24
-0
24 additions, 0 deletions
tests/autodetect.t
with
28 additions
and
4 deletions
src/language.ml
+
3
−
3
View file @
3083de2d
...
...
@@ -6,7 +6,7 @@
open
Base
(* --
Register
neural network format. *)
(* --
Support for the NNet
neural network format. *)
let
nnet_parser
env
_
filename
_
=
let
open
Why3
in
...
...
@@ -32,11 +32,11 @@ let nnet_parser env _ filename _ =
in
let
th_uc
=
Pmodule
.
add_pdecl
~
vc
:
false
th_uc
(
Pdecl
.
create_pure_decl
@@
Decl
.
create_param_decl
ls_nnet_apply
)
(
Pdecl
.
create_pure_decl
(
Decl
.
create_param_decl
ls_nnet_apply
)
)
in
Wstdlib
.
Mstr
.
singleton
"AsTuple"
(
Pmodule
.
close_module
th_uc
)
let
register
()
=
let
register
_nnet_support
()
=
Why3
.(
Env
.
register_format
~
desc
:
"NNet format (ReLU only)"
Pmodule
.
mlw_language
"NNet"
[
"nnet"
]
nnet_parser
)
This diff is collapsed.
Click to expand it.
src/verification.ml
+
1
−
1
View file @
3083de2d
...
...
@@ -8,7 +8,7 @@ open Base
module
Format
=
Caml
.
Format
module
Filename
=
Caml
.
Filename
let
()
=
Language
.
register
()
let
()
=
Language
.
register
_nnet_support
()
let
create_env
loadpath
=
let
config
=
Autodetection
.
autodetect
~
debug
:
true
()
in
...
...
This diff is collapsed.
Click to expand it.
tests/autodetect.t
+
24
−
0
View file @
3083de2d
Test
autodetect
$
mkdir
bin
$
cat
-
>
bin
/
pyrat
.
py
<<
EOF
>
#!/bin/sh
>
echo
"
PyRAT 1.0
"
>
EOF
$
cat
-
>
bin
/
Marabou
<<
EOF
>
#!/bin/sh
>
echo
"
1.0.+
"
>
EOF
$
chmod
u
+
x
bin
/pyrat.py bin/
Marabou
$
bin
/
pyrat
.
py
PyRAT
1.0
$
bin
/
Marabou
1.0
.+
$
PATH
=
$
(
pwd
)
/
bin:$PATH
$
caisar
config
-
d
[
caisar
]
Alt
-
Ergo
2.4.0
Marabou
1.0
.+
PyRAT
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