; 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
@stdout = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [5 x i8], align 1

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

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

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

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

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

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

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

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

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

declare i32 @fclose(ptr noundef) #4

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

36:                                               ; preds = %11
  %37 = load ptr, ptr %12, align 8, !tbaa !5
  %38 = call i64 @strlen(ptr noundef %37) #7
  %39 = icmp eq i64 %38, 0
  br i1 %39, label %40, label %46

40:                                               ; preds = %36, %11
  call void @llvm.lifetime.start.p0(i64 1200, ptr %27) #6
  %41 = getelementptr inbounds [1200 x i8], ptr %27, i64 0, i64 0
  %42 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %41, i64 noundef 1200, ptr noundef @.str, ptr noundef @.str.72) #6
  %43 = load ptr, ptr @stdout, align 8, !tbaa !5
  %44 = getelementptr inbounds [1200 x i8], ptr %27, i64 0, i64 0
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef @.str.2, ptr noundef %44) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr %27) #6
  br label %252

46:                                               ; preds = %36
  %47 = load i64, ptr %13, align 8, !tbaa !9
  %48 = load ptr, ptr %12, align 8, !tbaa !5
  %49 = call i64 @strlen(ptr noundef %48) #7
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  %52 = call i64 @strlen(ptr noundef %51) #7
  %53 = getelementptr inbounds i8, ptr %50, i64 %52
  %54 = getelementptr inbounds i8, ptr %53, i64 1
  %55 = call i64 @strlen(ptr noundef %54) #7
  %56 = add i64 %49, %55
  %57 = add i64 %56, 2
  %58 = icmp ne i64 %47, %57
  br i1 %58, label %59, label %65

59:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 1200, ptr %28) #6
  %60 = getelementptr inbounds [1200 x i8], ptr %28, i64 0, i64 0
  %61 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %60, i64 noundef 1200, ptr noundef @.str, ptr noundef @.str.73) #6
  %62 = load ptr, ptr @stdout, align 8, !tbaa !5
  %63 = getelementptr inbounds [1200 x i8], ptr %28, i64 0, i64 0
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef @.str.2, ptr noundef %63) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr %28) #6
  br label %251

65:                                               ; preds = %46
  %66 = load ptr, ptr %14, align 8, !tbaa !5
  %67 = icmp eq ptr null, %66
  br i1 %67, label %72, label %68

68:                                               ; preds = %65
  %69 = load ptr, ptr %14, align 8, !tbaa !5
  %70 = call i64 @strlen(ptr noundef %69) #7
  %71 = icmp eq i64 %70, 0
  br i1 %71, label %72, label %84

72:                                               ; preds = %68, %65
  call void @llvm.lifetime.start.p0(i64 1200, ptr %29) #6
  %73 = getelementptr inbounds [1200 x i8], ptr %29, i64 0, i64 0
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  %76 = load ptr, ptr %12, align 8, !tbaa !5
  %77 = call i64 @strlen(ptr noundef %76) #7
  %78 = getelementptr inbounds i8, ptr %75, i64 %77
  %79 = getelementptr inbounds i8, ptr %78, i64 1
  %80 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %73, i64 noundef 1200, ptr noundef @.str.74, ptr noundef %74, ptr noundef %79) #6
  %81 = load ptr, ptr @stdout, align 8, !tbaa !5
  %82 = getelementptr inbounds [1200 x i8], ptr %29, i64 0, i64 0
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %81, ptr noundef @.str.2, ptr noundef %82) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr %29) #6
  br label %250

84:                                               ; preds = %68
  %85 = load ptr, ptr %15, align 8, !tbaa !5
  %86 = icmp eq ptr null, %85
  br i1 %86, label %91, label %87

87:                                               ; preds = %84
  %88 = load ptr, ptr %15, align 8, !tbaa !5
  %89 = call i64 @strlen(ptr noundef %88) #7
  %90 = icmp eq i64 %89, 0
  br i1 %90, label %91, label %104

91:                                               ; preds = %87, %84
  call void @llvm.lifetime.start.p0(i64 1200, ptr %30) #6
  %92 = getelementptr inbounds [1200 x i8], ptr %30, i64 0, i64 0
  %93 = load ptr, ptr %12, align 8, !tbaa !5
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  %95 = load ptr, ptr %12, align 8, !tbaa !5
  %96 = call i64 @strlen(ptr noundef %95) #7
  %97 = getelementptr inbounds i8, ptr %94, i64 %96
  %98 = getelementptr inbounds i8, ptr %97, i64 1
  %99 = load ptr, ptr %14, align 8, !tbaa !5
  %100 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %92, i64 noundef 1200, ptr noundef @.str.75, ptr noundef %93, ptr noundef %98, ptr noundef %99) #6
  %101 = load ptr, ptr @stdout, align 8, !tbaa !5
  %102 = getelementptr inbounds [1200 x i8], ptr %30, i64 0, i64 0
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef @.str.2, ptr noundef %102) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr %30) #6
  br label %249

104:                                              ; preds = %87
  %105 = load ptr, ptr %17, align 8, !tbaa !5
  %106 = icmp eq ptr null, %105
  br i1 %106, label %111, label %107

107:                                              ; preds = %104
  %108 = load ptr, ptr %17, align 8, !tbaa !5
  %109 = call i64 @strlen(ptr noundef %108) #7
  %110 = icmp eq i64 %109, 0
  br i1 %110, label %111, label %124

111:                                              ; preds = %107, %104
  call void @llvm.lifetime.start.p0(i64 1200, ptr %31) #6
  %112 = getelementptr inbounds [1200 x i8], ptr %31, i64 0, i64 0
  %113 = load ptr, ptr %12, align 8, !tbaa !5
  %114 = load ptr, ptr %12, align 8, !tbaa !5
  %115 = load ptr, ptr %12, align 8, !tbaa !5
  %116 = call i64 @strlen(ptr noundef %115) #7
  %117 = getelementptr inbounds i8, ptr %114, i64 %116
  %118 = getelementptr inbounds i8, ptr %117, i64 1
  %119 = load ptr, ptr %14, align 8, !tbaa !5
  %120 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %112, i64 noundef 1200, ptr noundef @.str.76, ptr noundef %113, ptr noundef %118, ptr noundef %119) #6
  %121 = load ptr, ptr @stdout, align 8, !tbaa !5
  %122 = getelementptr inbounds [1200 x i8], ptr %31, i64 0, i64 0
  %123 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %121, ptr noundef @.str.2, ptr noundef %122) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr %31) #6
  br label %248

124:                                              ; preds = %107
  %125 = load ptr, ptr %19, align 8, !tbaa !5
  %126 = icmp eq ptr null, %125
  br i1 %126, label %131, label %127

127:                                              ; preds = %124
  %128 = load ptr, ptr %19, align 8, !tbaa !5
  %129 = call i64 @strlen(ptr noundef %128) #7
  %130 = icmp eq i64 %129, 0
  br i1 %130, label %131, label %144

131:                                              ; preds = %127, %124
  call void @llvm.lifetime.start.p0(i64 1200, ptr %32) #6
  %132 = getelementptr inbounds [1200 x i8], ptr %32, i64 0, i64 0
  %133 = load ptr, ptr %12, align 8, !tbaa !5
  %134 = load ptr, ptr %12, align 8, !tbaa !5
  %135 = load ptr, ptr %12, align 8, !tbaa !5
  %136 = call i64 @strlen(ptr noundef %135) #7
  %137 = getelementptr inbounds i8, ptr %134, i64 %136
  %138 = getelementptr inbounds i8, ptr %137, i64 1
  %139 = load ptr, ptr %14, align 8, !tbaa !5
  %140 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %132, i64 noundef 1200, ptr noundef @.str.77, ptr noundef %133, ptr noundef %138, ptr noundef %139) #6
  %141 = load ptr, ptr @stdout, align 8, !tbaa !5
  %142 = getelementptr inbounds [1200 x i8], ptr %32, i64 0, i64 0
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %141, ptr noundef @.str.2, ptr noundef %142) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr %32) #6
  br label %247

144:                                              ; preds = %127
  %145 = load ptr, ptr %21, align 8, !tbaa !5
  %146 = icmp eq ptr null, %145
  br i1 %146, label %151, label %147

147:                                              ; preds = %144
  %148 = load ptr, ptr %21, align 8, !tbaa !5
  %149 = call i64 @strlen(ptr noundef %148) #7
  %150 = icmp eq i64 %149, 0
  br i1 %150, label %151, label %164

