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
08183a40
Commit
08183a40
authored
1 year ago
by
Michele Alberti
Browse files
Options
Downloads
Patches
Plain Diff
[aimos][saver] Uniformize code style.
parent
3a593054
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/aimos.ml
+2
-2
2 additions, 2 deletions
src/aimos.ml
src/saver.ml
+10
-10
10 additions, 10 deletions
src/saver.ml
with
12 additions
and
12 deletions
src/aimos.ml
+
2
−
2
View file @
08183a40
...
...
@@ -23,7 +23,7 @@
open
Why3
open
Base
let
aimos_file
=
Re__Core
.(
compile
(
str
"%{aimos_file}"
))
let
re_
aimos_file
=
Re__Core
.(
compile
(
str
"%{aimos_file}"
))
let
write_config
inputs_path
models_path
perturbation
perturbation_path
out_mode
amplitude
=
...
...
@@ -94,7 +94,7 @@ let build_command config_prover
amplitude
in
let
command
=
Whyconf
.
get_complete_command
~
with_steps
:
false
config_prover
in
Re__Core
.
replace_string
aimos_file
~
by
:
aimos_config
command
Re__Core
.
replace_string
re_
aimos_file
~
by
:
aimos_config
command
let
re_aimos_output
=
Re__Pcre
.
regexp
"((,
\\
s)(
\\
d+
\\
.
\\
d+))"
...
...
This diff is collapsed.
Click to expand it.
src/saver.ml
+
10
−
10
View file @
08183a40
...
...
@@ -23,21 +23,21 @@
open
Why3
open
Base
let
svm
=
Re__Core
.(
compile
(
str
"%{svm}"
))
let
dataset
=
Re__Core
.(
compile
(
str
"%{dataset}"
))
let
eps
ilon
=
Re__Core
.(
compile
(
str
"%{epsilon}"
))
let
abstraction
=
Re__Core
.(
compile
(
str
"%{abstraction}"
))
let
distance
=
Re__Core
.(
compile
(
str
"%{distance}"
))
let
re_
svm
=
Re__Core
.(
compile
(
str
"%{svm}"
))
let
re_
dataset
=
Re__Core
.(
compile
(
str
"%{dataset}"
))
let
re_
eps
=
Re__Core
.(
compile
(
str
"%{epsilon}"
))
let
re_
abstraction
=
Re__Core
.(
compile
(
str
"%{abstraction}"
))
let
re_
distance
=
Re__Core
.(
compile
(
str
"%{distance}"
))
let
build_command
config_prover
svm_filename
dataset_filename
eps
=
let
command
=
Whyconf
.
get_complete_command
~
with_steps
:
false
config_prover
in
let
params
=
[
(
svm
,
Unix
.
realpath
svm_filename
);
(
dataset
,
Unix
.
realpath
dataset_filename
);
(
eps
ilon
,
Option
.(
value
(
map
~
f
:
Dataset
.
string_of_eps
eps
))
~
default
:
"0"
);
(
distance
,
"l_inf"
);
(
abstraction
,
"hybrid"
);
(
re_
svm
,
Unix
.
realpath
svm_filename
);
(
re_
dataset
,
Unix
.
realpath
dataset_filename
);
(
re_
eps
,
Option
.(
value
(
map
~
f
:
Dataset
.
string_of_eps
eps
))
~
default
:
"0"
);
(
re_
distance
,
"l_inf"
);
(
re_
abstraction
,
"hybrid"
);
]
in
List
.
fold
params
~
init
:
command
~
f
:
(
fun
cmd
(
param
,
by
)
->
...
...
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