src/HOL/Mirabelle/Tools/mirabelle_arith.ML
author Mathias Fleury <Mathias.Fleury@mpi-inf.mpg.de>
Thu, 15 Oct 2020 18:17:57 +0200
changeset 72482 11f645d25498
parent 62519 a564458f94db
permissions -rw-r--r--
remove unsupported max-time option from veriT calls

(*  Title:      HOL/Mirabelle/Tools/mirabelle_arith.ML
    Author:     Jasmin Blanchette and Sascha Boehme, TU Munich
*)

structure Mirabelle_Arith : MIRABELLE_ACTION =
struct

fun arith_tag id = "#" ^ string_of_int id ^ " arith: "

fun init _ = I
fun done _ _ = ()

fun run id ({pre, timeout, log, ...}: Mirabelle.run_args) =
  if Mirabelle.can_apply timeout Arith_Data.arith_tac pre
  then log (arith_tag id ^ "succeeded")
  else ()
  handle Timeout.TIMEOUT _ => log (arith_tag id ^ "timeout")

fun invoke _ = Mirabelle.register (init, Mirabelle.catch arith_tag run, done)

end