]> matita.cs.unibo.it Git - helm.git/commitdiff
fixed a buggy pattern matching
authorStefano Zacchiroli <zack@upsilon.cc>
Thu, 21 Oct 2004 08:13:49 +0000 (08:13 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Thu, 21 Oct 2004 08:13:49 +0000 (08:13 +0000)
helm/ocaml/tactics/variousTactics.ml

index d89f702fc071cb3fb732be9bba8bee5a4c2dd680..9293d14399756c7eb5ee677982700f42b819f16c 100644 (file)
@@ -224,10 +224,12 @@ let auto_tac mqi_handle =
  let auto_tac mqi_handle (proof,goal) =
   prerr_endline "Entro in Auto";
   try 
-    let (proof,_)::_ = auto_new mqi_handle [(proof, [(goal,depth)])] in
-    prerr_endline "AUTO_TAC HA FINITO";
-(*     CicMetaSubst.print_counters (); *)
-    (proof,[])
+    (match auto_new mqi_handle [(proof, [(goal,depth)])] with
+    | (proof,_)::_  ->
+      prerr_endline "AUTO_TAC HA FINITO";
+  (*     CicMetaSubst.print_counters (); *)
+      (proof,[])
+    | _ -> assert false)
   with 
   | NoOtherChoices ->
       prerr_endline("Auto failed");