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
9beb61d8
Commit
9beb61d8
authored
4 years ago
by
Loïc Correnson
Browse files
Options
Downloads
Patches
Plain Diff
[wp] cache clearing don't need lazy hash
parent
61d84a6e
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/Cache.ml
+2
-5
2 additions, 5 deletions
src/plugins/wp/Cache.ml
src/plugins/wp/Cache.mli
+1
-1
1 addition, 1 deletion
src/plugins/wp/Cache.mli
src/plugins/wp/ProverWhy3.ml
+1
-2
1 addition, 2 deletions
src/plugins/wp/ProverWhy3.ml
with
4 additions
and
8 deletions
src/plugins/wp/Cache.ml
+
2
−
5
View file @
9beb61d8
...
...
@@ -213,9 +213,9 @@ let set_cache_result ~mode hash prover result =
Wp_parameters
.
warning
~
current
:
false
~
once
:
true
"can not update cache (%s)"
(
Printexc
.
to_string
err
)
let
remove_cache_result
hash
=
let
hash
=
Lazy
.
force
hash
in
let
clear_result
~
digest
prover
goal
=
try
let
hash
=
digest
prover
goal
in
let
dir
=
get_usable_dir
~
make
:
true
()
in
let
file
=
Printf
.
sprintf
"%s/%s.json"
dir
hash
in
Extlib
.
safe_remove
file
...
...
@@ -287,7 +287,4 @@ let get_result ~digest ~runner ~timeout ~steplimit prover goal =
|
_
->
()
end
let
clean_entry_for
~
digest
prover
goal
=
remove_cache_result
(
lazy
(
digest
prover
goal
))
(* -------------------------------------------------------------------------- *)
This diff is collapsed.
Click to expand it.
src/plugins/wp/Cache.mli
+
1
−
1
View file @
9beb61d8
...
...
@@ -41,6 +41,6 @@ type 'a runner =
VCS
.
result
Task
.
task
val
get_result
:
digest
:
(
'
a
digest
)
->
runner
:
(
'
a
runner
)
->
'
a
runner
val
clea
n_entry_for
:
digest
:
(
'
a
digest
)
->
Why3Provers
.
t
->
'
a
->
unit
val
clea
r_result
:
digest
:
(
'
a
digest
)
->
Why3Provers
.
t
->
'
a
->
unit
(**************************************************************************)
This diff is collapsed.
Click to expand it.
src/plugins/wp/ProverWhy3.ml
+
1
−
2
View file @
9beb61d8
...
...
@@ -1275,9 +1275,8 @@ let scriptfile ~force ~ext wpo =
Format
.
sprintf
"%s/%s%s"
(
dir
:>
string
)
wpo
.
Wpo
.
po_sid
ext
let
call_editor
~
script
wpo
pconf
driver
prover
task
=
let
digest
=
digest
wpo
driver
in
Wp_parameters
.
feedback
~
ontty
:
`Transient
"Editing %S..."
script
;
Cache
.
clea
n_entry_for
digest
prover
task
;
Cache
.
clea
r_result
~
digest
:
(
digest
wpo
driver
)
prover
task
;
let
call
=
Why3
.
Call_provers
.
call_editor
~
command
:
(
editor
pconf
)
script
in
call_prover_task
~
timeout
:
None
~
steps
:
None
pconf
.
prover
call
...
...
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