fix bug in SPASS's DFG output files, where "tc_bool" wasn't declared;
authorblanchet
Tue, 20 Apr 2010 16:14:45 +0200
changeset 3623786e62a98deea
parent 36236 5563c717638a
child 36238 344377ce2e0a
child 36263 56bf63d70120
fix bug in SPASS's DFG output files, where "tc_bool" wasn't declared;
this bug occurs when the explicit "hAPP" or "hBOOL" functions are introduced and full types is activated
src/HOL/Tools/Sledgehammer/sledgehammer_hol_clause.ML
     1.1 --- a/src/HOL/Tools/Sledgehammer/sledgehammer_hol_clause.ML	Tue Apr 20 16:04:49 2010 +0200
     1.2 +++ b/src/HOL/Tools/Sledgehammer/sledgehammer_hol_clause.ML	Tue Apr 20 16:14:45 2010 +0200
     1.3 @@ -377,8 +377,9 @@
     1.4      handle Symtab.DUP a => error ("function " ^ a ^ " has multiple arities")
     1.5  
     1.6  fun decls_of_clauses params clauses arity_clauses =
     1.7 -  let val functab = init_functab |> Symtab.update (type_wrapper, 2)
     1.8 -                                 |> Symtab.update ("hAPP", 2)
     1.9 +  let val functab =
    1.10 +        init_functab |> fold Symtab.update [(type_wrapper, 2), ("hAPP", 2),
    1.11 +                                            ("tc_bool", 0)]
    1.12        val predtab = Symtab.empty |> Symtab.update ("hBOOL", 1)
    1.13        val (functab, predtab) =
    1.14          (functab, predtab) |> fold (add_clause_decls params) clauses