equal
deleted
inserted
replaced
911 | matchs (t :: ts) (u :: us) = match t u andalso matchs ts us; |
911 | matchs (t :: ts) (u :: us) = match t u andalso matchs ts us; |
912 |
912 |
913 |
913 |
914 fun printStats (State {ntried, nclosed, ...}) (b, start, tacs) = |
914 fun printStats (State {ntried, nclosed, ...}) (b, start, tacs) = |
915 if b then |
915 if b then |
916 writeln (end_timing start ^ " for search. Closed: " |
916 writeln (#message (end_timing start) ^ " for search. Closed: " |
917 ^ Int.toString (!nclosed) ^ |
917 ^ Int.toString (!nclosed) ^ |
918 " tried: " ^ Int.toString (!ntried) ^ |
918 " tried: " ^ Int.toString (!ntried) ^ |
919 " tactics: " ^ Int.toString (length tacs)) |
919 " tactics: " ^ Int.toString (length tacs)) |
920 else (); |
920 else (); |
921 |
921 |
1262 Int.toString lim); |
1262 Int.toString lim); |
1263 if !trace then error "************************\n" |
1263 if !trace then error "************************\n" |
1264 else (); |
1264 else (); |
1265 backtrack choices) |
1265 backtrack choices) |
1266 | cell => (if (!trace orelse !stats) |
1266 | cell => (if (!trace orelse !stats) |
1267 then writeln (end_timing start ^ " for reconstruction") |
1267 then writeln (#message (end_timing start) ^ " for reconstruction") |
1268 else (); |
1268 else (); |
1269 Seq.make(fn()=> cell)) |
1269 Seq.make(fn()=> cell)) |
1270 end |
1270 end |
1271 in prove (state, start, cs, [initBranch (mkGoal concl :: hyps, lim)], cont) end |
1271 in prove (state, start, cs, [initBranch (mkGoal concl :: hyps, lim)], cont) end |
1272 handle PROVE => Seq.empty |
1272 handle PROVE => Seq.empty |