3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-08-16 18:05:31 +00:00
This commit is contained in:
KrystalDelusion 2025-07-07 10:38:49 +02:00 committed by GitHub
commit efea641942
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 368 additions and 4 deletions

View file

@ -176,7 +176,10 @@ def run(mode, task, engine_idx, engine):
match = re.match(r"Writing CEX for output ([0-9]+) to engine_[0-9]+/(.*)\.aiw", line)
if match:
output = int(match[1])
prop = aiger_props[output]
try:
prop = aiger_props[output]
except IndexError:
prop = None
if prop:
prop.status = "FAIL"
task.status_db.set_task_property_status(prop, data=dict(source="abc pdr", engine=f"engine_{engine_idx}"))
@ -195,7 +198,10 @@ 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]
try:
prop = aiger_props[output]
except IndexError:
prop = None
if prop:
prop.status = "PASS"
task.status_db.set_task_property_status(prop, data=dict(source="abc pdr", engine=f"engine_{engine_idx}"))