; LLVM IR from CLASS-SZ/class_sz :: class-sz/tools (parser)

; 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.file_content = type { ptr, i32, ptr, ptr, ptr }

@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [16 x i8], align 1
@__func__.parser_cat = external hidden unnamed_addr constant [11 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [11 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

declare void @class_protect_sprintf(ptr noundef, ptr noundef, ...) #1

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

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

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

; Function Attrs: nounwind uwtable
define dso_local i32 @parser_cat(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #5 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca [2048 x i8], align 16
  %12 = alloca [2048 x i8], align 16
  %13 = alloca i32, align 4
  %14 = alloca [2048 x i8], align 16
  %15 = alloca [2048 x i8], align 16
  %16 = alloca i32, align 4
  %17 = alloca [2048 x i8], align 16
  %18 = alloca i32, align 4
  %19 = alloca [2048 x i8], align 16
  %20 = alloca i32, align 4
  %21 = alloca [2048 x i8], align 16
  %22 = alloca i32, align 4
  %23 = alloca [2048 x i8], align 16
  %24 = alloca i32, align 4
  %25 = alloca [2048 x i8], align 16
  %26 = alloca i32, align 4
  %27 = alloca [2048 x i8], align 16
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.file_content, ptr %28, i32 0, i32 1
  %30 = load i32, ptr %29, align 8, !tbaa !9
  %31 = sitofp i32 %30 to double
  %32 = fcmp olt double %31, 0.000000e+00
  br i1 %32, label %33, label %39

33:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 2048, ptr %11) #6
  %34 = getelementptr inbounds [2048 x i8], ptr %11, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %34, ptr noundef @.str.32)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %12) #6
  %35 = getelementptr inbounds [2048 x i8], ptr %12, i64 0, i64 0
  %36 = getelementptr inbounds [2048 x i8], ptr %11, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %35, ptr noundef @.str.8, ptr noundef @.str.33, ptr noundef %36)
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = getelementptr inbounds [2048 x i8], ptr %12, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %37, ptr noundef @.str.4, ptr noundef @__func__.parser_cat, i32 noundef 652, ptr noundef %38)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr %11) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %388

39:                                               ; preds = %4
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.file_content, ptr %40, i32 0, i32 1
  %42 = load i32, ptr %41, align 8, !tbaa !9
  %43 = sitofp i32 %42 to double
  %44 = fcmp olt double %43, 0.000000e+00
  br i1 %44, label %45, label %51

45:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 2048, ptr %14) #6
  %46 = getelementptr inbounds [2048 x i8], ptr %14, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %46, ptr noundef @.str.32)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %15) #6
  %47 = getelementptr inbounds [2048 x i8], ptr %15, i64 0, i64 0
  %48 = getelementptr inbounds [2048 x i8], ptr %14, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %47, ptr noundef @.str.8, ptr noundef @.str.34, ptr noundef %48)
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = getelementptr inbounds [2048 x i8], ptr %15, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %49, ptr noundef @.str.4, ptr noundef @__func__.parser_cat, i32 noundef 656, ptr noundef %50)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr %14) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %388

51:                                               ; preds = %39
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.file_content, ptr %52, i32 0, i32 1
  %54 = load i32, ptr %53, align 8, !tbaa !9
  %55 = icmp eq i32 %54, 0
  br i1 %55, label %56, label %90

56:                                               ; preds = %51
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.file_content, ptr %57, i32 0, i32 0
  %59 = load ptr, ptr %58, align 8, !tbaa !12
  %60 = call i64 @strlen(ptr noundef %59) #7
  %61 = add i64 %60, 1
  %62 = mul i64 %61, 1
  %63 = call noalias ptr @malloc(i64 noundef %62) #8
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.file_content, ptr %64, i32 0, i32 0
  store ptr %63, ptr %65, align 8, !tbaa !12
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.file_content, ptr %66, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8, !tbaa !12
  %69 = icmp eq ptr %68, null
  br i1 %69, label %70, label %82

70:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.file_content, ptr %71, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8, !tbaa !12
  %74 = call i64 @strlen(ptr noundef %73) #7
  %75 = add i64 %74, 1
  %76 = mul i64 %75, 1
  %77 = trunc i64 %76 to i32
  store i32 %77, ptr %16, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 2048, ptr %17) #6
  %78 = getelementptr inbounds [2048 x i8], ptr %17, i64 0, i64 0
  %79 = load i32, ptr %16, align 4, !tbaa !13
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %78, ptr noundef @.str.11, ptr noundef @.str.35, i32 noundef %79)
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = getelementptr inbounds [2048 x i8], ptr %17, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %80, ptr noundef @.str.4, ptr noundef @__func__.parser_cat, i32 noundef 659, ptr noundef %81)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %17) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %388

82:                                               ; preds = %56
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.file_content, ptr %83, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8, !tbaa !12
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.file_content, ptr %86, i32 0, i32 0
  %88 = load ptr, ptr %87, align 8, !tbaa !12
  %89 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %85, ptr noundef @.str.36, ptr noundef %88) #6
  br label %90

90:                                               ; preds = %82, %51
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.file_content, ptr %91, i32 0, i32 1
  %93 = load i32, ptr %92, align 8, !tbaa !9
  %94 = icmp eq i32 %93, 0
  br i1 %94, label %95, label %129

95:                                               ; preds = %90
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.file_content, ptr %96, i32 0, i32 0
  %98 = load ptr, ptr %97, align 8, !tbaa !12
  %99 = call i64 @strlen(ptr noundef %98) #7
  %100 = add i64 %99, 1
  %101 = mul i64 %100, 1
  %102 = call noalias ptr @malloc(i64 noundef %101) #8
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.file_content, ptr %103, i32 0, i32 0
  store ptr %102, ptr %104, align 8, !tbaa !12
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.file_content, ptr %105, i32 0, i32 0
  %107 = load ptr, ptr %106, align 8, !tbaa !12
  %108 = icmp eq ptr %107, null
  br i1 %108, label %109, label %121

109:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.file_content, ptr %110, i32 0, i32 0
  %112 = load ptr, ptr %111, align 8, !tbaa !12
  %113 = call i64 @strlen(ptr noundef %112) #7
  %114 = add i64 %113, 1
  %115 = mul i64 %114, 1
  %116 = trunc i64 %115 to i32
  store i32 %116, ptr %18, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 2048, ptr %19) #6
  %117 = getelementptr inbounds [2048 x i8], ptr %19, i64 0, i64 0
  %118 = load i32, ptr %18, align 4, !tbaa !13
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %117, ptr noundef @.str.11, ptr noundef @.str.35, i32 noundef %118)
  %119 = load ptr, ptr %9, align 8, !tbaa !5
  %120 = getelementptr inbounds [2048 x i8], ptr %19, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %119, ptr noundef @.str.4, ptr noundef @__func__.parser_cat, i32 noundef 663, ptr noundef %120)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %19) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %388

121:                                              ; preds = %95
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.file_content, ptr %122, i32 0, i32 0
  %124 = load ptr, ptr %123, align 8, !tbaa !12
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.file_content, ptr %125, i32 0, i32 0
  %127 = load ptr, ptr %126, align 8, !tbaa !12
  %128 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %124, ptr noundef @.str.36, ptr noundef %127) #6
  br label %129

129:                                              ; preds = %121, %90
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.file_content, ptr %130, i32 0, i32 1
  %132 = load i32, ptr %131, align 8, !tbaa !9
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %134, label %186

134:                                              ; preds = %129
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.file_content, ptr %135, i32 0, i32 1
  %137 = load i32, ptr %136, align 8, !tbaa !9
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %139, label %186

139:                                              ; preds = %134
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.file_content, ptr %140, i32 0, i32 0
  %142 = load ptr, ptr %141, align 8, !tbaa !12
  %143 = call i64 @strlen(ptr noundef %142) #7
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.file_content, ptr %144, i32 0, i32 0
  %146 = load ptr, ptr %145, align 8, !tbaa !12
  %147 = call i64 @strlen(ptr noundef %146) #7
  %148 = add i64 %143, %147
  %149 = add i64 %148, 5
  %150 = mul i64 %149, 1
  %151 = call noalias ptr @malloc(i64 noundef %150) #8
  %152 = load ptr, ptr %8, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.file_content, ptr %152, i32 0, i32 0
  store ptr %151, ptr %153, align 8, !tbaa !12
  %154 = load ptr, ptr %8, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.file_content, ptr %154, i32 0, i32 0
  %156 = load ptr, ptr %155, align 8, !tbaa !12
  %157 = icmp eq ptr %156, null
  br i1 %157, label %158, label %175

158:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %159 = load ptr, ptr %6, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.file_content, ptr %159, i32 0, i32 0
  %161 = load ptr, ptr %160, align 8, !tbaa !12
  %162 = call i64 @strlen(ptr noundef %161) #7
  %163 = load ptr, ptr %7, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.file_content, ptr %163, i32 0, i32 0
  %165 = load ptr, ptr %164, align 8, !tbaa !12
  %166 = call i64 @strlen(ptr noundef %165) #7
  %167 = add i64 %162, %166
  %168 = add i64 %167, 5
  %169 = mul i64 %168, 1
  %170 = trunc i64 %169 to i32
  store i32 %170, ptr %20, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 2048, ptr %21) #6
  %171 = getelementptr inbounds [2048 x i8], ptr %21, i64 0, i64 0
  %172 = load i32, ptr %20, align 4, !tbaa !13
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %171, ptr noundef @.str.11, ptr noundef @.str.35, i32 noundef %172)
  %173 = load ptr, ptr %9, align 8, !tbaa !5
  %174 = getelementptr inbounds [2048 x i8], ptr %21, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %173, ptr noundef @.str.4, ptr noundef @__func__.parser_cat, i32 noundef 667, ptr noundef %174)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %21) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %388

