src/HOL/Tools/Predicate_Compile/predicate_compile_data.ML
changeset 37007 116670499530
parent 36610 bafd82950e24
child 38549 d0385f2764d8
--- a/src/HOL/Tools/Predicate_Compile/predicate_compile_data.ML	Wed May 19 18:24:08 2010 +0200
+++ b/src/HOL/Tools/Predicate_Compile/predicate_compile_data.ML	Wed May 19 18:24:09 2010 +0200
@@ -253,8 +253,9 @@
 
 fun obtain_specification_graph options thy t =
   let
+    val ctxt = ProofContext.init_global thy
     fun is_nondefining_const (c, T) = member (op =) logic_operator_names c
-    fun has_code_pred_intros (c, T) = can (Predicate_Compile_Core.intros_of thy) c
+    fun has_code_pred_intros (c, T) = can (Predicate_Compile_Core.intros_of ctxt) c
     fun case_consts (c, T) = is_some (Datatype.info_of_case thy c)
     fun is_datatype_constructor (c, T) = is_some (Datatype.info_of_constr thy (c, T))
     fun defiants_of specs =