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
f16fd5a0
Commit
f16fd5a0
authored
2 years ago
by
Allan Blanchard
Browse files
Options
Downloads
Patches
Plain Diff
[wp] Coherence between messages in Clear and Unfold
parent
b288ed41
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/TacClear.ml
+4
-2
4 additions, 2 deletions
src/plugins/wp/TacClear.ml
src/plugins/wp/TacUnfold.ml
+3
-2
3 additions, 2 deletions
src/plugins/wp/TacUnfold.ml
src/plugins/wp/tests/wp_tip/oracle/clear.res.oracle
+2
-2
2 additions, 2 deletions
src/plugins/wp/tests/wp_tip/oracle/clear.res.oracle
with
9 additions
and
6 deletions
src/plugins/wp/TacClear.ml
+
4
−
2
View file @
f16fd5a0
...
@@ -82,8 +82,9 @@ let tactical_inside step remove =
...
@@ -82,8 +82,9 @@ let tactical_inside step remove =
List
.
fold_left
add
Filteredset
.
empty
remove
List
.
fold_left
add
Filteredset
.
empty
remove
in
in
let
feedback
=
let
feedback
=
let
pp
fmt
f
=
Format
.
fprintf
fmt
"'%a'"
Filtered
.
pretty
f
in
Format
.
asprintf
"Filtered: %a"
Format
.
asprintf
"Filtered: %a"
(
Pretty_utils
.
pp_list
~
sep
:
", "
Filtered
.
pretty
)
removed
(
Pretty_utils
.
pp_list
~
sep
:
", "
pp
)
removed
in
in
let
cond
=
condition
step
@@
Lang
.
F
.
p_bool
@@
Lang
.
F
.
e_and
kept
in
let
cond
=
condition
step
@@
Lang
.
F
.
p_bool
@@
Lang
.
F
.
e_and
kept
in
removed
,
Tactical
.
replace_single
~
at
:
step
.
id
(
feedback
,
cond
)
removed
,
Tactical
.
replace_single
~
at
:
step
.
id
(
feedback
,
cond
)
...
@@ -114,8 +115,9 @@ let fold_selection s seq =
...
@@ -114,8 +115,9 @@ let fold_selection s seq =
in
in
let
removed
,
seq
=
Smap
.
fold
tactical
m
([]
,
seq
)
in
let
removed
,
seq
=
Smap
.
fold
tactical
m
([]
,
seq
)
in
let
feedback
=
let
feedback
=
let
pp
fmt
f
=
Format
.
fprintf
fmt
"'%a'"
Filtered
.
pretty
f
in
Format
.
asprintf
"Filtered: %a"
Format
.
asprintf
"Filtered: %a"
(
Pretty_utils
.
pp_list
~
sep
:
", "
Filtered
.
pretty
)
removed
(
Pretty_utils
.
pp_list
~
sep
:
", "
pp
)
removed
in
in
feedback
,
seq
feedback
,
seq
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/TacUnfold.ml
+
3
−
2
View file @
f16fd5a0
...
@@ -131,8 +131,9 @@ let tactical_inside step unfolds sequent =
...
@@ -131,8 +131,9 @@ let tactical_inside step unfolds sequent =
in
in
let
p
=
condition
step
@@
Lang
.
p_subst
subst
p
in
let
p
=
condition
step
@@
Lang
.
p_subst
subst
p
in
let
feedback
=
let
feedback
=
Format
.
asprintf
"Unfold '%a'"
let
pp
fmt
f
=
Format
.
fprintf
fmt
"'%a'"
Lang
.
Fun
.
pretty
f
in
(
Pretty_utils
.
pp_list
~
sep
:
", "
Lang
.
Fun
.
pretty
)
!
unfolded
Format
.
asprintf
"Unfold %a"
(
Pretty_utils
.
pp_list
~
sep
:
", "
pp
)
!
unfolded
in
in
!
unfolded
,
snd
@@
Tactical
.
replace_single
~
at
:
step
.
id
(
feedback
,
p
)
sequent
!
unfolded
,
snd
@@
Tactical
.
replace_single
~
at
:
step
.
id
(
feedback
,
p
)
sequent
|
_
->
raise
Not_found
|
_
->
raise
Not_found
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/tests/wp_tip/oracle/clear.res.oracle
+
2
−
2
View file @
f16fd5a0
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
typed_clear_in_step_check subgoal:
typed_clear_in_step_check subgoal:
Goal Wp.Tactical.typed_clear_in_step_check-0 (generated):
Goal Wp.Tactical.typed_clear_in_step_check-0 (generated):
Assume { (* Filtered: P_P(...) *) Have: P_Q /\ P_R. }
Assume { (* Filtered:
'
P_P(...)
'
*) Have: P_Q /\ P_R. }
Prove: P_S(42).
Prove: P_S(42).
------------------------------------------------------------
------------------------------------------------------------
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
typed_clear_in_step_check subgoal:
typed_clear_in_step_check subgoal:
Goal Wp.Tactical.typed_clear_in_step_check-1 (generated):
Goal Wp.Tactical.typed_clear_in_step_check-1 (generated):
Assume { (* Filtered: P_Q(...) *) Have: P_R. }
Assume { (* Filtered:
'
P_Q(...)
'
*) Have: P_R. }
Prove: P_S(42).
Prove: P_S(42).
------------------------------------------------------------
------------------------------------------------------------
...
...
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