Skip to content

Commit 3ae979e

Browse files
committed
aeon import: use correct type checking for booleans
1 parent e1fef55 commit 3ae979e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mpbn/boolfunclib/aeon_impl.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ def ba_to_bdd(ba: boolean.BooleanAlgebra, f: boolean.Expression, ctx: BddVariabl
5858
# Check that all variables that exist in `f` also exist in `ctx`.
5959
assert all((ctx.find_variable(var) is not None) for var in variables)
6060
def ba_to_bdd_rec(f: boolean.Expression) -> Bdd:
61-
if type(f) is ba.TRUE or isinstance(f, minibn._TRUE):
61+
if type(f) is ba.TRUE or isinstance(f, boolean._TRUE):
6262
return ctx.mk_const(True)
63-
if type(f) is ba.FALSE or isinstance(f, minibn._FALSE):
63+
if type(f) is ba.FALSE or isinstance(f, boolean._FALSE):
6464
return ctx.mk_const(False)
6565
if type(f) is ba.Symbol:
6666
return ctx.mk_literal(str(f.obj), True)

0 commit comments

Comments
 (0)