// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2026, The OpenROAD Authors
// Tests for the bitblast pass: AIG rewriting rules (Brummayer-Biere)
// and structural hashing.
#include "gtest/gtest.h"
#include "syn/ir/Bundle.h"
#include "syn/ir/Graph.h"
#include "syn/ir/Instance.h"
#include "syn/ir/Net.h"
#include "syn/synthesis.h"
int main(int argc, char** argv)
{
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
namespace syn {
// Rule 11 (Substitution): a & ~(a & b) → a & ~b (= andnot)
TEST(BitblastTest, Rule11_Substitution)
{
Graph g;
Bundle a = g.add("a", 1);
Bundle b = g.add("b", 1);
Bundle ab = g.add(a, b);
Bundle nab = g.add(ab);
Bundle y = g.add(a, nab);
g.add