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

Constructor & Destructor Documentation

def __init__ (   self,
  r 
)

Definition at line 7118 of file z3py.py.

7118  def __init__(self, r):
7119  self.r = r
7120 
def __init__(self, r)
Definition: z3py.py:7118

Member Function Documentation

def __deepcopy__ (   self,
  memo = {} 
)

Definition at line 7121 of file z3py.py.

7121  def __deepcopy__(self, memo={}):
7122  return CheckSatResult(self.r)
7123 
def __eq__ (   self,
  other 
)

Definition at line 7124 of file z3py.py.

Referenced by Probe.__ne__().

7124  def __eq__(self, other):
7125  return isinstance(other, CheckSatResult) and self.r == other.r
7126 
def __eq__(self, other)
Definition: z3py.py:7124
def __ne__ (   self,
  other 
)

Definition at line 7127 of file z3py.py.

7127  def __ne__(self, other):
7128  return not self.__eq__(other)
7129 
def __eq__(self, other)
Definition: z3py.py:7124
def __ne__(self, other)
Definition: z3py.py:7127
def __repr__ (   self)

Definition at line 7130 of file z3py.py.

7130  def __repr__(self):
7131  if in_html_mode():
7132  if self.r == Z3_L_TRUE:
7133  return "<b>sat</b>"
7134  elif self.r == Z3_L_FALSE:
7135  return "<b>unsat</b>"
7136  else:
7137  return "<b>unknown</b>"
7138  else:
7139  if self.r == Z3_L_TRUE:
7140  return "sat"
7141  elif self.r == Z3_L_FALSE:
7142  return "unsat"
7143  else:
7144  return "unknown"
7145 
def __repr__(self)
Definition: z3py.py:7130

Field Documentation

r