mirror of
https://github.com/YosysHQ/sby.git
synced 2025-10-08 02:31:56 +00:00
Fix abc crash when aiger_props is empty
Includes test reproducer from #338, modified to also test `abc --keep-going pdr`.
This commit is contained in:
parent
12380801e3
commit
c06d8682cd
2 changed files with 23 additions and 2 deletions
|
@ -203,7 +203,7 @@ def run(mode, task, engine_idx, engine):
|
|||
match = re.match(r"^Proved output +([0-9]+) in frame +-?[0-9]+", line)
|
||||
if match:
|
||||
output = int(match[1])
|
||||
prop = aiger_props[output]
|
||||
prop = aiger_props[output] if aiger_props else None
|
||||
if prop:
|
||||
prop.status = "PASS"
|
||||
task.summary.add_event(
|
||||
|
@ -232,7 +232,7 @@ def run(mode, task, engine_idx, engine):
|
|||
disproved_count = int(match[3])
|
||||
undecided_count = int(match[4])
|
||||
if (
|
||||
all_count != len(aiger_props) or
|
||||
(aiger_props and all_count != len(aiger_props)) or
|
||||
all_count != proved_count + disproved_count + undecided_count or
|
||||
disproved_count != len(disproved) or
|
||||
proved_count != len(proved)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue