Fix abc_test024

This commit is contained in:
Eddie Hung 2019-05-29 15:24:09 -07:00
parent ecaa7856e9
commit 1423384367
1 changed files with 5 additions and 4 deletions

View File

@ -152,10 +152,11 @@ struct XAigerWriter
undriven_bits.insert(bit);
unused_bits.insert(bit);
if (wire->port_input)
input_bits.insert(bit);
else if (keep)
if (wire->port_input || keep) {
if (bit != wirebit)
alias_map[bit] = wirebit;
input_bits.insert(wirebit);
}
if (wire->port_output || keep) {
if (bit != wirebit)
@ -166,7 +167,7 @@ struct XAigerWriter
}
for (auto bit : input_bits)
undriven_bits.erase(bit);
undriven_bits.erase(sigmap(bit));
for (auto bit : output_bits)
if (!bit.wire->port_input)