--- a/src/HOL/Tools/Predicate_Compile/predicate_compile_aux.ML Wed Sep 15 09:36:38 2010 +0200
+++ b/src/HOL/Tools/Predicate_Compile/predicate_compile_aux.ML Wed Sep 15 09:36:39 2010 +0200
@@ -108,6 +108,7 @@
show_modes : bool,
show_compilation : bool,
show_caught_failures : bool,
+ show_invalid_clauses : bool,
skip_proof : bool,
no_topmost_reordering : bool,
function_flattening : bool,
@@ -128,6 +129,7 @@
val show_modes : options -> bool
val show_compilation : options -> bool
val show_caught_failures : options -> bool
+ val show_invalid_clauses : options -> bool
val skip_proof : options -> bool
val no_topmost_reordering : options -> bool
val function_flattening : options -> bool
@@ -712,6 +714,7 @@
show_modes : bool,
show_compilation : bool,
show_caught_failures : bool,
+ show_invalid_clauses : bool,
skip_proof : bool,
no_topmost_reordering : bool,
function_flattening : bool,
@@ -735,7 +738,7 @@
fun show_mode_inference (Options opt) = #show_mode_inference opt
fun show_compilation (Options opt) = #show_compilation opt
fun show_caught_failures (Options opt) = #show_caught_failures opt
-
+fun show_invalid_clauses (Options opt) = #show_invalid_clauses opt
fun skip_proof (Options opt) = #skip_proof opt
fun function_flattening (Options opt) = #function_flattening opt
@@ -761,6 +764,7 @@
show_mode_inference = false,
show_compilation = false,
show_caught_failures = false,
+ show_invalid_clauses = false,
skip_proof = true,
no_topmost_reordering = false,
function_flattening = false,
@@ -773,8 +777,8 @@
}
val bool_options = ["show_steps", "show_intermediate_results", "show_proof_trace", "show_modes",
- "show_mode_inference", "show_compilation", "skip_proof", "inductify", "no_function_flattening",
- "detect_switches", "specialise", "no_topmost_reordering"]
+ "show_mode_inference", "show_compilation", "show_invalid_clauses", "skip_proof", "inductify",
+ "no_function_flattening", "detect_switches", "specialise", "no_topmost_reordering"]
fun print_step options s =
if show_steps options then tracing s else ()
--- a/src/HOL/Tools/Predicate_Compile/predicate_compile_quickcheck.ML Wed Sep 15 09:36:38 2010 +0200
+++ b/src/HOL/Tools/Predicate_Compile/predicate_compile_quickcheck.ML Wed Sep 15 09:36:39 2010 +0200
@@ -65,6 +65,7 @@
show_mode_inference = false,
show_compilation = false,
show_caught_failures = false,
+ show_invalid_clauses = false,
skip_proof = false,
compilation = Random,
inductify = true,
@@ -78,7 +79,7 @@
val debug_options = Options {
expected_modes = NONE,
- proposed_modes = NONE,
+ proposed_modes = [],
proposed_names = [],
show_steps = true,
show_intermediate_results = true,
@@ -87,6 +88,7 @@
show_mode_inference = true,
show_compilation = false,
show_caught_failures = true,
+ show_invalid_clauses = false,
skip_proof = false,
compilation = Random,
inductify = true,
@@ -102,13 +104,15 @@
fun set_function_flattening b
(Options { expected_modes = e_m, proposed_modes = p_m, proposed_names = p_n, show_steps = s_s,
show_intermediate_results = s_ir, show_proof_trace = s_pt, show_modes = s_m,
- show_mode_inference = s_mi, show_compilation = s_c, show_caught_failures = s_cf, skip_proof = s_p,
+ show_mode_inference = s_mi, show_compilation = s_c, show_caught_failures = s_cf,
+ show_invalid_clauses = s_ic, skip_proof = s_p,
compilation = c, inductify = i, specialise = sp, detect_switches = ds, function_flattening = f_f,
fail_safe_function_flattening = fs_ff, no_higher_order_predicate = no_ho,
no_topmost_reordering = re}) =
(Options { expected_modes = e_m, proposed_modes = p_m, proposed_names = p_n, show_steps = s_s,
show_intermediate_results = s_ir, show_proof_trace = s_pt, show_modes = s_m,
- show_mode_inference = s_mi, show_compilation = s_c, show_caught_failures = s_cf, skip_proof = s_p,
+ show_mode_inference = s_mi, show_compilation = s_c, show_caught_failures = s_cf,
+ show_invalid_clauses = s_ic, skip_proof = s_p,
compilation = c, inductify = i, specialise = sp, detect_switches = ds, function_flattening = b,
fail_safe_function_flattening = fs_ff, no_higher_order_predicate = no_ho,
no_topmost_reordering = re})
@@ -116,13 +120,15 @@
fun set_fail_safe_function_flattening b
(Options { expected_modes = e_m, proposed_modes = p_m, proposed_names = p_n, show_steps = s_s,
show_intermediate_results = s_ir, show_proof_trace = s_pt, show_modes = s_m,
- show_mode_inference = s_mi, show_compilation = s_c, show_caught_failures = s_cf, skip_proof = s_p,
+ show_mode_inference = s_mi, show_compilation = s_c, show_caught_failures = s_cf,
+ show_invalid_clauses = s_ic, skip_proof = s_p,
compilation = c, inductify = i, specialise = sp, detect_switches = ds, function_flattening = f_f,
fail_safe_function_flattening = fs_ff, no_higher_order_predicate = no_ho,
no_topmost_reordering = re}) =
(Options { expected_modes = e_m, proposed_modes = p_m, proposed_names = p_n, show_steps = s_s,
show_intermediate_results = s_ir, show_proof_trace = s_pt, show_modes = s_m,
- show_mode_inference = s_mi, show_compilation = s_c, show_caught_failures = s_cf, skip_proof = s_p,
+ show_mode_inference = s_mi, show_compilation = s_c, show_caught_failures = s_cf,
+ show_invalid_clauses = s_ic, skip_proof = s_p,
compilation = c, inductify = i, specialise = sp, detect_switches = ds, function_flattening = f_f,
fail_safe_function_flattening = b, no_higher_order_predicate = no_ho,
no_topmost_reordering = re})
@@ -130,13 +136,15 @@
fun set_no_higher_order_predicate ss
(Options { expected_modes = e_m, proposed_modes = p_m, proposed_names = p_n, show_steps = s_s,
show_intermediate_results = s_ir, show_proof_trace = s_pt, show_modes = s_m,
- show_mode_inference = s_mi, show_compilation = s_c, show_caught_failures = s_cf, skip_proof = s_p,
+ show_mode_inference = s_mi, show_compilation = s_c, show_caught_failures = s_cf,
+ show_invalid_clauses = s_ic, skip_proof = s_p,
compilation = c, inductify = i, specialise = sp, detect_switches = ds, function_flattening = f_f,
fail_safe_function_flattening = fs_ff, no_higher_order_predicate = no_ho,
no_topmost_reordering = re}) =
(Options { expected_modes = e_m, proposed_modes = p_m, proposed_names = p_n, show_steps = s_s,
show_intermediate_results = s_ir, show_proof_trace = s_pt, show_modes = s_m,
- show_mode_inference = s_mi, show_compilation = s_c, show_caught_failures = s_cf, skip_proof = s_p,
+ show_mode_inference = s_mi, show_compilation = s_c, show_caught_failures = s_cf,
+ show_invalid_clauses = s_ic, skip_proof = s_p,
compilation = c, inductify = i, specialise = sp, detect_switches = ds, function_flattening = f_f,
fail_safe_function_flattening = fs_ff, no_higher_order_predicate = ss, no_topmost_reordering = re})