3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-09 00:40:16 +00:00

Merge pull request #6005 from YosysHQ/witness

yosys-witness: give error on justice property, support only 'b'
This commit is contained in:
Miodrag Milanović 2026-07-07 13:39:40 +00:00 committed by GitHub
commit af815f99fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -192,8 +192,10 @@ def aiw2yw(input, mapfile, output, skip_x, present_only):
header_lines = list(itertools.islice(input, 0, 2))
if len(header_lines) == 2 and header_lines[1][0] in ".bcjf":
if len(header_lines) == 2 and header_lines[1][0] in ".bj":
status = header_lines[0].strip()
if header_lines[1][0]=='j':
raise click.ClickException(f"{input_name}: justice property in AIGER witness not yet supported")
if status == "0":
raise click.ClickException(f"{input_name}: file contains no trace, the AIGER status is unsat")
elif status == "2":