Do not put constants into output_bits

This commit is contained in:
Eddie Hung 2019-04-16 13:44:15 -07:00
parent 61ca83e099
commit 43cd047fb9
1 changed files with 2 additions and 2 deletions

View File

@ -229,9 +229,9 @@ struct XAigerWriter
/*if (!output_bits.count(b))*/
if (abc_box)
co_bits.emplace_back(b, 0);
else {
else if (b.wire) {
output_bits.insert(b);
if (b.wire && !b.wire->port_input)
if (!b.wire->port_input)
unused_bits.erase(b);
}
}