Skip to content

Commit 2f01421

Browse files
committed
Patch to partially address issue #756
1 parent 0c4670d commit 2f01421

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

floyd/for_lemmas.v

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -824,13 +824,16 @@ intros. eapply derives_trans; try eassumption; auto.
824824
Qed.
825825

826826
Ltac quick_typecheck3 :=
827+
(* do not clear hyps anymore! See issue #772
827828
clear;
828829
repeat match goal with
829830
| H := _ |- _ => clear H
830831
| H : _ |- _ => clear H
831-
end;
832+
end; *)
832833
apply quick_derives_right; clear; go_lowerx; intros;
833-
clear; repeat apply andp_right; auto; fail.
834+
clear; repeat apply andp_right;
835+
try apply derives_refl; (* see issue #756 *)
836+
auto; fail.
834837

835838
Ltac default_entailer_for_load_store :=
836839
repeat match goal with H := _ |- _ => clear H end;

floyd/sc_set_load_store.v

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1785,7 +1785,9 @@ Qed.
17851785
Ltac quick_typecheck3 :=
17861786
(* do not clear hyps anymore! See issue #772 *)
17871787
apply quick_derives_right; go_lowerx; intros;
1788-
repeat apply andp_right; auto; fail.
1788+
repeat apply andp_right;
1789+
try apply derives_refl; (* see issue #756 *)
1790+
auto; fail.
17891791

17901792
Ltac default_entailer_for_load_store :=
17911793
(* Don't clear! See issue #772 repeat match goal with H := _ |- _ => clear H end; *)

0 commit comments

Comments
 (0)