Add log_push()/log_pop() inside write_xaiger
authorEddie Hung <eddie@fpgeh.com>
Sat, 22 Jun 2019 00:16:38 +0000 (17:16 -0700)
committerEddie Hung <eddie@fpgeh.com>
Sat, 22 Jun 2019 00:16:38 +0000 (17:16 -0700)
backends/aiger/xaiger.cc

index 110d727de7e06e2a0934b6227534d4b2359951bc..23132f10870fbad9413ed6851ebffef0c0fcc719 100644 (file)
@@ -665,6 +665,8 @@ struct XAigerWriter
                        f.write(buffer_str.data(), buffer_str.size());
 
                        if (holes_module) {
+                               log_push();
+
                                // NB: fixup_ports() will sort ports by name
                                //holes_module->fixup_ports();
                                holes_module->check();
@@ -701,6 +703,8 @@ struct XAigerWriter
                                f.write(reinterpret_cast<const char*>(&buffer_size_be), sizeof(buffer_size_be));
                                f.write(buffer_str.data(), buffer_str.size());
                                holes_module->design->remove(holes_module);
+
+                               log_pop();
                        }
                }