; 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.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [33 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 allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #2

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @stl_read(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #7 {
  %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 ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = 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) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  store i32 0, ptr %24, align 4, !tbaa !9
  store i32 0, ptr %26, align 4, !tbaa !9
  store i32 10, ptr %27, align 4, !tbaa !9
  %30 = load i32, ptr %27, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = mul i64 %31, 8
  %33 = call noalias ptr @malloc(i64 noundef %32) #9
  store ptr %33, ptr %16, align 8, !tbaa !5
  %34 = icmp eq ptr %33, null
  br i1 %34, label %35, label %38

35:                                               ; preds = %6
  %36 = load ptr, ptr @stderr, align 8, !tbaa !5
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef @.str.8, ptr noundef @.str.28, i32 noundef 39) #8
  br label %296

38:                                               ; preds = %6
  br label %39

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

44:                                               ; preds = %39
  br label %252

45:                                               ; preds = %39
  br label %46

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

58:                                               ; preds = %46
  %59 = load ptr, ptr %15, align 8, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %59, i32 1
  store ptr %60, ptr %15, align 8, !tbaa !5
  br label %46, !llvm.loop !14

61:                                               ; preds = %46
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %62

62:                                               ; preds = %92, %61
  %63 = load ptr, ptr %15, align 8, !tbaa !5
  %64 = load i32, ptr %20, align 4, !tbaa !9
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds i8, ptr %63, i64 %65
  %67 = load i8, ptr %66, align 1, !tbaa !11
  %68 = sext i8 %67 to i32
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %95

70:                                               ; preds = %62
  %71 = load ptr, ptr %15, align 8, !tbaa !5
  %72 = load i32, ptr %20, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds i8, ptr %71, i64 %73
  %75 = load i8, ptr %74, align 1, !tbaa !11
  %76 = sext i8 %75 to i32
  %77 = icmp eq i32 %76, 10
  br i1 %77, label %86, label %78

78:                                               ; preds = %70
  %79 = load ptr, ptr %15, align 8, !tbaa !5
  %80 = load i32, ptr %20, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds i8, ptr %79, i64 %81
  %83 = load i8, ptr %82, align 1, !tbaa !11
  %84 = sext i8 %83 to i32
  %85 = icmp eq i32 %84, 35
  br i1 %85, label %86, label %91

86:                                               ; preds = %78, %70
  %87 = load ptr, ptr %15, align 8, !tbaa !5
  %88 = load i32, ptr %20, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds i8, ptr %87, i64 %89
  store i8 0, ptr %90, align 1, !tbaa !11
  br label %95

91:                                               ; preds = %78
  br label %92

92:                                               ; preds = %91
  %93 = load i32, ptr %20, align 4, !tbaa !9
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %20, align 4, !tbaa !9
  br label %62, !llvm.loop !16

95:                                               ; preds = %86, %62
  store i32 0, ptr %21, align 4, !tbaa !9
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %96

96:                                               ; preds = %122, %95
  %97 = load ptr, ptr %15, align 8, !tbaa !5
  %98 = load i32, ptr %20, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds i8, ptr %97, i64 %99
  %101 = load i8, ptr %100, align 1, !tbaa !11
  %102 = sext i8 %101 to i32
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %125

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

119:                                              ; preds = %104
  %120 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %120, ptr %21, align 4, !tbaa !9
  br label %121

121:                                              ; preds = %119, %104
  br label %122

122:                                              ; preds = %121
  %123 = load i32, ptr %20, align 4, !tbaa !9
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %20, align 4, !tbaa !9
  br label %96, !llvm.loop !17

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

136:                                              ; preds = %125
  br label %39

137:                                              ; preds = %125
  %138 = load i32, ptr %24, align 4, !tbaa !9
  switch i32 %138, label %251 [
    i32 0, label %139
    i32 1, label %145
    i32 2, label %161
    i32 5, label %170
    i32 4, label %229
    i32 3, label %238
    i32 6, label %247
  ]

139:                                              ; preds = %137
  %140 = load ptr, ptr %15, align 8, !tbaa !5
  %141 = call i32 @strncmp(ptr noundef %140, ptr noundef @.str.29, i64 noundef 5) #11
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %143, label %144

