(self, formula, args, **kwargs)
return theory_out
Extends the Theory with UF.
Extends the Theory with UF.
Extends the Theory with UF .
def walk_function(self, formula, args, **kwargs):
        """Extends the Theory with UF."""
        #pylint: disable=unused-argument
        if len(args) == 1:
            theory_out = args[0].copy()
        elif len(args) > 1:
            theory_out = args[0]
            for t in args[1:]:
                theory_out = theory_out.combine(t)
        else:
            theory_out = Theory()
        # Extend Theory with function return type
        rtype = formula.function_name().symbol_type().return_type
        theory_out = theory_out.combine(self._theory_from_type(rtype))
        theory_out.uninterpreted = True
        return theory_out
def walk_function ( self , formula , args , * * kwargs ) : #pylint: disable=unused-argument if len ( args ) == 1 : theory_out = args [ 0 ] . copy ( ) elif len ( args ) > 1 : theory_out = args [ 0 ] for t in args [ 1 : ] : theory_out = theory_out . combine ( t ) else : theory_out = Theory ( ) # Extend Theory with function return type rtype = formula . function_name ( ) . symbol_type ( ) . return_type theory_out = theory_out . combine ( self . _theory_from_type ( rtype ) ) theory_out . uninterpreted = True return theory_out