151:                                              ; preds = %147, %144
  call void @llvm.lifetime.start.p0(i64 1200, ptr %33) #6
  %152 = getelementptr inbounds [1200 x i8], ptr %33, i64 0, i64 0
  %153 = load ptr, ptr %12, align 8, !tbaa !5
  %154 = load ptr, ptr %12, align 8, !tbaa !5
  %155 = load ptr, ptr %12, align 8, !tbaa !5
  %156 = call i64 @strlen(ptr noundef %155) #7
  %157 = getelementptr inbounds i8, ptr %154, i64 %156
  %158 = getelementptr inbounds i8, ptr %157, i64 1
  %159 = load ptr, ptr %14, align 8, !tbaa !5
  %160 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %152, i64 noundef 1200, ptr noundef @.str.78, ptr noundef %153, ptr noundef %158, ptr noundef %159) #6
  %161 = load ptr, ptr @stdout, align 8, !tbaa !5
  %162 = getelementptr inbounds [1200 x i8], ptr %33, i64 0, i64 0
  %163 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %161, ptr noundef @.str.2, ptr noundef %162) #6
  call void @llvm.lifetime.end.p0(i64 1200, ptr %33) #6
  br label %246

164:                                              ; preds = %147
  %165 = load ptr, ptr %12, align 8, !tbaa !5
  %166 = load i64, ptr %13, align 8, !tbaa !9
  %167 = load ptr, ptr %14, align 8, !tbaa !5
  %168 = call signext i16 @msdb_userDelete(ptr noundef %165, i64 noundef %166, ptr noundef %167)
  %169 = getelementptr inbounds [1024 x i8], ptr %26, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %169, i8 0, i64 1024, i1 false)
  %170 = getelementptr inbounds [1024 x i8], ptr %26, i64 0, i64 0
  %171 = load ptr, ptr %12, align 8, !tbaa !5
  %172 = load ptr, ptr %12, align 8, !tbaa !5
  %173 = load ptr, ptr %12, align 8, !tbaa !5
  %174 = call i64 @strlen(ptr noundef %173) #7
  %175 = add i64 %174, 1
  %176 = getelementptr inbounds i8, ptr %172, i64 %175
  %177 = load ptr, ptr %14, align 8, !tbaa !5
  %178 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %170, i64 noundef 1024, ptr noundef @.str.79, ptr noundef @.str.80, ptr noundef %171, ptr noundef %176, ptr noundef %177) #6
  %179 = getelementptr inbounds [1024 x i8], ptr %26, i64 0, i64 0
  %180 = call noalias ptr @fopen(ptr noundef %179, ptr noundef @.str.8)
  store ptr %180, ptr %24, align 8, !tbaa !5
  %181 = icmp ne ptr null, %180
  br i1 %181, label %182, label %245

