Exemplo n.º 1
0
 def __init__(self, env=None, invalidate_memoization=None):
     IdentityDagWalker.__init__(
         self, env=env, invalidate_memoization=invalidate_memoization)
     self.Times = self.env.formula_manager.Times
     self.Plus = self.env.formula_manager.Plus
     self.rminus_one = self.env.formula_manager.Real(-1)
     self.iminus_one = self.env.formula_manager.Int(-1)
     self.get_type = self.env.stc.get_type
Exemplo n.º 2
0
 def __init__(self, env=None, invalidate_memoization=None):
     IdentityDagWalker.__init__(self, env=env,
                                invalidate_memoization=invalidate_memoization)
     self.Times = self.env.formula_manager.Times
     self.Plus = self.env.formula_manager.Plus
     self.rminus_one = self.env.formula_manager.Real(-1)
     self.iminus_one = self.env.formula_manager.Int(-1)
     self.get_type = self.env.stc.get_type
Exemplo n.º 3
0
    def __init__(self, environment=None):
        IdentityDagWalker.__init__(self, environment)
        # funs_to_args keeps for every function symbol f,
        # a set of lists of arguments.
        # if f(g(x),y) and f(x,g(y)) occur in a formula, then we
        # will have "f": set([g(x), y], [x, g(y)])
        self._funs_to_args = {}

        #maps the actual applications to the constants that will be
        #generated, or to the original term if it is not replaced.
        self._terms_dict = {}
Exemplo n.º 4
0
    def __init__(self, environment=None):
        IdentityDagWalker.__init__(self, environment)
        # funs_to_args keeps for every function symbol f,
        # a set of lists of arguments.
        # if f(g(x),y) and f(x,g(y)) occur in a formula, then we
        # will have "f": set([g(x), y], [x, g(y)])
        self._funs_to_args = {}

        #maps the actual applications to the constants that will be
        #generated, or to the original term if it is not replaced.
        self._terms_dict = {}
Exemplo n.º 5
0
 def __init__(self, env=None, conf):
     if env is None:
         self.env = get_env()
     else:
         self.env = env
     IdentityDagWalker.__init__(self, env=self.env)
     self.mgr = self.env.formula_manager
     self.conf = conf
     self.symbol_map = dict()
     self.fbvand = self.mgr.Symbol(
         "fbvand", FunctionType(INT, (INT, INT, INT)))
     self.extra_constraints = set()
     self.zero = self.mgr.Int(0)
Exemplo n.º 6
0
 def __init__(self):
     IdentityDagWalker.__init__(self)
     self.symbols = set()