; LLVM IR from jim-b/ECCSI-SAKKE :: 4u2change (msdb)

; 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"

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@stdout = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local signext i16 @msdb_communityAdd(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i16 noundef signext %6, ptr noundef %7, ptr noundef %8, i64 noundef %9, ptr noundef %10, i64 noundef %11, ptr noundef %12) #0 {
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i16, align 2
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i64, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i64, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i16, align 2
  %28 = alloca ptr, align 8
  %29 = alloca [1024 x i8], align 16
  %30 = alloca [1024 x i8], align 16
  %31 = alloca [1200 x i8], align 16
  %32 = alloca [1200 x i8], align 16
  %33 = alloca [1200 x i8], align 16
  %34 = alloca [1200 x i8], align 16
  %35 = alloca [1200 x i8], align 16
  store ptr %0, ptr %14, align 8, !tbaa !5
  store ptr %1, ptr %15, align 8, !tbaa !5
  store ptr %2, ptr %16, align 8, !tbaa !5
  store ptr %3, ptr %17, align 8, !tbaa !5
  store ptr %4, ptr %18, align 8, !tbaa !5
  store ptr %5, ptr %19, align 8, !tbaa !5
  store i16 %6, ptr %20, align 2, !tbaa !9
  store ptr %7, ptr %21, align 8, !tbaa !5
  store ptr %8, ptr %22, align 8, !tbaa !5
  store i64 %9, ptr %23, align 8, !tbaa !11
  store ptr %10, ptr %24, align 8, !tbaa !5
  store i64 %11, ptr %25, align 8, !tbaa !11
  store ptr %12, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %27) #6
  store i16 1, ptr %27, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  store ptr null, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1024, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 1024, ptr %30) #6
  %36 = load ptr, ptr %15, align 8, !tbaa !5
  %37 = icmp eq ptr null, %36
  br i1 %37, label %42, label %38

38:                                               ; preds = %13
  %39 = load ptr, ptr %15, align 8, !tbaa !5
  %40 = call i64 @strlen(ptr noundef %39) #7
  %41 = icmp eq i64 %40, 0
  br i1 %41, label %42, label %48

42:                                               ; preds = %38, %13
  call void @llvm.lifetime.start.p0(i64 1200, ptr %31) #6
  %43 = getelementptr inbounds [1200 x i8], ptr %31, i64 0, i64 0
  %44 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %43, i64 noundef 1200, ptr noundef @.str, ptr noundef @.str.1) #6
  %45 = load ptr, ptr @stdout, align 8, !tbaa !5
  %46 = getelementptr inbounds [1200 x i8], ptr %31, i64 0, i64 0
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef @.str.2, ptr noundef %46) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr %31) #6
  br label %302

48:                                               ; preds = %38
  %49 = load ptr, ptr %16, align 8, !tbaa !5
  %50 = icmp eq ptr null, %49
  br i1 %50, label %55, label %51

51:                                               ; preds = %48
  %52 = load ptr, ptr %16, align 8, !tbaa !5
  %53 = call i64 @strlen(ptr noundef %52) #7
  %54 = icmp eq i64 %53, 0
  br i1 %54, label %55, label %61

55:                                               ; preds = %51, %48
  call void @llvm.lifetime.start.p0(i64 1200, ptr %32) #6
  %56 = getelementptr inbounds [1200 x i8], ptr %32, i64 0, i64 0
  %57 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %56, i64 noundef 1200, ptr noundef @.str, ptr noundef @.str.3) #6
  %58 = load ptr, ptr @stdout, align 8, !tbaa !5
  %59 = getelementptr inbounds [1200 x i8], ptr %32, i64 0, i64 0
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef @.str.2, ptr noundef %59) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr %32) #6
  br label %301

61:                                               ; preds = %51
  %62 = load ptr, ptr %22, align 8, !tbaa !5
  %63 = icmp eq ptr null, %62
  br i1 %63, label %68, label %64

64:                                               ; preds = %61
  %65 = load ptr, ptr %22, align 8, !tbaa !5
  %66 = call i64 @strlen(ptr noundef %65) #7
  %67 = icmp eq i64 %66, 0
  br i1 %67, label %68, label %75

68:                                               ; preds = %64, %61
  call void @llvm.lifetime.start.p0(i64 1200, ptr %33) #6
  %69 = getelementptr inbounds [1200 x i8], ptr %33, i64 0, i64 0
  %70 = load ptr, ptr %16, align 8, !tbaa !5
  %71 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %69, i64 noundef 1200, ptr noundef @.str.4, ptr noundef %70) #6
  %72 = load ptr, ptr @stdout, align 8, !tbaa !5
  %73 = getelementptr inbounds [1200 x i8], ptr %33, i64 0, i64 0
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef @.str.2, ptr noundef %73) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr %33) #6
  br label %300

75:                                               ; preds = %64
  %76 = load ptr, ptr %24, align 8, !tbaa !5
  %77 = icmp eq ptr null, %76
  br i1 %77, label %82, label %78

78:                                               ; preds = %75
  %79 = load ptr, ptr %24, align 8, !tbaa !5
  %80 = call i64 @strlen(ptr noundef %79) #7
  %81 = icmp eq i64 %80, 0
  br i1 %81, label %82, label %89

82:                                               ; preds = %78, %75
  call void @llvm.lifetime.start.p0(i64 1200, ptr %34) #6
  %83 = getelementptr inbounds [1200 x i8], ptr %34, i64 0, i64 0
  %84 = load ptr, ptr %16, align 8, !tbaa !5
  %85 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %83, i64 noundef 1200, ptr noundef @.str.5, ptr noundef %84) #6
  %86 = load ptr, ptr @stdout, align 8, !tbaa !5
  %87 = getelementptr inbounds [1200 x i8], ptr %34, i64 0, i64 0
  %88 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef @.str.2, ptr noundef %87) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr %34) #6
  br label %299

89:                                               ; preds = %78
  %90 = load ptr, ptr %16, align 8, !tbaa !5
  %91 = call signext i16 @msdb_communityDelete(ptr noundef %90)
  %92 = getelementptr inbounds [1024 x i8], ptr %30, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %92, i8 0, i64 1024, i1 false)
  %93 = getelementptr inbounds [1024 x i8], ptr %30, i64 0, i64 0
  %94 = load ptr, ptr %15, align 8, !tbaa !5
  %95 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %93, i64 noundef 1024, ptr noundef @.str.6, ptr noundef @.str.7, ptr noundef %94) #6
  %96 = getelementptr inbounds [1024 x i8], ptr %30, i64 0, i64 0
  %97 = call noalias ptr @fopen(ptr noundef %96, ptr noundef @.str.8)
  store ptr %97, ptr %28, align 8, !tbaa !5
  %98 = icmp eq ptr null, %97
  br i1 %98, label %99, label %106

99:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 1200, ptr %35) #6
  %100 = getelementptr inbounds [1200 x i8], ptr %35, i64 0, i64 0
  %101 = load ptr, ptr %16, align 8, !tbaa !5
  %102 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %100, i64 noundef 1200, ptr noundef @.str.9, ptr noundef %101) #6
  %103 = load ptr, ptr @stdout, align 8, !tbaa !5
  %104 = getelementptr inbounds [1200 x i8], ptr %35, i64 0, i64 0
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %103, ptr noundef @.str.2, ptr noundef %104) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr %35) #6
  br label %298

106:                                              ; preds = %89
  %107 = load ptr, ptr %14, align 8, !tbaa !5
  %108 = icmp ne ptr null, %107
  br i1 %108, label %109, label %122

109:                                              ; preds = %106
  %110 = load ptr, ptr %14, align 8, !tbaa !5
  %111 = call i64 @strlen(ptr noundef %110) #7
  %112 = icmp ugt i64 %111, 0
  br i1 %112, label %113, label %122

