Z3
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Data Fields
CheckSatResult Class Reference

Public Member Functions

def __init__
 
def __eq__
 
def __ne__
 
def __repr__
 

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

Constructor & Destructor Documentation

def __init__ (   self,
  r 
)

Definition at line 5686 of file z3py.py.

5687  def __init__(self, r):
5688  self.r = r

Member Function Documentation

def __eq__ (   self,
  other 
)

Definition at line 5689 of file z3py.py.

Referenced by Probe.__ne__().

5690  def __eq__(self, other):
5691  return isinstance(other, CheckSatResult) and self.r == other.r
def __ne__ (   self,
  other 
)

Definition at line 5692 of file z3py.py.

5693  def __ne__(self, other):
5694  return not self.__eq__(other)
def __repr__ (   self)

Definition at line 5695 of file z3py.py.

5696  def __repr__(self):
5697  if in_html_mode():
5698  if self.r == Z3_L_TRUE:
5699  return "<b>sat</b>"
5700  elif self.r == Z3_L_FALSE:
5701  return "<b>unsat</b>"
5702  else:
5703  return "<b>unknown</b>"
5704  else:
5705  if self.r == Z3_L_TRUE:
5706  return "sat"
5707  elif self.r == Z3_L_FALSE:
5708  return "unsat"
5709  else:
5710  return "unknown"

Field Documentation

r

Definition at line 5687 of file z3py.py.

Referenced by CheckSatResult.__eq__(), and CheckSatResult.__repr__().