| author | wenzelm | 
| Wed, 03 Apr 2024 11:02:09 +0200 | |
| changeset 80077 | ee07b7738a24 | 
| parent 76183 | 8089593a364a | 
| permissions | -rw-r--r-- | 
| 76183 | 1 | (* Title: HOL/Tools/Mirabelle/mirabelle_presburger.ML | 
| 74516 | 2 | Author: Martin Desharnais, MPI-INF Saarbrücken | 
| 3 | ||
| 4 | Mirabelle action: "presburger". | |
| 5 | *) | |
| 6 | ||
| 7 | structure Mirabelle_Presburger: MIRABELLE_ACTION = | |
| 8 | struct | |
| 9 | ||
| 10 | fun make_action ({timeout, ...} : Mirabelle.action_context) =
 | |
| 11 | let | |
| 75003 
f21e7e6172a0
renamed run_action to run in Mirabelle.action record
 desharna parents: 
74948diff
changeset | 12 |     fun run ({pre, ...} : Mirabelle.command) =
 | 
| 74516 | 13 | (case Timing.timing (Mirabelle.can_apply timeout (Cooper.tac true [] [])) pre of | 
| 14 |         ({cpu, ...}, true) => "succeeded (" ^ Time.toString cpu ^ " s)"
 | |
| 15 | | (_, false) => "failed") | |
| 75003 
f21e7e6172a0
renamed run_action to run in Mirabelle.action record
 desharna parents: 
74948diff
changeset | 16 |   in ("", {run = run, finalize = K ""}) end
 | 
| 74516 | 17 | |
| 18 | val () = Mirabelle.register_action "presburger" make_action | |
| 19 | ||
| 20 | end |