1
0
mirror of synced 2026-04-29 05:16:49 +00:00

Merge pull request #3733 from AdamHillier/aiger-inputs

Add outputs before inputs to the sigmap in the AIGER backend.
This commit is contained in:
Jannis Harder
2023-05-22 16:09:15 +02:00
committed by GitHub

View File

@@ -119,16 +119,16 @@ struct AigerWriter
if (wire->name.isPublic())
sigmap.add(wire);
// promote input wires
for (auto wire : module->wires())
if (wire->port_input)
sigmap.add(wire);
// promote output wires
for (auto wire : module->wires())
if (wire->port_output)
sigmap.add(wire);
// promote input wires
for (auto wire : module->wires())
if (wire->port_input)
sigmap.add(wire);
for (auto wire : module->wires())
{
if (wire->attributes.count(ID::init)) {