Skip to content
Snippets Groups Projects
Commit ba64398e authored by Janno's avatar Janno
Browse files

Fix `wp_pure` to call `simpl_subst..` in last goal

Both `simpl_subst` and `try wp_value_head` are now called only in the
last subgoal after applying `tac_wp_pure`.
parent 3878c468
No related branches found
No related tags found
No related merge requests found
...@@ -56,8 +56,7 @@ Definition wp_pure (efoc : expr) : tactic := ...@@ -56,8 +56,7 @@ Definition wp_pure (efoc : expr) : tactic :=
[m: T.apply_ (* PureExec *) [m: T.apply_ (* PureExec *)
|T.try fast_done (* The pure condition for PureExec *) |T.try fast_done (* The pure condition for PureExec *)
|T.apply_ (* IntoLaters *) |T.apply_ (* IntoLaters *)
|T.idtac] &> (* FIXME: If I put the `simpl_subst ...` in this branch, it does not work *) |simpl_subst &> T.try wp_value_head]
simpl_subst &> T.try wp_value_head
) || M.failwith "wp_pure: cannot find" (* efoc "in" e "or" efoc "is not a reduct" *). ) || M.failwith "wp_pure: cannot find" (* efoc "in" e "or" efoc "is not a reduct" *).
Tactic Notation "wp_pure" open_constr(efoc) := mrun (wp_pure efoc). Tactic Notation "wp_pure" open_constr(efoc) := mrun (wp_pure efoc).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment