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
81381390
Commit
81381390
authored
1 year ago
by
Michele Alberti
Browse files
Options
Downloads
Patches
Plain Diff
[verification] Apply strategy before calling answer_generic.
parent
7fbe9911
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/verification.ml
+7
-14
7 additions, 14 deletions
src/verification.ml
with
7 additions
and
14 deletions
src/verification.ml
+
7
−
14
View file @
81381390
...
...
@@ -223,18 +223,7 @@ let answer_dataset limit config env prover config_prover driver dataset task =
in
(
prover_answer
,
additional_info
)
let
answer_generic
limit
config
env
prover
config_prover
driver
task
=
let
task
=
let
proof_strategy
=
match
prover
with
|
Prover
.
Marabou
|
Pyrat
|
Nnenum
->
Proof_strategy
.
apply_native_nn_prover
|
CVC5
->
Proof_strategy
.
apply_classic_prover
|
_
->
(* Only previous provers admitted here. *)
assert
false
in
proof_strategy
env
task
in
let
answer_generic
limit
config
prover
config_prover
driver
task
=
let
task
=
Driver
.
prepare_task
driver
task
in
let
nn_file
=
match
Task
.
on_meta_excl
Utils
.
meta_nn_filename
task
with
...
...
@@ -266,8 +255,12 @@ let call_prover ?dataset ~limit config env prover config_prover driver task =
|
(
Marabou
|
Pyrat
|
Nnenum
)
when
Option
.
is_some
dataset
->
let
dataset
=
Unix
.
realpath
(
Option
.
value_exn
dataset
)
in
answer_dataset
limit
config
env
prover
config_prover
driver
dataset
task
|
Marabou
|
Pyrat
|
Nnenum
|
CVC5
->
answer_generic
limit
config
env
prover
config_prover
driver
task
|
Marabou
|
Pyrat
|
Nnenum
->
let
task
=
Proof_strategy
.
apply_native_nn_prover
env
task
in
answer_generic
limit
config
prover
config_prover
driver
task
|
CVC5
->
let
task
=
Proof_strategy
.
apply_classic_prover
env
task
in
answer_generic
limit
config
prover
config_prover
driver
task
in
let
id
=
Task
.
task_goal
task
in
{
id
;
prover_answer
;
additional_info
}
...
...
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