Skip to content
Snippets Groups Projects
Commit f16fd5a0 authored by Allan Blanchard's avatar Allan Blanchard
Browse files

[wp] Coherence between messages in Clear and Unfold

parent b288ed41
No related branches found
No related tags found
No related merge requests found
...@@ -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
......
...@@ -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
......
...@@ -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).
------------------------------------------------------------ ------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment