; 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_char_array_s = type { ptr, i8, i64, i64, %struct.rcutils_allocator_s }
%struct.__va_list_tag = type { i32, i32, ptr, ptr }

@g_rcutils_logging_initialized = external dso_local global i8, align 1
@g_rcutils_logging_allocator = external hidden global %struct.rcutils_allocator_s, align 8
@.str.10 = external hidden unnamed_addr constant [54 x i8], align 1
@stderr = external global ptr, align 8
@g_output_stream = external hidden global ptr, align 8
@g_colorized_output = external hidden global i32, align 4
@.str.54 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [23 x i8], align 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) #0

; Function Attrs: nounwind uwtable
define dso_local void @rcutils_logging_console_output_handler(ptr noundef %0, i32 noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) #1 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  %16 = alloca [1024 x i8], align 16
  %17 = alloca i32, align 4
  %18 = alloca [1024 x i8], align 16
  %19 = alloca %struct.rcutils_char_array_s, align 8
  %20 = alloca [1024 x i8], align 16
  %21 = alloca %struct.rcutils_char_array_s, align 8
  %22 = alloca ptr, align 8
  %23 = alloca [1024 x i8], align 16
  %24 = alloca i32, align 4
  %25 = alloca [1024 x i8], align 16
  %26 = alloca i32, align 4
  %27 = alloca [1024 x i8], align 16
  %28 = alloca i32, align 4
  %29 = alloca [1024 x i8], align 16
  %30 = alloca i32, align 4
  %31 = alloca [1024 x i8], align 16
  %32 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i64 %3, ptr %10, align 8, !tbaa !11
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #7
  store i8 0, ptr %14, align 1, !tbaa !13
  %33 = load i8, ptr @g_rcutils_logging_initialized, align 1, !tbaa !13, !range !15, !noundef !16
  %34 = trunc i8 %33 to i1
  br i1 %34, label %41, label %35

35:                                               ; preds = %6
  br label %36

36:                                               ; preds = %35
  %37 = load ptr, ptr @stderr, align 8, !tbaa !5
  %38 = call i64 @fwrite(ptr noundef @.str.54, i64 noundef 1, i64 noundef 89, ptr noundef %37)
  br label %39

39:                                               ; preds = %36
  br label %40

40:                                               ; preds = %39
  store i32 1, ptr %15, align 4
  br label %308

41:                                               ; preds = %6
  %42 = load i32, ptr %8, align 4, !tbaa !9
  switch i32 %42, label %44 [
    i32 10, label %43
    i32 20, label %43
    i32 30, label %43
    i32 40, label %43
    i32 50, label %43
  ]

43:                                               ; preds = %41, %41, %41, %41, %41
  br label %69

44:                                               ; preds = %41
  br label %45

45:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 1024, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %46 = getelementptr inbounds [1024 x i8], ptr %16, i64 0, i64 0
  %47 = load i32, ptr %8, align 4, !tbaa !9
  %48 = call i32 (ptr, i64, ptr, ...) @rcutils_snprintf(ptr noundef %46, i64 noundef 1024, ptr noundef @.str.55, i32 noundef %47)
  store i32 %48, ptr %17, align 4, !tbaa !9
  %49 = load i32, ptr %17, align 4, !tbaa !9
  %50 = icmp slt i32 %49, 0
  br i1 %50, label %51, label %57

51:                                               ; preds = %45
  br label %52

52:                                               ; preds = %51
  %53 = load ptr, ptr @stderr, align 8, !tbaa !5
  %54 = call i64 @fwrite(ptr noundef @.str.10, i64 noundef 1, i64 noundef 53, ptr noundef %53)
  br label %55

55:                                               ; preds = %52
  br label %56

56:                                               ; preds = %55
  br label %66

57:                                               ; preds = %45
  br label %58

58:                                               ; preds = %57
  %59 = getelementptr inbounds [1024 x i8], ptr %16, i64 0, i64 0
  %60 = getelementptr inbounds [1024 x i8], ptr %16, i64 0, i64 0
  %61 = call i64 @strlen(ptr noundef %60) #8
  %62 = load ptr, ptr @stderr, align 8, !tbaa !5
  %63 = call i64 @fwrite(ptr noundef %59, i64 noundef 1, i64 noundef %61, ptr noundef %62)
  br label %64

64:                                               ; preds = %58
  br label %65

65:                                               ; preds = %64
  br label %66

66:                                               ; preds = %65, %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr %16) #7
  br label %67

67:                                               ; preds = %66
  br label %68

68:                                               ; preds = %67
  store i32 1, ptr %15, align 4
  br label %308

69:                                               ; preds = %43
  %70 = load i32, ptr @g_colorized_output, align 4, !tbaa !9
  %71 = icmp eq i32 %70, 1
  br i1 %71, label %72, label %73

72:                                               ; preds = %69
  store i8 1, ptr %14, align 1, !tbaa !13
  br label %84

