Bugfix in smt2 back-end for pure checker modules
authorClifford Wolf <clifford@clifford.at>
Mon, 28 Nov 2016 14:15:09 +0000 (15:15 +0100)
committerClifford Wolf <clifford@clifford.at>
Mon, 28 Nov 2016 14:15:09 +0000 (15:15 +0100)
backends/smt2/smt2.cc

index ddac6900920b47e312b40c8e8bbf3f66f2099736..43479eb5598bda6f365b8ca6ed89552d7d248233 100644 (file)
@@ -749,6 +749,10 @@ struct Smt2Worker
 
                if (verbose) log("=> export logic driving hierarchical cells\n");
 
+               for (auto cell : module->cells())
+                       if (module->design->module(cell->type) != nullptr)
+                               export_cell(cell);
+
                while (!hiercells_queue.empty())
                {
                        std::set<RTLIL::Cell*> queue;