# HG changeset patch # User wenzelm # Date 1244587597 -7200 # Node ID 4ed9d9dc17ee6fe028757cbff1651c0b5b16fb1b # Parent 4cfe0f756febe2b4c9df05deee144eb059f85285 simplified Graph.extend; diff -r 4cfe0f756feb -r 4ed9d9dc17ee src/HOL/ex/predicate_compile.ML --- a/src/HOL/ex/predicate_compile.ML Wed Jun 10 00:46:15 2009 +0200 +++ b/src/HOL/ex/predicate_compile.ML Wed Jun 10 00:46:37 2009 +0200 @@ -1384,7 +1384,7 @@ fun add_equations name thy = let - val thy' = PredData.map (Graph.extend (dependencies_of thy) [name]) thy; + val thy' = PredData.map (Graph.extend (dependencies_of thy) name) thy; (*val preds = Graph.all_preds (PredData.get thy') [name] |> filter_out (has_elim thy') *) fun strong_conn_of gr keys = Graph.strong_conn (Graph.subgraph (member (op =) (Graph.all_succs gr keys)) gr) @@ -1413,7 +1413,7 @@ val thy = (ProofContext.theory_of lthy) val const = prep_const thy raw_const val lthy' = lthy - val thy' = PredData.map (Graph.extend (dependencies_of thy) [const]) thy + val thy' = PredData.map (Graph.extend (dependencies_of thy) const) thy val preds = Graph.all_preds (PredData.get thy') [const] |> filter_out (has_elim thy') val _ = Output.tracing ("preds: " ^ commas preds) (*