(self, name, arch)
Get an implementation of the given function specialized for the given arch, or a stub procedure if none exists.

        :param name:    The name of the function as a string
        :param arch:    The architecure to use, as either a string or an archinfo.Arch instance
        :return:        A SimProcedure instance representing the function as found in the library
Get an implementation of the given function specialized for the given arch, or a stub procedure if none exists.
Get an implementation of the given function specialized for the given arch or a stub procedure if none exists .
def get(self, name, arch):
        """
        Get an implementation of the given function specialized for the given arch, or a stub procedure if none exists.

        :param name:    The name of the function as a string
        :param arch:    The architecure to use, as either a string or an archinfo.Arch instance
        :return:        A SimProcedure instance representing the function as found in the library
        """
        if type(arch) is str:
            arch = archinfo.arch_from_id(arch)
        if name in self.procedures:
            proc = copy.deepcopy(self.procedures[name])
            self._apply_metadata(proc, arch)
            return proc
        else:
            return self.get_stub(name, arch)
def get ( self , name , arch ) : if type ( arch ) is str : arch = archinfo . arch_from_id ( arch ) if name in self . procedures : proc = copy . deepcopy ( self . procedures [ name ] ) self . _apply_metadata ( proc , arch ) return proc else : return self . get_stub ( name , arch )