-
Notifications
You must be signed in to change notification settings - Fork 223
Add TIM for LTSmin #1171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add TIM for LTSmin #1171
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| # This file is part of BenchExec, a framework for reliable benchmarking: | ||
| # https://github.com/sosy-lab/benchexec | ||
| # | ||
| # SPDX-FileCopyrightText: 2025 Dirk Beyer <https://www.sosy-lab.org> | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| import benchexec.result as result | ||
| from benchexec.tools.template import BaseTool2 | ||
|
|
||
|
|
||
| class Tool(BaseTool2): | ||
| """ | ||
| Wrapper for LTSmin. | ||
| """ | ||
|
|
||
| REQUIRED_PATHS = ["bin/", "include/", "share/"] | ||
|
|
||
| def executable(self, tool_locator): | ||
| return tool_locator.find_executable("ltsmin-reduce", subdir="bin") | ||
|
|
||
| def name(self): | ||
| return "LTSmin" | ||
|
|
||
| def project_url(self): | ||
| return "https://ltsmin.utwente.nl/" | ||
|
|
||
| def version(self, executable): | ||
| return self._version_from_tool(executable, line_prefix="v") | ||
|
|
||
| def cmdline(self, executable, options, task: BaseTool2.Task, rlimits): | ||
| from pathlib import Path | ||
|
|
||
| real_executable = options.pop(0) if len(options) > 0 else executable | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Requiring this as first option could be inconvenient if users have a larger benchmark definition and for example want to specify the tool inside some |
||
| real_executable = str(Path(executable).parent / real_executable) | ||
|
|
||
| return [real_executable] + options + [task.single_input_file] | ||
|
|
||
| def determine_result(self, run): | ||
| if run.exit_code.signal != 0: | ||
| return result.RESULT_ERROR | ||
|
|
||
| return result.RESULT_DONE | ||
|
Comment on lines
+39
to
+43
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is actually redundant, as it is the default behavior. BenchExec will overwrite |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is
ltsmin-reducea meaningful default? I.e., if users specify only the tool-info module, will they expectltsmin-reduceas default?