Skip to content

Commit

Permalink
Merge pull request #107 from QuMuLab/simplify-tautologies
Browse files Browse the repository at this point in the history
Fix for the tautology bug in nnf.
  • Loading branch information
haz authored Dec 13, 2022
2 parents 5570cbb + 7dd551e commit 92d3478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bauhaus/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def _nnfify(lit):
if not T.satisfiable():
return 0

return dsharp.compile(T.to_CNF(), smooth=True).model_count()
return dsharp.compile(T.to_CNF(simplify=False), smooth=True).model_count()

def likelihood(base_formula, lit):
return count_solutions(base_formula, [lit]) / count_solutions(base_formula)

0 comments on commit 92d3478

Please sign in to comment.