Exemplo n.º 1
0
 def walk_bv_comp(self, formula, args, **kwargs):
     a, b = args
     eq = yicespy.yices_bveq_atom(a, b)
     self._check_term_result(eq)
     one = yicespy.yices_bvconst_int32(1, 1)
     zero = yicespy.yices_bvconst_int32(1, 0)
     res = yicespy.yices_ite(eq, one, zero)
     self._check_term_result(res)
     return res
Exemplo n.º 2
0
 def walk_bv_comp (self, formula, args, **kwargs):
     a,b = args
     eq = yicespy.yices_bveq_atom(a, b)
     self._check_term_result(eq)
     one = yicespy.yices_bvconst_int32(1, 1)
     zero = yicespy.yices_bvconst_int32(1, 0)
     res = yicespy.yices_ite(eq, one, zero)
     self._check_term_result(res)
     return res