diff src/disjoint.sml @ 1034:a779402841f6

Hooks for measuring how much interesting proving is going on in elaboration
author Adam Chlipala <adamc@hcoop.net>
date Tue, 17 Nov 2009 12:44:14 -0500
parents 0406e9cccb72
children
line wrap: on
line diff
--- a/src/disjoint.sml	Sun Nov 08 12:26:03 2009 -0500
+++ b/src/disjoint.sml	Tue Nov 17 12:44:14 2009 -0500
@@ -161,6 +161,10 @@
             NONE => false
           | SOME pset => PS.member (pset, p2)
 
+val proved = ref 0
+fun reset () = (ElabOps.reset ();
+                proved := 0)
+
 fun decomposeRow env c =
     let
         val loc = #2 c
@@ -248,6 +252,7 @@
 
 and prove env denv (c1, c2, loc) =
     let
+        val () = proved := !proved + 1
         val ps1 = decomposeRow env c1
         val ps2 = decomposeRow env c2