aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins/ltac
diff options
context:
space:
mode:
authorGravatar Paul Steckler <steck@stecksoft.com>2018-01-03 14:42:52 -0500
committerGravatar Paul Steckler <steck@stecksoft.com>2018-01-03 14:42:52 -0500
commitc1960c794b5c8444925df67663bd70d35c67dc36 (patch)
treea34b777fb864a50291d5ca188630d743fe933e77 /plugins/ltac
parentdea75d74c222c25f6aa6c38506ac7a51b339e9c6 (diff)
add optimize_heap tactic for #6488
Diffstat (limited to 'plugins/ltac')
-rw-r--r--plugins/ltac/extratactics.ml49
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/ltac/extratactics.ml4 b/plugins/ltac/extratactics.ml4
index 982fc7cc3..b222e1387 100644
--- a/plugins/ltac/extratactics.ml4
+++ b/plugins/ltac/extratactics.ml4
@@ -1117,3 +1117,12 @@ VERNAC COMMAND EXTEND OptimizeProof
| [ "Optimize" "Heap" ] => [ Vernac_classifier.classify_as_proofstep ] ->
[ Gc.compact () ]
END
+
+(** tactic analogous to "OPTIMIZE HEAP" *)
+
+let tclOPTIMIZE_HEAP =
+ Proofview.tclLIFT (Proofview.NonLogical.make (fun () -> Gc.compact ()))
+
+TACTIC EXTEND optimize_heap
+| [ "optimize_heap" ] -> [ tclOPTIMIZE_HEAP ]
+END