Skip to content

Commit 8fb76e1

Browse files
Let MetaVal handle validation tasks correctly
The inner tool does not need to get the witness options
1 parent 1ca6a4e commit 8fb76e1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

benchexec/tools/metaval.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from benchexec.tools.template import UnsupportedFeatureException
1616
from benchexec.tools.sv_benchmarks_util import (
1717
get_witness,
18-
get_single_non_witness_input_file,
18+
get_single_non_witness_input_file, WITNESS_INPUT_FILE_IDENTIFIER,
1919
)
2020

2121

@@ -124,11 +124,14 @@ def cmdline(self, executable, options, task, rlimits):
124124
)
125125
)
126126
)
127+
wrapped_tasks_options = task.options
128+
if isinstance(wrapped_tasks_options, dict):
129+
wrapped_tasks_options = {k: v for k, v in wrapped_tasks_options.items() if k != WITNESS_INPUT_FILE_IDENTIFIER}
127130
wrappedtask = BaseTool2.Task(
128131
input_files=[self._resource(executable, "output/ARG.c")],
129132
identifier=task.identifier,
130133
property_file=task.property_file,
131-
options=task.options,
134+
options=wrapped_tasks_options,
132135
)
133136
wrappedOptions = tool.cmdline(
134137
wrapped_executable,

0 commit comments

Comments
 (0)