[buddy] Fix is_cube() and add tests

* src/bddop.c: Fix is_cube with bddtrue as input
* src/bddtest.cxx: Add tests here
This commit is contained in:
philipp 2021-11-04 00:31:51 +01:00
parent ece7631e8c
commit c5a61da22b
2 changed files with 39 additions and 2 deletions

View file

@ -3814,8 +3814,6 @@ int bdd_is_cube(BDD b)
{
if (ISZERO(b))
return 0;
if (ISONE(b))
return 0;
while (!ISONE(b))
{