113:                                              ; preds = %109
  %114 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %115 = load ptr, ptr %14, align 8, !tbaa !5
  %116 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %114, i64 noundef 1024, ptr noundef @.str.10, ptr noundef %115) #6
  %117 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %118 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %119 = call i64 @strlen(ptr noundef %118) #7
  %120 = load ptr, ptr %28, align 8, !tbaa !5
  %121 = call i64 @fwrite(ptr noundef %117, i64 noundef %119, i64 noundef 1, ptr noundef %120)
  br label %122

122:                                              ; preds = %113, %109, %106
  %123 = load ptr, ptr %15, align 8, !tbaa !5
  %124 = icmp ne ptr null, %123
  br i1 %124, label %125, label %138

125:                                              ; preds = %122
  %126 = load ptr, ptr %15, align 8, !tbaa !5
  %127 = call i64 @strlen(ptr noundef %126) #7
  %128 = icmp ugt i64 %127, 0
  br i1 %128, label %129, label %138

129:                                              ; preds = %125
  %130 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %131 = load ptr, ptr %15, align 8, !tbaa !5
  %132 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %130, i64 noundef 1024, ptr noundef @.str.11, ptr noundef %131) #6
  %133 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %134 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %135 = call i64 @strlen(ptr noundef %134) #7
  %136 = load ptr, ptr %28, align 8, !tbaa !5
  %137 = call i64 @fwrite(ptr noundef %133, i64 noundef %135, i64 noundef 1, ptr noundef %136)
  br label %138

138:                                              ; preds = %129, %125, %122
  %139 = load ptr, ptr %16, align 8, !tbaa !5
  %140 = icmp ne ptr null, %139
  br i1 %140, label %141, label %154

141:                                              ; preds = %138
  %142 = load ptr, ptr %16, align 8, !tbaa !5
  %143 = call i64 @strlen(ptr noundef %142) #7
  %144 = icmp ugt i64 %143, 0
  br i1 %144, label %145, label %154

145:                                              ; preds = %141
  %146 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %147 = load ptr, ptr %16, align 8, !tbaa !5
  %148 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %146, i64 noundef 1024, ptr noundef @.str.12, ptr noundef %147) #6
  %149 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %150 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %151 = call i64 @strlen(ptr noundef %150) #7
  %152 = load ptr, ptr %28, align 8, !tbaa !5
  %153 = call i64 @fwrite(ptr noundef %149, i64 noundef %151, i64 noundef 1, ptr noundef %152)
  br label %154

154:                                              ; preds = %145, %141, %138
  %155 = load ptr, ptr %17, align 8, !tbaa !5
  %156 = icmp ne ptr null, %155
  br i1 %156, label %157, label %170

157:                                              ; preds = %154
  %158 = load ptr, ptr %17, align 8, !tbaa !5
  %159 = call i64 @strlen(ptr noundef %158) #7
  %160 = icmp ugt i64 %159, 0
  br i1 %160, label %161, label %170

161:                                              ; preds = %157
  %162 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %163 = load ptr, ptr %17, align 8, !tbaa !5
  %164 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %162, i64 noundef 1024, ptr noundef @.str.13, ptr noundef %163) #6
  %165 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %166 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %167 = call i64 @strlen(ptr noundef %166) #7
  %168 = load ptr, ptr %28, align 8, !tbaa !5
  %169 = call i64 @fwrite(ptr noundef %165, i64 noundef %167, i64 noundef 1, ptr noundef %168)
  br label %170

170:                                              ; preds = %161, %157, %154
  %171 = load ptr, ptr %18, align 8, !tbaa !5
  %172 = icmp ne ptr null, %171
  br i1 %172, label %173, label %186

173:                                              ; preds = %170
  %174 = load ptr, ptr %18, align 8, !tbaa !5
  %175 = call i64 @strlen(ptr noundef %174) #7
  %176 = icmp ugt i64 %175, 0
  br i1 %176, label %177, label %186

177:                                              ; preds = %173
  %178 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %179 = load ptr, ptr %18, align 8, !tbaa !5
  %180 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %178, i64 noundef 1024, ptr noundef @.str.14, ptr noundef %179) #6
  %181 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %182 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %183 = call i64 @strlen(ptr noundef %182) #7
  %184 = load ptr, ptr %28, align 8, !tbaa !5
  %185 = call i64 @fwrite(ptr noundef %181, i64 noundef %183, i64 noundef 1, ptr noundef %184)
  br label %186

186:                                              ; preds = %177, %173, %170
  %187 = load ptr, ptr %19, align 8, !tbaa !5
  %188 = icmp ne ptr null, %187
  br i1 %188, label %189, label %202

189:                                              ; preds = %186
  %190 = load ptr, ptr %19, align 8, !tbaa !5
  %191 = call i64 @strlen(ptr noundef %190) #7
  %192 = icmp ugt i64 %191, 0
  br i1 %192, label %193, label %202

193:                                              ; preds = %189
  %194 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %195 = load ptr, ptr %19, align 8, !tbaa !5
  %196 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %194, i64 noundef 1024, ptr noundef @.str.15, ptr noundef %195) #6
  %197 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %198 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %199 = call i64 @strlen(ptr noundef %198) #7
  %200 = load ptr, ptr %28, align 8, !tbaa !5
  %201 = call i64 @fwrite(ptr noundef %197, i64 noundef %199, i64 noundef 1, ptr noundef %200)
  br label %202

202:                                              ; preds = %193, %189, %186
  %203 = load i16, ptr %20, align 2, !tbaa !9
  %204 = sext i16 %203 to i32
  %205 = icmp sgt i32 %204, 0
  br i1 %205, label %206, label %209

206:                                              ; preds = %202
  %207 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %208 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %207, i64 noundef 1024, ptr noundef @.str.16, ptr noundef @.str.17) #6
  br label %212

209:                                              ; preds = %202
  %210 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %211 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %210, i64 noundef 1024, ptr noundef @.str.16, ptr noundef @.str.18) #6
  br label %212

212:                                              ; preds = %209, %206
  %213 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %214 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %215 = call i64 @strlen(ptr noundef %214) #7
  %216 = load ptr, ptr %28, align 8, !tbaa !5
  %217 = call i64 @fwrite(ptr noundef %213, i64 noundef %215, i64 noundef 1, ptr noundef %216)
  %218 = load ptr, ptr %21, align 8, !tbaa !5
  %219 = icmp ne ptr null, %218
  br i1 %219, label %220, label %233

220:                                              ; preds = %212
  %221 = load ptr, ptr %21, align 8, !tbaa !5
  %222 = call i64 @strlen(ptr noundef %221) #7
  %223 = icmp ugt i64 %222, 0
  br i1 %223, label %224, label %233

224:                                              ; preds = %220
  %225 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %226 = load ptr, ptr %21, align 8, !tbaa !5
  %227 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %225, i64 noundef 1024, ptr noundef @.str.19, ptr noundef %226) #6
  %228 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %229 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %230 = call i64 @strlen(ptr noundef %229) #7
  %231 = load ptr, ptr %28, align 8, !tbaa !5
  %232 = call i64 @fwrite(ptr noundef %228, i64 noundef %230, i64 noundef 1, ptr noundef %231)
  br label %233

233:                                              ; preds = %224, %220, %212
  %234 = load ptr, ptr %22, align 8, !tbaa !5
  %235 = icmp ne ptr null, %234
  br i1 %235, label %236, label %256

236:                                              ; preds = %233
  %237 = load ptr, ptr %22, align 8, !tbaa !5
  %238 = call i64 @strlen(ptr noundef %237) #7
  %239 = icmp ugt i64 %238, 0
  br i1 %239, label %240, label %256

240:                                              ; preds = %236
  %241 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %242 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %241, i64 noundef 1024, ptr noundef @.str.20) #6
  %243 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %244 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %245 = call i64 @strlen(ptr noundef %244) #7
  %246 = load ptr, ptr %28, align 8, !tbaa !5
  %247 = call i64 @fwrite(ptr noundef %243, i64 noundef %245, i64 noundef 1, ptr noundef %246)
  %248 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %248, i8 0, i64 1024, i1 false)
  %249 = load ptr, ptr %22, align 8, !tbaa !5
  %250 = load i64, ptr %23, align 8, !tbaa !11
  call void @msdb_prettyPrintOctetString(ptr noundef %29, ptr noundef %249, i64 noundef %250, i8 noundef zeroext 4)
  %251 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %252 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %253 = call i64 @strlen(ptr noundef %252) #7
  %254 = load ptr, ptr %28, align 8, !tbaa !5
  %255 = call i64 @fwrite(ptr noundef %251, i64 noundef %253, i64 noundef 1, ptr noundef %254)
  br label %256

256:                                              ; preds = %240, %236, %233
  %257 = load ptr, ptr %24, align 8, !tbaa !5
  %258 = icmp ne ptr null, %257
  br i1 %258, label %259, label %279

259:                                              ; preds = %256
  %260 = load ptr, ptr %24, align 8, !tbaa !5
  %261 = call i64 @strlen(ptr noundef %260) #7
  %262 = icmp ugt i64 %261, 0
  br i1 %262, label %263, label %279

263:                                              ; preds = %259
  %264 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %265 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %264, i64 noundef 1024, ptr noundef @.str.21) #6
  %266 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %267 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %268 = call i64 @strlen(ptr noundef %267) #7
  %269 = load ptr, ptr %28, align 8, !tbaa !5
  %270 = call i64 @fwrite(ptr noundef %266, i64 noundef %268, i64 noundef 1, ptr noundef %269)
  %271 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %271, i8 0, i64 1024, i1 false)
  %272 = load ptr, ptr %24, align 8, !tbaa !5
  %273 = load i64, ptr %25, align 8, !tbaa !11
  call void @msdb_prettyPrintOctetString(ptr noundef %29, ptr noundef %272, i64 noundef %273, i8 noundef zeroext 4)
  %274 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %275 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %276 = call i64 @strlen(ptr noundef %275) #7
  %277 = load ptr, ptr %28, align 8, !tbaa !5
  %278 = call i64 @fwrite(ptr noundef %274, i64 noundef %276, i64 noundef 1, ptr noundef %277)
  br label %279

279:                                              ; preds = %263, %259, %256
  %280 = load ptr, ptr %26, align 8, !tbaa !5
  %281 = icmp ne ptr null, %280
  br i1 %281, label %282, label %295

282:                                              ; preds = %279
  %283 = load ptr, ptr %26, align 8, !tbaa !5
  %284 = call i64 @strlen(ptr noundef %283) #7
  %285 = icmp ugt i64 %284, 0
  br i1 %285, label %286, label %295

286:                                              ; preds = %282
  %287 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %288 = load ptr, ptr %26, align 8, !tbaa !5
  %289 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %287, i64 noundef 1024, ptr noundef @.str.22, ptr noundef %288) #6
  %290 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %291 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  %292 = call i64 @strlen(ptr noundef %291) #7
  %293 = load ptr, ptr %28, align 8, !tbaa !5
  %294 = call i64 @fwrite(ptr noundef %290, i64 noundef %292, i64 noundef 1, ptr noundef %293)
  br label %295

295:                                              ; preds = %286, %282, %279
  %296 = load ptr, ptr %28, align 8, !tbaa !5
  %297 = call i32 @fclose(ptr noundef %296)
  store i16 0, ptr %27, align 2, !tbaa !9
  br label %298

298:                                              ; preds = %295, %99
  br label %299

299:                                              ; preds = %298, %82
  br label %300

300:                                              ; preds = %299, %68
  br label %301

301:                                              ; preds = %300, %55
  br label %302

302:                                              ; preds = %301, %42
  %303 = getelementptr inbounds [1024 x i8], ptr %29, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %303, i8 0, i64 1024, i1 false)
  %304 = getelementptr inbounds [1024 x i8], ptr %30, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %304, i8 0, i64 1024, i1 false)
  %305 = load i16, ptr %27, align 2, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 1024, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %27) #6
  ret i16 %305
}

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

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

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #3

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

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

; Function Attrs: nounwind uwtable
declare dso_local signext i16 @msdb_communityDelete(ptr noundef) #0

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #5

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