73:                                               ; preds = %69
  %74 = load i32, ptr @g_colorized_output, align 4, !tbaa !9
  %75 = icmp eq i32 %74, 0
  br i1 %75, label %76, label %77

76:                                               ; preds = %73
  store i8 0, ptr %14, align 1, !tbaa !13
  br label %83

77:                                               ; preds = %73
  %78 = load ptr, ptr @g_output_stream, align 8, !tbaa !5
  %79 = call i32 @fileno(ptr noundef %78) #7
  %80 = call i32 @isatty(i32 noundef %79) #7
  %81 = icmp ne i32 %80, 0
  %82 = zext i1 %81 to i8
  store i8 %82, ptr %14, align 1, !tbaa !13
  br label %83

83:                                               ; preds = %77, %76
  br label %84

84:                                               ; preds = %83, %72
  call void @llvm.lifetime.start.p0(i64 1024, ptr %18) #7
  call void @llvm.memset.p0.i64(ptr align 16 %18, i8 0, i64 1024, i1 false)
  call void @llvm.lifetime.start.p0(i64 72, ptr %19) #7
  %85 = getelementptr inbounds %struct.rcutils_char_array_s, ptr %19, i32 0, i32 0
  %86 = getelementptr inbounds [1024 x i8], ptr %18, i64 0, i64 0
  store ptr %86, ptr %85, align 8, !tbaa !17
  %87 = getelementptr inbounds %struct.rcutils_char_array_s, ptr %19, i32 0, i32 1
  store i8 0, ptr %87, align 8, !tbaa !20
  %88 = getelementptr inbounds %struct.rcutils_char_array_s, ptr %19, i32 0, i32 2
  store i64 0, ptr %88, align 8, !tbaa !21
  %89 = getelementptr inbounds %struct.rcutils_char_array_s, ptr %19, i32 0, i32 3
  store i64 1024, ptr %89, align 8, !tbaa !22
  %90 = getelementptr inbounds %struct.rcutils_char_array_s, ptr %19, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %90, ptr align 8 @g_rcutils_logging_allocator, i64 40, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.start.p0(i64 1024, ptr %20) #7
  call void @llvm.memset.p0.i64(ptr align 16 %20, i8 0, i64 1024, i1 false)
  call void @llvm.lifetime.start.p0(i64 72, ptr %21) #7
  %91 = getelementptr inbounds %struct.rcutils_char_array_s, ptr %21, i32 0, i32 0
  %92 = getelementptr inbounds [1024 x i8], ptr %20, i64 0, i64 0
  store ptr %92, ptr %91, align 8, !tbaa !17
  %93 = getelementptr inbounds %struct.rcutils_char_array_s, ptr %21, i32 0, i32 1
  store i8 0, ptr %93, align 8, !tbaa !20
  %94 = getelementptr inbounds %struct.rcutils_char_array_s, ptr %21, i32 0, i32 2
  store i64 0, ptr %94, align 8, !tbaa !21
  %95 = getelementptr inbounds %struct.rcutils_char_array_s, ptr %21, i32 0, i32 3
  store i64 1024, ptr %95, align 8, !tbaa !22
  %96 = getelementptr inbounds %struct.rcutils_char_array_s, ptr %21, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %96, ptr align 8 @g_rcutils_logging_allocator, i64 40, i1 false), !tbaa.struct !23
  %97 = load i8, ptr %14, align 1, !tbaa !13, !range !15, !noundef !16
  %98 = trunc i8 %97 to i1
  br i1 %98, label %99, label %167

99:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  store ptr null, ptr %22, align 8, !tbaa !5
  %100 = load i32, ptr %8, align 4, !tbaa !9
  switch i32 %100, label %105 [
    i32 10, label %101
    i32 20, label %102
    i32 30, label %103
    i32 40, label %104
    i32 50, label %104
  ]

101:                                              ; preds = %99
  store ptr @.str.56, ptr %22, align 8, !tbaa !5
  br label %130

102:                                              ; preds = %99
  store ptr @.str.57, ptr %22, align 8, !tbaa !5
  br label %130

103:                                              ; preds = %99
  store ptr @.str.58, ptr %22, align 8, !tbaa !5
  br label %130

104:                                              ; preds = %99, %99
  store ptr @.str.59, ptr %22, align 8, !tbaa !5
  br label %130

105:                                              ; preds = %99
  br label %106

106:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 1024, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %107 = getelementptr inbounds [1024 x i8], ptr %23, i64 0, i64 0
  %108 = load i32, ptr %8, align 4, !tbaa !9
  %109 = call i32 (ptr, i64, ptr, ...) @rcutils_snprintf(ptr noundef %107, i64 noundef 1024, ptr noundef @.str.55, i32 noundef %108)
  store i32 %109, ptr %24, align 4, !tbaa !9
  %110 = load i32, ptr %24, align 4, !tbaa !9
  %111 = icmp slt i32 %110, 0
  br i1 %111, label %112, label %118

112:                                              ; preds = %106
  br label %113

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

116:                                              ; preds = %113
  br label %117

117:                                              ; preds = %116
  br label %127

118:                                              ; preds = %106
  br label %119

119:                                              ; preds = %118
  %120 = getelementptr inbounds [1024 x i8], ptr %23, i64 0, i64 0
  %121 = getelementptr inbounds [1024 x i8], ptr %23, i64 0, i64 0
  %122 = call i64 @strlen(ptr noundef %121) #8
  %123 = load ptr, ptr @stderr, align 8, !tbaa !5
  %124 = call i64 @fwrite(ptr noundef %120, i64 noundef 1, i64 noundef %122, ptr noundef %123)
  br label %125

125:                                              ; preds = %119
  br label %126

126:                                              ; preds = %125
  br label %127

127:                                              ; preds = %126, %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr %23) #7
  br label %128

128:                                              ; preds = %127
  br label %129

129:                                              ; preds = %128
  store i32 11, ptr %13, align 4, !tbaa !9
  br label %130

130:                                              ; preds = %129, %104, %103, %102, %101
  %131 = load i32, ptr %13, align 4, !tbaa !9
  %132 = icmp eq i32 0, %131
  br i1 %132, label %133, label %166

133:                                              ; preds = %130
  %134 = load ptr, ptr %22, align 8, !tbaa !5
  %135 = load ptr, ptr %22, align 8, !tbaa !5
  %136 = call i64 @strlen(ptr noundef %135) #8
  %137 = call i32 @rcutils_char_array_strncat(ptr noundef %21, ptr noundef %134, i64 noundef %136)
  store i32 %137, ptr %13, align 4, !tbaa !9
  %138 = load i32, ptr %13, align 4, !tbaa !9
  %139 = icmp ne i32 0, %138
  br i1 %139, label %140, label %165

140:                                              ; preds = %133
  br label %141

141:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 1024, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %142 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  %143 = load i32, ptr %13, align 4, !tbaa !9
  %144 = call i32 (ptr, i64, ptr, ...) @rcutils_snprintf(ptr noundef %142, i64 noundef 1024, ptr noundef @.str.60, i32 noundef %143)
  store i32 %144, ptr %26, align 4, !tbaa !9
  %145 = load i32, ptr %26, align 4, !tbaa !9
  %146 = icmp slt i32 %145, 0
  br i1 %146, label %147, label %153

147:                                              ; preds = %141
  br label %148

148:                                              ; preds = %147
  %149 = load ptr, ptr @stderr, align 8, !tbaa !5
  %150 = call i64 @fwrite(ptr noundef @.str.10, i64 noundef 1, i64 noundef 53, ptr noundef %149)
  br label %151

151:                                              ; preds = %148
  br label %152

152:                                              ; preds = %151
  br label %162

153:                                              ; preds = %141
  br label %154

154:                                              ; preds = %153
  %155 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  %156 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  %157 = call i64 @strlen(ptr noundef %156) #8
  %158 = load ptr, ptr @stderr, align 8, !tbaa !5
  %159 = call i64 @fwrite(ptr noundef %155, i64 noundef 1, i64 noundef %157, ptr noundef %158)
  br label %160

160:                                              ; preds = %154
  br label %161

161:                                              ; preds = %160
  br label %162

162:                                              ; preds = %161, %152
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr %25) #7
  br label %163

163:                                              ; preds = %162
  br label %164

164:                                              ; preds = %163
  br label %165

165:                                              ; preds = %164, %133
  br label %166

166:                                              ; preds = %165, %130
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %167

167:                                              ; preds = %166, %84
  %168 = load i32, ptr %13, align 4, !tbaa !9
  %169 = icmp eq i32 0, %168
  br i1 %169, label %170, label %203

170:                                              ; preds = %167
  %171 = load ptr, ptr %11, align 8, !tbaa !5
  %172 = load ptr, ptr %12, align 8, !tbaa !5
  %173 = getelementptr inbounds [1 x %struct.__va_list_tag], ptr %172, i64 0, i64 0
  %174 = call i32 @rcutils_char_array_vsprintf(ptr noundef %19, ptr noundef %171, ptr noundef %173)
  store i32 %174, ptr %13, align 4, !tbaa !9
  %175 = load i32, ptr %13, align 4, !tbaa !9
  %176 = icmp ne i32 0, %175
  br i1 %176, label %177, label %202

177:                                              ; preds = %170
  br label %178

178:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 1024, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %179 = getelementptr inbounds [1024 x i8], ptr %27, i64 0, i64 0
  %180 = load i32, ptr %13, align 4, !tbaa !9
  %181 = call i32 (ptr, i64, ptr, ...) @rcutils_snprintf(ptr noundef %179, i64 noundef 1024, ptr noundef @.str.61, i32 noundef %180)
  store i32 %181, ptr %28, align 4, !tbaa !9
  %182 = load i32, ptr %28, align 4, !tbaa !9
  %183 = icmp slt i32 %182, 0
  br i1 %183, label %184, label %190

