Example #1
0
 def walk_real_constant(self, formula, **kwargs):
     frac = formula.constant_value()
     n, d = frac.numerator, frac.denominator
     rep = str(n) + "/" + str(d)
     res = yicespy.yices_parse_rational(rep)
     self._check_term_result(res)
     return res
Example #2
0
 def walk_real_constant(self, formula, **kwargs):
     frac = formula.constant_value()
     n,d = frac.numerator, frac.denominator
     rep = str(n) + "/" + str(d)
     res = yicespy.yices_parse_rational(rep)
     self._check_term_result(res)
     return res
Example #3
0
 def walk_int_constant(self, formula, **kwargs):
     assert type(formula.constant_value()) == int or \
         type(formula.constant_value()) == long
     rep = str(formula.constant_value())
     res = yicespy.yices_parse_rational(rep)
     self._check_term_result(res)
     return res
Example #4
0
 def walk_int_constant(self, formula, **kwargs):
     assert is_pysmt_integer(formula.constant_value())
     rep = str(formula.constant_value())
     res = yicespy.yices_parse_rational(rep)
     self._check_term_result(res)
     return res
Example #5
0
 def walk_int_constant(self, formula, **kwargs):
     assert is_pysmt_integer(formula.constant_value())
     rep = str(formula.constant_value())
     res = yicespy.yices_parse_rational(rep)
     self._check_term_result(res)
     return res