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
f5793dfd
Commit
f5793dfd
authored
2 years ago
by
Julien Girard-Satabin
Browse files
Options
Downloads
Patches
Plain Diff
[SAVer] Optional argument for dataset-csv.
parent
e9bae886
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/main.ml
+1
-1
1 addition, 1 deletion
src/main.ml
src/verification.ml
+5
-3
5 additions, 3 deletions
src/verification.ml
src/verification.mli
+1
-1
1 addition, 1 deletion
src/verification.mli
with
7 additions
and
5 deletions
src/main.ml
+
1
−
1
View file @
f5793dfd
...
...
@@ -73,7 +73,7 @@ let verify format loadpath memlimit timeout prover dataset_csv files =
List
.
iter
~
f
:
(
Verification
.
verify
~
debug
format
loadpath
?
memlimit
?
timeout
prover
~
dataset_csv
)
?
dataset_csv
)
files
let
exec_cmd
cmdname
cmd
=
...
...
This diff is collapsed.
Click to expand it.
src/verification.ml
+
5
−
3
View file @
f5793dfd
...
...
@@ -60,8 +60,8 @@ let answer_saver limit config task env prover dataset_csv =
let
handle_task_saver
task
env
dataset_csv
command
=
let
dataset_filename
=
match
dataset_csv
with
|
Some
s
->
s
|
None
->
failwith
"Error, no dataset provided for SAVer."
|
""
->
failwith
"Error, no dataset provided for SAVer."
|
s
->
s
in
let
goal
=
Task
.
task_goal_fmla
task
in
let
eps
,
svm_filename
=
...
...
@@ -186,11 +186,13 @@ let call_prover ~limit config (prover : Why3.Whyconf.config_prover) driver env
Call_provers
.
print_prover_answer
prover_answer
let
verify
?
(
debug
=
false
)
format
loadpath
?
memlimit
?
timeout
prover
~
dataset_csv
file
=
?
dataset_csv
file
=
let
open
Why3
in
if
debug
then
Debug
.
set_flag
(
Debug
.
lookup_flag
"call_prover"
);
let
env
,
config
=
create_env
loadpath
in
let
steplimit
=
None
in
let
steps
=
match
steplimit
with
Some
0
->
None
|
_
->
steplimit
in
let
dataset_csv
=
Option
.
value
dataset_csv
~
default
:
""
in
let
limit
=
let
memlimit
=
Option
.
value
memlimit
~
default
:
Whyconf
.(
memlimit
(
get_main
config
))
...
...
This diff is collapsed.
Click to expand it.
src/verification.mli
+
1
−
1
View file @
f5793dfd
...
...
@@ -18,7 +18,7 @@ val verify :
?
memlimit
:
int
->
?
timeout
:
int
->
Prover
.
t
->
dataset_csv
:
string
option
->
?
dataset_csv
:
string
->
File
.
t
->
unit
(** [verify debug format loadpath memlimit timeout prover file] launches a
...
...
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