Skip to content

Commit 7c065f4

Browse files
committed
added failing boolean function test for abc
1 parent 73b8355 commit 7c065f4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/netlist/boolean_function.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,6 +1059,18 @@ namespace hal {
10591059
EXPECT_EQ(((a.clone() & c.clone()) | (b.clone() & ~c.clone()) | (a.clone() & b.clone())).simplify(), (b.clone() | c.clone()) & (a.clone() | ~c.clone()));
10601060
}
10611061

1062+
1063+
TEST(BooleanFunction, SimplificationABC)
1064+
{
1065+
const auto start = std::chrono::system_clock::now();
1066+
1067+
const auto function = BooleanFunction::from_string("((((0b0 | ((((0b1 & (! s2r_RNI7LA61(0))) & (! s4r17_i__[3]__)) & (! s2d2r(0)__[3]__)) & s2r(16)__[3]__)) | ((((0b1 & s2r_RNI7LA61(0)) & (! s4r17_i__[3]__)) & (! s2d2r(0)__[3]__)) & s2r(16)__[3]__)) | ((((0b1 & (! s2r_RNI7LA61(0))) & s4r17_i__[3]__) & (! s2d2r(0)__[3]__)) & s2r(16)__[3]__)) | ((((0b1 & (! s2r_RNI7LA61(0))) & (! s4r17_i__[3]__)) & s2d2r(0)__[3]__) & s2r(16)__[3]__))").get();
1068+
const auto simplified = function.simplify();
1069+
1070+
const auto duration_in_seconds = std::chrono::duration<double>(std::chrono::system_clock::now() - start).count();
1071+
}
1072+
1073+
10621074
TEST(BooleanFunction, SimplificationPerformance)
10631075
{
10641076
const auto start = std::chrono::system_clock::now();

0 commit comments

Comments
 (0)