184:                                              ; preds = %178
  br label %185

185:                                              ; preds = %184
  %186 = load ptr, ptr @stderr, align 8, !tbaa !5
  %187 = call i64 @fwrite(ptr noundef @.str.10, i64 noundef 1, i64 noundef 53, ptr noundef %186)
  br label %188

188:                                              ; preds = %185
  br label %189

189:                                              ; preds = %188
  br label %199

190:                                              ; preds = %178
  br label %191

191:                                              ; preds = %190
  %192 = getelementptr inbounds [1024 x i8], ptr %27, i64 0, i64 0
  %193 = getelementptr inbounds [1024 x i8], ptr %27, i64 0, i64 0
  %194 = call i64 @strlen(ptr noundef %193) #8
  %195 = load ptr, ptr @stderr, align 8, !tbaa !5
  %196 = call i64 @fwrite(ptr noundef %192, i64 noundef 1, i64 noundef %194, ptr noundef %195)
  br label %197

197:                                              ; preds = %191
  br label %198

198:                                              ; preds = %197
  br label %199

199:                                              ; preds = %198, %189
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr %27) #7
  br label %200

200:                                              ; preds = %199
  br label %201

201:                                              ; preds = %200
  br label %202

202:                                              ; preds = %201, %170
  br label %203

203:                                              ; preds = %202, %167
  %204 = load i32, ptr %13, align 4, !tbaa !9
  %205 = icmp eq i32 0, %204
  br i1 %205, label %206, label %242

206:                                              ; preds = %203
  %207 = load ptr, ptr %7, align 8, !tbaa !5
  %208 = load i32, ptr %8, align 4, !tbaa !9
  %209 = load ptr, ptr %9, align 8, !tbaa !5
  %210 = load i64, ptr %10, align 8, !tbaa !11
  %211 = getelementptr inbounds %struct.rcutils_char_array_s, ptr %19, i32 0, i32 0
  %212 = load ptr, ptr %211, align 8, !tbaa !17
  %213 = call i32 @rcutils_logging_format_message(ptr noundef %207, i32 noundef %208, ptr noundef %209, i64 noundef %210, ptr noundef %212, ptr noundef %21)
  store i32 %213, ptr %13, align 4, !tbaa !9
  %214 = load i32, ptr %13, align 4, !tbaa !9
  %215 = icmp ne i32 0, %214
  br i1 %215, label %216, label %241

216:                                              ; preds = %206
  br label %217

217:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 1024, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %218 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %219 = load i32, ptr %13, align 4, !tbaa !9
  %220 = call i32 (ptr, i64, ptr, ...) @rcutils_snprintf(ptr noundef %218, i64 noundef 1024, ptr noundef @.str.62, i32 noundef %219)
  store i32 %220, ptr %30, align 4, !tbaa !9
  %221 = load i32, ptr %30, align 4, !tbaa !9
  %222 = icmp slt i32 %221, 0
  br i1 %222, label %223, label %229

223:                                              ; preds = %217
  br label %224

224:                                              ; preds = %223
  %225 = load ptr, ptr @stderr, align 8, !tbaa !5
  %226 = call i64 @fwrite(ptr noundef @.str.10, i64 noundef 1, i64 noundef 53, ptr noundef %225)
  br label %227

227:                                              ; preds = %224
  br label %228

228:                                              ; preds = %227
  br label %238

229:                                              ; preds = %217
  br label %230

230:                                              ; preds = %229
  %231 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %232 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %233 = call i64 @strlen(ptr noundef %232) #8
  %234 = load ptr, ptr @stderr, align 8, !tbaa !5
  %235 = call i64 @fwrite(ptr noundef %231, i64 noundef 1, i64 noundef %233, ptr noundef %234)
  br label %236

236:                                              ; preds = %230
  br label %237

237:                                              ; preds = %236
  br label %238

238:                                              ; preds = %237, %228
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr %29) #7
  br label %239

239:                                              ; preds = %238
  br label %240

240:                                              ; preds = %239
  br label %241

241:                                              ; preds = %240, %206
  br label %242

242:                                              ; preds = %241, %203
  %243 = load i8, ptr %14, align 1, !tbaa !13, !range !15, !noundef !16
  %244 = trunc i8 %243 to i1
  br i1 %244, label %245, label %279

245:                                              ; preds = %242
  %246 = load i32, ptr %13, align 4, !tbaa !9
  %247 = icmp eq i32 0, %246
  br i1 %247, label %248, label %278

248:                                              ; preds = %245
  %249 = call i32 @rcutils_char_array_strncat(ptr noundef %21, ptr noundef @.str.57, i64 noundef 4)
  store i32 %249, ptr %13, align 4, !tbaa !9
  %250 = load i32, ptr %13, align 4, !tbaa !9
  %251 = icmp ne i32 0, %250
  br i1 %251, label %252, label %277

252:                                              ; preds = %248
  br label %253

