'val is a boolean. It sets the function as noreturn or not
TODO: reload the analyzer'

def set_noreturn(self, func_ad, val):

    if (func_ad not in self.__db.functions):
        return False
    if val:
        self.__db.functions[func_ad][FUNC_FLAGS] |= FUNC_FLAG_NORETURN
    else:
        self.__db.functions[func_ad][FUNC_FLAGS] &= (~ FUNC_FLAG_NORETURN)
