# HG changeset patch # User bulwahn # Date 1318944437 -7200 # Node ID f4896c792316a756e353a102d7e8772d681cae14 # Parent 13dddf30c79209c8ff3fd0aaffeb7fdfe56ffe51 adding testing of quickcheck narrowing with finite types to mutabelle script; modified is_executable in mutabelle_extra diff -r 13dddf30c792 -r f4896c792316 src/HOL/Mutabelle/lib/Tools/mutabelle --- a/src/HOL/Mutabelle/lib/Tools/mutabelle Tue Oct 18 11:59:03 2011 +0200 +++ b/src/HOL/Mutabelle/lib/Tools/mutabelle Tue Oct 18 15:27:17 2011 +0200 @@ -89,10 +89,11 @@ val mtds = [ MutabelleExtra.quickcheck_mtd (Context.proof_map (Quickcheck.set_active_testers [\"random\"])) \"random\", MutabelleExtra.quickcheck_mtd (Context.proof_map (Quickcheck.set_active_testers [\"exhaustive\"])) \"exhaustive\", - MutabelleExtra.quickcheck_mtd (Context.proof_map (Quickcheck.set_active_testers [\"exhaustive\"]) #> Config.put Quickcheck.finite_types false) \"exhaustive_nft\", - MutabelleExtra.quickcheck_mtd (Context.proof_map (Quickcheck.set_active_testers [\"narrowing\"]) #> Config.put Quickcheck.finite_types false) \"narrowing\", + MutabelleExtra.quickcheck_mtd (Context.proof_map (Quickcheck.set_active_testers [\"exhaustive\"]) #> Config.put Quickcheck.finite_types false) \"exhaustive_no_finite_types\", + MutabelleExtra.quickcheck_mtd (Context.proof_map (Quickcheck.set_active_testers [\"narrowing\"]) #> Config.put Quickcheck.finite_types true) \"narrowing\", + MutabelleExtra.quickcheck_mtd (Context.proof_map (Quickcheck.set_active_testers [\"narrowing\"]) #> Config.put Quickcheck.finite_types false) \"narrowing_no_finite_types\", MutabelleExtra.quickcheck_mtd (Context.proof_map (Quickcheck.set_active_testers [\"narrowing\"]) #> Config.put Quickcheck.finite_types false - #> Context.proof_map (Quickcheck.map_test_params (apfst (K [@{typ nat}])))) \"narrowing_nat\" + #> Context.proof_map (Quickcheck.map_test_params (apfst (K [@{typ nat}])))) \"narrowing_nat\" (* MutabelleExtra.nitpick_mtd *) ] *} diff -r 13dddf30c792 -r f4896c792316 src/HOL/Mutabelle/mutabelle_extra.ML --- a/src/HOL/Mutabelle/mutabelle_extra.ML Tue Oct 18 11:59:03 2011 +0200 +++ b/src/HOL/Mutabelle/mutabelle_extra.ML Tue Oct 18 15:27:17 2011 +0200 @@ -321,7 +321,8 @@ in can (TimeLimit.timeLimit (seconds 2.0) (Quickcheck.test_terms - ((Config.put Quickcheck.finite_types true #> + ((Context.proof_map (Quickcheck.set_active_testers ["exhaustive"]) #> + Config.put Quickcheck.finite_types true #> Config.put Quickcheck.finite_type_size 1 #> Config.put Quickcheck.size 1 #> Config.put Quickcheck.iterations 1) ctxt) (false, false) [])) (map (rpair [] o Object_Logic.atomize_term thy)