diff --git a/benchexec/tools/spf.py b/benchexec/tools/spf.py index 297b9b8d9..c92905132 100644 --- a/benchexec/tools/spf.py +++ b/benchexec/tools/spf.py @@ -5,12 +5,11 @@ # # SPDX-License-Identifier: Apache-2.0 -import benchexec.util as util -import benchexec.tools.template import benchexec.result as result +import benchexec.tools.template -class Tool(benchexec.tools.template.BaseTool): +class Tool(benchexec.tools.template.BaseTool2): """ Tool info for JPF with symbolic extension (SPF) """ @@ -25,8 +24,8 @@ class Tool(benchexec.tools.template.BaseTool): "jpf-sv-comp", ] - def executable(self): - return util.find_executable("jpf-sv-comp") + def executable(self, tool_locator): + return tool_locator.find_executable("jpf-sv-comp") def name(self): return "SPF" @@ -39,11 +38,12 @@ def version(self, executable): first_line = output.splitlines()[0] return first_line.strip() - def cmdline(self, executable, options, tasks, propertyfile, rlimits): - options = options + ["--propertyfile", propertyfile] - return [executable] + options + tasks + def cmdline(self, executable, options, task, rlimits): + options = options + ["--propertyfile", task.property_file] + return [executable] + options + list(task.input_files) - def determine_result(self, returncode, returnsignal, output, isTimeout): + def determine_result(self, run): + output = run.output # parse output status = result.RESULT_UNKNOWN