Skip to content

Commit

Permalink
Add 5% more runtime to MoXI-MC-Flow's time-limit option
Browse files Browse the repository at this point in the history
- otherwise it usually kills the underlying model checker before actually reaching the time limit
  • Loading branch information
Po-Chun-Chien committed Jul 16, 2024
1 parent ded94a4 commit 288d86b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchexec/tools/moxi-mc-flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import benchexec.result as result
import benchexec.tools.template
from math import ceil


class Tool(benchexec.tools.template.BaseTool2):
Expand Down Expand Up @@ -36,7 +37,7 @@ def program_files(self, executable):

def cmdline(self, executable, options, task, rlimits):
if rlimits.cputime and "--timeout" not in options:
options += ["--timeout", str(rlimits.cputime)]
options += ["--timeout", str(ceil(rlimits.cputime * 1.05))]
return ["python3", executable, task.single_input_file, *options]

def determine_result(self, run):
Expand Down

0 comments on commit 288d86b

Please sign in to comment.