253:                                              ; preds = %252
  call void @llvm.lifetime.start.p0(i64 1024, ptr %31) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  %254 = getelementptr inbounds [1024 x i8], ptr %31, i64 0, i64 0
  %255 = load i32, ptr %13, align 4, !tbaa !9
  %256 = call i32 (ptr, i64, ptr, ...) @rcutils_snprintf(ptr noundef %254, i64 noundef 1024, ptr noundef @.str.60, i32 noundef %255)
  store i32 %256, ptr %32, align 4, !tbaa !9
  %257 = load i32, ptr %32, align 4, !tbaa !9
  %258 = icmp slt i32 %257, 0
  br i1 %258, label %259, label %265

259:                                              ; preds = %253
  br label %260

260:                                              ; preds = %259
  %261 = load ptr, ptr @stderr, align 8, !tbaa !5
  %262 = call i64 @fwrite(ptr noundef @.str.10, i64 noundef 1, i64 noundef 53, ptr noundef %261)
  br label %263

263:                                              ; preds = %260
  br label %264

264:                                              ; preds = %263
  br label %274

265:                                              ; preds = %253
  br label %266

266:                                              ; preds = %265
  %267 = getelementptr inbounds [1024 x i8], ptr %31, i64 0, i64 0
  %268 = getelementptr inbounds [1024 x i8], ptr %31, i64 0, i64 0
  %269 = call i64 @strlen(ptr noundef %268) #8
  %270 = load ptr, ptr @stderr, align 8, !tbaa !5
  %271 = call i64 @fwrite(ptr noundef %267, i64 noundef 1, i64 noundef %269, ptr noundef %270)
  br label %272

272:                                              ; preds = %266
  br label %273

273:                                              ; preds = %272
  br label %274

274:                                              ; preds = %273, %264
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr %31) #7
  br label %275

275:                                              ; preds = %274
  br label %276

276:                                              ; preds = %275
  br label %277

277:                                              ; preds = %276, %248
  br label %278

278:                                              ; preds = %277, %245
  br label %279

279:                                              ; preds = %278, %242
  %280 = load i32, ptr %13, align 4, !tbaa !9
  %281 = icmp eq i32 0, %280
  br i1 %281, label %282, label %287

282:                                              ; preds = %279
  %283 = load ptr, ptr @g_output_stream, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.rcutils_char_array_s, ptr %21, i32 0, i32 0
  %285 = load ptr, ptr %284, align 8, !tbaa !17
  %286 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %283, ptr noundef @.str.63, ptr noundef %285) #7
  br label %287

287:                                              ; preds = %282, %279
  %288 = call i32 @rcutils_char_array_fini(ptr noundef %19)
  store i32 %288, ptr %13, align 4, !tbaa !9
  %289 = load i32, ptr %13, align 4, !tbaa !9
  %290 = icmp ne i32 0, %289
  br i1 %290, label %291, label %297

291:                                              ; preds = %287
  br label %292

292:                                              ; preds = %291
  %293 = load ptr, ptr @stderr, align 8, !tbaa !5
  %294 = call i64 @fwrite(ptr noundef @.str.64, i64 noundef 1, i64 noundef 22, ptr noundef %293)
  br label %295

295:                                              ; preds = %292
  br label %296

296:                                              ; preds = %295
  br label %297

297:                                              ; preds = %296, %287
  %298 = call i32 @rcutils_char_array_fini(ptr noundef %21)
  store i32 %298, ptr %13, align 4, !tbaa !9
  %299 = load i32, ptr %13, align 4, !tbaa !9
  %300 = icmp ne i32 0, %299
  br i1 %300, label %301, label %307

301:                                              ; preds = %297
  br label %302

302:                                              ; preds = %301
  %303 = load ptr, ptr @stderr, align 8, !tbaa !5
  %304 = call i64 @fwrite(ptr noundef @.str.64, i64 noundef 1, i64 noundef 22, ptr noundef %303)
  br label %305

305:                                              ; preds = %302
  br label %306

306:                                              ; preds = %305
  br label %307

307:                                              ; preds = %306, %297
  call void @llvm.lifetime.end.p0(i64 72, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 1024, ptr %18) #7
  store i32 0, ptr %15, align 4
  br label %308

308:                                              ; preds = %307, %68, %40
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  %309 = load i32, ptr %15, align 4
  switch i32 %309, label %311 [
    i32 0, label %310
    i32 1, label %310
  ]

310:                                              ; preds = %308, %308
  ret void

