Skip to content

Commit f092445

Browse files
Add brackets to resolve ambiguity caused by use of bitwise instead of logical operators
1 parent 31cba6b commit f092445

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unit/miniBDD.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ void test1()
1818
mini_bddt x=mgr.Var("x");
1919
mini_bddt y=mgr.Var("y");
2020
mini_bddt z=mgr.Var("z");
21-
mini_bddt f=(x&y&z)|(!x&!y&z);
21+
mini_bddt f=(x&y&z)|((!x)&(!y)&z);
2222
y.clear();
2323
x.clear();
2424
z.clear();

0 commit comments

Comments
 (0)