python-nnf icon indicating copy to clipboard operation
python-nnf copied to clipboard

Bad model count for tautologies

Open haz opened this issue 3 years ago • 0 comments

import nnf
x = nnf.Var('x')
T = x | ~x
nnf.dsharp.compile(T.to_CNF(), smooth=True).model_count()

Should equal 2, but it's equal to 1. This is because T.to_CNF() evaluates to true

haz avatar Dec 09 '22 02:12 haz