(self, formula, args, **kwargs)
return theory_out
Returns a new theory object with the type of the constant.
Returns a new theory object with the type of the constant.
Returns a new theory object with the type of the constant .
def walk_constant(self, formula, args, **kwargs):
        """Returns a new theory object with the type of the constant."""
        #pylint: disable=unused-argument
        theory_out = Theory()
        if formula.is_real_constant() or formula.is_algebraic_constant():
            theory_out.real_arithmetic = True
            theory_out.real_difference = True
        elif formula.is_int_constant():
            theory_out.integer_arithmetic = True
            theory_out.integer_difference = True
        elif formula.is_bv_constant():
            theory_out.bit_vectors = True
        elif formula.is_string_constant():
            theory_out.strings = True
        else:
            assert formula.is_bool_constant()
        return theory_out
def walk_constant ( self , formula , args , * * kwargs ) : #pylint: disable=unused-argument theory_out = Theory ( ) if formula . is_real_constant ( ) or formula . is_algebraic_constant ( ) : theory_out . real_arithmetic = True theory_out . real_difference = True elif formula . is_int_constant ( ) : theory_out . integer_arithmetic = True theory_out . integer_difference = True elif formula . is_bv_constant ( ) : theory_out . bit_vectors = True elif formula . is_string_constant ( ) : theory_out . strings = True else : assert formula . is_bool_constant ( ) return theory_out