File ‹configuration.ML›
signature SPECCHECK_CONFIGURATION =
sig
val max_success : int Config.T
val max_discard_ratio : int Config.T
val max_shrinks : int Config.T
val num_counterexamples : int Config.T
val sort_counterexamples : bool Config.T
val show_stats : bool Config.T
end
structure SpecCheck_Configuration : SPECCHECK_CONFIGURATION =
struct
val max_success = Attrib.setup_config_int \<^binding>‹speccheck_max_success› (K 100)
val max_discard_ratio = Attrib.setup_config_int \<^binding>‹speccheck_max_discard_ratio› (K 10)
val max_shrinks = Attrib.setup_config_int \<^binding>‹speccheck_max_shrinks› (K 10000)
val num_counterexamples = Attrib.setup_config_int \<^binding>‹speccheck_num_counterexamples› (K 1)
val sort_counterexamples =
Attrib.setup_config_bool \<^binding>‹speccheck_sort_counterexamples› (K true)
val show_stats = Attrib.setup_config_bool \<^binding>‹speccheck_show_stats› (K true)
end