; Function Attrs: nounwind uwtable
declare hidden void @msdb_prettyPrintOctetString(ptr noundef, ptr noundef, i64 noundef, i8 noundef zeroext) #0

declare i32 @fclose(ptr noundef) #5

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { "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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"short", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}


; 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"

@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local signext range(i16 0, 2) i16 @msdb_communityAdd(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i16 noundef signext %6, ptr noundef %7, ptr noundef %8, i64 noundef %9, ptr noundef %10, i64 noundef %11, ptr noundef %12) local_unnamed_addr #0 {
  %14 = alloca [1024 x i8], align 16
  %15 = alloca [1024 x i8], align 16
  %16 = alloca [1200 x i8], align 16
  %17 = alloca [1200 x i8], align 16
  %18 = alloca [1200 x i8], align 16
  %19 = alloca [1200 x i8], align 16
  %20 = alloca [1200 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %15) #5
  %21 = icmp eq ptr %1, null
  br i1 %21, label %24, label %22

22:                                               ; preds = %13
  %char0 = load i8, ptr %1, align 1
  %23 = icmp eq i8 %char0, 0
  br i1 %23, label %24, label %28

24:                                               ; preds = %22, %13
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %16) #5
  %25 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %16, i64 noundef 1200, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1) #5
  %26 = load ptr, ptr @stdout, align 8, !tbaa !5
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.2, ptr noundef nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %16) #5
  br label %127

28:                                               ; preds = %22
  %29 = icmp eq ptr %2, null
  br i1 %29, label %32, label %30

30:                                               ; preds = %28
  %char071 = load i8, ptr %2, align 1
  %31 = icmp eq i8 %char071, 0
  br i1 %31, label %32, label %36

32:                                               ; preds = %30, %28
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %17) #5
  %33 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %17, i64 noundef 1200, ptr noundef nonnull @.str, ptr noundef nonnull @.str.3) #5
  %34 = load ptr, ptr @stdout, align 8, !tbaa !5
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.2, ptr noundef nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %17) #5
  br label %127

36:                                               ; preds = %30
  %37 = icmp eq ptr %8, null
  br i1 %37, label %40, label %38

38:                                               ; preds = %36
  %char072 = load i8, ptr %8, align 1
  %39 = icmp eq i8 %char072, 0
  br i1 %39, label %40, label %44

40:                                               ; preds = %38, %36
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %18) #5
  %41 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %18, i64 noundef 1200, ptr noundef nonnull @.str.4, ptr noundef nonnull %2) #5
  %42 = load ptr, ptr @stdout, align 8, !tbaa !5
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.2, ptr noundef nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %18) #5
  br label %127

44:                                               ; preds = %38
  %45 = icmp eq ptr %10, null
  br i1 %45, label %48, label %46

46:                                               ; preds = %44
  %char073 = load i8, ptr %10, align 1
  %47 = icmp eq i8 %char073, 0
  br i1 %47, label %48, label %52

48:                                               ; preds = %46, %44
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %19) #5
  %49 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %19, i64 noundef 1200, ptr noundef nonnull @.str.5, ptr noundef nonnull %2) #5
  %50 = load ptr, ptr @stdout, align 8, !tbaa !5
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef nonnull @.str.2, ptr noundef nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %19) #5
  br label %127

52:                                               ; preds = %46
  %53 = tail call signext i16 @msdb_communityDelete(ptr noundef nonnull %2)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1024) %15, i8 0, i64 1024, i1 false)
  %54 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %15, i64 noundef 1024, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, ptr noundef nonnull %1) #5
  %55 = call noalias ptr @fopen(ptr noundef nonnull %15, ptr noundef nonnull @.str.8)
  %56 = icmp eq ptr %55, null
  br i1 %56, label %57, label %61

57:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %20) #5
  %58 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %20, i64 noundef 1200, ptr noundef nonnull @.str.9, ptr noundef nonnull %2) #5
  %59 = load ptr, ptr @stdout, align 8, !tbaa !5
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef nonnull @.str.2, ptr noundef nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %20) #5
  br label %127

61:                                               ; preds = %52
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %67, label %62

