equal
deleted
inserted
replaced
87 (* unregister ATP thread *) |
87 (* unregister ATP thread *) |
88 |
88 |
89 fun unregister message thread = Synchronized.change global_state |
89 fun unregister message thread = Synchronized.change global_state |
90 (fn state as {manager, timeout_heap, active, cancelling, messages, store} => |
90 (fn state as {manager, timeout_heap, active, cancelling, messages, store} => |
91 (case lookup_thread active thread of |
91 (case lookup_thread active thread of |
92 SOME (birth_time, _, description) => |
92 SOME (_, _, description) => |
93 let |
93 let |
94 val active' = delete_thread thread active; |
94 val active' = delete_thread thread active; |
95 val cancelling' = (thread, (Time.now (), description)) :: cancelling; |
95 val cancelling' = (thread, (Time.now (), description)) :: cancelling; |
96 val message' = description ^ "\n" ^ message; |
96 val message' = description ^ "\n" ^ message; |
97 val messages' = message' :: messages; |
97 val messages' = message' :: messages; |
265 val message = #message (prover (! timeout) problem) |
265 val message = #message (prover (! timeout) problem) |
266 handle Res_HOL_Clause.TOO_TRIVIAL => (* FIXME !? *) |
266 handle Res_HOL_Clause.TOO_TRIVIAL => (* FIXME !? *) |
267 "Empty clause: Try this command: " ^ Markup.markup Markup.sendback "apply metis" |
267 "Empty clause: Try this command: " ^ Markup.markup Markup.sendback "apply metis" |
268 | ERROR msg => ("Error: " ^ msg); |
268 | ERROR msg => ("Error: " ^ msg); |
269 val _ = unregister message (Thread.self ()); |
269 val _ = unregister message (Thread.self ()); |
270 in () end) |
270 in () end); |
271 in () end); |
271 in () end); |
272 |
272 |
273 |
273 |
274 (* sledghammer for first subgoal *) |
274 (* sledghammer for first subgoal *) |
275 |
275 |