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 6891 of file z3py.py.

Constructor & Destructor Documentation

def __init__ (   self,
  r 
)

Definition at line 6902 of file z3py.py.

6902  def __init__(self, r):
6903  self.r = r
6904 
def __init__(self, r)
Definition: z3py.py:6902

Member Function Documentation

def __deepcopy__ (   self,
  memo = {} 
)

Definition at line 6905 of file z3py.py.

6905  def __deepcopy__(self, memo={}):
6906  return CheckSatResult(self.r)
6907 
def __eq__ (   self,
  other 
)

Definition at line 6908 of file z3py.py.

Referenced by Probe.__ne__().

6908  def __eq__(self, other):
6909  return isinstance(other, CheckSatResult) and self.r == other.r
6910 
def __eq__(self, other)
Definition: z3py.py:6908
def __ne__ (   self,
  other 
)

Definition at line 6911 of file z3py.py.

6911  def __ne__(self, other):
6912  return not self.__eq__(other)
6913 
def __eq__(self, other)
Definition: z3py.py:6908
def __ne__(self, other)
Definition: z3py.py:6911
def __repr__ (   self)

Definition at line 6914 of file z3py.py.

6914  def __repr__(self):
6915  if in_html_mode():
6916  if self.r == Z3_L_TRUE:
6917  return "<b>sat</b>"
6918  elif self.r == Z3_L_FALSE:
6919  return "<b>unsat</b>"
6920  else:
6921  return "<b>unknown</b>"
6922  else:
6923  if self.r == Z3_L_TRUE:
6924  return "sat"
6925  elif self.r == Z3_L_FALSE:
6926  return "unsat"
6927  else:
6928  return "unknown"
6929 
def __repr__(self)
Definition: z3py.py:6914

Field Documentation

r