62:                                               ; preds = %61
  %char074 = load i8, ptr %0, align 1
  %.not75 = icmp eq i8 %char074, 0
  br i1 %.not75, label %67, label %63

63:                                               ; preds = %62
  %64 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %14, i64 noundef 1024, ptr noundef nonnull @.str.10, ptr noundef nonnull %0) #5
  %65 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %14) #6
  %66 = call i64 @fwrite(ptr noundef nonnull %14, i64 noundef %65, i64 noundef 1, ptr noundef nonnull %55)
  br label %67

67:                                               ; preds = %61, %62, %63
  %char076 = load i8, ptr %1, align 1
  %.not77 = icmp eq i8 %char076, 0
  br i1 %.not77, label %72, label %68

68:                                               ; preds = %67
  %69 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %14, i64 noundef 1024, ptr noundef nonnull @.str.11, ptr noundef nonnull %1) #5
  %70 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %14) #6
  %71 = call i64 @fwrite(ptr noundef nonnull %14, i64 noundef %70, i64 noundef 1, ptr noundef nonnull %55)
  br label %72

72:                                               ; preds = %67, %68
  %char078 = load i8, ptr %2, align 1
  %.not79 = icmp eq i8 %char078, 0
  br i1 %.not79, label %77, label %73

73:                                               ; preds = %72
  %74 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %14, i64 noundef 1024, ptr noundef nonnull @.str.12, ptr noundef nonnull %2) #5
  %75 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %14) #6
  %76 = call i64 @fwrite(ptr noundef nonnull %14, i64 noundef %75, i64 noundef 1, ptr noundef nonnull %55)
  br label %77

77:                                               ; preds = %73, %72
  %.not80 = icmp eq ptr %3, null
  br i1 %.not80, label %83, label %78

78:                                               ; preds = %77
  %char081 = load i8, ptr %3, align 1
  %.not82 = icmp eq i8 %char081, 0
  br i1 %.not82, label %83, label %79

79:                                               ; preds = %78
  %80 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %14, i64 noundef 1024, ptr noundef nonnull @.str.13, ptr noundef nonnull %3) #5
  %81 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %14) #6
  %82 = call i64 @fwrite(ptr noundef nonnull %14, i64 noundef %81, i64 noundef 1, ptr noundef nonnull %55)
  br label %83

83:                                               ; preds = %79, %78, %77
  %.not83 = icmp eq ptr %4, null
  br i1 %.not83, label %89, label %84

84:                                               ; preds = %83
  %char084 = load i8, ptr %4, align 1
  %.not85 = icmp eq i8 %char084, 0
  br i1 %.not85, label %89, label %85

85:                                               ; preds = %84
  %86 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %14, i64 noundef 1024, ptr noundef nonnull @.str.14, ptr noundef nonnull %4) #5
  %87 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %14) #6
  %88 = call i64 @fwrite(ptr noundef nonnull %14, i64 noundef %87, i64 noundef 1, ptr noundef nonnull %55)
  br label %89

89:                                               ; preds = %85, %84, %83
  %.not86 = icmp eq ptr %5, null
  br i1 %.not86, label %95, label %90

90:                                               ; preds = %89
  %char087 = load i8, ptr %5, align 1
  %.not88 = icmp eq i8 %char087, 0
  br i1 %.not88, label %95, label %91

91:                                               ; preds = %90
  %92 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %14, i64 noundef 1024, ptr noundef nonnull @.str.15, ptr noundef nonnull %5) #5
  %93 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %14) #6
  %94 = call i64 @fwrite(ptr noundef nonnull %14, i64 noundef %93, i64 noundef 1, ptr noundef nonnull %55)
  br label %95

95:                                               ; preds = %91, %90, %89
  %96 = icmp sgt i16 %6, 0
  %.str.17..str.18 = select i1 %96, ptr @.str.17, ptr @.str.18
  %97 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %14, i64 noundef 1024, ptr noundef nonnull @.str.16, ptr noundef nonnull %.str.17..str.18) #5
  %98 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %14) #6
  %99 = call i64 @fwrite(ptr noundef nonnull %14, i64 noundef %98, i64 noundef 1, ptr noundef nonnull %55)
  %.not89 = icmp eq ptr %7, null
  br i1 %.not89, label %105, label %100

100:                                              ; preds = %95
  %char090 = load i8, ptr %7, align 1
  %.not91 = icmp eq i8 %char090, 0
  br i1 %.not91, label %105, label %101

101:                                              ; preds = %100
  %102 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %14, i64 noundef 1024, ptr noundef nonnull @.str.19, ptr noundef nonnull %7) #5
  %103 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %14) #6
  %104 = call i64 @fwrite(ptr noundef nonnull %14, i64 noundef %103, i64 noundef 1, ptr noundef nonnull %55)
  br label %105

105:                                              ; preds = %95, %100, %101
  %char092 = load i8, ptr %8, align 1
  %.not93 = icmp eq i8 %char092, 0
  br i1 %.not93, label %112, label %106

106:                                              ; preds = %105
  %107 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %14, i64 noundef 1024, ptr noundef nonnull @.str.20) #5
  %108 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %14) #6
  %109 = call i64 @fwrite(ptr noundef nonnull %14, i64 noundef %108, i64 noundef 1, ptr noundef nonnull %55)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1024) %14, i8 0, i64 1024, i1 false)
  call void @msdb_prettyPrintOctetString(ptr noundef nonnull %14, ptr noundef nonnull %8, i64 noundef %9, i8 noundef zeroext 4)
  %110 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %14) #6
  %111 = call i64 @fwrite(ptr noundef nonnull %14, i64 noundef %110, i64 noundef 1, ptr noundef nonnull %55)
  br label %112

112:                                              ; preds = %105, %106
  %char094 = load i8, ptr %10, align 1
  %.not95 = icmp eq i8 %char094, 0
  br i1 %.not95, label %119, label %113

113:                                              ; preds = %112
  %114 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %14, i64 noundef 1024, ptr noundef nonnull @.str.21) #5
  %115 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %14) #6
  %116 = call i64 @fwrite(ptr noundef nonnull %14, i64 noundef %115, i64 noundef 1, ptr noundef nonnull %55)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1024) %14, i8 0, i64 1024, i1 false)
  call void @msdb_prettyPrintOctetString(ptr noundef nonnull %14, ptr noundef nonnull %10, i64 noundef %11, i8 noundef zeroext 4)
  %117 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %14) #6
  %118 = call i64 @fwrite(ptr noundef nonnull %14, i64 noundef %117, i64 noundef 1, ptr noundef nonnull %55)
  br label %119

119:                                              ; preds = %113, %112
  %.not96 = icmp eq ptr %12, null
  br i1 %.not96, label %125, label %120

120:                                              ; preds = %119
  %char097 = load i8, ptr %12, align 1
  %.not98 = icmp eq i8 %char097, 0
  br i1 %.not98, label %125, label %121

121:                                              ; preds = %120
  %122 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %14, i64 noundef 1024, ptr noundef nonnull @.str.22, ptr noundef nonnull %12) #5
  %123 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %14) #6
  %124 = call i64 @fwrite(ptr noundef nonnull %14, i64 noundef %123, i64 noundef 1, ptr noundef nonnull %55)
  br label %125

125:                                              ; preds = %121, %120, %119
  %126 = call i32 @fclose(ptr noundef nonnull %55)
  br label %127

127:                                              ; preds = %32, %48, %125, %57, %40, %24
  %.0 = phi i16 [ 1, %24 ], [ 1, %32 ], [ 1, %40 ], [ 1, %48 ], [ 1, %57 ], [ 0, %125 ]
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %14) #5
  ret i16 %.0
}

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

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

; Function Attrs: nounwind uwtable
declare dso_local signext i16 @msdb_communityDelete(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) 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 #3

; Function Attrs: nounwind uwtable
declare hidden void @msdb_prettyPrintOctetString(ptr noundef, ptr noundef, i64 noundef, i8 noundef zeroext) local_unnamed_addr #0

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

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }
attributes #6 = { 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"}


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