File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1059,6 +1059,18 @@ namespace hal {
1059
1059
EXPECT_EQ (((a.clone () & c.clone ()) | (b.clone () & ~c.clone ()) | (a.clone () & b.clone ())).simplify (), (b.clone () | c.clone ()) & (a.clone () | ~c.clone ()));
1060
1060
}
1061
1061
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
+
1062
1074
TEST (BooleanFunction, SimplificationPerformance)
1063
1075
{
1064
1076
const auto start = std::chrono::system_clock::now ();
You can’t perform that action at this time.
0 commit comments