311:                                              ; preds = %308
  unreachable
}

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

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

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local i32 @rcutils_logging_format_message(ptr noundef, i32 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind
declare i32 @isatty(i32 noundef) #5

; Function Attrs: nounwind
declare i32 @fileno(ptr noundef) #5

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

declare i32 @rcutils_char_array_strncat(ptr noundef, ptr noundef, i64 noundef) #3

declare i32 @rcutils_char_array_vsprintf(ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #5

declare i32 @rcutils_char_array_fini(ptr noundef) #3

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_Bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !6, i64 0}
!18 = !{!"rcutils_char_array_s", !6, i64 0, !14, i64 8, !12, i64 16, !12, i64 24, !19, i64 32}
!19 = !{!"rcutils_allocator_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!20 = !{!18, !14, i64 8}
!21 = !{!18, !12, i64 16}
!22 = !{!18, !12, i64 24}
!23 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 8, !5, i64 32, i64 8, !5}


; 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_char_array_s = type { ptr, i8, i64, i64, %struct.rcutils_allocator_s }

@g_rcutils_logging_initialized = external dso_local local_unnamed_addr global i8, align 1
@g_rcutils_logging_allocator = external hidden local_unnamed_addr global %struct.rcutils_allocator_s, align 8
@.str.10 = external hidden unnamed_addr constant [54 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@g_output_stream = external hidden local_unnamed_addr global ptr, align 8
@g_colorized_output = external hidden local_unnamed_addr global i32, align 4
@.str.54 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [23 x i8], align 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) #0

; Function Attrs: nounwind uwtable
define dso_local void @rcutils_logging_console_output_handler(ptr noundef %0, i32 noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #1 {
  %7 = alloca [1024 x i8], align 16
  %8 = alloca [1024 x i8], align 16
  %9 = alloca %struct.rcutils_char_array_s, align 8
  %10 = alloca [1024 x i8], align 16
  %11 = alloca %struct.rcutils_char_array_s, align 8
  %12 = alloca [1024 x i8], align 16
  %13 = alloca [1024 x i8], align 16
  %14 = alloca [1024 x i8], align 16
  %15 = alloca [1024 x i8], align 16
  %16 = alloca [1024 x i8], align 16
  %17 = load i8, ptr @g_rcutils_logging_initialized, align 1, !tbaa !5, !range !9, !noundef !10
  %18 = trunc nuw i8 %17 to i1
  br i1 %18, label %22, label %19

19:                                               ; preds = %6
  %20 = load ptr, ptr @stderr, align 8, !tbaa !11
  %21 = tail call i64 @fwrite(ptr noundef nonnull @.str.54, i64 noundef 1, i64 noundef 89, ptr noundef %20) #8
  br label %135

22:                                               ; preds = %6
  switch i32 %1, label %23 [
    i32 10, label %34
    i32 20, label %34
    i32 30, label %34
    i32 40, label %34
    i32 50, label %34
  ]

23:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %7) #9
  %24 = call i32 (ptr, i64, ptr, ...) @rcutils_snprintf(ptr noundef nonnull %7, i64 noundef 1024, ptr noundef nonnull @.str.55, i32 noundef %1) #9
  %25 = icmp slt i32 %24, 0
  br i1 %25, label %26, label %29

26:                                               ; preds = %23
  %27 = load ptr, ptr @stderr, align 8, !tbaa !11
  %28 = call i64 @fwrite(ptr noundef nonnull @.str.10, i64 noundef 1, i64 noundef 53, ptr noundef %27) #8
  br label %33

29:                                               ; preds = %23
  %30 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %7) #10
  %31 = load ptr, ptr @stderr, align 8, !tbaa !11
  %32 = call i64 @fwrite(ptr noundef nonnull %7, i64 noundef 1, i64 noundef %30, ptr noundef %31) #8
  br label %33

33:                                               ; preds = %29, %26
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %7) #9
  br label %135

34:                                               ; preds = %22, %22, %22, %22, %22
  %35 = load i32, ptr @g_colorized_output, align 4, !tbaa !13
  switch i32 %35, label %37 [
    i32 1, label %42
    i32 0, label %36
  ]

36:                                               ; preds = %34
  br label %42

37:                                               ; preds = %34
  %38 = load ptr, ptr @g_output_stream, align 8, !tbaa !11
  %39 = tail call i32 @fileno(ptr noundef %38) #9
  %40 = tail call i32 @isatty(i32 noundef %39) #9
  %41 = icmp ne i32 %40, 0
  br label %42

42:                                               ; preds = %34, %36, %37
  %.035 = phi i1 [ false, %36 ], [ %41, %37 ], [ true, %34 ]
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %8) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1024) %8, i8 0, i64 1024, i1 false)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %9) #9
  store ptr %8, ptr %9, align 8, !tbaa !15
  %43 = getelementptr inbounds i8, ptr %9, i64 8
  store i8 0, ptr %43, align 8, !tbaa !19
  %44 = getelementptr inbounds i8, ptr %9, i64 16
  store i64 0, ptr %44, align 8, !tbaa !20
  %45 = getelementptr inbounds i8, ptr %9, i64 24
  store i64 1024, ptr %45, align 8, !tbaa !21
  %46 = getelementptr inbounds i8, ptr %9, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %46, ptr noundef nonnull align 8 dereferenceable(40) @g_rcutils_logging_allocator, i64 40, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %10) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1024) %10, i8 0, i64 1024, i1 false)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %11) #9
  store ptr %10, ptr %11, align 8, !tbaa !15
  %47 = getelementptr inbounds i8, ptr %11, i64 8
  store i8 0, ptr %47, align 8, !tbaa !19
  %48 = getelementptr inbounds i8, ptr %11, i64 16
  store i64 0, ptr %48, align 8, !tbaa !20
  %49 = getelementptr inbounds i8, ptr %11, i64 24
  store i64 1024, ptr %49, align 8, !tbaa !21
  %50 = getelementptr inbounds i8, ptr %11, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %50, ptr noundef nonnull align 8 dereferenceable(40) @g_rcutils_logging_allocator, i64 40, i1 false), !tbaa.struct !22
  br i1 %.035, label %51, label %80

