Skip to content

Commit

Permalink
Adding documentation for the new to_CNF parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
haz committed Dec 12, 2022
1 parent 4a63b50 commit a025fdd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nnf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,10 @@ def neg(node: NNF) -> NNF:
return neg(self)

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

def _cnf_satisfiable(self) -> bool:
Expand Down

0 comments on commit a025fdd

Please sign in to comment.