示例#1
0
 def __init__(self, assignment, environment=None):
     if environment is None:
         environment = get_env()
     Model.__init__(self, environment)
     self.environment = environment
     self.assignment = dict(assignment)
     # Create a copy of the assignments to memoize completions
     self.completed_assignment = dict(self.assignment)
示例#2
0
文件: eager.py 项目: bogiebro/pysmt
 def __init__(self, assignment, environment=None):
     if environment is None:
         environment = get_env()
     Model.__init__(self, environment)
     self.environment = environment
     self.assignment = assignment
     # Create a copy of the assignments to memoize completions
     self.completed_assignment = dict(self.assignment)
示例#3
0
    def __init__(self, environment, msat_env):
        Model.__init__(self, environment)
        self.msat_env = msat_env
        self.converter = MSatConverter(environment, self.msat_env)
        self.msat_model = None

        msat_model = mathsat.msat_get_model(self.msat_env())
        if mathsat.MSAT_ERROR_MODEL(msat_model):
            msat_msg = mathsat.msat_last_error_message(self.msat_env())
            raise InternalSolverError(msat_msg)
        self.msat_model = msat_model
示例#4
0
 def __init__(self, environment, z3_model):
     Model.__init__(self, environment)
     self.z3_model = z3_model
     self.converter = Z3Converter(environment, z3_model.ctx)
示例#5
0
文件: z3.py 项目: mpreiner/pysmt
 def __init__(self, environment, z3_model):
     Model.__init__(self, environment)
     self.z3_model = z3_model
     self.converter = Z3Converter(environment, z3_model.ctx)
示例#6
0
 def __init__(self, environment, z3_model, converter, qf):
     Model.__init__(self, environment)
     self.z3_model = z3_model
     self.converter = converter
     self.qf = qf
示例#7
0
文件: yices.py 项目: aman-goel/pysmt
 def __init__(self, environment, yices_model, converter, qf):
     Model.__init__(self, environment)
     self.yices_model = yices_model
     self.converter = converter
     self.qf = qf
     self.mgr = environment.formula_manager
示例#8
0
 def __init__(self, assignment, environment=None):
     if environment is None:
         environment = get_env()
     Model.__init__(self, environment)
     self.environment = environment
     self.assignment = assignment