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
23d62745
Commit
23d62745
authored
4 years ago
by
Loïc Correnson
Browse files
Options
Downloads
Patches
Plain Diff
[wp] fix simplification callback in prover script
parent
aa11a58f
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/plugins/wp/ProverScript.ml
+13
-10
13 additions, 10 deletions
src/plugins/wp/ProverScript.ml
src/plugins/wp/prover.mli
+5
-0
5 additions, 0 deletions
src/plugins/wp/prover.mli
src/plugins/wp/wpo.ml
+1
-2
1 addition, 2 deletions
src/plugins/wp/wpo.ml
with
19 additions
and
12 deletions
src/plugins/wp/ProverScript.ml
+
13
−
10
View file @
23d62745
...
...
@@ -392,16 +392,19 @@ let task
~
depth
~
width
~
backtrack
~
auto
~
start
~
progress
~
result
~
success
wpo
=
begin
fun
()
->
start
wpo
;
let
json
=
ProofSession
.
load
wpo
in
let
script
=
Priority
.
sort
(
ProofScript
.
decode
json
)
in
let
tree
=
ProofEngine
.
proof
~
main
:
wpo
in
let
env
=
Env
.
make
tree
~
valid
~
failed
~
provers
~
depth
~
width
~
backtrack
~
auto
~
progress
~
result
~
success
in
crawl
env
(
process
env
)
None
script
>>?
(
fun
_
->
ProofEngine
.
forward
tree
)
;
Prover
.
simplify
~
start
~
result
wpo
>>=
fun
succeed
->
if
succeed
then
Task
.
return
()
else
let
json
=
ProofSession
.
load
wpo
in
let
script
=
Priority
.
sort
(
ProofScript
.
decode
json
)
in
let
tree
=
ProofEngine
.
proof
~
main
:
wpo
in
let
env
=
Env
.
make
tree
~
valid
~
failed
~
provers
~
depth
~
width
~
backtrack
~
auto
~
progress
~
result
~
success
in
crawl
env
(
process
env
)
None
script
>>?
(
fun
_
->
ProofEngine
.
forward
tree
)
;
end
(* -------------------------------------------------------------------------- *)
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/prover.mli
+
5
−
0
View file @
23d62745
...
...
@@ -26,6 +26,11 @@ open VCS
(* --- Prover Implementation against Task API --- *)
(* -------------------------------------------------------------------------- *)
val
simplify
:
?
start
:
(
Wpo
.
t
->
unit
)
->
?
result
:
(
Wpo
.
t
->
prover
->
result
->
unit
)
->
Wpo
.
t
->
bool
Task
.
task
val
prove
:
Wpo
.
t
->
?
config
:
config
->
?
mode
:
mode
->
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/wpo.ml
+
1
−
2
View file @
23d62745
...
...
@@ -814,8 +814,7 @@ let resolve g =
let
valid
=
reduce
g
in
if
valid
then
let
result
=
VCS
.
result
~
solver
:
(
qed_time
g
)
VCS
.
Valid
in
ignore
(
set_result
g
VCS
.
Qed
result
)
;
true
(
set_result
g
VCS
.
Qed
result
;
true
)
else
false
let
compute
g
=
...
...
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