; LLVM IR from ros2/rcutils :: src (logging)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.rcutils_allocator_s = type { ptr, ptr, ptr, ptr, ptr }
%struct.rcutils_hash_map_s = type { ptr }
%struct.rcutils_error_string_s = type { [1024 x i8] }

@g_rcutils_logging_initialized = external dso_local global i8, align 1
@.str.6 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [60 x i8], align 1
@g_rcutils_logging_allocator = external hidden global %struct.rcutils_allocator_s, align 8
@g_rcutils_logging_output_handler = external hidden global ptr, align 8
@g_rcutils_logging_default_logger_level = external hidden global i32, align 4
@.str.8 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [54 x i8], align 1
@stderr = external global ptr, align 8
@.str.11 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [185 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [11 x i8], align 1
@g_output_stream = external hidden global ptr, align 8
@stdout = external global ptr, align 8
@.str.16 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [15 x i8], align 1
@g_colorized_output = external hidden global i32, align 4
@.str.24 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [82 x i8], align 1
@g_rcutils_logging_default_output_format = external hidden global ptr, align 8
@g_rcutils_logging_severities_map = external hidden global %struct.rcutils_hash_map_s, align 8
@.str.26 = external hidden unnamed_addr constant [90 x i8], align 1
@g_rcutils_logging_severities_map_valid = external hidden global i8, align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @rcutils_logging_initialize_with_allocator(ptr noundef byval(%struct.rcutils_allocator_s) align 8 %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [1024 x i8], align 16
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca [1024 x i8], align 16
  %12 = alloca [1024 x i8], align 16
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca [1024 x i8], align 16
  %16 = alloca i32, align 4
  %17 = alloca %struct.rcutils_hash_map_s, align 8
  %18 = alloca i32, align 4
  %19 = alloca [1024 x i8], align 16
  %20 = alloca i32, align 4
  %21 = alloca %struct.rcutils_error_string_s, align 1
  %22 = load i8, ptr @g_rcutils_logging_initialized, align 1, !tbaa !5, !range !9, !noundef !10
  %23 = trunc i8 %22 to i1
  br i1 %23, label %24, label %25

24:                                               ; preds = %1
  store i32 0, ptr %2, align 4
  br label %214

25:                                               ; preds = %1
  %26 = call zeroext i1 @rcutils_allocator_is_valid(ptr noundef %0)
  br i1 %26, label %30, label %27

27:                                               ; preds = %25
  br label %28

28:                                               ; preds = %27
  call void @rcutils_set_error_state(ptr noundef @.str.6, ptr noundef @.str.7, i64 noundef 636)
  br label %29

29:                                               ; preds = %28
  store i32 11, ptr %2, align 4
  br label %214

30:                                               ; preds = %25
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 @g_rcutils_logging_allocator, ptr align 8 %0, i64 40, i1 false), !tbaa.struct !11
  store ptr @rcutils_logging_console_output_handler, ptr @g_rcutils_logging_output_handler, align 8, !tbaa !12
  store i32 20, ptr @g_rcutils_logging_default_logger_level, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  store ptr null, ptr %3, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %31 = call ptr @rcutils_get_env(ptr noundef @.str.8, ptr noundef %3)
  store ptr %31, ptr %4, align 8, !tbaa !12
  %32 = load ptr, ptr %4, align 8, !tbaa !12
  %33 = icmp ne ptr null, %32
  br i1 %33, label %34, label %55

34:                                               ; preds = %30
  br label %35

35:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 1024, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %36 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
  %37 = load ptr, ptr %4, align 8, !tbaa !12
  %38 = call i32 (ptr, i64, ptr, ...) @rcutils_snprintf(ptr noundef %36, i64 noundef 1024, ptr noundef @.str.9, ptr noundef %37)
  store i32 %38, ptr %6, align 4, !tbaa !14
  %39 = load i32, ptr %6, align 4, !tbaa !14
  %40 = icmp slt i32 %39, 0
  br i1 %40, label %41, label %47

41:                                               ; preds = %35
  br label %42

42:                                               ; preds = %41
  %43 = load ptr, ptr @stderr, align 8, !tbaa !12
  %44 = call i64 @fwrite(ptr noundef @.str.10, i64 noundef 1, i64 noundef 53, ptr noundef %43)
  br label %45

45:                                               ; preds = %42
  br label %46

46:                                               ; preds = %45
  br label %52

47:                                               ; preds = %35
  br label %48

48:                                               ; preds = %47
  %49 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
  call void @rcutils_set_error_state(ptr noundef %49, ptr noundef @.str.7, i64 noundef 648)
  br label %50

50:                                               ; preds = %48
  br label %51

51:                                               ; preds = %50
  br label %52

52:                                               ; preds = %51, %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %5) #6
  br label %53

