Skip to content

Commit

Permalink
clib: suppress simp warnings in simpl_rewrite
Browse files Browse the repository at this point in the history
This gets rid of the simplified warning for Collect_const that
ccorres_rewrite produces in many CRefine proofs.

Signed-off-by: Gerwin Klein <[email protected]>
  • Loading branch information
lsf37 committed Jan 12, 2024
1 parent 939d2e7 commit b63532b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/clib/Simpl_Rewrite.thy
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ text \<open>Methods to automate rewriting.\<close>

method do_rewrite uses hom ruleset declares C_simp_simps =
(rule com_ctxt_focus_rewrite[OF hom], rule ruleset,
#break "simpl_rewrite_rewrite", (simp add: C_simp_simps; fail))+
#break "simpl_rewrite_rewrite", (not_visible \<open>simp add: C_simp_simps\<close>; fail))+

method rewrite_pre uses hom declares C_simp_pre C_simp_simps =
(do_rewrite hom: hom ruleset: C_simp_pre)
Expand Down

0 comments on commit b63532b

Please sign in to comment.