mirror of
https://github.com/YosysHQ/sby.git
synced 2025-04-12 00:23:35 +00:00
Update sby_engine_abc.py
ABC will sometimes return negative frame numbers when proving by convergence, e.g. ``` engine_0: Proved output 1 in frame -698905656 (converged). engine_0: Proved output 4 in frame -698905656 (converged). ``` This change fixes these properties being missed and causing the engine status to return UNKNOWN due to `proved_count != len(proved)`.
This commit is contained in:
parent
c73cd3eeea
commit
6c8b838eb3
|
@ -182,7 +182,7 @@ def run(mode, task, engine_idx, engine):
|
||||||
match = re.match(r"^Output [0-9]+ of miter .* was asserted in frame [0-9]+.", line)
|
match = re.match(r"^Output [0-9]+ of miter .* was asserted in frame [0-9]+.", line)
|
||||||
if match: proc_status = "FAIL"
|
if match: proc_status = "FAIL"
|
||||||
|
|
||||||
match = re.match(r"^Proved output +([0-9]+) in frame +[0-9]+", line)
|
match = re.match(r"^Proved output +([0-9]+) in frame +-?[0-9]+", line)
|
||||||
if match:
|
if match:
|
||||||
output = int(match[1])
|
output = int(match[1])
|
||||||
prop = aiger_props[output]
|
prop = aiger_props[output]
|
||||||
|
|
Loading…
Reference in a new issue