aboutsummaryrefslogtreecommitdiffstats
path: root/src/Common/Tactics.v
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2020-02-17 18:06:37 +0000
committerYann Herklotz <git@yannherklotz.com>2020-02-17 18:06:37 +0000
commitabf33a4075c2008bfcac3b04ad3b4dc1c57a4efd (patch)
tree2d9f95f1ae994e3b61aa0d5715673107589aa912 /src/Common/Tactics.v
parentff40ff40ee967f6fd9206ef8c86426b0ea33cbde (diff)
downloadvericert-abf33a4075c2008bfcac3b04ad3b4dc1c57a4efd.tar.gz
vericert-abf33a4075c2008bfcac3b04ad3b4dc1c57a4efd.zip
Add pretty printing for Verilog integrated with CompCert
Diffstat (limited to 'src/Common/Tactics.v')
-rw-r--r--src/Common/Tactics.v16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Common/Tactics.v b/src/Common/Tactics.v
new file mode 100644
index 0000000..5978d49
--- /dev/null
+++ b/src/Common/Tactics.v
@@ -0,0 +1,16 @@
+Module Tactics.
+
+ Ltac unfold_rec c := unfold c; fold c.
+
+ Ltac solve_by_inverts n :=
+ match goal with | H : ?T |- _ =>
+ match type of T with Prop =>
+ inversion H;
+ match n with S (S (?n')) => subst; try constructor; solve_by_inverts (S n') end
+ end
+ end.
+
+ Ltac solve_by_invert := solve_by_inverts 1.
+
+End Tactics.
+Export Tactics.