Exemple #1
0
 def __init__(self, environment, logic=None):
     IdentityDagWalker.__init__(self, env=environment)
     QuantifierEliminator.__init__(self)
     self.logic = logic
     self.mgr = self.env.formula_manager
     self.enum_domain = {}
     self.instances_cache = {}
Exemple #2
0
        def __init__(self, environment, logic=None, algorithm='fm'):
            """Algorithm can be either 'fm' (for Fourier-Motzkin) or 'lw' (for
               Loos-Weisspfenning)"""

            IdentityDagWalker.__init__(self, env=environment)

            self.set_function(self.walk_identity, op.SYMBOL, op.REAL_CONSTANT,
                              op.BOOL_CONSTANT, op.INT_CONSTANT)

            self.logic = logic

            assert algorithm in ['fm', 'lw']
            self.algorithm = algorithm

            self.msat_config = mathsat.msat_create_default_config("QF_LRA")
            self.msat_env = mathsat.msat_create_env(self.msat_config)
            self.converter = MSatConverter(environment, self.msat_env)
            self._destroyed = False
Exemple #3
0
        def __init__(self, environment, logic=None, algorithm='fm'):
            """Algorithm can be either 'fm' (for Fourier-Motzkin) or 'lw' (for
               Loos-Weisspfenning)"""

            IdentityDagWalker.__init__(self, env=environment)

            self.set_function(self.walk_identity, op.SYMBOL, op.REAL_CONSTANT,
                              op.BOOL_CONSTANT, op.INT_CONSTANT)

            self.logic = logic

            assert algorithm in ['fm', 'lw']
            self.algorithm = algorithm

            self.msat_config = mathsat.msat_create_default_config("QF_LRA")
            self.msat_env = mathsat.msat_create_env(self.msat_config)
            self.converter = MSatConverter(environment, self.msat_env)
            self._destroyed = False
Exemple #4
0
        def __init__(self, environment, logic=None, algorithm='fm'):
            """Initialize the Quantifier Eliminator using 'fm' or 'lw'.

            fm: Fourier-Motzkin (default)
            lw: Loos-Weisspfenning
            """
            if algorithm not in ['fm', 'lw']:
                raise ValueError("Algorithm can be either 'fm' or 'lw'")
            QuantifierEliminator.__init__(self)
            IdentityDagWalker.__init__(self, env=environment)
            self.msat_config = mathsat.msat_create_default_config("QF_LRA")
            self.msat_env = MSatEnv(self.msat_config)
            mathsat.msat_destroy_config(self.msat_config)

            self.set_function(self.walk_identity, op.SYMBOL, op.REAL_CONSTANT,
                              op.BOOL_CONSTANT, op.INT_CONSTANT)
            self.logic = logic
            self.algorithm = algorithm
            self.converter = MSatConverter(environment, self.msat_env)
Exemple #5
0
 def __init__(self, env=None):
     IdentityDagWalker.__init__(self, env=env)
     self.type_normalize = self.env.type_manager.normalize
Exemple #6
0
 def __init__(self, environment, logic=None):
     IdentityDagWalker.__init__(self, env=environment)
     QuantifierEliminator.__init__(self)
     self.logic = logic
Exemple #7
0
 def __init__(self, environment):
     IdentityDagWalker.__init__(self, environment)
     self.get_type = self.env.stc.get_type
     self.mgr = self.env.formula_manager
Exemple #8
0
 def __init__(self, env=None):
     IdentityDagWalker.__init__(self, env=env)
     self.type_normalize = self.env.type_manager.normalize