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
4196809a
Commit
4196809a
authored
5 years ago
by
Loïc Correnson
Browse files
Options
Downloads
Patches
Plain Diff
[wp/cache] generate task for type-check
parent
ec578deb
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
-11
8 additions, 11 deletions
src/plugins/wp/ProverWhy3.ml
with
8 additions
and
11 deletions
src/plugins/wp/ProverWhy3.ml
+
8
−
11
View file @
4196809a
...
@@ -1000,9 +1000,8 @@ let task_of_wpo wpo =
...
@@ -1000,9 +1000,8 @@ let task_of_wpo wpo =
(* --- Prover Task --- *)
(* --- Prover Task --- *)
(* -------------------------------------------------------------------------- *)
(* -------------------------------------------------------------------------- *)
let
prover_task
prover
wpo
=
let
prover_task
prover
task
=
let
env
=
get_why3_env
()
in
let
env
=
get_why3_env
()
in
let
task
=
task_of_wpo
wpo
in
let
config
=
Why3Provers
.
config
()
in
let
config
=
Why3Provers
.
config
()
in
let
prover_config
=
Why3
.
Whyconf
.
get_prover_config
config
prover
in
let
prover_config
=
Why3
.
Whyconf
.
get_prover_config
config
prover
in
let
drv
=
Why3
.
Whyconf
.
load_driver
(
Why3
.
Whyconf
.
get_main
config
)
let
drv
=
Why3
.
Whyconf
.
load_driver
(
Why3
.
Whyconf
.
get_main
config
)
...
@@ -1217,17 +1216,15 @@ let prove ?timeout ?steplimit ~prover wpo =
...
@@ -1217,17 +1216,15 @@ let prove ?timeout ?steplimit ~prover wpo =
try
try
WpContext
.
on_context
(
Wpo
.
get_context
wpo
)
WpContext
.
on_context
(
Wpo
.
get_context
wpo
)
begin
fun
()
->
begin
fun
()
->
(* Always generate common task *)
let
task
=
task_of_wpo
wpo
in
if
Wp_parameters
.
Check
.
get
()
then
Task
.
return
VCS
.
checked
(* Why3 tasks are type-checked *)
else
if
Wp_parameters
.
Generate
.
get
()
if
Wp_parameters
.
Generate
.
get
()
then
if
Wp_parameters
.
Check
.
get
()
then
Task
.
return
VCS
.
no_result
(* Only generate *)
then
Task
.
return
VCS
.
checked
else
Task
.
return
VCS
.
no_result
else
else
let
drv
,
config
,
task
=
prover_task
prover
wpo
in
let
drv
,
config
,
task
=
prover_task
prover
task
in
if
Wp_parameters
.
Check
.
get
()
then
(* Why3 typed checked the task during its build *)
Task
.
return
VCS
.
checked
else
if
false
&&
is_trivial
task
then
if
false
&&
is_trivial
task
then
Task
.
return
VCS
.
valid
Task
.
return
VCS
.
valid
else
else
...
...
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