Z3
Public Member Functions | Data Fields
CheckSatResult Class Reference

Public Member Functions

def __init__ (self, r)
 
def __deepcopy__
 
def __eq__ (self, other)
 
def __ne__ (self, other)
 
def __repr__ (self)
 

Data Fields

 r
 

Detailed Description

Represents the result of a satisfiability check: sat, unsat, unknown.

>>> s = Solver()
>>> s.check()
sat
>>> r = s.check()
>>> isinstance(r, CheckSatResult)
True

Definition at line 6746 of file z3py.py.

Constructor & Destructor Documentation

def __init__ (   self,
  r 
)

Definition at line 6757 of file z3py.py.

6757  def __init__(self, r):
6758  self.r = r
6759 
def __init__(self, r)
Definition: z3py.py:6757

Member Function Documentation

def __deepcopy__ (   self,
  memo = {} 
)

Definition at line 6760 of file z3py.py.

6760  def __deepcopy__(self, memo={}):
6761  return CheckSatResult(self.r)
6762 
def __eq__ (   self,
  other 
)

Definition at line 6763 of file z3py.py.

Referenced by Probe.__ne__().

6763  def __eq__(self, other):
6764  return isinstance(other, CheckSatResult) and self.r == other.r
6765 
def __eq__(self, other)
Definition: z3py.py:6763
def __ne__ (   self,
  other 
)

Definition at line 6766 of file z3py.py.

6766  def __ne__(self, other):
6767  return not self.__eq__(other)
6768 
def __eq__(self, other)
Definition: z3py.py:6763
def __ne__(self, other)
Definition: z3py.py:6766
def __repr__ (   self)

Definition at line 6769 of file z3py.py.

6769  def __repr__(self):
6770  if in_html_mode():
6771  if self.r == Z3_L_TRUE:
6772  return "<b>sat</b>"
6773  elif self.r == Z3_L_FALSE:
6774  return "<b>unsat</b>"
6775  else:
6776  return "<b>unknown</b>"
6777  else:
6778  if self.r == Z3_L_TRUE:
6779  return "sat"
6780  elif self.r == Z3_L_FALSE:
6781  return "unsat"
6782  else:
6783  return "unknown"
6784 
def __repr__(self)
Definition: z3py.py:6769

Field Documentation

r