Skip to content

Commit a025fdd

Browse files
committed
Adding documentation for the new to_CNF parameter.
1 parent 4a63b50 commit a025fdd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nnf/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,10 @@ def neg(node: NNF) -> NNF:
575575
return neg(self)
576576

577577
def to_CNF(self, simplify: bool = True) -> 'And[Or[Var]]':
578-
"""Compile theory to a semantically equivalent CNF formula."""
578+
"""Compile theory to a semantically equivalent CNF formula.
579+
580+
:param simplify: If True, simplify clauses even if that means
581+
eliminating variables."""
579582
return tseitin.to_CNF(self, simplify)
580583

581584
def _cnf_satisfiable(self) -> bool:

0 commit comments

Comments
 (0)