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
6a634cf1
Commit
6a634cf1
authored
4 years ago
by
Loïc Correnson
Browse files
Options
Downloads
Patches
Plain Diff
[wp] improved output for missing caches
parent
215cd63d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/wp/ProverWhy3.ml
+2
-2
2 additions, 2 deletions
src/plugins/wp/ProverWhy3.ml
src/plugins/wp/VCS.ml
+14
-12
14 additions, 12 deletions
src/plugins/wp/VCS.ml
with
16 additions
and
14 deletions
src/plugins/wp/ProverWhy3.ml
+
2
−
2
View file @
6a634cf1
...
@@ -1216,8 +1216,8 @@ let call_prover prover_config ~timeout ~steplimit drv prover task =
...
@@ -1216,8 +1216,8 @@ let call_prover prover_config ~timeout ~steplimit drv prover task =
false
false
in
in
let
command
=
Why3
.
Whyconf
.
get_complete_command
prover_config
~
with_steps
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
let
steps
=
if
with_steps
then
steps
else
None
in
let
pp_steps
fmt
s
=
let
pp_steps
fmt
s
=
if
with_steps
then
Format
.
fprintf
fmt
"%i steps"
(
Why3
.
Opt
.
get_def
(
-
1
)
s
)
if
with_steps
then
Format
.
fprintf
fmt
"%i steps"
(
Why3
.
Opt
.
get_def
(
-
1
)
s
)
else
Format
.
fprintf
fmt
""
else
Format
.
fprintf
fmt
""
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/VCS.ml
+
14
−
12
View file @
6a634cf1
...
@@ -289,33 +289,35 @@ let cached r = if is_verdict r then { r with cached=true } else r
...
@@ -289,33 +289,35 @@ let cached r = if is_verdict r then { r with cached=true } else r
let
kfailed
?
pos
msg
=
Pretty_utils
.
ksfprintf
(
failed
?
pos
)
msg
let
kfailed
?
pos
msg
=
Pretty_utils
.
ksfprintf
(
failed
?
pos
)
msg
let
perfo
dkey
=
not
(
Wp_parameters
.
has_dkey
dkey
)
let
pp_perf_forced
fmt
r
=
let
pp_perf
fmt
r
=
begin
begin
let
t
=
r
.
solver_time
in
let
t
=
r
.
solver_time
in
if
t
>
Rformat
.
epsilon
&&
perfo
dkey_shell
if
t
>
Rformat
.
epsilon
then
Format
.
fprintf
fmt
" (Qed:%a)"
Rformat
.
pp_time
t
;
then
Format
.
fprintf
fmt
" (Qed:%a)"
Rformat
.
pp_time
t
;
let
t
=
r
.
prover_time
in
let
t
=
r
.
prover_time
in
if
t
>
Rformat
.
epsilon
&&
perfo
dkey_shell
if
t
>
Rformat
.
epsilon
then
Format
.
fprintf
fmt
" (%a)"
Rformat
.
pp_time
t
;
then
Format
.
fprintf
fmt
" (%a)"
Rformat
.
pp_time
t
;
let
s
=
r
.
prover_steps
in
let
s
=
r
.
prover_steps
in
if
s
>
0
&&
perfo
dkey_shell
if
s
>
0
then
Format
.
fprintf
fmt
" (%d)"
s
;
then
Format
.
fprintf
fmt
" (%d)"
s
;
if
r
.
cached
&&
perfo
dkey_shell
if
r
.
cached
then
Format
.
fprintf
fmt
" (cached)"
;
then
Format
.
fprintf
fmt
" (cached)"
;
end
end
let
pp_perf_shell
fmt
r
=
if
not
(
Wp_parameters
.
has_dkey
dkey_shell
)
then
pp_perf_forced
fmt
r
let
pp_result
fmt
r
=
let
pp_result
fmt
r
=
match
r
.
verdict
with
match
r
.
verdict
with
|
NoResult
->
Format
.
pp_print_string
fmt
"No Result"
|
NoResult
->
Format
.
pp_print_string
fmt
"No Result"
|
Computing
_
->
Format
.
pp_print_string
fmt
"Computing"
|
Computing
_
->
Format
.
pp_print_string
fmt
"Computing"
|
Invalid
->
Format
.
pp_print_string
fmt
"Invalid"
|
Invalid
->
Format
.
pp_print_string
fmt
"Invalid"
|
Failed
->
Format
.
fprintf
fmt
"Failed@ %s"
r
.
prover_errmsg
|
Failed
->
Format
.
fprintf
fmt
"Failed@ %s"
r
.
prover_errmsg
|
Valid
->
Format
.
fprintf
fmt
"Valid%a"
pp_perf
r
|
Valid
->
Format
.
fprintf
fmt
"Valid%a"
pp_perf
_shell
r
|
Unknown
->
Format
.
fprintf
fmt
"Unknown%a"
pp_perf
r
|
Unknown
->
Format
.
fprintf
fmt
"Unknown%a"
pp_perf
_shell
r
|
Stepout
->
Format
.
fprintf
fmt
"Step limit%a"
pp_perf
r
|
Stepout
->
Format
.
fprintf
fmt
"Step limit%a"
pp_perf
_shell
r
|
Timeout
->
Format
.
fprintf
fmt
"Timeout%a"
pp_perf
r
|
Timeout
->
Format
.
fprintf
fmt
"Timeout%a"
pp_perf
_shell
r
let
is_qualified
prover
result
=
let
is_qualified
prover
result
=
match
prover
with
match
prover
with
...
@@ -328,7 +330,7 @@ let pp_cache_miss fmt st updating prover result =
...
@@ -328,7 +330,7 @@ let pp_cache_miss fmt st updating prover result =
&&
not
(
is_qualified
prover
result
)
&&
not
(
is_qualified
prover
result
)
&&
Wp_parameters
.
has_dkey
dkey_shell
&&
Wp_parameters
.
has_dkey
dkey_shell
then
then
Format
.
fprintf
fmt
"%s%a (missing cache)"
st
pp_perf
result
Format
.
fprintf
fmt
"%s%a (missing cache)"
st
pp_perf
_forced
result
else
else
Format
.
pp_print_string
fmt
@@
Format
.
pp_print_string
fmt
@@
if
is_valid
result
then
"Valid"
else
"Unsuccess"
if
is_valid
result
then
"Valid"
else
"Unsuccess"
...
...
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