From: Stefano Zacchiroli Date: Thu, 21 Oct 2004 08:13:49 +0000 (+0000) Subject: fixed a buggy pattern matching X-Git-Tag: V_0_0_10~61 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=cb8aed8950ddf9820be556b4c6ca1810ec83e9b9;p=helm.git fixed a buggy pattern matching --- diff --git a/helm/ocaml/tactics/variousTactics.ml b/helm/ocaml/tactics/variousTactics.ml index d89f702fc..9293d1439 100644 --- a/helm/ocaml/tactics/variousTactics.ml +++ b/helm/ocaml/tactics/variousTactics.ml @@ -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");