src/HOL/Tools/smallvalue_generators.ML
changeset 40644 0850a2a16dce
parent 40641 5615cc557120
child 40840 2f97215e79bf
equal deleted inserted replaced
40643:3bba5e71a873 40644:0850a2a16dce
   204 
   204 
   205 fun compile_generator_expr ctxt t =
   205 fun compile_generator_expr ctxt t =
   206   let
   206   let
   207     val Ts = (map snd o fst o strip_abs) t;
   207     val Ts = (map snd o fst o strip_abs) t;
   208     val thy = ProofContext.theory_of ctxt
   208     val thy = ProofContext.theory_of ctxt
   209   in if Quickcheck.report ctxt then
   209   in if Config.get ctxt Quickcheck.report then
   210     error "Compilation with reporting facility is not supported"
   210     error "Compilation with reporting facility is not supported"
   211   else
   211   else
   212     let
   212     let
   213       val t' = mk_generator_expr thy t Ts;
   213       val t' = mk_generator_expr thy t Ts;
   214       val compile = Code_Runtime.dynamic_value_strict
   214       val compile = Code_Runtime.dynamic_value_strict