143:                                              ; preds = %139
  br label %297

144:                                              ; preds = %139
  store i32 1, ptr %24, align 4, !tbaa !9
  br label %251

145:                                              ; preds = %137
  %146 = load ptr, ptr %15, align 8, !tbaa !5
  %147 = call i32 @strncmp(ptr noundef %146, ptr noundef @.str.30, i64 noundef 8) #11
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %150, label %149

149:                                              ; preds = %145
  store i32 6, ptr %24, align 4, !tbaa !9
  br label %160

150:                                              ; preds = %145
  %151 = load ptr, ptr %15, align 8, !tbaa !5
  %152 = call i32 @strncmp(ptr noundef %151, ptr noundef @.str.31, i64 noundef 12) #11
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %155, label %154

154:                                              ; preds = %150
  store i32 2, ptr %24, align 4, !tbaa !9
  br label %159

155:                                              ; preds = %150
  %156 = load ptr, ptr @stderr, align 8, !tbaa !5
  %157 = load ptr, ptr %15, align 8, !tbaa !5
  %158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %156, ptr noundef @.str.32, ptr noundef @.str.28, i32 noundef 70, ptr noundef %157) #8
  br label %296

159:                                              ; preds = %154
  br label %160

160:                                              ; preds = %159, %149
  br label %251

161:                                              ; preds = %137
  %162 = load ptr, ptr %15, align 8, !tbaa !5
  %163 = call i32 @strncmp(ptr noundef %162, ptr noundef @.str.33, i64 noundef 999) #11
  %164 = icmp ne i32 %163, 0
  br i1 %164, label %165, label %169

165:                                              ; preds = %161
  %166 = load ptr, ptr @stderr, align 8, !tbaa !5
  %167 = load ptr, ptr %15, align 8, !tbaa !5
  %168 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %166, ptr noundef @.str.34, ptr noundef @.str.28, i32 noundef 78, ptr noundef %167) #8
  br label %296

169:                                              ; preds = %161
  store i32 0, ptr %28, align 4, !tbaa !9
  store i32 5, ptr %24, align 4, !tbaa !9
  br label %251

170:                                              ; preds = %137
  %171 = load ptr, ptr %15, align 8, !tbaa !5
  %172 = call i32 @strncmp(ptr noundef %171, ptr noundef @.str.35, i64 noundef 6) #11
  %173 = icmp ne i32 %172, 0
  br i1 %173, label %174, label %178

174:                                              ; preds = %170
  %175 = load ptr, ptr @stderr, align 8, !tbaa !5
  %176 = load ptr, ptr %15, align 8, !tbaa !5
  %177 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %175, ptr noundef @.str.36, ptr noundef @.str.28, i32 noundef 88, ptr noundef %176) #8
  br label %296

178:                                              ; preds = %170
  %179 = load ptr, ptr %15, align 8, !tbaa !5
  %180 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %179, ptr noundef @.str.37, ptr noundef %17, ptr noundef %18, ptr noundef %19) #8
  %181 = icmp ne i32 %180, 3
  br i1 %181, label %182, label %186

182:                                              ; preds = %178
  %183 = load ptr, ptr @stderr, align 8, !tbaa !5
  %184 = load ptr, ptr %15, align 8, !tbaa !5
  %185 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %183, ptr noundef @.str.10, ptr noundef @.str.28, i32 noundef 93, ptr noundef %184) #8
  br label %296

186:                                              ; preds = %178
  %187 = load i32, ptr %26, align 4, !tbaa !9
  %188 = add nsw i32 %187, 2
  %189 = load i32, ptr %27, align 4, !tbaa !9
  %190 = icmp sge i32 %188, %189
  br i1 %190, label %191, label %204

191:                                              ; preds = %186
  %192 = load i32, ptr %27, align 4, !tbaa !9
  %193 = mul nsw i32 %192, 2
  store i32 %193, ptr %27, align 4, !tbaa !9
  %194 = load ptr, ptr %16, align 8, !tbaa !5
  %195 = load i32, ptr %27, align 4, !tbaa !9
  %196 = sext i32 %195 to i64
  %197 = mul i64 %196, 8
  %198 = call ptr @realloc(ptr noundef %194, i64 noundef %197) #12
  store ptr %198, ptr %16, align 8, !tbaa !5
  %199 = icmp eq ptr %198, null
  br i1 %199, label %200, label %203

