Skip to content

Commit 11cbdbb

Browse files
committed
fix: update regexp to correctly detect trace files
According to the SV-COMP 1.0 format, traces are stored in GraphML files. If a verifier produces additional files starting with "witness...", they may be incorrectly processed as witnesses.
1 parent 0b549cf commit 11cbdbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cv/models/verification_result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def filter_traces(self, launch_dir: str, install_dir: str, result_dir: str, remo
352352
"""
353353
start_time_cpu = time.process_time()
354354
start_wall_time = time.time()
355-
traces = glob.glob(f"{launch_dir}/witness*")
355+
traces = glob.glob(f"{launch_dir}/witness*{Extension.GRAPHML}")
356356
mea = MEA(self.config, traces, install_dir, self.rule, result_dir, remove_prefixes=remove_src_prefixes)
357357
self.filtered_traces = len(mea.filter())
358358
if self.filtered_traces:

0 commit comments

Comments
 (0)