We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a2de91 commit c27a3e9Copy full SHA for c27a3e9
nnf/__init__.py
@@ -597,13 +597,13 @@ def to_CNF(self) -> 'And[Or[Var]]':
597
from nnf import tseitin
598
return tseitin.to_CNF(self)
599
600
- def _cnf_satisfiable(self: 'And[Or[Var]]') -> bool:
+ def _cnf_satisfiable(self) -> bool:
601
"""Call a SAT solver on the presumed CNF theory."""
602
if 'native' == SAT_BACKEND:
603
return self._cnf_satisfiable_native()
604
elif 'kissat' == SAT_BACKEND:
605
from nnf import kissat
606
- return kissat.solve(self) is not None
+ return kissat.solve(t.cast(And[Or[Var]], self)) is not None
607
elif 'pysat' == SAT_BACKEND:
608
raise NotImplementedError('pysat backend not yet implemented')
609
else:
0 commit comments