(self, name: str, arch=None)
return proto
Get a prototype of the given function name, optionally specialize the prototype to a given architecture.

        :param name:    Name of the function.
        :param arch:    The architecture to specialize to.
        :return:        Prototype of the function, or None if the prototype does not exist.
Get a prototype of the given function name, optionally specialize the prototype to a given architecture.
Get a prototype of the given function name optionally specialize the prototype to a given architecture .
def get_prototype(self, name: str, arch=None) -> Optional[SimTypeFunction]:
        """
        Get a prototype of the given function name, optionally specialize the prototype to a given architecture.

        :param name:    Name of the function.
        :param arch:    The architecture to specialize to.
        :return:        Prototype of the function, or None if the prototype does not exist.
        """
        proto = self.prototypes.get(name, None)
        if proto is None:
            return None
        if arch is not None:
            return proto.with_arch(arch)
        return proto
def get_prototype ( self , name : str , arch = None ) -> Optional [ SimTypeFunction ] : proto = self . prototypes . get ( name , None ) if proto is None : return None if arch is not None : return proto . with_arch ( arch ) return proto