Skip to content

Commit 31379b7

Browse files
committed
Support aig format also in aig.to_aig function
1 parent cf92581 commit 31379b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aiger/aig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def to_aig(circ, *, allow_lazy=False) -> AIG:
284284
if isinstance(circ, pathlib.Path) and circ.is_file():
285285
circ = parser.load(circ)
286286
elif isinstance(circ, str):
287-
if circ.startswith('aag '):
287+
if circ.startswith('aag ') or circ.startswith('aig '):
288288
circ = parser.parse(circ) # Assume it is an AIGER string.
289289
else:
290290
circ = parser.load(circ) # Assume it is a file path.

0 commit comments

Comments
 (0)