We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9faa1e commit 5af12f9Copy full SHA for 5af12f9
aiger/parser.py
@@ -60,7 +60,7 @@ class SymbolTable:
60
class State:
61
header: Optional[Header] = None
62
inputs: SortedSet = attr.ib(factory=SortedSet)
63
- outputs: SortedList = attr.ib(factory=SortedList)
+ outputs: list = attr.ib(factory=list)
64
latches: SortedSet = attr.ib(factory=SortedSet)
65
symbols: SymbolTable = attr.ib(factory=SymbolTable)
66
comments: Optional[List[str]] = None
@@ -131,7 +131,7 @@ def parse_output(state, line) -> bool:
131
if match is None or state.remaining_outputs <= 0:
132
return False
133
lit = int(line)
134
- state.outputs.add(lit)
+ state.outputs.append(lit)
135
if lit & 1:
136
state.nodes[lit] = {lit ^ 1}
137
return True
0 commit comments