Get rid of formal stuff from xaiger backend
authorEddie Hung <eddieh@ece.ubc.ca>
Thu, 14 Feb 2019 21:27:26 +0000 (13:27 -0800)
committerEddie Hung <eddieh@ece.ubc.ca>
Thu, 14 Feb 2019 21:27:26 +0000 (13:27 -0800)
backends/aiger/xaiger.cc

index 7fc61fa9a89811f42b40223db17fcc9f8692b213..c5cede3b1ece3d0a0c2740929ab1327628629629 100644 (file)
@@ -205,64 +205,6 @@ struct XAigerWriter
                                continue;
                        }
 
-                       if (cell->type == "$assert")
-                       {
-                               SigBit A = sigmap(cell->getPort("\\A").as_bit());
-                               SigBit EN = sigmap(cell->getPort("\\EN").as_bit());
-                               unused_bits.erase(A);
-                               unused_bits.erase(EN);
-                               asserts.push_back(make_pair(A, EN));
-                               continue;
-                       }
-
-                       if (cell->type == "$assume")
-                       {
-                               SigBit A = sigmap(cell->getPort("\\A").as_bit());
-                               SigBit EN = sigmap(cell->getPort("\\EN").as_bit());
-                               unused_bits.erase(A);
-                               unused_bits.erase(EN);
-                               assumes.push_back(make_pair(A, EN));
-                               continue;
-                       }
-
-                       if (cell->type == "$live")
-                       {
-                               SigBit A = sigmap(cell->getPort("\\A").as_bit());
-                               SigBit EN = sigmap(cell->getPort("\\EN").as_bit());
-                               unused_bits.erase(A);
-                               unused_bits.erase(EN);
-                               liveness.push_back(make_pair(A, EN));
-                               continue;
-                       }
-
-                       if (cell->type == "$fair")
-                       {
-                               SigBit A = sigmap(cell->getPort("\\A").as_bit());
-                               SigBit EN = sigmap(cell->getPort("\\EN").as_bit());
-                               unused_bits.erase(A);
-                               unused_bits.erase(EN);
-                               fairness.push_back(make_pair(A, EN));
-                               continue;
-                       }
-
-                       if (cell->type == "$anyconst")
-                       {
-                               for (auto bit : sigmap(cell->getPort("\\Y"))) {
-                                       undriven_bits.erase(bit);
-                                       ff_map[bit] = bit;
-                               }
-                               continue;
-                       }
-
-                       if (cell->type == "$anyseq")
-                       {
-                               for (auto bit : sigmap(cell->getPort("\\Y"))) {
-                                       undriven_bits.erase(bit);
-                                       input_bits.insert(bit);
-                               }
-                               continue;
-                       }
-
                        log_error("Unsupported cell type: %s (%s)\n", log_id(cell->type), log_id(cell));
                }