51:                                               ; preds = %42
  switch i32 %1, label %55 [
    i32 10, label %66
    i32 20, label %52
    i32 30, label %53
    i32 40, label %54
    i32 50, label %54
  ]

52:                                               ; preds = %51
  br label %66

53:                                               ; preds = %51
  br label %66

54:                                               ; preds = %51, %51
  br label %66

55:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %12) #9
  %56 = call i32 (ptr, i64, ptr, ...) @rcutils_snprintf(ptr noundef nonnull %12, i64 noundef 1024, ptr noundef nonnull @.str.55, i32 noundef %1) #9
  %57 = icmp slt i32 %56, 0
  br i1 %57, label %58, label %61

58:                                               ; preds = %55
  %59 = load ptr, ptr @stderr, align 8, !tbaa !11
  %60 = call i64 @fwrite(ptr noundef nonnull @.str.10, i64 noundef 1, i64 noundef 53, ptr noundef %59) #8
  br label %65

61:                                               ; preds = %55
  %62 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %12) #10
  %63 = load ptr, ptr @stderr, align 8, !tbaa !11
  %64 = call i64 @fwrite(ptr noundef nonnull %12, i64 noundef 1, i64 noundef %62, ptr noundef %63) #8
  br label %65

65:                                               ; preds = %58, %61
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %12) #9
  br label %.thread61

66:                                               ; preds = %54, %53, %52, %51
  %.036.ph = phi ptr [ @.str.56, %51 ], [ @.str.57, %52 ], [ @.str.58, %53 ], [ @.str.59, %54 ]
  %67 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %.036.ph) #10
  %68 = call i32 @rcutils_char_array_strncat(ptr noundef nonnull %11, ptr noundef nonnull %.036.ph, i64 noundef %67) #9
  %.not = icmp eq i32 %68, 0
  br i1 %.not, label %80, label %69

69:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %13) #9
  %70 = call i32 (ptr, i64, ptr, ...) @rcutils_snprintf(ptr noundef nonnull %13, i64 noundef 1024, ptr noundef nonnull @.str.60, i32 noundef %68) #9
  %71 = icmp slt i32 %70, 0
  br i1 %71, label %72, label %75

72:                                               ; preds = %69
  %73 = load ptr, ptr @stderr, align 8, !tbaa !11
  %74 = call i64 @fwrite(ptr noundef nonnull @.str.10, i64 noundef 1, i64 noundef 53, ptr noundef %73) #8
  br label %79

75:                                               ; preds = %69
  %76 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %13) #10
  %77 = load ptr, ptr @stderr, align 8, !tbaa !11
  %78 = call i64 @fwrite(ptr noundef nonnull %13, i64 noundef 1, i64 noundef %76, ptr noundef %77) #8
  br label %79

79:                                               ; preds = %75, %72
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %13) #9
  br label %.thread61

80:                                               ; preds = %42, %66
  %81 = call i32 @rcutils_char_array_vsprintf(ptr noundef nonnull %9, ptr noundef %4, ptr noundef %5) #9
  %.not46 = icmp eq i32 %81, 0
  br i1 %.not46, label %93, label %82

82:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %14) #9
  %83 = call i32 (ptr, i64, ptr, ...) @rcutils_snprintf(ptr noundef nonnull %14, i64 noundef 1024, ptr noundef nonnull @.str.61, i32 noundef %81) #9
  %84 = icmp slt i32 %83, 0
  br i1 %84, label %85, label %88

85:                                               ; preds = %82
  %86 = load ptr, ptr @stderr, align 8, !tbaa !11
  %87 = call i64 @fwrite(ptr noundef nonnull @.str.10, i64 noundef 1, i64 noundef 53, ptr noundef %86) #8
  br label %92

88:                                               ; preds = %82
  %89 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %14) #10
  %90 = load ptr, ptr @stderr, align 8, !tbaa !11
  %91 = call i64 @fwrite(ptr noundef nonnull %14, i64 noundef 1, i64 noundef %89, ptr noundef %90) #8
  br label %92

92:                                               ; preds = %88, %85
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %14) #9
  br label %.thread61

93:                                               ; preds = %80
  %94 = load ptr, ptr %9, align 8, !tbaa !15
  %95 = call i32 @rcutils_logging_format_message(ptr noundef %0, i32 noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %94, ptr noundef nonnull %11)
  %.not47 = icmp eq i32 %95, 0
  br i1 %.not47, label %107, label %96

96:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %15) #9
  %97 = call i32 (ptr, i64, ptr, ...) @rcutils_snprintf(ptr noundef nonnull %15, i64 noundef 1024, ptr noundef nonnull @.str.62, i32 noundef %95) #9
  %98 = icmp slt i32 %97, 0
  br i1 %98, label %99, label %102

99:                                               ; preds = %96
  %100 = load ptr, ptr @stderr, align 8, !tbaa !11
  %101 = call i64 @fwrite(ptr noundef nonnull @.str.10, i64 noundef 1, i64 noundef 53, ptr noundef %100) #8
  br label %106

102:                                              ; preds = %96
  %103 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %15) #10
  %104 = load ptr, ptr @stderr, align 8, !tbaa !11
  %105 = call i64 @fwrite(ptr noundef nonnull %15, i64 noundef 1, i64 noundef %103, ptr noundef %104) #8
  br label %106

106:                                              ; preds = %102, %99
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %15) #9
  br label %.thread61

107:                                              ; preds = %93
  br i1 %.035, label %108, label %121

108:                                              ; preds = %107
  %109 = call i32 @rcutils_char_array_strncat(ptr noundef nonnull %11, ptr noundef nonnull @.str.57, i64 noundef 4) #9
  %.not48 = icmp eq i32 %109, 0
  br i1 %.not48, label %121, label %110

110:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %16) #9
  %111 = call i32 (ptr, i64, ptr, ...) @rcutils_snprintf(ptr noundef nonnull %16, i64 noundef 1024, ptr noundef nonnull @.str.60, i32 noundef %109) #9
  %112 = icmp slt i32 %111, 0
  br i1 %112, label %113, label %116

113:                                              ; preds = %110
  %114 = load ptr, ptr @stderr, align 8, !tbaa !11
  %115 = call i64 @fwrite(ptr noundef nonnull @.str.10, i64 noundef 1, i64 noundef 53, ptr noundef %114) #8
  br label %120

116:                                              ; preds = %110
  %117 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %16) #10
  %118 = load ptr, ptr @stderr, align 8, !tbaa !11
  %119 = call i64 @fwrite(ptr noundef nonnull %16, i64 noundef 1, i64 noundef %117, ptr noundef %118) #8
  br label %120

120:                                              ; preds = %116, %113
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %16) #9
  br label %.thread61

121:                                              ; preds = %108, %107
  %122 = load ptr, ptr @g_output_stream, align 8, !tbaa !11
  %123 = load ptr, ptr %11, align 8, !tbaa !15
  %124 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.63, ptr noundef %123) #9
  br label %.thread61

.thread61:                                        ; preds = %65, %79, %92, %106, %120, %121
  %125 = call i32 @rcutils_char_array_fini(ptr noundef nonnull %9) #9
  %.not49 = icmp eq i32 %125, 0
  br i1 %.not49, label %129, label %126

126:                                              ; preds = %.thread61
  %127 = load ptr, ptr @stderr, align 8, !tbaa !11
  %128 = call i64 @fwrite(ptr noundef nonnull @.str.64, i64 noundef 1, i64 noundef 22, ptr noundef %127) #8
  br label %129

129:                                              ; preds = %126, %.thread61
  %130 = call i32 @rcutils_char_array_fini(ptr noundef nonnull %11) #9
  %.not50 = icmp eq i32 %130, 0
  br i1 %.not50, label %134, label %131

131:                                              ; preds = %129
  %132 = load ptr, ptr @stderr, align 8, !tbaa !11
  %133 = call i64 @fwrite(ptr noundef nonnull @.str.64, i64 noundef 1, i64 noundef 22, ptr noundef %132) #8
  br label %134

134:                                              ; preds = %131, %129
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %8) #9
  br label %135

135:                                              ; preds = %134, %33, %19
  ret void
}

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

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

; 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) #2

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @rcutils_logging_format_message(ptr noundef, i32 noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare i32 @isatty(i32 noundef) local_unnamed_addr #6

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

declare i32 @rcutils_char_array_strncat(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

declare i32 @rcutils_char_array_vsprintf(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

declare i32 @rcutils_char_array_fini(ptr noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 #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 "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 #7 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { cold }
attributes #9 = { nounwind }
attributes #10 = { 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 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !12, i64 0}
!16 = !{!"rcutils_char_array_s", !12, i64 0, !6, i64 8, !17, i64 16, !17, i64 24, !18, i64 32}
!17 = !{!"long", !7, i64 0}
!18 = !{!"rcutils_allocator_s", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32}
!19 = !{!16, !6, i64 8}
!20 = !{!16, !17, i64 16}
!21 = !{!16, !17, i64 24}
!22 = !{i64 0, i64 8, !11, i64 8, i64 8, !11, i64 16, i64 8, !11, i64 24, i64 8, !11, i64 32, i64 8, !11}


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