53:                                               ; preds = %52
  br label %54

54:                                               ; preds = %53
  store i32 2, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %213

55:                                               ; preds = %30
  %56 = load ptr, ptr %3, align 8, !tbaa !12
  %57 = call i32 @strcmp(ptr noundef %56, ptr noundef @.str.11) #7
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %65

59:                                               ; preds = %55
  br label %60

60:                                               ; preds = %59
  %61 = load ptr, ptr @stderr, align 8, !tbaa !12
  %62 = call i64 @fwrite(ptr noundef @.str.12, i64 noundef 1, i64 noundef 184, ptr noundef %61)
  br label %63

63:                                               ; preds = %60
  br label %64

64:                                               ; preds = %63
  br label %65

65:                                               ; preds = %64, %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %66 = call i32 @rcutils_get_env_var_zero_or_one(ptr noundef @.str.13, ptr noundef @.str.14, ptr noundef @.str.15)
  store i32 %66, ptr %8, align 4, !tbaa !14
  %67 = load i32, ptr %8, align 4, !tbaa !14
  switch i32 %67, label %73 [
    i32 -1, label %68
    i32 2, label %69
    i32 0, label %69
    i32 1, label %71
  ]

68:                                               ; preds = %65
  store i32 11, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %212

69:                                               ; preds = %65, %65
  %70 = load ptr, ptr @stderr, align 8, !tbaa !12
  store ptr %70, ptr @g_output_stream, align 8, !tbaa !12
  br label %77

71:                                               ; preds = %65
  %72 = load ptr, ptr @stdout, align 8, !tbaa !12
  store ptr %72, ptr @g_output_stream, align 8, !tbaa !12
  br label %77

73:                                               ; preds = %65
  br label %74

74:                                               ; preds = %73
  call void @rcutils_set_error_state(ptr noundef @.str.16, ptr noundef @.str.7, i64 noundef 677)
  br label %75

75:                                               ; preds = %74
  br label %76

76:                                               ; preds = %75
  store i32 2, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %212

77:                                               ; preds = %71, %69
  %78 = call i32 @rcutils_get_env_var_zero_or_one(ptr noundef @.str.17, ptr noundef @.str.18, ptr noundef @.str.19)
  store i32 %78, ptr %8, align 4, !tbaa !14
  %79 = load i32, ptr %8, align 4, !tbaa !14
  %80 = icmp eq i32 -1, %79
  br i1 %80, label %81, label %82

81:                                               ; preds = %77
  store i32 11, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %212

82:                                               ; preds = %77
  %83 = load i32, ptr %8, align 4, !tbaa !14
  %84 = icmp eq i32 0, %83
  br i1 %84, label %88, label %85

85:                                               ; preds = %82
  %86 = load i32, ptr %8, align 4, !tbaa !14
  %87 = icmp eq i32 1, %86
  br i1 %87, label %88, label %129

88:                                               ; preds = %85, %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %89 = load i32, ptr %8, align 4, !tbaa !14
  %90 = icmp eq i32 %89, 0
  %91 = zext i1 %90 to i64
  %92 = select i1 %90, i32 2, i32 1
  store i32 %92, ptr %9, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %93 = load i32, ptr %9, align 4, !tbaa !14
  %94 = icmp eq i32 %93, 1
  %95 = zext i1 %94 to i64
  %96 = select i1 %94, i32 0, i32 0
  %97 = sext i32 %96 to i64
  store i64 %97, ptr %10, align 8, !tbaa !16
  %98 = load ptr, ptr @g_output_stream, align 8, !tbaa !12
  %99 = load i32, ptr %9, align 4, !tbaa !14
  %100 = load i64, ptr %10, align 8, !tbaa !16
  %101 = call i32 @setvbuf(ptr noundef %98, ptr noundef null, i32 noundef %99, i64 noundef %100) #6
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %103, label %125

103:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 1024, ptr %11) #6
  %104 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  call void @rcutils_strerror(ptr noundef %104, i64 noundef 1024)
  br label %105

105:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 1024, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %106 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  %107 = getelementptr inbounds [1024 x i8], ptr %11, i64 0, i64 0
  %108 = call i32 (ptr, i64, ptr, ...) @rcutils_snprintf(ptr noundef %106, i64 noundef 1024, ptr noundef @.str.20, ptr noundef %107)
  store i32 %108, ptr %13, align 4, !tbaa !14
  %109 = load i32, ptr %13, align 4, !tbaa !14
  %110 = icmp slt i32 %109, 0
  br i1 %110, label %111, label %117

111:                                              ; preds = %105
  br label %112

112:                                              ; preds = %111
  %113 = load ptr, ptr @stderr, align 8, !tbaa !12
  %114 = call i64 @fwrite(ptr noundef @.str.10, i64 noundef 1, i64 noundef 53, ptr noundef %113)
  br label %115

115:                                              ; preds = %112
  br label %116

116:                                              ; preds = %115
  br label %122

117:                                              ; preds = %105
  br label %118

118:                                              ; preds = %117
  %119 = getelementptr inbounds [1024 x i8], ptr %12, i64 0, i64 0
  call void @rcutils_set_error_state(ptr noundef %119, ptr noundef @.str.7, i64 noundef 700)
  br label %120

120:                                              ; preds = %118
  br label %121

121:                                              ; preds = %120
  br label %122

122:                                              ; preds = %121, %116
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %12) #6
  br label %123

123:                                              ; preds = %122
  br label %124

124:                                              ; preds = %123
  store i32 2, ptr %2, align 4
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 1024, ptr %11) #6
  br label %126

125:                                              ; preds = %88
  store i32 0, ptr %7, align 4
  br label %126

126:                                              ; preds = %125, %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  %127 = load i32, ptr %7, align 4
  switch i32 %127, label %212 [
    i32 0, label %128
  ]

128:                                              ; preds = %126
  br label %137

129:                                              ; preds = %85
  %130 = load i32, ptr %8, align 4, !tbaa !14
  %131 = icmp ne i32 2, %130
  br i1 %131, label %132, label %136

132:                                              ; preds = %129
  br label %133

133:                                              ; preds = %132
  call void @rcutils_set_error_state(ptr noundef @.str.16, ptr noundef @.str.7, i64 noundef 705)
  br label %134

134:                                              ; preds = %133
  br label %135

135:                                              ; preds = %134
  store i32 2, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %212

136:                                              ; preds = %129
  br label %137

137:                                              ; preds = %136, %128
  %138 = call i32 @rcutils_get_env_var_zero_or_one(ptr noundef @.str.21, ptr noundef @.str.22, ptr noundef @.str.23)
  store i32 %138, ptr %8, align 4, !tbaa !14
  %139 = load i32, ptr %8, align 4, !tbaa !14
  switch i32 %139, label %144 [
    i32 -1, label %140
    i32 2, label %141
    i32 0, label %142
    i32 1, label %143
  ]

140:                                              ; preds = %137
  store i32 11, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %212

141:                                              ; preds = %137
  store i32 2, ptr @g_colorized_output, align 4, !tbaa !14
  br label %148

142:                                              ; preds = %137
  store i32 0, ptr @g_colorized_output, align 4, !tbaa !14
  br label %148

143:                                              ; preds = %137
  store i32 1, ptr @g_colorized_output, align 4, !tbaa !14
  br label %148

144:                                              ; preds = %137
  br label %145

145:                                              ; preds = %144
  call void @rcutils_set_error_state(ptr noundef @.str.16, ptr noundef @.str.7, i64 noundef 726)
  br label %146

146:                                              ; preds = %145
  br label %147

147:                                              ; preds = %146
  store i32 2, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %212

148:                                              ; preds = %143, %142, %141
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %149 = call ptr @rcutils_get_env(ptr noundef @.str.24, ptr noundef %14)
  store ptr %149, ptr %4, align 8, !tbaa !12
  %150 = load ptr, ptr %4, align 8, !tbaa !12
  %151 = icmp ne ptr null, %150
  br i1 %151, label %152, label %174

152:                                              ; preds = %148
  br label %153

153:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 1024, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %154 = getelementptr inbounds [1024 x i8], ptr %15, i64 0, i64 0
  %155 = load ptr, ptr %4, align 8, !tbaa !12
  %156 = call i32 (ptr, i64, ptr, ...) @rcutils_snprintf(ptr noundef %154, i64 noundef 1024, ptr noundef @.str.25, ptr noundef %155)
  store i32 %156, ptr %16, align 4, !tbaa !14
  %157 = load i32, ptr %16, align 4, !tbaa !14
  %158 = icmp slt i32 %157, 0
  br i1 %158, label %159, label %165

159:                                              ; preds = %153
  br label %160

160:                                              ; preds = %159
  %161 = load ptr, ptr @stderr, align 8, !tbaa !12
  %162 = call i64 @fwrite(ptr noundef @.str.10, i64 noundef 1, i64 noundef 53, ptr noundef %161)
  br label %163

163:                                              ; preds = %160
  br label %164

164:                                              ; preds = %163
  br label %170

165:                                              ; preds = %153
  br label %166

166:                                              ; preds = %165
  %167 = getelementptr inbounds [1024 x i8], ptr %15, i64 0, i64 0
  call void @rcutils_set_error_state(ptr noundef %167, ptr noundef @.str.7, i64 noundef 736)
  br label %168

168:                                              ; preds = %166
  br label %169

169:                                              ; preds = %168
  br label %170

170:                                              ; preds = %169, %164
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %15) #6
  br label %171

171:                                              ; preds = %170
  br label %172

172:                                              ; preds = %171
  %173 = load ptr, ptr @g_rcutils_logging_default_output_format, align 8, !tbaa !12
  store ptr %173, ptr %14, align 8, !tbaa !12
  br label %181

174:                                              ; preds = %148
  %175 = load ptr, ptr %14, align 8, !tbaa !12
  %176 = call i32 @strcmp(ptr noundef %175, ptr noundef @.str.11) #7
  %177 = icmp eq i32 %176, 0
  br i1 %177, label %178, label %180

178:                                              ; preds = %174
  %179 = load ptr, ptr @g_rcutils_logging_default_output_format, align 8, !tbaa !12
  store ptr %179, ptr %14, align 8, !tbaa !12
  br label %180

180:                                              ; preds = %178, %174
  br label %181

181:                                              ; preds = %180, %172
  %182 = load ptr, ptr %14, align 8, !tbaa !12
  call void @create_format_string(ptr noundef %182)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %183 = call ptr @rcutils_get_zero_initialized_hash_map()
  %184 = getelementptr inbounds %struct.rcutils_hash_map_s, ptr %17, i32 0, i32 0
  store ptr %183, ptr %184, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 @g_rcutils_logging_severities_map, ptr align 8 %17, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %185 = call i32 @rcutils_hash_map_init(ptr noundef @g_rcutils_logging_severities_map, i64 noundef 2, i64 noundef 8, i64 noundef 4, ptr noundef @rcutils_hash_map_string_hash_func, ptr noundef @rcutils_hash_map_string_cmp_func, ptr noundef %0)
  store i32 %185, ptr %18, align 4, !tbaa !14
  %186 = load i32, ptr %18, align 4, !tbaa !14
  %187 = icmp ne i32 %186, 0
  br i1 %187, label %188, label %210

188:                                              ; preds = %181
  call void @rcutils_reset_error()
  br label %189

189:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 1024, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %190 = getelementptr inbounds [1024 x i8], ptr %19, i64 0, i64 0
  call void @rcutils_get_error_string(ptr dead_on_unwind writable sret(%struct.rcutils_error_string_s) align 1 %21)
  %191 = getelementptr inbounds %struct.rcutils_error_string_s, ptr %21, i32 0, i32 0
  %192 = getelementptr inbounds [1024 x i8], ptr %191, i64 0, i64 0
  %193 = call i32 (ptr, i64, ptr, ...) @rcutils_snprintf(ptr noundef %190, i64 noundef 1024, ptr noundef @.str.26, ptr noundef %192)
  store i32 %193, ptr %20, align 4, !tbaa !14
  %194 = load i32, ptr %20, align 4, !tbaa !14
  %195 = icmp slt i32 %194, 0
  br i1 %195, label %196, label %202

196:                                              ; preds = %189
  br label %197

197:                                              ; preds = %196
  %198 = load ptr, ptr @stderr, align 8, !tbaa !12
  %199 = call i64 @fwrite(ptr noundef @.str.10, i64 noundef 1, i64 noundef 53, ptr noundef %198)
  br label %200

200:                                              ; preds = %197
  br label %201

201:                                              ; preds = %200
  br label %207

202:                                              ; preds = %189
  br label %203

203:                                              ; preds = %202
  %204 = getelementptr inbounds [1024 x i8], ptr %19, i64 0, i64 0
  call void @rcutils_set_error_state(ptr noundef %204, ptr noundef @.str.7, i64 noundef 754)
  br label %205

205:                                              ; preds = %203
  br label %206

206:                                              ; preds = %205
  br label %207

207:                                              ; preds = %206, %201
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %19) #6
  br label %208

208:                                              ; preds = %207
  br label %209

209:                                              ; preds = %208
  store i8 0, ptr @g_rcutils_logging_severities_map_valid, align 1, !tbaa !5
  store i32 2, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %211

210:                                              ; preds = %181
  call void @parse_and_create_handlers_list()
  store i8 1, ptr @g_rcutils_logging_severities_map_valid, align 1, !tbaa !5
  store i8 1, ptr @g_rcutils_logging_initialized, align 1, !tbaa !5
  store i32 0, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %211

211:                                              ; preds = %210, %209
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %212

212:                                              ; preds = %211, %147, %140, %135, %126, %81, %76, %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %213

213:                                              ; preds = %212, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %214

214:                                              ; preds = %213, %29, %24
  %215 = load i32, ptr %2, align 4
  ret i32 %215
}

declare zeroext i1 @rcutils_allocator_is_valid(ptr noundef) #1

