Fix infinite recursion
authorEddie Hung <eddie@fpgeh.com>
Sat, 28 Sep 2019 00:45:49 +0000 (17:45 -0700)
committerEddie Hung <eddie@fpgeh.com>
Sat, 28 Sep 2019 00:45:49 +0000 (17:45 -0700)
backends/aiger/xaiger.cc

index cc0857896d123f0f3e61462eb6d9e6421215e710..4045e8811271e086bc0686193b2e4a6806c75139 100644 (file)
@@ -314,7 +314,7 @@ struct XAigerWriter
                                        SigBit d = cell->getPort(abc_flop_d);
                                        SigBit I = sigmap(d);
                                        if (I != d)
-                                               alias_map[I] = d;
+                                               alias_map[d] = I;
                                        unused_bits.erase(d);
 
                                        auto abc_flop_q = r.first->second.q_port;