class_docstr: Class for representing a SAT solver capable of
   finding a model to a boolean theory in conjunctive
   normal form.
class_docstr_tok: ["Class","for","representing","a","SAT","solver","capable","of","finding","a","model","to","a","boolean","theory","in","conjunctive","normal","form","."]
docstr: Check if a clause is satisfied by the current variable setting.
  
  Examples
  ========
  
  >>> from sympy.logic.algorithms.dpll2 import SATSolver
  >>> l = SATSolver([{1}, {-1}], {1}, set())
  >>> try:
  ...     next(l._find_model())
  ... except StopIteration:
  ...     pass
  >>> l._clause_sat(0)
  False
  >>> l._clause_sat(1)
  True
docstr_tok: ["Check","if","a","clause","is","satisfied","by","the","current","variable","setting",".","Examples","========",">",">",">","from","sympy.logic.algorithms.dpll2","import","SATSolver",">",">",">","l","=","SATSolver","(","[","{","1","}",",","{","-1","}","]",",","{","1","}",",","set","(",")",")",">",">",">","try",":","...","next","(","l._find_model","(",")",")","...","except","StopIteration",":","...","pass",">",">",">","l._clause_sat","(","0",")","False",">",">",">","l._clause_sat","(","1",")","True"]
code: def _clause_sat(self, cls):
      """Check if a clause is satisfied by the current variable setting.
  
      Examples
      ========
  
      >>> from sympy.logic.algorithms.dpll2 import SATSolver
      >>> l = SATSolver([{1}, {-1}], {1}, set())
      >>> try:
      ...     next(l._find_model())
      ... except StopIteration:
      ...     pass
      >>> l._clause_sat(0)
      False
      >>> l._clause_sat(1)
      True
  
      """
      for lit in self.clauses[cls]:
          if lit in self.var_settings:
              return True
      return False
  
imports: from collections import defaultdict
  from heapq import heappush, heappop
  from sympy.core.sorting import ordered
  from sympy.assumptions.cnf import EncodedCNF
  from sympy.logic.algorithms.lra_theory import LRASolver
label_desc: Use image node_id 6 for calling the SATSolver obj's underlying member method code with example usage: obj._clause_sat(cls) and returns: False, True