| author | wenzelm | 
| Fri, 06 Jun 2014 12:10:33 +0200 | |
| changeset 57312 | afbc20986435 | 
| parent 56631 | 89269bb8e7ca | 
| child 58849 | ef7700ecce83 | 
| permissions | -rw-r--r-- | 
| 50686 | 1 | (* Title: Pure/Tools/build.ML | 
| 48418 | 2 | Author: Makarius | 
| 3 | ||
| 4 | Build Isabelle sessions. | |
| 5 | *) | |
| 6 | ||
| 7 | signature BUILD = | |
| 8 | sig | |
| 48731 
a45ba78abcc1
more casual exit back to ML toplevel, to accomodate commit in SML/NJ which continues at the saved point;
 wenzelm parents: 
48681diff
changeset | 9 | val build: string -> unit | 
| 48418 | 10 | end; | 
| 11 | ||
| 12 | structure Build: BUILD = | |
| 13 | struct | |
| 14 | ||
| 51662 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 15 | (* command timings *) | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 16 | |
| 56615 | 17 | type timings = ((string * Time.time) Inttab.table) Symtab.table; (*file -> offset -> name, time*) | 
| 51662 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 18 | |
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 19 | val empty_timings: timings = Symtab.empty; | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 20 | |
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 21 | fun update_timings props = | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 22 | (case Markup.parse_command_timing_properties props of | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 23 |     SOME ({file, offset, name}, time) =>
 | 
| 51666 
b97aeb018900
add command timings (like document command status);
 wenzelm parents: 
51662diff
changeset | 24 | Symtab.map_default (file, Inttab.empty) | 
| 
b97aeb018900
add command timings (like document command status);
 wenzelm parents: 
51662diff
changeset | 25 | (Inttab.map_default (offset, (name, time)) (fn (_, t) => (name, Time.+ (t, time)))) | 
| 51662 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 26 | | NONE => I); | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 27 | |
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 28 | fun approximative_id name pos = | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 29 | (case (Position.file_of pos, Position.offset_of pos) of | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 30 | (SOME file, SOME offset) => | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 31 |       if name = "" then NONE else SOME {file = file, offset = offset, name = name}
 | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 32 | | _ => NONE); | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 33 | |
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 34 | fun lookup_timings timings tr = | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 35 | (case approximative_id (Toplevel.name_of tr) (Toplevel.pos_of tr) of | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 36 |     SOME {file, offset, name} =>
 | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 37 | (case Symtab.lookup timings file of | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 38 | SOME offsets => | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 39 | (case Inttab.lookup offsets offset of | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 40 | SOME (name', time) => if name = name' then SOME time else NONE | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 41 | | NONE => NONE) | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 42 | | NONE => NONE) | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 43 | | NONE => NONE); | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 44 | |
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 45 | |
| 52052 
892061142ba6
discontinued obsolete isabelle usedir, mkdir, make;
 wenzelm parents: 
52041diff
changeset | 46 | (* session timing *) | 
| 
892061142ba6
discontinued obsolete isabelle usedir, mkdir, make;
 wenzelm parents: 
52041diff
changeset | 47 | |
| 
892061142ba6
discontinued obsolete isabelle usedir, mkdir, make;
 wenzelm parents: 
52041diff
changeset | 48 | fun session_timing name verbose f x = | 
| 
892061142ba6
discontinued obsolete isabelle usedir, mkdir, make;
 wenzelm parents: 
52041diff
changeset | 49 | let | 
| 
892061142ba6
discontinued obsolete isabelle usedir, mkdir, make;
 wenzelm parents: 
52041diff
changeset | 50 | val start = Timing.start (); | 
| 
892061142ba6
discontinued obsolete isabelle usedir, mkdir, make;
 wenzelm parents: 
52041diff
changeset | 51 | val y = f x; | 
| 
892061142ba6
discontinued obsolete isabelle usedir, mkdir, make;
 wenzelm parents: 
52041diff
changeset | 52 | val timing = Timing.result start; | 
| 
892061142ba6
discontinued obsolete isabelle usedir, mkdir, make;
 wenzelm parents: 
52041diff
changeset | 53 | |
| 
892061142ba6
discontinued obsolete isabelle usedir, mkdir, make;
 wenzelm parents: 
52041diff
changeset | 54 | val threads = string_of_int (Multithreading.max_threads_value ()); | 
| 
892061142ba6
discontinued obsolete isabelle usedir, mkdir, make;
 wenzelm parents: 
52041diff
changeset | 55 | val factor = Time.toReal (#cpu timing) / Time.toReal (#elapsed timing) | 
| 
892061142ba6
discontinued obsolete isabelle usedir, mkdir, make;
 wenzelm parents: 
52041diff
changeset | 56 | |> Real.fmt (StringCvt.FIX (SOME 2)); | 
| 
892061142ba6
discontinued obsolete isabelle usedir, mkdir, make;
 wenzelm parents: 
52041diff
changeset | 57 | |
| 
892061142ba6
discontinued obsolete isabelle usedir, mkdir, make;
 wenzelm parents: 
52041diff
changeset | 58 | val timing_props = | 
| 
892061142ba6
discontinued obsolete isabelle usedir, mkdir, make;
 wenzelm parents: 
52041diff
changeset | 59 |       [("threads", threads)] @ Markup.timing_properties timing @ [("factor", factor)];
 | 
| 
892061142ba6
discontinued obsolete isabelle usedir, mkdir, make;
 wenzelm parents: 
52041diff
changeset | 60 |     val _ = writeln ("\fTiming = " ^ YXML.string_of_body (XML.Encode.properties timing_props));
 | 
| 
892061142ba6
discontinued obsolete isabelle usedir, mkdir, make;
 wenzelm parents: 
52041diff
changeset | 61 | val _ = | 
| 
892061142ba6
discontinued obsolete isabelle usedir, mkdir, make;
 wenzelm parents: 
52041diff
changeset | 62 | if verbose then | 
| 
892061142ba6
discontinued obsolete isabelle usedir, mkdir, make;
 wenzelm parents: 
52041diff
changeset | 63 |         Output.physical_stderr ("Timing " ^ name ^ " (" ^
 | 
| 
892061142ba6
discontinued obsolete isabelle usedir, mkdir, make;
 wenzelm parents: 
52041diff
changeset | 64 | threads ^ " threads, " ^ Timing.message timing ^ ", factor " ^ factor ^ ")\n") | 
| 
892061142ba6
discontinued obsolete isabelle usedir, mkdir, make;
 wenzelm parents: 
52041diff
changeset | 65 | else (); | 
| 
892061142ba6
discontinued obsolete isabelle usedir, mkdir, make;
 wenzelm parents: 
52041diff
changeset | 66 | in y end; | 
| 
892061142ba6
discontinued obsolete isabelle usedir, mkdir, make;
 wenzelm parents: 
52041diff
changeset | 67 | |
| 
892061142ba6
discontinued obsolete isabelle usedir, mkdir, make;
 wenzelm parents: 
52041diff
changeset | 68 | |
| 50683 | 69 | (* protocol messages *) | 
| 70 | ||
| 51662 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 71 | fun inline_message a args = | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 72 |   writeln ("\f" ^ a ^ " = " ^ YXML.string_of_body (XML.Encode.properties args));
 | 
| 50683 | 73 | |
| 74 | fun protocol_message props output = | |
| 51216 | 75 | (case props of | 
| 76 | function :: args => | |
| 51662 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 77 | if function = Markup.ML_statistics orelse function = Markup.task_statistics then | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 78 | inline_message (#2 function) args | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 79 | else if function = Markup.command_timing then | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 80 | let | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 81 | val name = the_default "" (Properties.get args Markup.nameN); | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 82 | val pos = Position.of_properties args; | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 83 |           val {elapsed, ...} = Markup.parse_timing_properties args;
 | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 84 | in | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 85 | (case approximative_id name pos of | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 86 | SOME id => inline_message (#2 function) (Markup.command_timing_properties id elapsed) | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 87 | | NONE => ()) | 
| 
3391a493f39a
just one timing protocol function, with 3 implementations: TTY/PG, PIDE/document, build;
 wenzelm parents: 
51661diff
changeset | 88 | end | 
| 51216 | 89 | else | 
| 90 | (case Markup.dest_loading_theory props of | |
| 91 |           SOME name => writeln ("\floading_theory = " ^ name)
 | |
| 51661 | 92 | | NONE => raise Output.Protocol_Message props) | 
| 93 | | [] => raise Output.Protocol_Message props); | |
| 51045 
630c0895d9d1
more efficient inlined properties, especially relevant for voluminous tasks trace;
 wenzelm parents: 
50982diff
changeset | 94 | |
| 50683 | 95 | |
| 96 | (* build *) | |
| 97 | ||
| 48465 | 98 | local | 
| 99 | ||
| 51217 
65ab2c4f4c32
support for prescient timing information within command transactions;
 wenzelm parents: 
51216diff
changeset | 100 | fun use_theories last_timing options = | 
| 54458 
96ccc8972fc7
prefer explicit "document" flag -- eliminated stateful Present.no_document;
 wenzelm parents: 
53212diff
changeset | 101 |   Thy_Info.use_theories {
 | 
| 56614 | 102 | document = Present.document_enabled (Options.string options "document"), | 
| 54458 
96ccc8972fc7
prefer explicit "document" flag -- eliminated stateful Present.no_document;
 wenzelm parents: 
53212diff
changeset | 103 | last_timing = last_timing, | 
| 
96ccc8972fc7
prefer explicit "document" flag -- eliminated stateful Present.no_document;
 wenzelm parents: 
53212diff
changeset | 104 | master_dir = Path.current} | 
| 48457 | 105 | |> Unsynchronized.setmp print_mode | 
| 106 | (space_explode "," (Options.string options "print_mode") @ print_mode_value ()) | |
| 107 | |> Unsynchronized.setmp Goal.parallel_proofs (Options.int options "parallel_proofs") | |
| 108 | |> Unsynchronized.setmp Multithreading.trace (Options.int options "threads_trace") | |
| 54717 | 109 | |> Multithreading.max_threads_setmp (Options.int options "threads") | 
| 50698 
49621c755075
always enable Future.ML_statistics where this makes sense -- runtime overhead should be negligible;
 wenzelm parents: 
50686diff
changeset | 110 | |> Unsynchronized.setmp Future.ML_statistics true | 
| 48527 | 111 | |> Unsynchronized.setmp Pretty.margin_default (Options.int options "pretty_margin") | 
| 48492 | 112 | |> Unsynchronized.setmp Toplevel.timing (Options.bool options "timing"); | 
| 48457 | 113 | |
| 51217 
65ab2c4f4c32
support for prescient timing information within command transactions;
 wenzelm parents: 
51216diff
changeset | 114 | fun use_theories_condition last_timing (options, thys) = | 
| 48465 | 115 | let val condition = space_explode "," (Options.string options "condition") in | 
| 116 | (case filter_out (can getenv_strict) condition of | |
| 51941 
ead4248aef3b
full default options for Isabelle_Process and Build;
 wenzelm parents: 
51666diff
changeset | 117 | [] => | 
| 
ead4248aef3b
full default options for Isabelle_Process and Build;
 wenzelm parents: 
51666diff
changeset | 118 | (Options.set_default options; | 
| 
ead4248aef3b
full default options for Isabelle_Process and Build;
 wenzelm parents: 
51666diff
changeset | 119 | use_theories last_timing options (map (rpair Position.none) thys)) | 
| 48465 | 120 | | conds => | 
| 48512 | 121 |         Output.physical_stderr ("Skipping theories " ^ commas_quote thys ^
 | 
| 48477 | 122 | " (undefined " ^ commas conds ^ ")\n")) | 
| 48465 | 123 | end; | 
| 124 | ||
| 125 | in | |
| 126 | ||
| 56631 | 127 | fun build args_file = Command_Line.tool0 (fn () => | 
| 48672 
9bc7922ba2ae
further robustification of interrupts during build;
 wenzelm parents: 
48662diff
changeset | 128 | let | 
| 53212 
387b9f7cb0ac
added SHA1 library integrity test, which is invoked at compile time and Isabelle_Process run-time;
 wenzelm parents: 
52852diff
changeset | 129 | val _ = SHA1_Samples.test (); | 
| 
387b9f7cb0ac
added SHA1 library integrity test, which is invoked at compile time and Isabelle_Process run-time;
 wenzelm parents: 
52852diff
changeset | 130 | |
| 51220 | 131 | val (command_timings, (do_output, (options, (verbose, (browser_info, | 
| 56533 
cd8b6d849b6a
explicit 'document_files' in session ROOT specifications;
 wenzelm parents: 
56530diff
changeset | 132 | (document_files, (parent_name, (chapter, (name, theories))))))))) = | 
| 48672 
9bc7922ba2ae
further robustification of interrupts during build;
 wenzelm parents: 
48662diff
changeset | 133 | File.read (Path.explode args_file) |> YXML.parse_body |> | 
| 
9bc7922ba2ae
further robustification of interrupts during build;
 wenzelm parents: 
48662diff
changeset | 134 | let open XML.Decode in | 
| 51218 
6425a0d3b7ac
support for build passing timings from Scala to ML;
 wenzelm parents: 
51217diff
changeset | 135 | pair (list properties) (pair bool (pair Options.decode (pair bool (pair string | 
| 56533 
cd8b6d849b6a
explicit 'document_files' in session ROOT specifications;
 wenzelm parents: 
56530diff
changeset | 136 | (pair (list (pair string string)) (pair string (pair string (pair string | 
| 
cd8b6d849b6a
explicit 'document_files' in session ROOT specifications;
 wenzelm parents: 
56530diff
changeset | 137 | ((list (pair Options.decode (list string)))))))))))) | 
| 48672 
9bc7922ba2ae
further robustification of interrupts during build;
 wenzelm parents: 
48662diff
changeset | 138 | end; | 
| 48418 | 139 | |
| 51941 
ead4248aef3b
full default options for Isabelle_Process and Build;
 wenzelm parents: 
51666diff
changeset | 140 | val _ = Options.set_default options; | 
| 
ead4248aef3b
full default options for Isabelle_Process and Build;
 wenzelm parents: 
51666diff
changeset | 141 | |
| 50982 | 142 |       val _ = writeln ("\fSession.name = " ^ name);
 | 
| 49242 | 143 | val _ = | 
| 51399 
6ac3c29a300e
discontinued "isabelle usedir" option -r (reset session path);
 wenzelm parents: 
51398diff
changeset | 144 | Session.init do_output | 
| 
6ac3c29a300e
discontinued "isabelle usedir" option -r (reset session path);
 wenzelm parents: 
51398diff
changeset | 145 | (Options.bool options "browser_info") | 
| 
6ac3c29a300e
discontinued "isabelle usedir" option -r (reset session path);
 wenzelm parents: 
51398diff
changeset | 146 | (Path.explode browser_info) | 
| 48672 
9bc7922ba2ae
further robustification of interrupts during build;
 wenzelm parents: 
48662diff
changeset | 147 | (Options.string options "document") | 
| 
9bc7922ba2ae
further robustification of interrupts during build;
 wenzelm parents: 
48662diff
changeset | 148 | (Options.bool options "document_graph") | 
| 48805 
c3ea910b3581
explicit document_output directory, without implicit purge of default in ISABELLE_BROWSER_INFO;
 wenzelm parents: 
48804diff
changeset | 149 | (Options.string options "document_output") | 
| 56612 | 150 | (Present.document_variants (Options.string options "document_variants")) | 
| 56533 
cd8b6d849b6a
explicit 'document_files' in session ROOT specifications;
 wenzelm parents: 
56530diff
changeset | 151 | (map (pairself Path.explode) document_files) | 
| 51399 
6ac3c29a300e
discontinued "isabelle usedir" option -r (reset session path);
 wenzelm parents: 
51398diff
changeset | 152 | parent_name (chapter, name) | 
| 50121 
97d2b77313a0
isabelle build no longer supports document_dump/document_dump_mode (no INCOMPATIBILITY, since it was never in official release);
 wenzelm parents: 
49911diff
changeset | 153 | verbose; | 
| 49911 
262c36fd5f26
collective errors from use_thys and Session.finish/Goal.finish_futures -- avoid uninformative interrupts stemming from failure of goal forks that are not registered in the theory (e.g. unnamed theorems);
 wenzelm parents: 
49242diff
changeset | 154 | |
| 51228 | 155 | val last_timing = lookup_timings (fold update_timings command_timings empty_timings); | 
| 51218 
6425a0d3b7ac
support for build passing timings from Scala to ML;
 wenzelm parents: 
51217diff
changeset | 156 | |
| 49911 
262c36fd5f26
collective errors from use_thys and Session.finish/Goal.finish_futures -- avoid uninformative interrupts stemming from failure of goal forks that are not registered in the theory (e.g. unnamed theorems);
 wenzelm parents: 
49242diff
changeset | 157 | val res1 = | 
| 48673 
b2b09970c571
let with_timing report overall number of threads;
 wenzelm parents: 
48672diff
changeset | 158 | theories |> | 
| 51218 
6425a0d3b7ac
support for build passing timings from Scala to ML;
 wenzelm parents: 
51217diff
changeset | 159 | (List.app (use_theories_condition last_timing) | 
| 52052 
892061142ba6
discontinued obsolete isabelle usedir, mkdir, make;
 wenzelm parents: 
52041diff
changeset | 160 | |> session_timing name verbose | 
| 55448 
e42a3fc18458
explicit indication that redefining outer syntax commands is not supposed to happen -- NB: interactive mode requires global change of syntax;
 wenzelm parents: 
55387diff
changeset | 161 | |> Unsynchronized.setmp Outer_Syntax.batch_mode true | 
| 55387 
51f0876f61df
seal system channels at end of Pure bootstrap -- Isabelle/Scala provides official interfaces;
 wenzelm parents: 
54717diff
changeset | 162 | |> Unsynchronized.setmp Output.protocol_message_fn protocol_message | 
| 54717 | 163 | |> Multithreading.max_threads_setmp (Options.int options "threads") | 
| 49911 
262c36fd5f26
collective errors from use_thys and Session.finish/Goal.finish_futures -- avoid uninformative interrupts stemming from failure of goal forks that are not registered in the theory (e.g. unnamed theorems);
 wenzelm parents: 
49242diff
changeset | 164 | |> Exn.capture); | 
| 
262c36fd5f26
collective errors from use_thys and Session.finish/Goal.finish_futures -- avoid uninformative interrupts stemming from failure of goal forks that are not registered in the theory (e.g. unnamed theorems);
 wenzelm parents: 
49242diff
changeset | 165 | val res2 = Exn.capture Session.finish (); | 
| 
262c36fd5f26
collective errors from use_thys and Session.finish/Goal.finish_futures -- avoid uninformative interrupts stemming from failure of goal forks that are not registered in the theory (e.g. unnamed theorems);
 wenzelm parents: 
49242diff
changeset | 166 | val _ = Par_Exn.release_all [res1, res2]; | 
| 48673 
b2b09970c571
let with_timing report overall number of threads;
 wenzelm parents: 
48672diff
changeset | 167 | |
| 51941 
ead4248aef3b
full default options for Isabelle_Process and Build;
 wenzelm parents: 
51666diff
changeset | 168 | val _ = Options.reset_default (); | 
| 48734 
af91cd2301ba
back to implicit commit via isabelle-process -- save image only once (cf. 181b91e1d1c1);
 wenzelm parents: 
48731diff
changeset | 169 | val _ = if do_output then () else exit 0; | 
| 56631 | 170 | in () end); | 
| 48418 | 171 | |
| 172 | end; | |
| 48465 | 173 | |
| 174 | end; |