Skip to content

Commit

Permalink
Merge pull request #1049 from Po-Chun-Chien/update-btor2c-tool-info
Browse files Browse the repository at this point in the history
Update Btor2C's tool-info module
  • Loading branch information
PhilippWendler authored Jun 3, 2024
2 parents 29480b3 + e401d0d commit e22ca44
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions benchexec/tools/btor2c.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,28 @@

class Tool(benchexec.tools.template.BaseTool2):
"""
Tool info for BTOR2C: A Converter from BTOR2 models to C programs
Tool info for Btor2C: A translator from Btor2 circuits to C programs
"""

def executable(self, tool_locator):
return tool_locator.find_executable("btor2code", subdir="build")
return tool_locator.find_executable("btor2c", subdir="build")

def name(self):
return "BTOR2C"
return "Btor2C"

def project_url(self):
return "https://gitlab.com/sosy-lab/software/btor2c"

def version(self, executable):
return self._version_from_tool(executable, line_prefix="Btor2C version")

def cmdline(self, executable, options, task, rlimits):
return [executable] + options + [task.single_input_file]

def get_value_from_output(self, output, identifier):
# search for the text in output and get its value,
# search the first line, that starts with the searched text
# warn if there are more lines (multiple statistics from sequential analysis?)
# warn if there are more lines
match = None
for line in output:
if line.lstrip().startswith(identifier):
Expand Down

0 comments on commit e22ca44

Please sign in to comment.