adapting two examples in Predicate_Compile_Examples
authorbulwahn
Thu, 21 Jul 2011 08:31:35 +0200
changeset 43937 768c70befd59
parent 43936 127749bbc639
child 43938 78a0a2ad91a3
adapting two examples in Predicate_Compile_Examples
src/HOL/Predicate_Compile_Examples/Lambda_Example.thy
src/HOL/Predicate_Compile_Examples/List_Examples.thy
--- a/src/HOL/Predicate_Compile_Examples/Lambda_Example.thy	Wed Jul 20 23:47:27 2011 +0200
+++ b/src/HOL/Predicate_Compile_Examples/Lambda_Example.thy	Thu Jul 21 08:31:35 2011 +0200
@@ -79,7 +79,7 @@
 
 section {* Manual setup to find counterexample *}
 
-setup {* Context.theory_map (Quickcheck.add_generator ("prolog", Code_Prolog.quickcheck)) *}
+setup {* Context.theory_map (Quickcheck.add_tester ("prolog", (Code_Prolog.active, Code_Prolog.test_goals))) *}
 
 setup {* Code_Prolog.map_code_options (K 
   { ensure_groundness = true,
--- a/src/HOL/Predicate_Compile_Examples/List_Examples.thy	Wed Jul 20 23:47:27 2011 +0200
+++ b/src/HOL/Predicate_Compile_Examples/List_Examples.thy	Thu Jul 21 08:31:35 2011 +0200
@@ -5,7 +5,7 @@
   "~~/src/HOL/Library/Code_Prolog"
 begin
 
-setup {* Context.theory_map (Quickcheck.add_generator ("prolog", Code_Prolog.quickcheck)) *}
+setup {* Context.theory_map (Quickcheck.add_tester ("prolog", (Code_Prolog.active, Code_Prolog.test_goals))) *}
 
 setup {* Code_Prolog.map_code_options (K 
   {ensure_groundness = true,