Added $anyconst support to AIGER back-end
authorClifford Wolf <clifford@clifford.at>
Sun, 11 Dec 2016 12:48:18 +0000 (13:48 +0100)
committerClifford Wolf <clifford@clifford.at>
Sun, 11 Dec 2016 12:48:18 +0000 (13:48 +0100)
backends/aiger/aiger.cc

index aefe5cf435e6ea215b91740fba2ed82f4d7387ab..ab1fba6f13ceaff0cb7e4cc173831044491637a2 100644 (file)
@@ -163,6 +163,13 @@ struct AigerWriter
                                continue;
                        }
 
+                       if (cell->type == "$anyconst")
+                       {
+                               for (auto bit : sigmap(cell->getPort("\\Y")))
+                                       ff_map[bit] = bit;
+                               continue;
+                       }
+
                        log_error("Unsupported cell type: %s (%s)\n", log_id(cell->type), log_id(cell));
                }