Add log_push()/log_pop() inside write_xaiger

This commit is contained in:
Eddie Hung 2019-06-21 17:16:38 -07:00
parent 65c1199acd
commit 7074ec9cd5
1 changed files with 4 additions and 0 deletions

View File

@ -664,6 +664,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();
@ -700,6 +702,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();
}
}