Skip to content

Commit 3237f14

Browse files
committed
update coastal to basetool2
1 parent 26cab03 commit 3237f14

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

benchexec/tools/coastal.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
#
66
# SPDX-License-Identifier: Apache-2.0
77

8-
import benchexec.util as util
9-
import benchexec.tools.template
108
import benchexec.result as result
9+
import benchexec.tools.template
10+
import benchexec.util as util
1111

1212

13-
class Tool(benchexec.tools.template.BaseTool):
13+
class Tool(benchexec.tools.template.BaseTool2):
1414
"""
1515
Tool info for COASTAL
1616
"""
1717

1818
REQUIRED_PATHS = ["coastal", "coastal-sv-comp"]
1919

20-
def executable(self):
21-
return util.find_executable("coastal-sv-comp")
20+
def executable(self, tool_locator):
21+
return tool_locator.find_executable("coastal-sv-comp")
2222

2323
def name(self):
2424
return "COASTAL"
@@ -31,15 +31,15 @@ def version(self, executable):
3131
first_line = output.splitlines()[0]
3232
return first_line.strip()
3333

34-
def cmdline(self, executable, options, tasks, propertyfile, rlimits):
35-
options = options + ["--propertyfile", propertyfile]
36-
return [executable] + options + tasks
34+
def cmdline(self, executable, options, task, rlimits):
35+
options = options + ["--propertyfile", task.property_file]
36+
return [executable] + options + list(task.input_files_or_identifier)
3737

38-
def determine_result(self, returncode, returnsignal, output, isTimeout):
38+
def determine_result(self, run):
3939
# parse output
4040
status = result.RESULT_UNKNOWN
4141

42-
for line in output:
42+
for line in run.output:
4343
if "UNSAFE" in line:
4444
status = result.RESULT_FALSE_PROP
4545
elif "SAFE" in line:

0 commit comments

Comments
 (0)