declare void @rcutils_set_error_state(ptr noundef, ptr noundef, i64 noundef) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: nounwind uwtable
declare dso_local void @rcutils_logging_console_output_handler(ptr noundef, i32 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #3

declare ptr @rcutils_get_env(ptr noundef, ptr noundef) #1

declare i32 @rcutils_snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #1

declare i64 @fwrite(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #3

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden i32 @rcutils_get_env_var_zero_or_one(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind
declare i32 @setvbuf(ptr noundef, ptr noundef, i32 noundef, i64 noundef) #5

declare void @rcutils_strerror(ptr noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @create_format_string(ptr noundef) #0

declare ptr @rcutils_get_zero_initialized_hash_map() #1

declare i32 @rcutils_hash_map_init(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i64 @rcutils_hash_map_string_hash_func(ptr noundef) #1

declare i32 @rcutils_hash_map_string_cmp_func(ptr noundef, ptr noundef) #1

declare void @rcutils_reset_error() #1

declare void @rcutils_get_error_string(ptr dead_on_unwind writable sret(%struct.rcutils_error_string_s) align 1) #1

; Function Attrs: nounwind uwtable
declare hidden void @parse_and_create_handlers_list() #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"_Bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{i8 0, i8 2}
!10 = !{}
!11 = !{i64 0, i64 8, !12, i64 8, i64 8, !12, i64 16, i64 8, !12, i64 24, i64 8, !12, i64 32, i64 8, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{i64 0, i64 8, !12}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.rcutils_allocator_s = type { ptr, ptr, ptr, ptr, ptr }
%struct.rcutils_hash_map_s = type { ptr }
%struct.rcutils_error_string_s = type { [1024 x i8] }

@g_rcutils_logging_initialized = external dso_local local_unnamed_addr global i8, align 1
@.str.6 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [60 x i8], align 1
@g_rcutils_logging_allocator = external hidden local_unnamed_addr global %struct.rcutils_allocator_s, align 8
@g_rcutils_logging_output_handler = external hidden local_unnamed_addr global ptr, align 8
@g_rcutils_logging_default_logger_level = external hidden local_unnamed_addr global i32, align 4
@.str.8 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [54 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.11 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [185 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [11 x i8], align 1
@g_output_stream = external hidden local_unnamed_addr global ptr, align 8
@stdout = external local_unnamed_addr global ptr, align 8
@.str.16 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [15 x i8], align 1
@g_colorized_output = external hidden local_unnamed_addr global i32, align 4
@.str.24 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [82 x i8], align 1
@g_rcutils_logging_default_output_format = external hidden local_unnamed_addr global ptr, align 8
@g_rcutils_logging_severities_map = external hidden global %struct.rcutils_hash_map_s, align 8
@.str.26 = external hidden unnamed_addr constant [90 x i8], align 1
@g_rcutils_logging_severities_map_valid = external hidden local_unnamed_addr global i8, align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 12) i32 @rcutils_logging_initialize_with_allocator(ptr noundef byval(%struct.rcutils_allocator_s) align 8 %0) local_unnamed_addr #0 {
  %2 = alloca ptr, align 8
  %3 = alloca [1024 x i8], align 16
  %4 = alloca [1024 x i8], align 16
  %5 = alloca [1024 x i8], align 16
  %6 = alloca ptr, align 8
  %7 = alloca [1024 x i8], align 16
  %8 = alloca [1024 x i8], align 16
  %9 = alloca %struct.rcutils_error_string_s, align 1
  %10 = load i8, ptr @g_rcutils_logging_initialized, align 1, !tbaa !5, !range !9, !noundef !10
  %11 = trunc nuw i8 %10 to i1
  br i1 %11, label %88, label %12

12:                                               ; preds = %1
  %13 = call zeroext i1 @rcutils_allocator_is_valid(ptr noundef nonnull %0) #6
  br i1 %13, label %15, label %14

14:                                               ; preds = %12
  call void @rcutils_set_error_state(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, i64 noundef 636) #6
  br label %88

15:                                               ; preds = %12
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) @g_rcutils_logging_allocator, ptr noundef nonnull align 8 dereferenceable(40) %0, i64 40, i1 false), !tbaa.struct !11
  store ptr @rcutils_logging_console_output_handler, ptr @g_rcutils_logging_output_handler, align 8, !tbaa !12
  store i32 20, ptr @g_rcutils_logging_default_logger_level, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  store ptr null, ptr %2, align 8, !tbaa !12
  %16 = call ptr @rcutils_get_env(ptr noundef nonnull @.str.8, ptr noundef nonnull %2) #6
  %.not = icmp eq ptr %16, null
  br i1 %.not, label %25, label %17

17:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %3) #6
  %18 = call i32 (ptr, i64, ptr, ...) @rcutils_snprintf(ptr noundef nonnull %3, i64 noundef 1024, ptr noundef nonnull @.str.9, ptr noundef nonnull %16) #6
  %19 = icmp slt i32 %18, 0
  br i1 %19, label %20, label %23

20:                                               ; preds = %17
  %21 = load ptr, ptr @stderr, align 8, !tbaa !12
  %22 = call i64 @fwrite(ptr noundef nonnull @.str.10, i64 noundef 1, i64 noundef 53, ptr noundef %21) #7
  br label %24

23:                                               ; preds = %17
  call void @rcutils_set_error_state(ptr noundef nonnull %3, ptr noundef nonnull @.str.7, i64 noundef 648) #6
  br label %24

24:                                               ; preds = %23, %20
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %3) #6
  br label %87

25:                                               ; preds = %15
  %26 = load ptr, ptr %2, align 8, !tbaa !12
  %27 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %26, ptr noundef nonnull dereferenceable(1) @.str.11) #8
  %.not24 = icmp eq i32 %27, 0
  br i1 %.not24, label %31, label %28

28:                                               ; preds = %25
  %29 = load ptr, ptr @stderr, align 8, !tbaa !12
  %30 = call i64 @fwrite(ptr noundef nonnull @.str.12, i64 noundef 1, i64 noundef 184, ptr noundef %29) #7
  br label %31

31:                                               ; preds = %28, %25
  %32 = call i32 @rcutils_get_env_var_zero_or_one(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.15)
  switch i32 %32, label %34 [
    i32 -1, label %87
    i32 2, label %35
    i32 0, label %35
    i32 1, label %33
  ]

33:                                               ; preds = %31
  br label %35

34:                                               ; preds = %31
  call void @rcutils_set_error_state(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.7, i64 noundef 677) #6
  br label %87

35:                                               ; preds = %31, %31, %33
  %storemerge.in = phi ptr [ @stdout, %33 ], [ @stderr, %31 ], [ @stderr, %31 ]
  %storemerge = load ptr, ptr %storemerge.in, align 8, !tbaa !12
  store ptr %storemerge, ptr @g_output_stream, align 8, !tbaa !12
  %36 = call i32 @rcutils_get_env_var_zero_or_one(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.19)
  %37 = icmp eq i32 %36, -1
  br i1 %37, label %87, label %38

38:                                               ; preds = %35
  %or.cond = icmp ult i32 %36, 2
  br i1 %or.cond, label %39, label %52

39:                                               ; preds = %38
  %40 = icmp eq i32 %36, 0
  %41 = select i1 %40, i32 2, i32 1
  %42 = load ptr, ptr @g_output_stream, align 8, !tbaa !12
  %43 = call i32 @setvbuf(ptr noundef %42, ptr noundef null, i32 noundef %41, i64 noundef 0) #6
  %.not26 = icmp eq i32 %43, 0
  br i1 %.not26, label %.critedge, label %44

44:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %4) #6
  call void @rcutils_strerror(ptr noundef nonnull %4, i64 noundef 1024) #6
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %5) #6
  %45 = call i32 (ptr, i64, ptr, ...) @rcutils_snprintf(ptr noundef nonnull %5, i64 noundef 1024, ptr noundef nonnull @.str.20, ptr noundef nonnull %4) #6
  %46 = icmp slt i32 %45, 0
  br i1 %46, label %47, label %50

47:                                               ; preds = %44
  %48 = load ptr, ptr @stderr, align 8, !tbaa !12
  %49 = call i64 @fwrite(ptr noundef nonnull @.str.10, i64 noundef 1, i64 noundef 53, ptr noundef %48) #7
  br label %51

50:                                               ; preds = %44
  call void @rcutils_set_error_state(ptr noundef nonnull %5, ptr noundef nonnull @.str.7, i64 noundef 700) #6
  br label %51

51:                                               ; preds = %50, %47
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %4) #6
  br label %87

52:                                               ; preds = %38
  %.not25 = icmp eq i32 %36, 2
  br i1 %.not25, label %.critedge, label %53

53:                                               ; preds = %52
  call void @rcutils_set_error_state(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.7, i64 noundef 705) #6
  br label %87

.critedge:                                        ; preds = %39, %52
  %54 = call i32 @rcutils_get_env_var_zero_or_one(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.23)
  switch i32 %54, label %55 [
    i32 -1, label %87
    i32 2, label %56
    i32 0, label %56
    i32 1, label %56
  ]

55:                                               ; preds = %.critedge
  call void @rcutils_set_error_state(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.7, i64 noundef 726) #6
  br label %87

56:                                               ; preds = %.critedge, %.critedge, %.critedge
  store i32 %54, ptr @g_colorized_output, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %57 = call ptr @rcutils_get_env(ptr noundef nonnull @.str.24, ptr noundef nonnull %6) #6
  %.not27 = icmp eq ptr %57, null
  br i1 %.not27, label %67, label %58

58:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %7) #6
  %59 = call i32 (ptr, i64, ptr, ...) @rcutils_snprintf(ptr noundef nonnull %7, i64 noundef 1024, ptr noundef nonnull @.str.25, ptr noundef nonnull %57) #6
  %60 = icmp slt i32 %59, 0
  br i1 %60, label %61, label %64

61:                                               ; preds = %58
  %62 = load ptr, ptr @stderr, align 8, !tbaa !12
  %63 = call i64 @fwrite(ptr noundef nonnull @.str.10, i64 noundef 1, i64 noundef 53, ptr noundef %62) #7
  br label %65

64:                                               ; preds = %58
  call void @rcutils_set_error_state(ptr noundef nonnull %7, ptr noundef nonnull @.str.7, i64 noundef 736) #6
  br label %65

65:                                               ; preds = %64, %61
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %7) #6
  %66 = load ptr, ptr @g_rcutils_logging_default_output_format, align 8, !tbaa !12
  store ptr %66, ptr %6, align 8, !tbaa !12
  br label %73

67:                                               ; preds = %56
  %68 = load ptr, ptr %6, align 8, !tbaa !12
  %69 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %68, ptr noundef nonnull dereferenceable(1) @.str.11) #8
  %70 = icmp eq i32 %69, 0
  br i1 %70, label %71, label %73

71:                                               ; preds = %67
  %72 = load ptr, ptr @g_rcutils_logging_default_output_format, align 8, !tbaa !12
  store ptr %72, ptr %6, align 8, !tbaa !12
  br label %73

