added a component in generated file names reflecting whether the minimizer is used -- needed for evaluation to keep these files separated from the main problem files
authorblanchet
Fri, 26 Aug 2011 10:25:13 +0200
changeset 44509 369e8c28a61a
parent 44508 5438d88b2cb7
child 44511 9ec0dcd351a4
child 44554 a24b97aeec0c
added a component in generated file names reflecting whether the minimizer is used -- needed for evaluation to keep these files separated from the main problem files
src/HOL/Tools/Sledgehammer/sledgehammer_provers.ML
--- a/src/HOL/Tools/Sledgehammer/sledgehammer_provers.ML	Fri Aug 26 10:12:17 2011 +0200
+++ b/src/HOL/Tools/Sledgehammer/sledgehammer_provers.ML	Fri Aug 26 10:25:13 2011 +0200
@@ -536,6 +536,11 @@
   #> Config.put Monomorph.max_new_instances max_new_instances
   #> Config.put Monomorph.keep_partial_instances false
 
+fun suffix_for_mode Auto_Try = "_auto_try"
+  | suffix_for_mode Try = "_try"
+  | suffix_for_mode Normal = ""
+  | suffix_for_mode Minimize = "_min"
+
 (* Give the ATPs some slack before interrupting them the hard way. "z3_tptp" on
    Linux appears to be the only ATP that does not honor its time limit. *)
 val atp_timeout_slack = seconds 1.0
@@ -557,7 +562,7 @@
       else (Config.get ctxt dest_dir, Config.get ctxt problem_prefix)
     val problem_file_name =
       Path.basic (problem_prefix ^ (if overlord then "" else serial_string ()) ^
-                  "_" ^ string_of_int subgoal)
+                  suffix_for_mode mode ^ "_" ^ string_of_int subgoal)
     val problem_path_name =
       if dest_dir = "" then
         File.tmp_path problem_file_name