175:                                              ; preds = %139
  %176 = load ptr, ptr %8, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.file_content, ptr %176, i32 0, i32 0
  %178 = load ptr, ptr %177, align 8, !tbaa !12
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.file_content, ptr %179, i32 0, i32 0
  %181 = load ptr, ptr %180, align 8, !tbaa !12
  %182 = load ptr, ptr %7, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.file_content, ptr %182, i32 0, i32 0
  %184 = load ptr, ptr %183, align 8, !tbaa !12
  %185 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %178, ptr noundef @.str.37, ptr noundef %181, ptr noundef %184) #6
  br label %186

186:                                              ; preds = %175, %134, %129
  %187 = load ptr, ptr %6, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.file_content, ptr %187, i32 0, i32 1
  %189 = load i32, ptr %188, align 8, !tbaa !9
  %190 = load ptr, ptr %7, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.file_content, ptr %190, i32 0, i32 1
  %192 = load i32, ptr %191, align 8, !tbaa !9
  %193 = add nsw i32 %189, %192
  %194 = load ptr, ptr %8, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.file_content, ptr %194, i32 0, i32 1
  store i32 %193, ptr %195, align 8, !tbaa !9
  %196 = load ptr, ptr %8, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.file_content, ptr %196, i32 0, i32 1
  %198 = load i32, ptr %197, align 8, !tbaa !9
  %199 = sext i32 %198 to i64
  %200 = mul i64 %199, 1024
  %201 = call noalias ptr @malloc(i64 noundef %200) #8
  %202 = load ptr, ptr %8, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.file_content, ptr %202, i32 0, i32 3
  store ptr %201, ptr %203, align 8, !tbaa !14
  %204 = load ptr, ptr %8, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.file_content, ptr %204, i32 0, i32 3
  %206 = load ptr, ptr %205, align 8, !tbaa !14
  %207 = icmp eq ptr %206, null
  br i1 %207, label %208, label %219

208:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %209 = load ptr, ptr %8, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.file_content, ptr %209, i32 0, i32 1
  %211 = load i32, ptr %210, align 8, !tbaa !9
  %212 = sext i32 %211 to i64
  %213 = mul i64 %212, 1024
  %214 = trunc i64 %213 to i32
  store i32 %214, ptr %22, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 2048, ptr %23) #6
  %215 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  %216 = load i32, ptr %22, align 4, !tbaa !13
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %215, ptr noundef @.str.11, ptr noundef @.str.38, i32 noundef %216)
  %217 = load ptr, ptr %9, align 8, !tbaa !5
  %218 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %217, ptr noundef @.str.4, ptr noundef @__func__.parser_cat, i32 noundef 672, ptr noundef %218)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %23) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %388

219:                                              ; preds = %186
  %220 = load ptr, ptr %8, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.file_content, ptr %220, i32 0, i32 1
  %222 = load i32, ptr %221, align 8, !tbaa !9
  %223 = sext i32 %222 to i64
  %224 = mul i64 %223, 1024
  %225 = call noalias ptr @malloc(i64 noundef %224) #8
  %226 = load ptr, ptr %8, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.file_content, ptr %226, i32 0, i32 2
  store ptr %225, ptr %227, align 8, !tbaa !15
  %228 = load ptr, ptr %8, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.file_content, ptr %228, i32 0, i32 2
  %230 = load ptr, ptr %229, align 8, !tbaa !15
  %231 = icmp eq ptr %230, null
  br i1 %231, label %232, label %243

232:                                              ; preds = %219
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %233 = load ptr, ptr %8, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.file_content, ptr %233, i32 0, i32 1
  %235 = load i32, ptr %234, align 8, !tbaa !9
  %236 = sext i32 %235 to i64
  %237 = mul i64 %236, 1024
  %238 = trunc i64 %237 to i32
  store i32 %238, ptr %24, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 2048, ptr %25) #6
  %239 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  %240 = load i32, ptr %24, align 4, !tbaa !13
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %239, ptr noundef @.str.11, ptr noundef @.str.39, i32 noundef %240)
  %241 = load ptr, ptr %9, align 8, !tbaa !5
  %242 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %241, ptr noundef @.str.4, ptr noundef @__func__.parser_cat, i32 noundef 673, ptr noundef %242)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %25) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %388

243:                                              ; preds = %219
  %244 = load ptr, ptr %8, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.file_content, ptr %244, i32 0, i32 1
  %246 = load i32, ptr %245, align 8, !tbaa !9
  %247 = sext i32 %246 to i64
  %248 = mul i64 %247, 2
  %249 = call noalias ptr @malloc(i64 noundef %248) #8
  %250 = load ptr, ptr %8, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.file_content, ptr %250, i32 0, i32 4
  store ptr %249, ptr %251, align 8, !tbaa !16
  %252 = load ptr, ptr %8, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.file_content, ptr %252, i32 0, i32 4
  %254 = load ptr, ptr %253, align 8, !tbaa !16
  %255 = icmp eq ptr %254, null
  br i1 %255, label %256, label %267

256:                                              ; preds = %243
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %257 = load ptr, ptr %8, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.file_content, ptr %257, i32 0, i32 1
  %259 = load i32, ptr %258, align 8, !tbaa !9
  %260 = sext i32 %259 to i64
  %261 = mul i64 %260, 2
  %262 = trunc i64 %261 to i32
  store i32 %262, ptr %26, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 2048, ptr %27) #6
  %263 = getelementptr inbounds [2048 x i8], ptr %27, i64 0, i64 0
  %264 = load i32, ptr %26, align 4, !tbaa !13
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %263, ptr noundef @.str.11, ptr noundef @.str.40, i32 noundef %264)
  %265 = load ptr, ptr %9, align 8, !tbaa !5
  %266 = getelementptr inbounds [2048 x i8], ptr %27, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %265, ptr noundef @.str.4, ptr noundef @__func__.parser_cat, i32 noundef 674, ptr noundef %266)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %27) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %388

267:                                              ; preds = %243
  store i32 0, ptr %10, align 4, !tbaa !13
  br label %268

268:                                              ; preds = %318, %267
  %269 = load i32, ptr %10, align 4, !tbaa !13
  %270 = load ptr, ptr %6, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.file_content, ptr %270, i32 0, i32 1
  %272 = load i32, ptr %271, align 8, !tbaa !9
  %273 = icmp slt i32 %269, %272
  br i1 %273, label %274, label %321

274:                                              ; preds = %268
  %275 = load ptr, ptr %8, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.file_content, ptr %275, i32 0, i32 3
  %277 = load ptr, ptr %276, align 8, !tbaa !14
  %278 = load i32, ptr %10, align 4, !tbaa !13
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds [1024 x i8], ptr %277, i64 %279
  %281 = getelementptr inbounds [1024 x i8], ptr %280, i64 0, i64 0
  %282 = load ptr, ptr %6, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.file_content, ptr %282, i32 0, i32 3
  %284 = load ptr, ptr %283, align 8, !tbaa !14
  %285 = load i32, ptr %10, align 4, !tbaa !13
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds [1024 x i8], ptr %284, i64 %286
  %288 = getelementptr inbounds [1024 x i8], ptr %287, i64 0, i64 0
  %289 = call ptr @strcpy(ptr noundef %281, ptr noundef %288) #6
  %290 = load ptr, ptr %8, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.file_content, ptr %290, i32 0, i32 2
  %292 = load ptr, ptr %291, align 8, !tbaa !15
  %293 = load i32, ptr %10, align 4, !tbaa !13
  %294 = sext i32 %293 to i64
  %295 = getelementptr inbounds [1024 x i8], ptr %292, i64 %294
  %296 = getelementptr inbounds [1024 x i8], ptr %295, i64 0, i64 0
  %297 = load ptr, ptr %6, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.file_content, ptr %297, i32 0, i32 2
  %299 = load ptr, ptr %298, align 8, !tbaa !15
  %300 = load i32, ptr %10, align 4, !tbaa !13
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds [1024 x i8], ptr %299, i64 %301
  %303 = getelementptr inbounds [1024 x i8], ptr %302, i64 0, i64 0
  %304 = call ptr @strcpy(ptr noundef %296, ptr noundef %303) #6
  %305 = load ptr, ptr %6, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.file_content, ptr %305, i32 0, i32 4
  %307 = load ptr, ptr %306, align 8, !tbaa !16
  %308 = load i32, ptr %10, align 4, !tbaa !13
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds i16, ptr %307, i64 %309
  %311 = load i16, ptr %310, align 2, !tbaa !17
  %312 = load ptr, ptr %8, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.file_content, ptr %312, i32 0, i32 4
  %314 = load ptr, ptr %313, align 8, !tbaa !16
  %315 = load i32, ptr %10, align 4, !tbaa !13
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds i16, ptr %314, i64 %316
  store i16 %311, ptr %317, align 2, !tbaa !17
  br label %318

318:                                              ; preds = %274
  %319 = load i32, ptr %10, align 4, !tbaa !13
  %320 = add nsw i32 %319, 1
  store i32 %320, ptr %10, align 4, !tbaa !13
  br label %268, !llvm.loop !19

321:                                              ; preds = %268
  store i32 0, ptr %10, align 4, !tbaa !13
  br label %322

322:                                              ; preds = %384, %321
  %323 = load i32, ptr %10, align 4, !tbaa !13
  %324 = load ptr, ptr %7, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.file_content, ptr %324, i32 0, i32 1
  %326 = load i32, ptr %325, align 8, !tbaa !9
  %327 = icmp slt i32 %323, %326
  br i1 %327, label %328, label %387

328:                                              ; preds = %322
  %329 = load ptr, ptr %8, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.file_content, ptr %329, i32 0, i32 3
  %331 = load ptr, ptr %330, align 8, !tbaa !14
  %332 = load i32, ptr %10, align 4, !tbaa !13
  %333 = load ptr, ptr %6, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.file_content, ptr %333, i32 0, i32 1
  %335 = load i32, ptr %334, align 8, !tbaa !9
  %336 = add nsw i32 %332, %335
  %337 = sext i32 %336 to i64
  %338 = getelementptr inbounds [1024 x i8], ptr %331, i64 %337
  %339 = getelementptr inbounds [1024 x i8], ptr %338, i64 0, i64 0
  %340 = load ptr, ptr %7, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.file_content, ptr %340, i32 0, i32 3
  %342 = load ptr, ptr %341, align 8, !tbaa !14
  %343 = load i32, ptr %10, align 4, !tbaa !13
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds [1024 x i8], ptr %342, i64 %344
  %346 = getelementptr inbounds [1024 x i8], ptr %345, i64 0, i64 0
  %347 = call ptr @strcpy(ptr noundef %339, ptr noundef %346) #6
  %348 = load ptr, ptr %8, align 8, !tbaa !5
  %349 = getelementptr inbounds %struct.file_content, ptr %348, i32 0, i32 2
  %350 = load ptr, ptr %349, align 8, !tbaa !15
  %351 = load i32, ptr %10, align 4, !tbaa !13
  %352 = load ptr, ptr %6, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.file_content, ptr %352, i32 0, i32 1
  %354 = load i32, ptr %353, align 8, !tbaa !9
  %355 = add nsw i32 %351, %354
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds [1024 x i8], ptr %350, i64 %356
  %358 = getelementptr inbounds [1024 x i8], ptr %357, i64 0, i64 0
  %359 = load ptr, ptr %7, align 8, !tbaa !5
  %360 = getelementptr inbounds %struct.file_content, ptr %359, i32 0, i32 2
  %361 = load ptr, ptr %360, align 8, !tbaa !15
  %362 = load i32, ptr %10, align 4, !tbaa !13
  %363 = sext i32 %362 to i64
  %364 = getelementptr inbounds [1024 x i8], ptr %361, i64 %363
  %365 = getelementptr inbounds [1024 x i8], ptr %364, i64 0, i64 0
  %366 = call ptr @strcpy(ptr noundef %358, ptr noundef %365) #6
  %367 = load ptr, ptr %7, align 8, !tbaa !5
  %368 = getelementptr inbounds %struct.file_content, ptr %367, i32 0, i32 4
  %369 = load ptr, ptr %368, align 8, !tbaa !16
  %370 = load i32, ptr %10, align 4, !tbaa !13
  %371 = sext i32 %370 to i64
  %372 = getelementptr inbounds i16, ptr %369, i64 %371
  %373 = load i16, ptr %372, align 2, !tbaa !17
  %374 = load ptr, ptr %8, align 8, !tbaa !5
  %375 = getelementptr inbounds %struct.file_content, ptr %374, i32 0, i32 4
  %376 = load ptr, ptr %375, align 8, !tbaa !16
  %377 = load i32, ptr %10, align 4, !tbaa !13
  %378 = load ptr, ptr %6, align 8, !tbaa !5
  %379 = getelementptr inbounds %struct.file_content, ptr %378, i32 0, i32 1
  %380 = load i32, ptr %379, align 8, !tbaa !9
  %381 = add nsw i32 %377, %380
  %382 = sext i32 %381 to i64
  %383 = getelementptr inbounds i16, ptr %376, i64 %382
  store i16 %373, ptr %383, align 2, !tbaa !17
  br label %384

384:                                              ; preds = %328
  %385 = load i32, ptr %10, align 4, !tbaa !13
  %386 = add nsw i32 %385, 1
  store i32 %386, ptr %10, align 4, !tbaa !13
  br label %322, !llvm.loop !21

387:                                              ; preds = %322
  store i32 0, ptr %5, align 4
  store i32 1, ptr %13, align 4
  br label %388

388:                                              ; preds = %387, %256, %232, %208, %158, %109, %70, %45, %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  %389 = load i32, ptr %5, align 4
  ret i32 %389
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { nounwind allocsize(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 #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 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) }
attributes #8 = { nounwind allocsize(0) }

!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, !11, i64 8}
!10 = !{!"file_content", !6, i64 0, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !6, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !6, i64 24}
!15 = !{!10, !6, i64 16}
!16 = !{!10, !6, i64 32}
!17 = !{!18, !18, i64 0}
!18 = !{!"short", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}


; 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.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [16 x i8], align 1
@__func__.parser_cat = external hidden unnamed_addr constant [11 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [11 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

declare void @class_protect_sprintf(ptr noundef, ptr noundef, ...) local_unnamed_addr #1

; 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 nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @parser_cat(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef %2, ptr noundef %3) local_unnamed_addr #5 {
  %5 = alloca [2048 x i8], align 16
  %6 = alloca [2048 x i8], align 16
  %7 = alloca [2048 x i8], align 16
  %8 = alloca [2048 x i8], align 16
  %9 = alloca [2048 x i8], align 16
  %10 = alloca [2048 x i8], align 16
  %11 = alloca [2048 x i8], align 16
  %12 = alloca [2048 x i8], align 16
  %13 = alloca [2048 x i8], align 16
  %14 = alloca [2048 x i8], align 16
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  %16 = load i32, ptr %15, align 8, !tbaa !5
  %17 = icmp slt i32 %16, 0
  br i1 %17, label %18, label %19

18:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %5) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %5, ptr noundef nonnull @.str.32) #7
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %6) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %6, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.33, ptr noundef nonnull %5) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %3, ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__.parser_cat, i32 noundef 652, ptr noundef nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %5) #7
  br label %.loopexit

19:                                               ; preds = %4
  %20 = getelementptr inbounds i8, ptr %1, i64 8
  %21 = load i32, ptr %20, align 8, !tbaa !5
  %22 = icmp slt i32 %21, 0
  br i1 %22, label %23, label %24

23:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %7) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %7, ptr noundef nonnull @.str.32) #7
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %8) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.34, ptr noundef nonnull %7) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %3, ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__.parser_cat, i32 noundef 656, ptr noundef nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %7) #7
  br label %.loopexit

24:                                               ; preds = %19
  %25 = icmp eq i32 %16, 0
  br i1 %25, label %26, label %39

26:                                               ; preds = %24
  %27 = load ptr, ptr %1, align 8, !tbaa !11
  %28 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %27) #8
  %29 = add i64 %28, 1
  %30 = tail call noalias ptr @malloc(i64 noundef %29) #9
  store ptr %30, ptr %2, align 8, !tbaa !11
  %31 = icmp eq ptr %30, null
  %32 = load ptr, ptr %1, align 8, !tbaa !11
  br i1 %31, label %33, label %37

33:                                               ; preds = %26
  %34 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %32) #8
  %35 = trunc i64 %34 to i32
  %36 = add i32 %35, 1
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %9) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.35, i32 noundef %36) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %3, ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__.parser_cat, i32 noundef 659, ptr noundef nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %9) #7
  br label %.loopexit

37:                                               ; preds = %26
  %38 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %30, ptr noundef nonnull dereferenceable(1) @.str.36, ptr noundef %32) #7
  %.pr = load i32, ptr %20, align 8, !tbaa !5
  br label %39

39:                                               ; preds = %37, %24
  %40 = phi i32 [ %.pr, %37 ], [ %21, %24 ]
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %42, label %55

42:                                               ; preds = %39
  %43 = load ptr, ptr %0, align 8, !tbaa !11
  %44 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %43) #8
  %45 = add i64 %44, 1
  %46 = tail call noalias ptr @malloc(i64 noundef %45) #9
  store ptr %46, ptr %2, align 8, !tbaa !11
  %47 = icmp eq ptr %46, null
  %48 = load ptr, ptr %0, align 8, !tbaa !11
  br i1 %47, label %49, label %53

49:                                               ; preds = %42
  %50 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %48) #8
  %51 = trunc i64 %50 to i32
  %52 = add i32 %51, 1
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %10) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %10, ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.35, i32 noundef %52) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %3, ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__.parser_cat, i32 noundef 663, ptr noundef nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %10) #7
  br label %.loopexit

53:                                               ; preds = %42
  %54 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %46, ptr noundef nonnull dereferenceable(1) @.str.36, ptr noundef %48) #7
  %.pre103.pre = load i32, ptr %20, align 8, !tbaa !5
  br label %55

55:                                               ; preds = %53, %39
  %.pre103 = phi i32 [ %.pre103.pre, %53 ], [ %40, %39 ]
  %56 = load i32, ptr %15, align 8, !tbaa !5
  %.not = icmp eq i32 %56, 0
  br i1 %.not, label %78, label %57

57:                                               ; preds = %55
  %.not93 = icmp eq i32 %.pre103, 0
  br i1 %.not93, label %78, label %58

58:                                               ; preds = %57
  %59 = load ptr, ptr %0, align 8, !tbaa !11
  %60 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %59) #8
  %61 = load ptr, ptr %1, align 8, !tbaa !11
  %62 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %61) #8
  %63 = add i64 %60, 5
  %64 = add i64 %63, %62
  %65 = tail call noalias ptr @malloc(i64 noundef %64) #9
  store ptr %65, ptr %2, align 8, !tbaa !11
  %66 = icmp eq ptr %65, null
  %67 = load ptr, ptr %0, align 8, !tbaa !11
  br i1 %66, label %68, label %75

68:                                               ; preds = %58
  %69 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %67) #8
  %70 = load ptr, ptr %1, align 8, !tbaa !11
  %71 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %70) #8
  %72 = add i64 %71, %69
  %73 = trunc i64 %72 to i32
  %74 = add i32 %73, 5
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %11) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %11, ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.35, i32 noundef %74) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %3, ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__.parser_cat, i32 noundef 667, ptr noundef nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %11) #7
  br label %.loopexit

75:                                               ; preds = %58
  %76 = load ptr, ptr %1, align 8, !tbaa !11
  %77 = tail call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %65, ptr noundef nonnull dereferenceable(1) @.str.37, ptr noundef %67, ptr noundef %76) #7
  %.pre = load i32, ptr %15, align 8, !tbaa !5
  %.pre102 = load i32, ptr %20, align 8, !tbaa !5
  br label %78

78:                                               ; preds = %75, %57, %55
  %79 = phi i32 [ %.pre102, %75 ], [ 0, %57 ], [ %.pre103, %55 ]
  %80 = phi i32 [ %.pre, %75 ], [ %56, %57 ], [ 0, %55 ]
  %81 = add nsw i32 %79, %80
  %82 = getelementptr inbounds i8, ptr %2, i64 8
  store i32 %81, ptr %82, align 8, !tbaa !5
  %83 = sext i32 %81 to i64
  %84 = shl nsw i64 %83, 10
  %85 = tail call noalias ptr @malloc(i64 noundef %84) #9
  %86 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr %85, ptr %86, align 8, !tbaa !12
  %87 = icmp eq ptr %85, null
  br i1 %87, label %88, label %90

88:                                               ; preds = %78
  %89 = shl i32 %81, 10
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %12) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.38, i32 noundef %89) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %3, ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__.parser_cat, i32 noundef 672, ptr noundef nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %12) #7
  br label %.loopexit

90:                                               ; preds = %78
  %91 = tail call noalias ptr @malloc(i64 noundef %84) #9
  %92 = getelementptr inbounds i8, ptr %2, i64 16
  store ptr %91, ptr %92, align 8, !tbaa !13
  %93 = icmp eq ptr %91, null
  br i1 %93, label %94, label %96

94:                                               ; preds = %90
  %95 = shl i32 %81, 10
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %13) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %13, ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.39, i32 noundef %95) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %3, ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__.parser_cat, i32 noundef 673, ptr noundef nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %13) #7
  br label %.loopexit

96:                                               ; preds = %90
  %97 = shl nsw i64 %83, 1
  %98 = tail call noalias ptr @malloc(i64 noundef %97) #9
  %99 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr %98, ptr %99, align 8, !tbaa !14
  %100 = icmp eq ptr %98, null
  br i1 %100, label %106, label %.preheader94

.preheader94:                                     ; preds = %96
  %101 = load i32, ptr %15, align 8, !tbaa !5
  %102 = icmp sgt i32 %101, 0
  br i1 %102, label %.lr.ph, label %.preheader

.lr.ph:                                           ; preds = %.preheader94
  %103 = getelementptr inbounds i8, ptr %0, i64 24
  %104 = getelementptr inbounds i8, ptr %0, i64 16
  %105 = getelementptr inbounds i8, ptr %0, i64 32
  br label %114

106:                                              ; preds = %96
  %107 = shl i32 %81, 1
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %14) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %14, ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.40, i32 noundef %107) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %3, ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__.parser_cat, i32 noundef 674, ptr noundef nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %14) #7
  br label %.loopexit

.preheader:                                       ; preds = %114, %.preheader94
  %108 = phi i32 [ %101, %.preheader94 ], [ %130, %114 ]
  %109 = load i32, ptr %20, align 8, !tbaa !5
  %110 = icmp sgt i32 %109, 0
  br i1 %110, label %.lr.ph97, label %.loopexit

.lr.ph97:                                         ; preds = %.preheader
  %111 = getelementptr inbounds i8, ptr %1, i64 24
  %112 = getelementptr inbounds i8, ptr %1, i64 16
  %113 = getelementptr inbounds i8, ptr %1, i64 32
  br label %133

114:                                              ; preds = %.lr.ph, %114
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %114 ]
  %115 = load ptr, ptr %86, align 8, !tbaa !12
  %116 = getelementptr inbounds [1024 x i8], ptr %115, i64 %indvars.iv
  %117 = load ptr, ptr %103, align 8, !tbaa !12
  %118 = getelementptr inbounds [1024 x i8], ptr %117, i64 %indvars.iv
  %119 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %116, ptr noundef nonnull dereferenceable(1) %118) #7
  %120 = load ptr, ptr %92, align 8, !tbaa !13
  %121 = getelementptr inbounds [1024 x i8], ptr %120, i64 %indvars.iv
  %122 = load ptr, ptr %104, align 8, !tbaa !13
  %123 = getelementptr inbounds [1024 x i8], ptr %122, i64 %indvars.iv
  %124 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %121, ptr noundef nonnull dereferenceable(1) %123) #7
  %125 = load ptr, ptr %105, align 8, !tbaa !14
  %126 = getelementptr inbounds i16, ptr %125, i64 %indvars.iv
  %127 = load i16, ptr %126, align 2, !tbaa !15
  %128 = load ptr, ptr %99, align 8, !tbaa !14
  %129 = getelementptr inbounds i16, ptr %128, i64 %indvars.iv
  store i16 %127, ptr %129, align 2, !tbaa !15
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %130 = load i32, ptr %15, align 8, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = icmp slt i64 %indvars.iv.next, %131
  br i1 %132, label %114, label %.preheader, !llvm.loop !17

133:                                              ; preds = %.lr.ph97, %133
  %134 = phi i32 [ %108, %.lr.ph97 ], [ %155, %133 ]
  %indvars.iv99 = phi i64 [ 0, %.lr.ph97 ], [ %indvars.iv.next100, %133 ]
  %135 = load ptr, ptr %86, align 8, !tbaa !12
  %136 = trunc nuw nsw i64 %indvars.iv99 to i32
  %137 = add nsw i32 %134, %136
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [1024 x i8], ptr %135, i64 %138
  %140 = load ptr, ptr %111, align 8, !tbaa !12
  %141 = getelementptr inbounds [1024 x i8], ptr %140, i64 %indvars.iv99
  %142 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %139, ptr noundef nonnull dereferenceable(1) %141) #7
  %143 = load ptr, ptr %92, align 8, !tbaa !13
  %144 = load i32, ptr %15, align 8, !tbaa !5
  %145 = add nsw i32 %144, %136
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [1024 x i8], ptr %143, i64 %146
  %148 = load ptr, ptr %112, align 8, !tbaa !13
  %149 = getelementptr inbounds [1024 x i8], ptr %148, i64 %indvars.iv99
  %150 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %147, ptr noundef nonnull dereferenceable(1) %149) #7
  %151 = load ptr, ptr %113, align 8, !tbaa !14
  %152 = getelementptr inbounds i16, ptr %151, i64 %indvars.iv99
  %153 = load i16, ptr %152, align 2, !tbaa !15
  %154 = load ptr, ptr %99, align 8, !tbaa !14
  %155 = load i32, ptr %15, align 8, !tbaa !5
  %156 = add nsw i32 %155, %136
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds i16, ptr %154, i64 %157
  store i16 %153, ptr %158, align 2, !tbaa !15
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 1
  %159 = load i32, ptr %20, align 8, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = icmp slt i64 %indvars.iv.next100, %160
  br i1 %161, label %133, label %.loopexit, !llvm.loop !19

.loopexit:                                        ; preds = %133, %.preheader, %106, %94, %88, %68, %49, %33, %23, %18
  %.0 = phi i32 [ 1, %18 ], [ 1, %23 ], [ 1, %33 ], [ 1, %49 ], [ 1, %68 ], [ 1, %88 ], [ 1, %94 ], [ 1, %106 ], [ 0, %.preheader ], [ 0, %133 ]
  ret i32 %.0
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 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 #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 = { 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { nounwind allocsize(0) }

!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, !10, i64 8}
!6 = !{!"file_content", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!6, !7, i64 24}
!13 = !{!6, !7, i64 16}
!14 = !{!6, !7, i64 32}
!15 = !{!16, !16, i64 0}
!16 = !{!"short", !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass