Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
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
frama-c
Commits
d85df105
Commit
d85df105
authored
4 years ago
by
Allan Blanchard
Browse files
Options
Downloads
Patches
Plain Diff
[wp] Ignore unsupported step limit
parent
ac162941
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/plugins/wp/ProverWhy3.ml
+16
-4
16 additions, 4 deletions
src/plugins/wp/ProverWhy3.ml
with
16 additions
and
4 deletions
src/plugins/wp/ProverWhy3.ml
+
16
−
4
View file @
d85df105
...
@@ -1206,14 +1206,26 @@ let call_prover prover_config ~timeout ~steplimit drv prover task =
...
@@ -1206,14 +1206,26 @@ let call_prover prover_config ~timeout ~steplimit drv prover task =
Why3
.
Call_provers
.
limit_time
=
Why3
.
Opt
.
get_def
def
.
limit_time
timeout
;
Why3
.
Call_provers
.
limit_time
=
Why3
.
Opt
.
get_def
def
.
limit_time
timeout
;
Why3
.
Call_provers
.
limit_steps
=
Why3
.
Opt
.
get_def
def
.
limit_time
steps
;
Why3
.
Call_provers
.
limit_steps
=
Why3
.
Opt
.
get_def
def
.
limit_time
steps
;
}
in
}
in
let
command
=
Why3
.
Whyconf
.
get_complete_command
prover_config
let
with_steps
=
match
steps
,
prover_config
.
Why3
.
Whyconf
.
command_steps
with
~
with_steps
:
(
steps
<>
None
)
in
|
None
,
_
->
false
|
Some
_
,
Some
_
->
true
|
Some
_
,
None
->
Wp_parameters
.
warning
~
once
:
true
~
current
:
false
"%a does not support steps limit (ignored option)"
Why3
.
Whyconf
.
print_prover
prover
;
false
in
let
command
=
Why3
.
Whyconf
.
get_complete_command
prover_config
~
with_steps
in
let
call
=
let
call
=
Why3
.
Driver
.
prove_task_prepared
~
command
~
limit
drv
task
in
Why3
.
Driver
.
prove_task_prepared
~
command
~
limit
drv
task
in
Wp_parameters
.
debug
~
dkey
"Why3 run prover %a with %i timeout %i steps@."
let
pp_steps
fmt
s
=
if
with_steps
then
Format
.
fprintf
fmt
"%i steps"
(
Why3
.
Opt
.
get_def
(
-
1
)
s
)
else
Format
.
fprintf
fmt
""
in
Wp_parameters
.
debug
~
dkey
"Why3 run prover %a with %i timeout %a@."
Why3
.
Whyconf
.
print_prover
prover
Why3
.
Whyconf
.
print_prover
prover
(
Why3
.
Opt
.
get_def
(
-
1
)
timeout
)
(
Why3
.
Opt
.
get_def
(
-
1
)
timeout
)
(
Why3
.
Opt
.
get_def
(
-
1
)
steps
)
;
pp_steps
steps
;
let
timeout
=
match
timeout
with
None
->
0
|
Some
tlimit
->
tlimit
in
let
timeout
=
match
timeout
with
None
->
0
|
Some
tlimit
->
tlimit
in
let
pcall
=
{
let
pcall
=
{
call
;
prover
;
call
;
prover
;
...
...
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