Skip to content

Commit 52cc555

Browse files
committed
miniBDD test: support lselect
We can support the select operation, it just wasn't implemented.
1 parent eaa2cdd commit 52cc555

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

unit/solvers/bdd/miniBDD/miniBDD.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,9 @@ class bdd_propt : public propt
126126
return {};
127127
}
128128

129-
literalt lselect(literalt, literalt, literalt) override
129+
literalt lselect(literalt c, literalt t, literalt f) override
130130
{
131-
UNREACHABLE;
132-
return {};
131+
return to_literal((to_bdd(!c) | to_bdd(t)) & (to_bdd(c) | to_bdd(f)));
133132
}
134133

135134
void lcnf(const bvt &) override

0 commit comments

Comments
 (0)