73:                                               ; preds = %67, %71, %65
  %74 = phi ptr [ %68, %67 ], [ %72, %71 ], [ %66, %65 ]
  call void @create_format_string(ptr noundef %74)
  %75 = call ptr @rcutils_get_zero_initialized_hash_map() #6
  store ptr %75, ptr @g_rcutils_logging_severities_map, align 8, !tbaa !12
  %76 = call i32 @rcutils_hash_map_init(ptr noundef nonnull @g_rcutils_logging_severities_map, i64 noundef 2, i64 noundef 8, i64 noundef 4, ptr noundef nonnull @rcutils_hash_map_string_hash_func, ptr noundef nonnull @rcutils_hash_map_string_cmp_func, ptr noundef nonnull %0) #6
  %.not28 = icmp eq i32 %76, 0
  br i1 %.not28, label %85, label %77

77:                                               ; preds = %73
  call void @rcutils_reset_error() #6
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %8) #6
  call void @rcutils_get_error_string(ptr dead_on_unwind nonnull writable sret(%struct.rcutils_error_string_s) align 1 %9) #6
  %78 = call i32 (ptr, i64, ptr, ...) @rcutils_snprintf(ptr noundef nonnull %8, i64 noundef 1024, ptr noundef nonnull @.str.26, ptr noundef nonnull %9) #6
  %79 = icmp slt i32 %78, 0
  br i1 %79, label %80, label %83

80:                                               ; preds = %77
  %81 = load ptr, ptr @stderr, align 8, !tbaa !12
  %82 = call i64 @fwrite(ptr noundef nonnull @.str.10, i64 noundef 1, i64 noundef 53, ptr noundef %81) #7
  br label %84

83:                                               ; preds = %77
  call void @rcutils_set_error_state(ptr noundef nonnull %8, ptr noundef nonnull @.str.7, i64 noundef 754) #6
  br label %84

84:                                               ; preds = %83, %80
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %8) #6
  store i8 0, ptr @g_rcutils_logging_severities_map_valid, align 1, !tbaa !5
  br label %86

85:                                               ; preds = %73
  call void @parse_and_create_handlers_list()
  store i8 1, ptr @g_rcutils_logging_severities_map_valid, align 1, !tbaa !5
  store i8 1, ptr @g_rcutils_logging_initialized, align 1, !tbaa !5
  br label %86

86:                                               ; preds = %85, %84
  %.1 = phi i32 [ 2, %84 ], [ 0, %85 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %87

87:                                               ; preds = %51, %34, %53, %55, %86, %31, %35, %.critedge, %24
  %.3 = phi i32 [ 2, %24 ], [ 2, %34 ], [ 2, %55 ], [ %.1, %86 ], [ 2, %51 ], [ 2, %53 ], [ 11, %31 ], [ 11, %35 ], [ 11, %.critedge ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  br label %88

88:                                               ; preds = %1, %87, %14
  %.4 = phi i32 [ %.3, %87 ], [ 11, %14 ], [ 0, %1 ]
  ret i32 %.4
}

declare zeroext i1 @rcutils_allocator_is_valid(ptr noundef) local_unnamed_addr #1

declare void @rcutils_set_error_state(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: nounwind uwtable
declare dso_local void @rcutils_logging_console_output_handler(ptr noundef, i32 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #3

declare ptr @rcutils_get_env(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @rcutils_snprintf(ptr noundef, i64 noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i64 @fwrite(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
declare hidden i32 @rcutils_get_env_var_zero_or_one(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @setvbuf(ptr nocapture noundef, ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #4

declare void @rcutils_strerror(ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @create_format_string(ptr noundef) local_unnamed_addr #0

declare ptr @rcutils_get_zero_initialized_hash_map() local_unnamed_addr #1

declare i32 @rcutils_hash_map_init(ptr noundef, i64 noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i64 @rcutils_hash_map_string_hash_func(ptr noundef) #1

declare i32 @rcutils_hash_map_string_cmp_func(ptr noundef, ptr noundef) #1

declare void @rcutils_reset_error() local_unnamed_addr #1

declare void @rcutils_get_error_string(ptr dead_on_unwind writable sret(%struct.rcutils_error_string_s) align 1) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @parse_and_create_handlers_list() local_unnamed_addr #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { cold }
attributes #8 = { nounwind willreturn memory(read) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"_Bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{i8 0, i8 2}
!10 = !{}
!11 = !{i64 0, i64 8, !12, i64 8, i64 8, !12, i64 16, i64 8, !12, i64 24, i64 8, !12, i64 32, i64 8, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass