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
fbe6fa9f
Commit
fbe6fa9f
authored
5 years ago
by
Loïc Correnson
Browse files
Options
Downloads
Patches
Plain Diff
[wp/cache] detect trivial goals for why3
parent
68fb5f9f
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
+8
-1
8 additions, 1 deletion
src/plugins/wp/ProverWhy3.ml
with
8 additions
and
1 deletion
src/plugins/wp/ProverWhy3.ml
+
8
−
1
View file @
fbe6fa9f
...
@@ -1116,7 +1116,7 @@ let task_hash wpo drv prover task =
...
@@ -1116,7 +1116,7 @@ let task_hash wpo drv prover task =
~
prover
:
(
VCS
.
Why3
prover
)
in
~
prover
:
(
VCS
.
Why3
prover
)
in
let
_
=
Command
.
print_file
file
let
_
=
Command
.
print_file
file
begin
fun
fmt
->
begin
fun
fmt
->
Format
.
fprintf
fmt
"(* WP Task for Prover %s *)"
Format
.
fprintf
fmt
"(* WP Task for Prover %s *)
@
\n
"
(
Why3Provers
.
print
prover
)
;
(
Why3Provers
.
print
prover
)
;
Why3
.
Driver
.
print_task_prepared
drv
fmt
task
;
Why3
.
Driver
.
print_task_prepared
drv
fmt
task
;
end
end
...
@@ -1186,6 +1186,10 @@ let set_cache_result ~mode hash prover result =
...
@@ -1186,6 +1186,10 @@ let set_cache_result ~mode hash prover result =
Wp_parameters
.
failure
~
once
:
true
"can not update cache (%s)"
Wp_parameters
.
failure
~
once
:
true
"can not update cache (%s)"
(
Printexc
.
to_string
err
)
(
Printexc
.
to_string
err
)
let
is_trivial
(
t
:
Why3
.
Task
.
task
)
=
let
goal
=
Why3
.
Task
.
task_goal_fmla
t
in
Why3
.
Term
.
t_equal
goal
Why3
.
Term
.
t_true
(* -------------------------------------------------------------------------- *)
(* -------------------------------------------------------------------------- *)
(* --- Prove WPO --- *)
(* --- Prove WPO --- *)
(* -------------------------------------------------------------------------- *)
(* -------------------------------------------------------------------------- *)
...
@@ -1204,6 +1208,9 @@ let prove ?timeout ?steplimit ~prover wpo =
...
@@ -1204,6 +1208,9 @@ let prove ?timeout ?steplimit ~prover wpo =
then
then
(* Why3 typed checked the task during its build *)
(* Why3 typed checked the task during its build *)
Task
.
return
VCS
.
checked
Task
.
return
VCS
.
checked
else
if
is_trivial
task
then
Task
.
return
VCS
.
valid
else
else
let
mode
=
get_mode
()
in
let
mode
=
get_mode
()
in
match
mode
with
match
mode
with
...
...
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