src/HOL/Tools/ATP/atp_systems.ML
changeset 47039 1b36a05a070d
parent 47038 2409b484e1cc
child 47049 72bd3311ecba
equal deleted inserted replaced
47038:2409b484e1cc 47039:1b36a05a070d
   288 val e_ord_weights =
   288 val e_ord_weights =
   289   map (fn (s, w) => s ^ ":" ^ string_of_int w) #> space_implode ","
   289   map (fn (s, w) => s ^ ":" ^ string_of_int w) #> space_implode ","
   290 fun e_ord_precedence [_] = ""
   290 fun e_ord_precedence [_] = ""
   291   | e_ord_precedence info = info |> map fst |> space_implode "<"
   291   | e_ord_precedence info = info |> map fst |> space_implode "<"
   292 
   292 
   293 fun e_term_order_info_arguments _ false false _ = ""
   293 fun e_term_order_info_arguments false false _ = ""
   294   | e_term_order_info_arguments ctxt gen_weights gen_prec ord_info =
   294   | e_term_order_info_arguments gen_weights gen_prec ord_info =
   295     let val ord_info = ord_info () in
   295     let val ord_info = ord_info () in
   296       (if gen_weights then "--order-weights='" ^ e_ord_weights ord_info ^ "' "
   296       (if gen_weights then "--order-weights='" ^ e_ord_weights ord_info ^ "' "
   297        else "") ^
   297        else "") ^
   298       (if gen_prec then "--precedence='" ^ e_ord_precedence ord_info ^ "' "
   298       (if gen_prec then "--precedence='" ^ e_ord_precedence ord_info ^ "' "
   299        else "")
   299        else "")
   308    arguments =
   308    arguments =
   309      fn ctxt => fn _ => fn heuristic => fn timeout =>
   309      fn ctxt => fn _ => fn heuristic => fn timeout =>
   310         fn ({is_lpo, gen_weights, gen_prec, ...}, ord_info, sel_weights) =>
   310         fn ({is_lpo, gen_weights, gen_prec, ...}, ord_info, sel_weights) =>
   311         "--tstp-in --tstp-out --output-level=5 --silent " ^
   311         "--tstp-in --tstp-out --output-level=5 --silent " ^
   312         e_selection_weight_arguments ctxt heuristic sel_weights ^ " " ^
   312         e_selection_weight_arguments ctxt heuristic sel_weights ^ " " ^
   313         e_term_order_info_arguments ctxt gen_weights gen_prec ord_info ^ " " ^
   313         e_term_order_info_arguments gen_weights gen_prec ord_info ^ " " ^
   314         "--term-ordering=" ^ (if is_lpo then "LPO4" else "Auto") ^ " " ^
   314         "--term-ordering=" ^ (if is_lpo then "LPO4" else "Auto") ^ " " ^
   315         "--cpu-limit=" ^ string_of_int (to_secs 2 timeout),
   315         "--cpu-limit=" ^ string_of_int (to_secs 2 timeout),
   316    proof_delims = tstp_proof_delims,
   316    proof_delims = tstp_proof_delims,
   317    known_failures =
   317    known_failures =
   318      known_szs_status_failures @
   318      known_szs_status_failures @