182:                                              ; preds = %164
  %183 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  %184 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %183, i64 noundef 1024, ptr noundef @.str.81) #6
  %185 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  %186 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  %187 = call i64 @strlen(ptr noundef %186) #7
  %188 = load ptr, ptr %24, align 8, !tbaa !5
  %189 = call i64 @fwrite(ptr noundef %185, i64 noundef %187, i64 noundef 1, ptr noundef %188)
  %190 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %190, i8 0, i64 1024, i1 false)
  %191 = load ptr, ptr %15, align 8, !tbaa !5
  %192 = load i64, ptr %16, align 8, !tbaa !9
  call void @msdb_prettyPrintOctetString(ptr noundef %25, ptr noundef %191, i64 noundef %192, i8 noundef zeroext 4)
  %193 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  %194 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  %195 = call i64 @strlen(ptr noundef %194) #7
  %196 = load ptr, ptr %24, align 8, !tbaa !5
  %197 = call i64 @fwrite(ptr noundef %193, i64 noundef %195, i64 noundef 1, ptr noundef %196)
  %198 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  %199 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %198, i64 noundef 1024, ptr noundef @.str.82) #6
  %200 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  %201 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  %202 = call i64 @strlen(ptr noundef %201) #7
  %203 = load ptr, ptr %24, align 8, !tbaa !5
  %204 = call i64 @fwrite(ptr noundef %200, i64 noundef %202, i64 noundef 1, ptr noundef %203)
  %205 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %205, i8 0, i64 1024, i1 false)
  %206 = load ptr, ptr %17, align 8, !tbaa !5
  %207 = load i64, ptr %18, align 8, !tbaa !9
  call void @msdb_prettyPrintOctetString(ptr noundef %25, ptr noundef %206, i64 noundef %207, i8 noundef zeroext 4)
  %208 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  %209 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  %210 = call i64 @strlen(ptr noundef %209) #7
  %211 = load ptr, ptr %24, align 8, !tbaa !5
  %212 = call i64 @fwrite(ptr noundef %208, i64 noundef %210, i64 noundef 1, ptr noundef %211)
  %213 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  %214 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %213, i64 noundef 1024, ptr noundef @.str.83) #6
  %215 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  %216 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  %217 = call i64 @strlen(ptr noundef %216) #7
  %218 = load ptr, ptr %24, align 8, !tbaa !5
  %219 = call i64 @fwrite(ptr noundef %215, i64 noundef %217, i64 noundef 1, ptr noundef %218)
  %220 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %220, i8 0, i64 1024, i1 false)
  %221 = load ptr, ptr %19, align 8, !tbaa !5
  %222 = load i64, ptr %20, align 8, !tbaa !9
  call void @msdb_prettyPrintOctetString(ptr noundef %25, ptr noundef %221, i64 noundef %222, i8 noundef zeroext 4)
  %223 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  %224 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  %225 = call i64 @strlen(ptr noundef %224) #7
  %226 = load ptr, ptr %24, align 8, !tbaa !5
  %227 = call i64 @fwrite(ptr noundef %223, i64 noundef %225, i64 noundef 1, ptr noundef %226)
  %228 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  %229 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %228, i64 noundef 1024, ptr noundef @.str.84) #6
  %230 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  %231 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  %232 = call i64 @strlen(ptr noundef %231) #7
  %233 = load ptr, ptr %24, align 8, !tbaa !5
  %234 = call i64 @fwrite(ptr noundef %230, i64 noundef %232, i64 noundef 1, ptr noundef %233)
  %235 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %235, i8 0, i64 1024, i1 false)
  %236 = load ptr, ptr %21, align 8, !tbaa !5
  %237 = load i64, ptr %22, align 8, !tbaa !9
  call void @msdb_prettyPrintOctetString(ptr noundef %25, ptr noundef %236, i64 noundef %237, i8 noundef zeroext 4)
  %238 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  %239 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  %240 = call i64 @strlen(ptr noundef %239) #7
  %241 = load ptr, ptr %24, align 8, !tbaa !5
  %242 = call i64 @fwrite(ptr noundef %238, i64 noundef %240, i64 noundef 1, ptr noundef %241)
  %243 = load ptr, ptr %24, align 8, !tbaa !5
  %244 = call i32 @fclose(ptr noundef %243)
  store i16 0, ptr %23, align 2, !tbaa !11
  br label %245

245:                                              ; preds = %182, %164
  br label %246

246:                                              ; preds = %245, %151
  br label %247

247:                                              ; preds = %246, %131
  br label %248

248:                                              ; preds = %247, %111
  br label %249

249:                                              ; preds = %248, %91
  br label %250

250:                                              ; preds = %249, %72
  br label %251

251:                                              ; preds = %250, %59
  br label %252

252:                                              ; preds = %251, %40
  %253 = getelementptr inbounds [1024 x i8], ptr %25, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %253, i8 0, i64 1024, i1 false)
  %254 = getelementptr inbounds [1024 x i8], ptr %26, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %254, i8 0, i64 1024, i1 false)
  %255 = load i16, ptr %23, align 2, !tbaa !11
  %256 = trunc i16 %255 to i8
  call void @llvm.lifetime.end.p0(i64 1024, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %23) #6
  ret i8 %256
}

; Function Attrs: nounwind uwtable
declare dso_local signext i16 @msdb_userDelete(ptr noundef, i64 noundef, ptr noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { "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 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 #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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !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
@stdout = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [5 x i8], align 1

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

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

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

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

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

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

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

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

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

; Function Attrs: nounwind uwtable
define dso_local zeroext range(i8 0, 2) i8 @msdb_userAdd(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, i64 noundef %6, ptr noundef %7, i64 noundef %8, ptr noundef %9, i64 noundef %10) local_unnamed_addr #4 {
  %12 = alloca [1024 x i8], align 16
  %13 = alloca [1024 x i8], align 16
  %14 = alloca [1200 x i8], align 16
  %15 = alloca [1200 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 %12) #5
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %13) #5
  %21 = icmp eq ptr %0, null
  br i1 %21, label %25, label %22

22:                                               ; preds = %11
  %23 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %0) #6
  %24 = icmp eq i64 %23, 0
  br i1 %24, label %25, label %29

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

29:                                               ; preds = %22
  %30 = getelementptr inbounds i8, ptr %0, i64 %23
  %31 = getelementptr inbounds i8, ptr %30, i64 1
  %32 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %31) #6
  %33 = add i64 %23, 2
  %34 = add i64 %33, %32
  %.not = icmp eq i64 %34, %1
  br i1 %.not, label %39, label %35

35:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %15) #5
  %36 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %15, i64 noundef 1200, ptr noundef nonnull @.str, ptr noundef nonnull @.str.73) #5
  %37 = load ptr, ptr @stdout, align 8, !tbaa !5
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef nonnull @.str.2, ptr noundef nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %15) #5
  br label %108

39:                                               ; preds = %29
  %40 = icmp eq ptr %2, null
  br i1 %40, label %43, label %41

41:                                               ; preds = %39
  %char0 = load i8, ptr %2, align 1
  %42 = icmp eq i8 %char0, 0
  br i1 %42, label %43, label %47

43:                                               ; preds = %41, %39
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %16) #5
  %44 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %16, i64 noundef 1200, ptr noundef nonnull @.str.74, ptr noundef nonnull %0, ptr noundef nonnull %31) #5
  %45 = load ptr, ptr @stdout, align 8, !tbaa !5
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull @.str.2, ptr noundef nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %16) #5
  br label %108

47:                                               ; preds = %41
  %48 = icmp eq ptr %3, null
  br i1 %48, label %51, label %49

49:                                               ; preds = %47
  %char068 = load i8, ptr %3, align 1
  %50 = icmp eq i8 %char068, 0
  br i1 %50, label %51, label %55

51:                                               ; preds = %49, %47
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %17) #5
  %52 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %17, i64 noundef 1200, ptr noundef nonnull @.str.75, ptr noundef nonnull %0, ptr noundef nonnull %31, ptr noundef nonnull %2) #5
  %53 = load ptr, ptr @stdout, align 8, !tbaa !5
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.2, ptr noundef nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %17) #5
  br label %108

55:                                               ; preds = %49
  %56 = icmp eq ptr %5, null
  br i1 %56, label %59, label %57

57:                                               ; preds = %55
  %char069 = load i8, ptr %5, align 1
  %58 = icmp eq i8 %char069, 0
  br i1 %58, label %59, label %63

59:                                               ; preds = %57, %55
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %18) #5
  %60 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %18, i64 noundef 1200, ptr noundef nonnull @.str.76, ptr noundef nonnull %0, ptr noundef nonnull %31, ptr noundef nonnull %2) #5
  %61 = load ptr, ptr @stdout, align 8, !tbaa !5
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef nonnull @.str.2, ptr noundef nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %18) #5
  br label %108

63:                                               ; preds = %57
  %64 = icmp eq ptr %7, null
  br i1 %64, label %67, label %65

65:                                               ; preds = %63
  %char070 = load i8, ptr %7, align 1
  %66 = icmp eq i8 %char070, 0
  br i1 %66, label %67, label %71

67:                                               ; preds = %65, %63
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %19) #5
  %68 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %19, i64 noundef 1200, ptr noundef nonnull @.str.77, ptr noundef nonnull %0, ptr noundef nonnull %31, ptr noundef nonnull %2) #5
  %69 = load ptr, ptr @stdout, align 8, !tbaa !5
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef nonnull @.str.2, ptr noundef nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %19) #5
  br label %108

71:                                               ; preds = %65
  %72 = icmp eq ptr %9, null
  br i1 %72, label %75, label %73

73:                                               ; preds = %71
  %char071 = load i8, ptr %9, align 1
  %74 = icmp eq i8 %char071, 0
  br i1 %74, label %75, label %79

75:                                               ; preds = %73, %71
  call void @llvm.lifetime.start.p0(i64 1200, ptr nonnull %20) #5
  %76 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %20, i64 noundef 1200, ptr noundef nonnull @.str.78, ptr noundef nonnull %0, ptr noundef nonnull %31, ptr noundef nonnull %2) #5
  %77 = load ptr, ptr @stdout, align 8, !tbaa !5
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef nonnull @.str.2, ptr noundef nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 1200, ptr nonnull %20) #5
  br label %108

79:                                               ; preds = %73
  %80 = tail call signext i16 @msdb_userDelete(ptr noundef nonnull %0, i64 noundef %1, ptr noundef nonnull %2)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1024) %13, i8 0, i64 1024, i1 false)
  %81 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %0) #6
  %82 = getelementptr i8, ptr %0, i64 %81
  %83 = getelementptr i8, ptr %82, i64 1
  %84 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %13, i64 noundef 1024, ptr noundef nonnull @.str.79, ptr noundef nonnull @.str.80, ptr noundef nonnull %0, ptr noundef %83, ptr noundef nonnull %2) #5
  %85 = call noalias ptr @fopen(ptr noundef nonnull %13, ptr noundef nonnull @.str.8)
  %.not72 = icmp eq ptr %85, null
  br i1 %.not72, label %108, label %86

86:                                               ; preds = %79
  %87 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %12, i64 noundef 1024, ptr noundef nonnull @.str.81) #5
  %88 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %12) #6
  %89 = call i64 @fwrite(ptr noundef nonnull %12, i64 noundef %88, i64 noundef 1, ptr noundef nonnull %85)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1024) %12, i8 0, i64 1024, i1 false)
  call void @msdb_prettyPrintOctetString(ptr noundef nonnull %12, ptr noundef nonnull %3, i64 noundef %4, i8 noundef zeroext 4)
  %90 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %12) #6
  %91 = call i64 @fwrite(ptr noundef nonnull %12, i64 noundef %90, i64 noundef 1, ptr noundef nonnull %85)
  %92 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %12, i64 noundef 1024, ptr noundef nonnull @.str.82) #5
  %93 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %12) #6
  %94 = call i64 @fwrite(ptr noundef nonnull %12, i64 noundef %93, i64 noundef 1, ptr noundef nonnull %85)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1024) %12, i8 0, i64 1024, i1 false)
  call void @msdb_prettyPrintOctetString(ptr noundef nonnull %12, ptr noundef nonnull %5, i64 noundef %6, i8 noundef zeroext 4)
  %95 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %12) #6
  %96 = call i64 @fwrite(ptr noundef nonnull %12, i64 noundef %95, i64 noundef 1, ptr noundef nonnull %85)
  %97 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %12, i64 noundef 1024, ptr noundef nonnull @.str.83) #5
  %98 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %12) #6
  %99 = call i64 @fwrite(ptr noundef nonnull %12, i64 noundef %98, i64 noundef 1, ptr noundef nonnull %85)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1024) %12, i8 0, i64 1024, i1 false)
  call void @msdb_prettyPrintOctetString(ptr noundef nonnull %12, ptr noundef nonnull %7, i64 noundef %8, i8 noundef zeroext 4)
  %100 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %12) #6
  %101 = call i64 @fwrite(ptr noundef nonnull %12, i64 noundef %100, i64 noundef 1, ptr noundef nonnull %85)
  %102 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %12, i64 noundef 1024, ptr noundef nonnull @.str.84) #5
  %103 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %12) #6
  %104 = call i64 @fwrite(ptr noundef nonnull %12, i64 noundef %103, i64 noundef 1, ptr noundef nonnull %85)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1024) %12, i8 0, i64 1024, i1 false)
  call void @msdb_prettyPrintOctetString(ptr noundef nonnull %12, ptr noundef nonnull %9, i64 noundef %10, i8 noundef zeroext 4)
  %105 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %12) #6
  %106 = call i64 @fwrite(ptr noundef nonnull %12, i64 noundef %105, i64 noundef 1, ptr noundef nonnull %85)
  %107 = call i32 @fclose(ptr noundef nonnull %85)
  br label %108

108:                                              ; preds = %35, %51, %67, %79, %86, %75, %59, %43, %25
  %.0 = phi i8 [ 1, %25 ], [ 1, %35 ], [ 1, %43 ], [ 1, %51 ], [ 1, %59 ], [ 1, %67 ], [ 1, %75 ], [ 0, %86 ], [ 1, %79 ]
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %12) #5
  ret i8 %.0
}

; Function Attrs: nounwind uwtable
declare dso_local signext i16 @msdb_userDelete(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #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: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass