; LLVM IR from cselab/aphros :: src/inside (main)

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

@stderr = external global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [15 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

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

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() #4

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #5

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

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

36:                                               ; preds = %268, %133, %6
  %37 = getelementptr inbounds [999 x i8], ptr %14, i64 0, i64 0
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = call ptr @fgets(ptr noundef %37, i32 noundef 999, ptr noundef %38)
  store ptr %39, ptr %15, align 8, !tbaa !5
  %40 = icmp eq ptr %39, null
  br i1 %40, label %41, label %42

41:                                               ; preds = %36
  br label %269

42:                                               ; preds = %36
  br label %43

43:                                               ; preds = %55, %42
  %44 = call ptr @__ctype_b_loc() #8
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  %46 = load ptr, ptr %15, align 8, !tbaa !5
  %47 = load i8, ptr %46, align 1, !tbaa !11
  %48 = sext i8 %47 to i32
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds i16, ptr %45, i64 %49
  %51 = load i16, ptr %50, align 2, !tbaa !12
  %52 = zext i16 %51 to i32
  %53 = and i32 %52, 8192
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %58

55:                                               ; preds = %43
  %56 = load ptr, ptr %15, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %56, i32 1
  store ptr %57, ptr %15, align 8, !tbaa !5
  br label %43, !llvm.loop !14

58:                                               ; preds = %43
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %59

59:                                               ; preds = %89, %58
  %60 = load ptr, ptr %15, align 8, !tbaa !5
  %61 = load i32, ptr %21, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds i8, ptr %60, i64 %62
  %64 = load i8, ptr %63, align 1, !tbaa !11
  %65 = sext i8 %64 to i32
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %67, label %92

67:                                               ; preds = %59
  %68 = load ptr, ptr %15, align 8, !tbaa !5
  %69 = load i32, ptr %21, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds i8, ptr %68, i64 %70
  %72 = load i8, ptr %71, align 1, !tbaa !11
  %73 = sext i8 %72 to i32
  %74 = icmp eq i32 %73, 10
  br i1 %74, label %83, label %75

75:                                               ; preds = %67
  %76 = load ptr, ptr %15, align 8, !tbaa !5
  %77 = load i32, ptr %21, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds i8, ptr %76, i64 %78
  %80 = load i8, ptr %79, align 1, !tbaa !11
  %81 = sext i8 %80 to i32
  %82 = icmp eq i32 %81, 35
  br i1 %82, label %83, label %88

83:                                               ; preds = %75, %67
  %84 = load ptr, ptr %15, align 8, !tbaa !5
  %85 = load i32, ptr %21, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds i8, ptr %84, i64 %86
  store i8 0, ptr %87, align 1, !tbaa !11
  br label %92

88:                                               ; preds = %75
  br label %89

89:                                               ; preds = %88
  %90 = load i32, ptr %21, align 4, !tbaa !9
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %21, align 4, !tbaa !9
  br label %59, !llvm.loop !16

92:                                               ; preds = %83, %59
  store i32 0, ptr %22, align 4, !tbaa !9
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %93

93:                                               ; preds = %119, %92
  %94 = load ptr, ptr %15, align 8, !tbaa !5
  %95 = load i32, ptr %21, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds i8, ptr %94, i64 %96
  %98 = load i8, ptr %97, align 1, !tbaa !11
  %99 = sext i8 %98 to i32
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %122

101:                                              ; preds = %93
  %102 = call ptr @__ctype_b_loc() #8
  %103 = load ptr, ptr %102, align 8, !tbaa !5
  %104 = load ptr, ptr %15, align 8, !tbaa !5
  %105 = load i32, ptr %21, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds i8, ptr %104, i64 %106
  %108 = load i8, ptr %107, align 1, !tbaa !11
  %109 = sext i8 %108 to i32
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds i16, ptr %103, i64 %110
  %112 = load i16, ptr %111, align 2, !tbaa !12
  %113 = zext i16 %112 to i32
  %114 = and i32 %113, 8192
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %118, label %116

116:                                              ; preds = %101
  %117 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %117, ptr %22, align 4, !tbaa !9
  br label %118

118:                                              ; preds = %116, %101
  br label %119

119:                                              ; preds = %118
  %120 = load i32, ptr %21, align 4, !tbaa !9
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %21, align 4, !tbaa !9
  br label %93, !llvm.loop !17

122:                                              ; preds = %93
  %123 = load ptr, ptr %15, align 8, !tbaa !5
  %124 = load i32, ptr %22, align 4, !tbaa !9
  %125 = add nsw i32 %124, 1
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds i8, ptr %123, i64 %126
  store i8 0, ptr %127, align 1, !tbaa !11
  %128 = load ptr, ptr %15, align 8, !tbaa !5
  %129 = getelementptr inbounds i8, ptr %128, i64 0
  %130 = load i8, ptr %129, align 1, !tbaa !11
  %131 = sext i8 %130 to i32
  %132 = icmp eq i32 %131, 0
  br i1 %132, label %133, label %134

133:                                              ; preds = %122
  br label %36

134:                                              ; preds = %122
  %135 = load i32, ptr %27, align 4, !tbaa !9
  switch i32 %135, label %268 [
    i32 0, label %136
    i32 1, label %142
    i32 2, label %176
    i32 3, label %209
    i32 4, label %264
  ]

136:                                              ; preds = %134
  %137 = load ptr, ptr %15, align 8, !tbaa !5
  %138 = call i32 @strncmp(ptr noundef %137, ptr noundef @.str.20, i64 noundef 999) #9
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %141

140:                                              ; preds = %136
  br label %286

141:                                              ; preds = %136
  store i32 1, ptr %27, align 4, !tbaa !9
  br label %268

142:                                              ; preds = %134
  %143 = load ptr, ptr %15, align 8, !tbaa !5
  %144 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %143, ptr noundef @.str.21, ptr noundef %25) #7
  %145 = load ptr, ptr %15, align 8, !tbaa !5
  %146 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %145, ptr noundef @.str.22, ptr noundef %26) #7
  %147 = load ptr, ptr %15, align 8, !tbaa !5
  %148 = call i32 @strncmp(ptr noundef %147, ptr noundef @.str.23, i64 noundef 999) #9
  %149 = icmp eq i32 %148, 0
  br i1 %149, label %150, label %175

150:                                              ; preds = %142
  %151 = load i32, ptr %25, align 4, !tbaa !9
  %152 = icmp eq i32 %151, 0
  br i1 %152, label %153, label %156

153:                                              ; preds = %150
  %154 = load ptr, ptr @stderr, align 8, !tbaa !5
  %155 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %154, ptr noundef @.str.24, ptr noundef @.str.25, i32 noundef 63) #7
  br label %285

156:                                              ; preds = %150
  %157 = load i32, ptr %26, align 4, !tbaa !9
  %158 = icmp eq i32 %157, 0
  br i1 %158, label %159, label %162

159:                                              ; preds = %156
  %160 = load ptr, ptr @stderr, align 8, !tbaa !5
  %161 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %160, ptr noundef @.str.26, ptr noundef @.str.25, i32 noundef 69) #7
  br label %285

162:                                              ; preds = %156
  %163 = load i32, ptr %26, align 4, !tbaa !9
  %164 = mul nsw i32 2, %163
  store i32 %164, ptr %24, align 4, !tbaa !9
  %165 = load i32, ptr %25, align 4, !tbaa !9
  %166 = mul nsw i32 3, %165
  %167 = sext i32 %166 to i64
  %168 = mul i64 %167, 8
  %169 = call noalias ptr @malloc(i64 noundef %168) #10
  store ptr %169, ptr %16, align 8, !tbaa !5
  %170 = load i32, ptr %24, align 4, !tbaa !9
  %171 = mul nsw i32 3, %170
  %172 = sext i32 %171 to i64
  %173 = mul i64 %172, 4
  %174 = call noalias ptr @malloc(i64 noundef %173) #10
  store ptr %174, ptr %33, align 8, !tbaa !5
  store i32 2, ptr %27, align 4, !tbaa !9
  br label %175

175:                                              ; preds = %162, %142
  br label %268

176:                                              ; preds = %134
  %177 = load ptr, ptr %15, align 8, !tbaa !5
  %178 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %177, ptr noundef @.str.9, ptr noundef %17, ptr noundef %18, ptr noundef %19) #7
  %179 = icmp ne i32 %178, 3
  br i1 %179, label %180, label %184

180:                                              ; preds = %176
  %181 = load ptr, ptr @stderr, align 8, !tbaa !5
  %182 = load ptr, ptr %15, align 8, !tbaa !5
  %183 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %181, ptr noundef @.str.10, ptr noundef @.str.25, i32 noundef 81, ptr noundef %182) #7
  br label %285

184:                                              ; preds = %176
  %185 = load double, ptr %17, align 8, !tbaa !18
  %186 = load ptr, ptr %16, align 8, !tbaa !5
  %187 = load i32, ptr %34, align 4, !tbaa !9
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr %34, align 4, !tbaa !9
  %189 = sext i32 %187 to i64
  %190 = getelementptr inbounds double, ptr %186, i64 %189
  store double %185, ptr %190, align 8, !tbaa !18
  %191 = load double, ptr %18, align 8, !tbaa !18
  %192 = load ptr, ptr %16, align 8, !tbaa !5
  %193 = load i32, ptr %34, align 4, !tbaa !9
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %34, align 4, !tbaa !9
  %195 = sext i32 %193 to i64
  %196 = getelementptr inbounds double, ptr %192, i64 %195
  store double %191, ptr %196, align 8, !tbaa !18
  %197 = load double, ptr %19, align 8, !tbaa !18
  %198 = load ptr, ptr %16, align 8, !tbaa !5
  %199 = load i32, ptr %34, align 4, !tbaa !9
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr %34, align 4, !tbaa !9
  %201 = sext i32 %199 to i64
  %202 = getelementptr inbounds double, ptr %198, i64 %201
  store double %197, ptr %202, align 8, !tbaa !18
  %203 = load i32, ptr %34, align 4, !tbaa !9
  %204 = load i32, ptr %25, align 4, !tbaa !9
  %205 = mul nsw i32 3, %204
  %206 = icmp eq i32 %203, %205
  br i1 %206, label %207, label %208

207:                                              ; preds = %184
  store i32 3, ptr %27, align 4, !tbaa !9
  br label %208

208:                                              ; preds = %207, %184
  br label %268

209:                                              ; preds = %134
  %210 = load ptr, ptr %15, align 8, !tbaa !5
  %211 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %210, ptr noundef @.str.27, ptr noundef %23, ptr noundef %29, ptr noundef %30, ptr noundef %31, ptr noundef %32) #7
  store i32 %211, ptr %20, align 4, !tbaa !9
  %212 = load i32, ptr %20, align 4, !tbaa !9
  %213 = icmp ne i32 %212, 5
  br i1 %213, label %217, label %214

214:                                              ; preds = %209
  %215 = load i32, ptr %23, align 4, !tbaa !9
  %216 = icmp ne i32 %215, 4
  br i1 %216, label %217, label %221

217:                                              ; preds = %214, %209
  %218 = load ptr, ptr @stderr, align 8, !tbaa !5
  %219 = load ptr, ptr %15, align 8, !tbaa !5
  %220 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %218, ptr noundef @.str.12, ptr noundef @.str.25, i32 noundef 94, ptr noundef %219) #7
  br label %285

221:                                              ; preds = %214
  %222 = load i32, ptr %29, align 4, !tbaa !9
  %223 = load ptr, ptr %33, align 8, !tbaa !5
  %224 = load i32, ptr %28, align 4, !tbaa !9
  %225 = add nsw i32 %224, 1
  store i32 %225, ptr %28, align 4, !tbaa !9
  %226 = sext i32 %224 to i64
  %227 = getelementptr inbounds i32, ptr %223, i64 %226
  store i32 %222, ptr %227, align 4, !tbaa !9
  %228 = load i32, ptr %30, align 4, !tbaa !9
  %229 = load ptr, ptr %33, align 8, !tbaa !5
  %230 = load i32, ptr %28, align 4, !tbaa !9
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr %28, align 4, !tbaa !9
  %232 = sext i32 %230 to i64
  %233 = getelementptr inbounds i32, ptr %229, i64 %232
  store i32 %228, ptr %233, align 4, !tbaa !9
  %234 = load i32, ptr %31, align 4, !tbaa !9
  %235 = load ptr, ptr %33, align 8, !tbaa !5
  %236 = load i32, ptr %28, align 4, !tbaa !9
  %237 = add nsw i32 %236, 1
  store i32 %237, ptr %28, align 4, !tbaa !9
  %238 = sext i32 %236 to i64
  %239 = getelementptr inbounds i32, ptr %235, i64 %238
  store i32 %234, ptr %239, align 4, !tbaa !9
  %240 = load i32, ptr %31, align 4, !tbaa !9
  %241 = load ptr, ptr %33, align 8, !tbaa !5
  %242 = load i32, ptr %28, align 4, !tbaa !9
  %243 = add nsw i32 %242, 1
  store i32 %243, ptr %28, align 4, !tbaa !9
  %244 = sext i32 %242 to i64
  %245 = getelementptr inbounds i32, ptr %241, i64 %244
  store i32 %240, ptr %245, align 4, !tbaa !9
  %246 = load i32, ptr %32, align 4, !tbaa !9
  %247 = load ptr, ptr %33, align 8, !tbaa !5
  %248 = load i32, ptr %28, align 4, !tbaa !9
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %28, align 4, !tbaa !9
  %250 = sext i32 %248 to i64
  %251 = getelementptr inbounds i32, ptr %247, i64 %250
  store i32 %246, ptr %251, align 4, !tbaa !9
  %252 = load i32, ptr %29, align 4, !tbaa !9
  %253 = load ptr, ptr %33, align 8, !tbaa !5
  %254 = load i32, ptr %28, align 4, !tbaa !9
  %255 = add nsw i32 %254, 1
  store i32 %255, ptr %28, align 4, !tbaa !9
  %256 = sext i32 %254 to i64
  %257 = getelementptr inbounds i32, ptr %253, i64 %256
  store i32 %252, ptr %257, align 4, !tbaa !9
  %258 = load i32, ptr %28, align 4, !tbaa !9
  %259 = load i32, ptr %24, align 4, !tbaa !9
  %260 = mul nsw i32 3, %259
  %261 = icmp eq i32 %258, %260
  br i1 %261, label %262, label %263

262:                                              ; preds = %221
  store i32 4, ptr %27, align 4, !tbaa !9
  br label %263

263:                                              ; preds = %262, %221
  br label %268

264:                                              ; preds = %134
  %265 = load ptr, ptr @stderr, align 8, !tbaa !5
  %266 = load ptr, ptr %15, align 8, !tbaa !5
  %267 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %265, ptr noundef @.str.13, ptr noundef @.str.25, i32 noundef 109, ptr noundef %266) #7
  br label %285

268:                                              ; preds = %263, %208, %175, %141, %134
  br label %36

269:                                              ; preds = %41
  %270 = load i32, ptr %27, align 4, !tbaa !9
  %271 = icmp ne i32 %270, 4
  br i1 %271, label %272, label %275

272:                                              ; preds = %269
  %273 = load ptr, ptr @stderr, align 8, !tbaa !5
  %274 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %273, ptr noundef @.str.14, ptr noundef @.str.25, i32 noundef 115) #7
  br label %285

275:                                              ; preds = %269
  %276 = load i32, ptr %25, align 4, !tbaa !9
  %277 = load ptr, ptr %12, align 8, !tbaa !5
  store i32 %276, ptr %277, align 4, !tbaa !9
  %278 = load i32, ptr %24, align 4, !tbaa !9
  %279 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 %278, ptr %279, align 4, !tbaa !9
  %280 = load ptr, ptr %33, align 8, !tbaa !5
  %281 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %280, ptr %281, align 8, !tbaa !5
  %282 = load ptr, ptr %16, align 8, !tbaa !5
  %283 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %282, ptr %283, align 8, !tbaa !5
  %284 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 0, ptr %284, align 4, !tbaa !9
  store i32 0, ptr %7, align 4
  store i32 1, ptr %35, align 4
  br label %288

285:                                              ; preds = %272, %264, %217, %180, %159, %153
  store i32 1, ptr %7, align 4
  store i32 1, ptr %35, align 4
  br label %288

286:                                              ; preds = %140
  %287 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 1, ptr %287, align 4, !tbaa !9
  store i32 0, ptr %7, align 4
  store i32 1, ptr %35, align 4
  br label %288

288:                                              ; preds = %286, %285, %275
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 999, ptr %14) #7
  %289 = load i32, ptr %7, align 4
  ret i32 %289
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "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(none) "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 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(none) }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !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"

@stderr = external local_unnamed_addr global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [15 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 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 allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() local_unnamed_addr #3

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

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

; Function Attrs: nofree nounwind uwtable
define dso_local range(i32 0, 2) i32 @ply_read(ptr nocapture noundef %0, ptr nocapture noundef writeonly %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef writeonly %3, ptr nocapture noundef writeonly %4, ptr nocapture noundef writeonly %5) local_unnamed_addr #5 {
  %7 = alloca [999 x i8], align 16
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 999, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %.outer.outer

.outer.outer:                                     ; preds = %71, %6
  %.078.ph.ph = phi ptr [ %76, %71 ], [ undef, %6 ]
  %.071.ph.ph = phi i32 [ %72, %71 ], [ 0, %6 ]
  %.069.ph.ph = phi i32 [ 2, %71 ], [ 0, %6 ]
  %.067.ph.ph = phi i32 [ %.067.ph.ph230.ph, %71 ], [ 0, %6 ]
  %.065.ph.ph = phi ptr [ %80, %71 ], [ undef, %6 ]
  %.0.ph.ph = phi i32 [ %.0.ph.ph232.ph235, %71 ], [ 0, %6 ]
  %18 = mul nsw i32 %.071.ph.ph, 3
  br label %.outer.outer228.outer

.outer.outer228.outer:                            ; preds = %110, %.outer.outer
  %.069.ph.ph229.ph = phi i32 [ %spec.select97, %110 ], [ %.069.ph.ph, %.outer.outer ]
  %.067.ph.ph230.ph = phi i32 [ %131, %110 ], [ %.067.ph.ph, %.outer.outer ]
  %.0.ph.ph232.ph = phi i32 [ %.0.ph.ph232.ph235, %110 ], [ %.0.ph.ph, %.outer.outer ]
  br label %.outer.outer228.outer233

.outer.outer228.outer233:                         ; preds = %.outer.outer228.outer, %86
  %.069.ph.ph229.ph234 = phi i32 [ %.069.ph.ph229.ph, %.outer.outer228.outer ], [ %spec.select96, %86 ]
  %.0.ph.ph232.ph235 = phi i32 [ %.0.ph.ph232.ph, %.outer.outer228.outer ], [ %96, %86 ]
  br label %.outer.outer228

.outer.outer228:                                  ; preds = %.outer.outer228.backedge, %.outer.outer228.outer233
  %.069.ph.ph229 = phi i32 [ %.069.ph.ph229.ph234, %.outer.outer228.outer233 ], [ 1, %.outer.outer228.backedge ]
  br label %.outer

.outer:                                           ; preds = %.outer.outer228, %51
  br label %19

19:                                               ; preds = %.outer, %._crit_edge
  %20 = call ptr @fgets(ptr noundef nonnull %7, i32 noundef 999, ptr noundef %0)
  %21 = icmp eq ptr %20, null
  br i1 %21, label %138, label %.preheader98

.preheader98:                                     ; preds = %19
  %22 = tail call ptr @__ctype_b_loc() #7
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  br label %24

24:                                               ; preds = %24, %.preheader98
  %.080 = phi ptr [ %30, %24 ], [ %20, %.preheader98 ]
  %25 = load i8, ptr %.080, align 1, !tbaa !11
  %26 = sext i8 %25 to i64
  %27 = getelementptr inbounds i16, ptr %23, i64 %26
  %28 = load i16, ptr %27, align 2, !tbaa !12
  %29 = and i16 %28, 8192
  %.not = icmp eq i16 %29, 0
  %30 = getelementptr inbounds i8, ptr %.080, i64 1
  br i1 %.not, label %.preheader, label %24, !llvm.loop !14

.preheader:                                       ; preds = %24, %34
  %31 = phi i8 [ %.pre, %34 ], [ %25, %24 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %34 ], [ 0, %24 ]
  switch i8 %31, label %34 [
    i8 0, label %.loopexit
    i8 10, label %32
    i8 35, label %32
  ]

32:                                               ; preds = %.preheader, %.preheader
  %33 = getelementptr inbounds i8, ptr %.080, i64 %indvars.iv
  store i8 0, ptr %33, align 1, !tbaa !11
  %.pre167 = load i8, ptr %.080, align 1, !tbaa !11
  br label %.loopexit

34:                                               ; preds = %.preheader
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %.phi.trans.insert = getelementptr inbounds i8, ptr %.080, i64 %indvars.iv.next
  %.pre = load i8, ptr %.phi.trans.insert, align 1, !tbaa !11
  br label %.preheader, !llvm.loop !16

.loopexit:                                        ; preds = %.preheader, %32
  %35 = phi i8 [ %.pre167, %32 ], [ %25, %.preheader ]
  %.not91131 = icmp eq i8 %35, 0
  br i1 %.not91131, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.loopexit
  %36 = load ptr, ptr %22, align 8, !tbaa !9
  br label %37

37:                                               ; preds = %.lr.ph, %37
  %indvars.iv165 = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next166, %37 ]
  %38 = phi i8 [ %35, %.lr.ph ], [ %45, %37 ]
  %.073133 = phi i32 [ 0, %.lr.ph ], [ %spec.select, %37 ]
  %39 = sext i8 %38 to i64
  %40 = getelementptr inbounds i16, ptr %36, i64 %39
  %41 = load i16, ptr %40, align 2, !tbaa !12
  %42 = and i16 %41, 8192
  %.not94 = icmp eq i16 %42, 0
  %43 = trunc nuw nsw i64 %indvars.iv165 to i32
  %spec.select = select i1 %.not94, i32 %43, i32 %.073133
  %indvars.iv.next166 = add nuw nsw i64 %indvars.iv165, 1
  %44 = getelementptr inbounds i8, ptr %.080, i64 %indvars.iv.next166
  %45 = load i8, ptr %44, align 1, !tbaa !11
  %.not91 = icmp eq i8 %45, 0
  br i1 %.not91, label %._crit_edge, label %37, !llvm.loop !17

._crit_edge:                                      ; preds = %37, %.loopexit
  %.073.lcssa = phi i32 [ 0, %.loopexit ], [ %spec.select, %37 ]
  %46 = add nsw i32 %.073.lcssa, 1
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds i8, ptr %.080, i64 %47
  store i8 0, ptr %48, align 1, !tbaa !11
  %49 = load i8, ptr %.080, align 1, !tbaa !11
  %50 = icmp eq i8 %49, 0
  br i1 %50, label %19, label %51

51:                                               ; preds = %._crit_edge
  switch i32 %.069.ph.ph229, label %.outer [
    i32 0, label %52
    i32 1, label %54
    i32 2, label %81
    i32 3, label %102
    i32 4, label %135
  ]

52:                                               ; preds = %51
  %53 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %.080, ptr noundef nonnull dereferenceable(1) @.str.20, i64 noundef 999) #8
  %.not93 = icmp eq i32 %53, 0
  br i1 %.not93, label %.outer.outer228.backedge, label %144

54:                                               ; preds = %51
  %55 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %.080, ptr noundef nonnull @.str.21, ptr noundef nonnull %12) #6
  %56 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %.080, ptr noundef nonnull @.str.22, ptr noundef nonnull %13) #6
  %57 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %.080, ptr noundef nonnull dereferenceable(1) @.str.23, i64 noundef 999) #8
  %58 = icmp eq i32 %57, 0
  br i1 %58, label %59, label %.outer.outer228.backedge

.outer.outer228.backedge:                         ; preds = %54, %52
  br label %.outer.outer228

59:                                               ; preds = %54
  %60 = load i32, ptr %12, align 4, !tbaa !5
  %61 = icmp eq i32 %60, 0
  br i1 %61, label %62, label %65

62:                                               ; preds = %59
  %63 = load ptr, ptr @stderr, align 8, !tbaa !9
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef nonnull @.str.24, ptr noundef nonnull @.str.25, i32 noundef 63) #9
  br label %145

65:                                               ; preds = %59
  %66 = load i32, ptr %13, align 4, !tbaa !5
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %68, label %71

68:                                               ; preds = %65
  %69 = load ptr, ptr @stderr, align 8, !tbaa !9
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef nonnull @.str.26, ptr noundef nonnull @.str.25, i32 noundef 69) #9
  br label %145

71:                                               ; preds = %65
  %72 = shl nsw i32 %66, 1
  %73 = mul nsw i32 %60, 3
  %74 = sext i32 %73 to i64
  %75 = shl nsw i64 %74, 3
  %76 = call noalias ptr @malloc(i64 noundef %75) #10
  %77 = mul nsw i32 %66, 6
  %78 = sext i32 %77 to i64
  %79 = shl nsw i64 %78, 2
  %80 = call noalias ptr @malloc(i64 noundef %79) #10
  br label %.outer.outer

81:                                               ; preds = %51
  %82 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %.080, ptr noundef nonnull @.str.9, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10) #6
  %.not92 = icmp eq i32 %82, 3
  br i1 %.not92, label %86, label %83

83:                                               ; preds = %81
  %84 = load ptr, ptr @stderr, align 8, !tbaa !9
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.25, i32 noundef 81, ptr noundef nonnull %.080) #9
  br label %145

86:                                               ; preds = %81
  %87 = load double, ptr %8, align 8, !tbaa !18
  %88 = add nsw i32 %.0.ph.ph232.ph235, 1
  %89 = sext i32 %.0.ph.ph232.ph235 to i64
  %90 = getelementptr inbounds double, ptr %.078.ph.ph, i64 %89
  store double %87, ptr %90, align 8, !tbaa !18
  %91 = load double, ptr %9, align 8, !tbaa !18
  %92 = add nsw i32 %.0.ph.ph232.ph235, 2
  %93 = sext i32 %88 to i64
  %94 = getelementptr inbounds double, ptr %.078.ph.ph, i64 %93
  store double %91, ptr %94, align 8, !tbaa !18
  %95 = load double, ptr %10, align 8, !tbaa !18
  %96 = add nsw i32 %.0.ph.ph232.ph235, 3
  %97 = sext i32 %92 to i64
  %98 = getelementptr inbounds double, ptr %.078.ph.ph, i64 %97
  store double %95, ptr %98, align 8, !tbaa !18
  %99 = load i32, ptr %12, align 4, !tbaa !5
  %100 = mul nsw i32 %99, 3
  %101 = icmp eq i32 %96, %100
  %spec.select96 = select i1 %101, i32 3, i32 2
  br label %.outer.outer228.outer233

102:                                              ; preds = %51
  %103 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %.080, ptr noundef nonnull @.str.27, ptr noundef nonnull %11, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17) #6
  %104 = icmp ne i32 %103, 5
  %105 = load i32, ptr %11, align 4
  %106 = icmp ne i32 %105, 4
  %or.cond = select i1 %104, i1 true, i1 %106
  br i1 %or.cond, label %107, label %110

107:                                              ; preds = %102
  %108 = load ptr, ptr @stderr, align 8, !tbaa !9
  %109 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %108, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.25, i32 noundef 94, ptr noundef nonnull %.080) #9
  br label %145

110:                                              ; preds = %102
  %111 = load i32, ptr %14, align 4, !tbaa !5
  %112 = add nsw i32 %.067.ph.ph230.ph, 1
  %113 = sext i32 %.067.ph.ph230.ph to i64
  %114 = getelementptr inbounds i32, ptr %.065.ph.ph, i64 %113
  store i32 %111, ptr %114, align 4, !tbaa !5
  %115 = load i32, ptr %15, align 4, !tbaa !5
  %116 = add nsw i32 %.067.ph.ph230.ph, 2
  %117 = sext i32 %112 to i64
  %118 = getelementptr inbounds i32, ptr %.065.ph.ph, i64 %117
  store i32 %115, ptr %118, align 4, !tbaa !5
  %119 = load i32, ptr %16, align 4, !tbaa !5
  %120 = add nsw i32 %.067.ph.ph230.ph, 3
  %121 = sext i32 %116 to i64
  %122 = getelementptr inbounds i32, ptr %.065.ph.ph, i64 %121
  store i32 %119, ptr %122, align 4, !tbaa !5
  %123 = add nsw i32 %.067.ph.ph230.ph, 4
  %124 = sext i32 %120 to i64
  %125 = getelementptr inbounds i32, ptr %.065.ph.ph, i64 %124
  store i32 %119, ptr %125, align 4, !tbaa !5
  %126 = load i32, ptr %17, align 4, !tbaa !5
  %127 = add nsw i32 %.067.ph.ph230.ph, 5
  %128 = sext i32 %123 to i64
  %129 = getelementptr inbounds i32, ptr %.065.ph.ph, i64 %128
  store i32 %126, ptr %129, align 4, !tbaa !5
  %130 = load i32, ptr %14, align 4, !tbaa !5
  %131 = add nsw i32 %.067.ph.ph230.ph, 6
  %132 = sext i32 %127 to i64
  %133 = getelementptr inbounds i32, ptr %.065.ph.ph, i64 %132
  store i32 %130, ptr %133, align 4, !tbaa !5
  %134 = icmp eq i32 %131, %18
  %spec.select97 = select i1 %134, i32 4, i32 3
  br label %.outer.outer228.outer

135:                                              ; preds = %51
  %136 = load ptr, ptr @stderr, align 8, !tbaa !9
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.25, i32 noundef 109, ptr noundef nonnull %.080) #9
  br label %145

138:                                              ; preds = %19
  %.not95 = icmp eq i32 %.069.ph.ph229, 4
  br i1 %.not95, label %142, label %139

139:                                              ; preds = %138
  %140 = load ptr, ptr @stderr, align 8, !tbaa !9
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %140, ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.25, i32 noundef 115) #9
  br label %145

142:                                              ; preds = %138
  %143 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %143, ptr %4, align 4, !tbaa !5
  store i32 %.071.ph.ph, ptr %2, align 4, !tbaa !5
  store ptr %.065.ph.ph, ptr %3, align 8, !tbaa !9
  store ptr %.078.ph.ph, ptr %5, align 8, !tbaa !9
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %145

144:                                              ; preds = %52
  store i32 1, ptr %1, align 4, !tbaa !5
  br label %145

145:                                              ; preds = %62, %68, %83, %107, %135, %139, %144, %142
  %.077 = phi i32 [ 0, %142 ], [ 0, %144 ], [ 1, %139 ], [ 1, %135 ], [ 1, %107 ], [ 1, %83 ], [ 1, %68 ], [ 1, %62 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 999, ptr nonnull %7) #6
  ret i32 %.077
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 nofree nosync nounwind willreturn memory(none) "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 = { nofree 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(none) }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { cold nounwind }
attributes #10 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !7, i64 0}


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