src/HOL/Tools/Mirabelle/mirabelle.ML
changeset 73849 4eac16052a94
parent 73848 77306bf4e1ee
child 73850 93228ff7aa67
--- a/src/HOL/Tools/Mirabelle/mirabelle.ML	Thu Jun 10 11:54:14 2021 +0200
+++ b/src/HOL/Tools/Mirabelle/mirabelle.ML	Fri Jun 11 09:33:43 2021 +0200
@@ -151,12 +151,7 @@
 val _ =
   Build.add_hook (fn qualifier => fn loaded_theories =>
     let
-      val mirabelle_timeout = Options.default_seconds \<^system_option>\<open>mirabelle_timeout\<close>;
-      val mirabelle_stride = Options.default_int \<^system_option>\<open>mirabelle_stride\<close>;
-      val mirabelle_max_calls = Options.default_int \<^system_option>\<open>mirabelle_max_calls\<close>;
       val mirabelle_actions = Options.default_string \<^system_option>\<open>mirabelle_actions\<close>;
-      val mirabelle_theories = Options.default_string \<^system_option>\<open>mirabelle_theories\<close>;
-
       val actions =
         (case read_actions mirabelle_actions of
           SOME actions => actions
@@ -166,6 +161,10 @@
         ()
       else
         let
+          val mirabelle_timeout = Options.default_seconds \<^system_option>\<open>mirabelle_timeout\<close>;
+          val mirabelle_stride = Options.default_int \<^system_option>\<open>mirabelle_stride\<close>;
+          val mirabelle_max_calls = Options.default_int \<^system_option>\<open>mirabelle_max_calls\<close>;
+          val mirabelle_theories = Options.default_string \<^system_option>\<open>mirabelle_theories\<close>;
           val check_theory = check_theories (space_explode "," mirabelle_theories);
 
           fun make_commands (thy_index, (thy, segments)) =
@@ -212,8 +211,7 @@
               else
                 []
             end)
-          |> Par_List.map (fn ((action, context), command) => apply_action action context command)
-          |> ignore;
+          |> Par_List.map (fn ((action, context), command) => apply_action action context command);
 
           (* finalize actions *)
           List.app (uncurry finalize_action) contexts