200:                                              ; preds = %191
  %201 = load ptr, ptr @stderr, align 8, !tbaa !5
  %202 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %201, ptr noundef @.str.38, ptr noundef @.str.28, i32 noundef 100) #8
  br label %296

203:                                              ; preds = %191
  br label %204

204:                                              ; preds = %203, %186
  %205 = load double, ptr %17, align 8, !tbaa !18
  %206 = load ptr, ptr %16, align 8, !tbaa !5
  %207 = load i32, ptr %26, align 4, !tbaa !9
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %26, align 4, !tbaa !9
  %209 = sext i32 %207 to i64
  %210 = getelementptr inbounds double, ptr %206, i64 %209
  store double %205, ptr %210, align 8, !tbaa !18
  %211 = load double, ptr %18, align 8, !tbaa !18
  %212 = load ptr, ptr %16, align 8, !tbaa !5
  %213 = load i32, ptr %26, align 4, !tbaa !9
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %26, align 4, !tbaa !9
  %215 = sext i32 %213 to i64
  %216 = getelementptr inbounds double, ptr %212, i64 %215
  store double %211, ptr %216, align 8, !tbaa !18
  %217 = load double, ptr %19, align 8, !tbaa !18
  %218 = load ptr, ptr %16, align 8, !tbaa !5
  %219 = load i32, ptr %26, align 4, !tbaa !9
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %26, align 4, !tbaa !9
  %221 = sext i32 %219 to i64
  %222 = getelementptr inbounds double, ptr %218, i64 %221
  store double %217, ptr %222, align 8, !tbaa !18
  %223 = load i32, ptr %28, align 4, !tbaa !9
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %28, align 4, !tbaa !9
  %225 = load i32, ptr %28, align 4, !tbaa !9
  %226 = icmp eq i32 %225, 3
  br i1 %226, label %227, label %228

227:                                              ; preds = %204
  store i32 4, ptr %24, align 4, !tbaa !9
  br label %228

228:                                              ; preds = %227, %204
  br label %251

229:                                              ; preds = %137
  %230 = load ptr, ptr %15, align 8, !tbaa !5
  %231 = call i32 @strncmp(ptr noundef %230, ptr noundef @.str.39, i64 noundef 999) #11
  %232 = icmp ne i32 %231, 0
  br i1 %232, label %233, label %237

233:                                              ; preds = %229
  %234 = load ptr, ptr @stderr, align 8, !tbaa !5
  %235 = load ptr, ptr %15, align 8, !tbaa !5
  %236 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %234, ptr noundef @.str.40, ptr noundef @.str.28, i32 noundef 114, ptr noundef %235) #8
  br label %296

237:                                              ; preds = %229
  store i32 3, ptr %24, align 4, !tbaa !9
  br label %251

238:                                              ; preds = %137
  %239 = load ptr, ptr %15, align 8, !tbaa !5
  %240 = call i32 @strncmp(ptr noundef %239, ptr noundef @.str.41, i64 noundef 999) #11
  %241 = icmp ne i32 %240, 0
  br i1 %241, label %242, label %246

242:                                              ; preds = %238
  %243 = load ptr, ptr @stderr, align 8, !tbaa !5
  %244 = load ptr, ptr %15, align 8, !tbaa !5
  %245 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %243, ptr noundef @.str.42, ptr noundef @.str.28, i32 noundef 123, ptr noundef %244) #8
  br label %296

246:                                              ; preds = %238
  store i32 1, ptr %24, align 4, !tbaa !9
  br label %251

247:                                              ; preds = %137
  %248 = load ptr, ptr @stderr, align 8, !tbaa !5
  %249 = load ptr, ptr %15, align 8, !tbaa !5
  %250 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %248, ptr noundef @.str.13, ptr noundef @.str.28, i32 noundef 129, ptr noundef %249) #8
  br label %296

251:                                              ; preds = %246, %237, %228, %169, %160, %144, %137
  br label %39

252:                                              ; preds = %44
  %253 = load i32, ptr %24, align 4, !tbaa !9
  %254 = icmp ne i32 %253, 6
  br i1 %254, label %255, label %258

255:                                              ; preds = %252
  %256 = load ptr, ptr @stderr, align 8, !tbaa !5
  %257 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %256, ptr noundef @.str.43, ptr noundef @.str.28, i32 noundef 135) #8
  br label %296

258:                                              ; preds = %252
  %259 = load i32, ptr %26, align 4, !tbaa !9
  %260 = sdiv i32 %259, 3
  store i32 %260, ptr %23, align 4, !tbaa !9
  %261 = load i32, ptr %23, align 4, !tbaa !9
  %262 = sdiv i32 %261, 3
  store i32 %262, ptr %22, align 4, !tbaa !9
  %263 = load i32, ptr %22, align 4, !tbaa !9
  %264 = mul nsw i32 3, %263
  %265 = sext i32 %264 to i64
  %266 = mul i64 %265, 4
  %267 = call noalias ptr @malloc(i64 noundef %266) #9
  store ptr %267, ptr %25, align 8, !tbaa !5
  %268 = icmp eq ptr %267, null
  br i1 %268, label %269, label %272

269:                                              ; preds = %258
  %270 = load ptr, ptr @stderr, align 8, !tbaa !5
  %271 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %270, ptr noundef @.str.8, ptr noundef @.str.28, i32 noundef 142) #8
  br label %296

272:                                              ; preds = %258
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %273

273:                                              ; preds = %283, %272
  %274 = load i32, ptr %20, align 4, !tbaa !9
  %275 = load i32, ptr %23, align 4, !tbaa !9
  %276 = icmp slt i32 %274, %275
  br i1 %276, label %277, label %286

277:                                              ; preds = %273
  %278 = load i32, ptr %20, align 4, !tbaa !9
  %279 = load ptr, ptr %25, align 8, !tbaa !5
  %280 = load i32, ptr %20, align 4, !tbaa !9
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds i32, ptr %279, i64 %281
  store i32 %278, ptr %282, align 4, !tbaa !9
  br label %283

283:                                              ; preds = %277
  %284 = load i32, ptr %20, align 4, !tbaa !9
  %285 = add nsw i32 %284, 1
  store i32 %285, ptr %20, align 4, !tbaa !9
  br label %273, !llvm.loop !20

286:                                              ; preds = %273
  %287 = load i32, ptr %23, align 4, !tbaa !9
  %288 = load ptr, ptr %12, align 8, !tbaa !5
  store i32 %287, ptr %288, align 4, !tbaa !9
  %289 = load i32, ptr %22, align 4, !tbaa !9
  %290 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 %289, ptr %290, align 4, !tbaa !9
  %291 = load ptr, ptr %25, align 8, !tbaa !5
  %292 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %291, ptr %292, align 8, !tbaa !5
  %293 = load ptr, ptr %16, align 8, !tbaa !5
  %294 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %293, ptr %294, align 8, !tbaa !5
  %295 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 0, ptr %295, align 4, !tbaa !9
  store i32 0, ptr %7, align 4
  store i32 1, ptr %29, align 4
  br label %299

296:                                              ; preds = %269, %255, %247, %242, %233, %200, %182, %174, %165, %155, %35
  store i32 1, ptr %7, align 4
  store i32 1, ptr %29, align 4
  br label %299

297:                                              ; preds = %143
  %298 = load ptr, ptr %9, align 8, !tbaa !5
  store i32 1, ptr %298, align 4, !tbaa !9
  store i32 0, ptr %7, align 4
  store i32 1, ptr %29, align 4
  br label %299

299:                                              ; preds = %297, %296, %286
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 999, ptr %14) #8
  %300 = load i32, ptr %7, align 4
  ret i32 %300
}

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 allocsize(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 #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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(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 #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { nounwind allocsize(0) }
attributes #10 = { nounwind willreturn memory(none) }
attributes #11 = { nounwind willreturn memory(read) }
attributes #12 = { nounwind allocsize(1) }

!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}
!20 = distinct !{!20, !15}


; 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.8 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [33 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: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #2

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @stl_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 #6 {
  %7 = alloca [999 x i8], align 16
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 999, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %11 = tail call noalias dereferenceable_or_null(80) ptr @malloc(i64 noundef 80) #8
  %12 = icmp eq ptr %11, null
  br i1 %12, label %13, label %.outer.outer

13:                                               ; preds = %6
  %14 = load ptr, ptr @stderr, align 8, !tbaa !5
  %15 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.28, i32 noundef 39) #9
  br label %132

16:                                               ; preds = %.outer, %._crit_edge
  %17 = call ptr @fgets(ptr noundef nonnull %7, i32 noundef 999, ptr noundef %0)
  %18 = icmp eq ptr %17, null
  br i1 %18, label %111, label %.preheader112

.preheader112:                                    ; preds = %16
  %19 = tail call ptr @__ctype_b_loc() #10
  %20 = load ptr, ptr %19, align 8, !tbaa !5
  br label %21

21:                                               ; preds = %21, %.preheader112
  %.078 = phi ptr [ %27, %21 ], [ %17, %.preheader112 ]
  %22 = load i8, ptr %.078, align 1, !tbaa !9
  %23 = sext i8 %22 to i64
  %24 = getelementptr inbounds i16, ptr %20, i64 %23
  %25 = load i16, ptr %24, align 2, !tbaa !10
  %26 = and i16 %25, 8192
  %.not = icmp eq i16 %26, 0
  %27 = getelementptr inbounds i8, ptr %.078, i64 1
  br i1 %.not, label %.preheader111, label %21, !llvm.loop !12

.preheader111:                                    ; preds = %21, %31
  %28 = phi i8 [ %.pre, %31 ], [ %22, %21 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %31 ], [ 0, %21 ]
  switch i8 %28, label %31 [
    i8 0, label %.loopexit
    i8 10, label %29
    i8 35, label %29
  ]

29:                                               ; preds = %.preheader111, %.preheader111
  %30 = getelementptr inbounds i8, ptr %.078, i64 %indvars.iv
  store i8 0, ptr %30, align 1, !tbaa !9
  %.pre208 = load i8, ptr %.078, align 1, !tbaa !9
  br label %.loopexit

31:                                               ; preds = %.preheader111
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %.phi.trans.insert = getelementptr inbounds i8, ptr %.078, i64 %indvars.iv.next
  %.pre = load i8, ptr %.phi.trans.insert, align 1, !tbaa !9
  br label %.preheader111, !llvm.loop !14

.loopexit:                                        ; preds = %.preheader111, %29
  %32 = phi i8 [ %.pre208, %29 ], [ %22, %.preheader111 ]
  %.not97156 = icmp eq i8 %32, 0
  br i1 %.not97156, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.loopexit
  %33 = load ptr, ptr %19, align 8, !tbaa !5
  br label %34

34:                                               ; preds = %.lr.ph, %34
  %indvars.iv203 = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next204, %34 ]
  %35 = phi i8 [ %32, %.lr.ph ], [ %42, %34 ]
  %.082158 = phi i32 [ 0, %.lr.ph ], [ %spec.select, %34 ]
  %36 = sext i8 %35 to i64
  %37 = getelementptr inbounds i16, ptr %33, i64 %36
  %38 = load i16, ptr %37, align 2, !tbaa !10
  %39 = and i16 %38, 8192
  %.not107 = icmp eq i16 %39, 0
  %40 = trunc nuw nsw i64 %indvars.iv203 to i32
  %spec.select = select i1 %.not107, i32 %40, i32 %.082158
  %indvars.iv.next204 = add nuw nsw i64 %indvars.iv203, 1
  %41 = getelementptr inbounds i8, ptr %.078, i64 %indvars.iv.next204
  %42 = load i8, ptr %41, align 1, !tbaa !9
  %.not97 = icmp eq i8 %42, 0
  br i1 %.not97, label %._crit_edge, label %34, !llvm.loop !15

._crit_edge:                                      ; preds = %34, %.loopexit
  %.082.lcssa = phi i32 [ 0, %.loopexit ], [ %spec.select, %34 ]
  %43 = add nsw i32 %.082.lcssa, 1
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds i8, ptr %.078, i64 %44
  store i8 0, ptr %45, align 1, !tbaa !9
  %46 = load i8, ptr %.078, align 1, !tbaa !9
  %47 = icmp eq i8 %46, 0
  br i1 %47, label %16, label %48

48:                                               ; preds = %._crit_edge
  switch i32 %.076.ph, label %default.unreachable209 [
    i32 0, label %49
    i32 1, label %51
    i32 2, label %58
    i32 5, label %63
    i32 4, label %98
    i32 3, label %103
    i32 6, label %108
  ]

49:                                               ; preds = %48
  %50 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %.078, ptr noundef nonnull dereferenceable(1) @.str.29, i64 noundef 5) #11
  %.not106 = icmp eq i32 %50, 0
  br i1 %.not106, label %.outer.backedge, label %131

51:                                               ; preds = %48
  %52 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %.078, ptr noundef nonnull dereferenceable(1) @.str.30, i64 noundef 8) #11
  %.not104 = icmp eq i32 %52, 0
  br i1 %.not104, label %.outer.backedge, label %53

53:                                               ; preds = %51
  %54 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %.078, ptr noundef nonnull dereferenceable(1) @.str.31, i64 noundef 12) #11
  %.not105 = icmp eq i32 %54, 0
  br i1 %.not105, label %.outer.backedge, label %55

55:                                               ; preds = %53
  %56 = load ptr, ptr @stderr, align 8, !tbaa !5
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.32, ptr noundef nonnull @.str.28, i32 noundef 70, ptr noundef nonnull %.078) #9
  br label %132

58:                                               ; preds = %48
  %59 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %.078, ptr noundef nonnull dereferenceable(1) @.str.33, i64 noundef 999) #11
  %.not103 = icmp eq i32 %59, 0
  br i1 %.not103, label %.outer.outer292, label %60

60:                                               ; preds = %58
  %61 = load ptr, ptr @stderr, align 8, !tbaa !5
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef nonnull @.str.34, ptr noundef nonnull @.str.28, i32 noundef 78, ptr noundef nonnull %.078) #9
  br label %132

63:                                               ; preds = %48
  %64 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %.078, ptr noundef nonnull dereferenceable(1) @.str.35, i64 noundef 6) #11
  %.not100 = icmp eq i32 %64, 0
  br i1 %.not100, label %68, label %65

65:                                               ; preds = %63
  %66 = load ptr, ptr @stderr, align 8, !tbaa !5
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef nonnull @.str.36, ptr noundef nonnull @.str.28, i32 noundef 88, ptr noundef nonnull %.078) #9
  br label %132

68:                                               ; preds = %63
  %69 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %.078, ptr noundef nonnull @.str.37, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10) #7
  %.not101 = icmp eq i32 %69, 3
  br i1 %.not101, label %73, label %70

70:                                               ; preds = %68
  %71 = load ptr, ptr @stderr, align 8, !tbaa !5
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.28, i32 noundef 93, ptr noundef nonnull %.078) #9
  br label %132

73:                                               ; preds = %68
  %74 = add nuw nsw i32 %.073.ph.ph, 2
  %.not102 = icmp slt i32 %74, %.071.ph.ph
  br i1 %.not102, label %84, label %75

75:                                               ; preds = %73
  %76 = shl nsw i32 %.071.ph.ph, 1
  %77 = sext i32 %76 to i64
  %78 = shl nsw i64 %77, 3
  %79 = call ptr @realloc(ptr noundef %.079.ph.ph, i64 noundef %78) #12
  %80 = icmp eq ptr %79, null
  br i1 %80, label %81, label %84

81:                                               ; preds = %75
  %82 = load ptr, ptr @stderr, align 8, !tbaa !5
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef nonnull @.str.38, ptr noundef nonnull @.str.28, i32 noundef 100) #9
  br label %132

84:                                               ; preds = %75, %73
  %.180 = phi ptr [ %79, %75 ], [ %.079.ph.ph, %73 ]
  %.172 = phi i32 [ %76, %75 ], [ %.071.ph.ph, %73 ]
  %85 = load double, ptr %8, align 8, !tbaa !16
  %86 = add nuw nsw i32 %.073.ph.ph, 1
  %87 = zext nneg i32 %.073.ph.ph to i64
  %88 = getelementptr inbounds double, ptr %.180, i64 %87
  store double %85, ptr %88, align 8, !tbaa !16
  %89 = load double, ptr %9, align 8, !tbaa !16
  %90 = zext nneg i32 %86 to i64
  %91 = getelementptr inbounds double, ptr %.180, i64 %90
  store double %89, ptr %91, align 8, !tbaa !16
  %92 = load double, ptr %10, align 8, !tbaa !16
  %93 = add nuw nsw i32 %.073.ph.ph, 3
  %94 = zext nneg i32 %74 to i64
  %95 = getelementptr inbounds double, ptr %.180, i64 %94
  store double %92, ptr %95, align 8, !tbaa !16
  %96 = add nsw i32 %.0.ph.ph294, 1
  %97 = icmp eq i32 %96, 3
  %spec.select109 = select i1 %97, i32 4, i32 5
  br label %.outer.outer

.outer.outer:                                     ; preds = %6, %84
  %.079.ph.ph = phi ptr [ %.180, %84 ], [ %11, %6 ]
  %.076.ph.ph = phi i32 [ %spec.select109, %84 ], [ 0, %6 ]
  %.073.ph.ph = phi i32 [ %93, %84 ], [ 0, %6 ]
  %.071.ph.ph = phi i32 [ %.172, %84 ], [ 10, %6 ]
  %.0.ph.ph = phi i32 [ %96, %84 ], [ undef, %6 ]
  br label %.outer.outer292

.outer.outer292:                                  ; preds = %.outer.outer, %58
  %.076.ph.ph293 = phi i32 [ %.076.ph.ph, %.outer.outer ], [ 5, %58 ]
  %.0.ph.ph294 = phi i32 [ %.0.ph.ph, %.outer.outer ], [ 0, %58 ]
  br label %.outer

98:                                               ; preds = %48
  %99 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %.078, ptr noundef nonnull dereferenceable(1) @.str.39, i64 noundef 999) #11
  %.not99 = icmp eq i32 %99, 0
  br i1 %.not99, label %.outer.backedge, label %100

100:                                              ; preds = %98
  %101 = load ptr, ptr @stderr, align 8, !tbaa !5
  %102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef nonnull @.str.40, ptr noundef nonnull @.str.28, i32 noundef 114, ptr noundef nonnull %.078) #9
  br label %132

103:                                              ; preds = %48
  %104 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %.078, ptr noundef nonnull dereferenceable(1) @.str.41, i64 noundef 999) #11
  %.not98 = icmp eq i32 %104, 0
  br i1 %.not98, label %.outer.backedge, label %105

.outer.backedge:                                  ; preds = %103, %98, %53, %51, %49
  %.076.ph.be = phi i32 [ 1, %49 ], [ 6, %51 ], [ 2, %53 ], [ 3, %98 ], [ 1, %103 ]
  br label %.outer

105:                                              ; preds = %103
  %106 = load ptr, ptr @stderr, align 8, !tbaa !5
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %106, ptr noundef nonnull @.str.42, ptr noundef nonnull @.str.28, i32 noundef 123, ptr noundef nonnull %.078) #9
  br label %132

108:                                              ; preds = %48
  %109 = load ptr, ptr @stderr, align 8, !tbaa !5
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.28, i32 noundef 129, ptr noundef nonnull %.078) #9
  br label %132

default.unreachable209:                           ; preds = %48
  unreachable

.outer:                                           ; preds = %.outer.backedge, %.outer.outer292
  %.076.ph = phi i32 [ %.076.ph.ph293, %.outer.outer292 ], [ %.076.ph.be, %.outer.backedge ]
  br label %16

111:                                              ; preds = %16
  %.not108 = icmp eq i32 %.076.ph, 6
  br i1 %.not108, label %115, label %112

112:                                              ; preds = %111
  %113 = load ptr, ptr @stderr, align 8, !tbaa !5
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %113, ptr noundef nonnull @.str.43, ptr noundef nonnull @.str.28, i32 noundef 135) #9
  br label %132

115:                                              ; preds = %111
  %116 = udiv i32 %.073.ph.ph, 3
  %117 = udiv i32 %.073.ph.ph, 9
  %118 = mul nuw i32 %117, 12
  %119 = zext i32 %118 to i64
  %120 = call noalias ptr @malloc(i64 noundef %119) #8
  %121 = icmp eq ptr %120, null
  br i1 %121, label %126, label %.preheader

.preheader:                                       ; preds = %115
  %122 = icmp ugt i32 %.073.ph.ph, 2
  br i1 %122, label %.lr.ph160.preheader, label %._crit_edge161

.lr.ph160.preheader:                              ; preds = %.preheader
  %wide.trip.count = zext nneg i32 %116 to i64
  %min.iters.check = icmp ult i32 %.073.ph.ph, 24
  br i1 %min.iters.check, label %.lr.ph160.preheader291, label %vector.ph

.lr.ph160.preheader291:                           ; preds = %middle.block, %.lr.ph160.preheader
  %indvars.iv205.ph = phi i64 [ 0, %.lr.ph160.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph160

vector.ph:                                        ; preds = %.lr.ph160.preheader
  %n.vec = and i64 %wide.trip.count, 1073741816
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %123 = getelementptr inbounds i32, ptr %120, i64 %index
  %124 = getelementptr inbounds i8, ptr %123, i64 16
  store <4 x i32> %vec.ind, ptr %123, align 4, !tbaa !18
  store <4 x i32> %step.add, ptr %124, align 4, !tbaa !18
  %index.next = add nuw i64 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %125 = icmp eq i64 %index.next, %n.vec
  br i1 %125, label %middle.block, label %vector.body, !llvm.loop !20

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge161, label %.lr.ph160.preheader291

126:                                              ; preds = %115
  %127 = load ptr, ptr @stderr, align 8, !tbaa !5
  %128 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %127, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.28, i32 noundef 142) #9
  br label %132

.lr.ph160:                                        ; preds = %.lr.ph160.preheader291, %.lr.ph160
  %indvars.iv205 = phi i64 [ %indvars.iv.next206, %.lr.ph160 ], [ %indvars.iv205.ph, %.lr.ph160.preheader291 ]
  %129 = getelementptr inbounds i32, ptr %120, i64 %indvars.iv205
  %130 = trunc nuw nsw i64 %indvars.iv205 to i32
  store i32 %130, ptr %129, align 4, !tbaa !18
  %indvars.iv.next206 = add nuw nsw i64 %indvars.iv205, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next206, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge161, label %.lr.ph160, !llvm.loop !23

._crit_edge161:                                   ; preds = %.lr.ph160, %middle.block, %.preheader
  store i32 %116, ptr %4, align 4, !tbaa !18
  store i32 %117, ptr %2, align 4, !tbaa !18
  store ptr %120, ptr %3, align 8, !tbaa !5
  store ptr %.079.ph.ph, ptr %5, align 8, !tbaa !5
  store i32 0, ptr %1, align 4, !tbaa !18
  br label %132

131:                                              ; preds = %49
  store i32 1, ptr %1, align 4, !tbaa !18
  br label %132

132:                                              ; preds = %13, %55, %60, %65, %70, %81, %100, %105, %108, %112, %126, %131, %._crit_edge161
  %.075 = phi i32 [ 0, %._crit_edge161 ], [ 0, %131 ], [ 1, %126 ], [ 1, %112 ], [ 1, %108 ], [ 1, %105 ], [ 1, %100 ], [ 1, %81 ], [ 1, %70 ], [ 1, %65 ], [ 1, %60 ], [ 1, %55 ], [ 1, %13 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 999, ptr nonnull %7) #7
  ret i32 %.075
}

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 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, 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 #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress 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 #5 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind 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 allocsize(0) }
attributes #9 = { cold nounwind }
attributes #10 = { nounwind willreturn memory(none) }
attributes #11 = { nounwind willreturn memory(read) }
attributes #12 = { nounwind allocsize(1) }

!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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"short", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = distinct !{!20, !13, !21, !22}
!21 = !{!"llvm.loop.isvectorized", i32 1}
!22 = !{!"llvm.loop.unroll.runtime.disable"}
!23 = distinct !{!23, !13, !22, !21}


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