Commit 34f472e9 authored by Johannes Kanig's avatar Johannes Kanig
Browse files

P509-017 fix incorrect time limits

The adaptation of time limits was incorrect, and could transform "0" (no
time limit) to "1" (second).

* call_provers.ml
(adapt_limit): do nothing when no time limit was present
parent e8665035
...@@ -259,14 +259,16 @@ let actualcommand ~cleanup ~inplace command limit file = ...@@ -259,14 +259,16 @@ let actualcommand ~cleanup ~inplace command limit file =
raise e raise e
let adapt_limits limit on_timelimit = let adapt_limits limit on_timelimit =
{ limit with limit_time = if limit.limit_time = empty_limit.limit_time then limit
(* for steps limit use 2 * t + 1 time *) else
if limit.limit_steps <> empty_limit.limit_steps { limit with limit_time =
then (2 * limit.limit_time + 1) (* for steps limit use 2 * t + 1 time *)
(* if prover implements time limit, use t + 1 *) if limit.limit_steps <> empty_limit.limit_steps
else if on_timelimit then succ limit.limit_time then (2 * limit.limit_time + 1)
(* otherwise use t *) (* if prover implements time limit, use t + 1 *)
else limit.limit_time } else if on_timelimit then succ limit.limit_time
(* otherwise use t *)
else limit.limit_time }
type server_id = int type server_id = int
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment