; LLVM IR from sunkafei/xcpc-algorithm-templates :: 算法/数据结构/四分树.ll (Z8maintaini)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.area = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%"class.std::initializer_list" = type { ptr, i64 }

@t = external dso_local global [4840000 x %struct.area], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8maintaini(i32 noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::initializer_list", align 8
  %8 = alloca [4 x i32], align 4
  %9 = alloca %"class.std::initializer_list", align 8
  %10 = alloca [4 x i32], align 4
  store i32 %0, ptr %2, align 4, !tbaa !5
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %12 = icmp eq i32 %11, 0
  br i1 %12, label %13, label %14

13:                                               ; preds = %1
  br label %290

14:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %16
  %18 = getelementptr inbounds %struct.area, ptr %17, i32 0, i32 4
  %19 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %19, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %21
  %23 = getelementptr inbounds %struct.area, ptr %22, i32 0, i32 5
  %24 = load i32, ptr %23, align 4, !tbaa !11
  store i32 %24, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %26
  %28 = getelementptr inbounds %struct.area, ptr %27, i32 0, i32 6
  %29 = load i32, ptr %28, align 4, !tbaa !12
  store i32 %29, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %31
  %33 = getelementptr inbounds %struct.area, ptr %32, i32 0, i32 7
  %34 = load i32, ptr %33, align 4, !tbaa !13
  store i32 %34, ptr %6, align 4, !tbaa !5
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %36
  %38 = getelementptr inbounds %struct.area, ptr %37, i32 0, i32 10
  store i32 0, ptr %38, align 4, !tbaa !14
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %40
  %42 = getelementptr inbounds %struct.area, ptr %41, i32 0, i32 9
  store i32 0, ptr %42, align 4, !tbaa !15
  %43 = load i32, ptr %2, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %44
  %46 = getelementptr inbounds %struct.area, ptr %45, i32 0, i32 8
  store i32 0, ptr %46, align 4, !tbaa !16
  %47 = load i32, ptr %2, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %48
  %50 = getelementptr inbounds %struct.area, ptr %49, i32 0, i32 0
  %51 = load i32, ptr %50, align 4, !tbaa !17
  %52 = load i32, ptr %2, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %53
  %55 = getelementptr inbounds %struct.area, ptr %54, i32 0, i32 1
  %56 = load i32, ptr %55, align 4, !tbaa !18
  %57 = icmp ne i32 %51, %56
  br i1 %57, label %70, label %58

58:                                               ; preds = %14
  %59 = load i32, ptr %2, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %60
  %62 = getelementptr inbounds %struct.area, ptr %61, i32 0, i32 2
  %63 = load i32, ptr %62, align 4, !tbaa !19
  %64 = load i32, ptr %2, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %65
  %67 = getelementptr inbounds %struct.area, ptr %66, i32 0, i32 3
  %68 = load i32, ptr %67, align 4, !tbaa !20
  %69 = icmp ne i32 %63, %68
  br i1 %69, label %70, label %166

70:                                               ; preds = %58, %14
  %71 = load i32, ptr %3, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %72
  %74 = getelementptr inbounds %struct.area, ptr %73, i32 0, i32 8
  %75 = load i32, ptr %74, align 4, !tbaa !16
  %76 = load i32, ptr %4, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %77
  %79 = getelementptr inbounds %struct.area, ptr %78, i32 0, i32 8
  %80 = load i32, ptr %79, align 4, !tbaa !16
  %81 = add nsw i32 %75, %80
  %82 = load i32, ptr %5, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %83
  %85 = getelementptr inbounds %struct.area, ptr %84, i32 0, i32 8
  %86 = load i32, ptr %85, align 4, !tbaa !16
  %87 = add nsw i32 %81, %86
  %88 = load i32, ptr %6, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %89
  %91 = getelementptr inbounds %struct.area, ptr %90, i32 0, i32 8
  %92 = load i32, ptr %91, align 4, !tbaa !16
  %93 = add nsw i32 %87, %92
  %94 = load i32, ptr %2, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %95
  %97 = getelementptr inbounds %struct.area, ptr %96, i32 0, i32 8
  store i32 %93, ptr %97, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #3
  %98 = load i32, ptr %3, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %99
  %101 = getelementptr inbounds %struct.area, ptr %100, i32 0, i32 9
  %102 = load i32, ptr %101, align 4, !tbaa !15
  store i32 %102, ptr %8, align 4, !tbaa !5
  %103 = getelementptr inbounds i32, ptr %8, i64 1
  %104 = load i32, ptr %4, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %105
  %107 = getelementptr inbounds %struct.area, ptr %106, i32 0, i32 9
  %108 = load i32, ptr %107, align 4, !tbaa !15
  store i32 %108, ptr %103, align 4, !tbaa !5
  %109 = getelementptr inbounds i32, ptr %8, i64 2
  %110 = load i32, ptr %5, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %111
  %113 = getelementptr inbounds %struct.area, ptr %112, i32 0, i32 9
  %114 = load i32, ptr %113, align 4, !tbaa !15
  store i32 %114, ptr %109, align 4, !tbaa !5
  %115 = getelementptr inbounds i32, ptr %8, i64 3
  %116 = load i32, ptr %6, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %117
  %119 = getelementptr inbounds %struct.area, ptr %118, i32 0, i32 9
  %120 = load i32, ptr %119, align 4, !tbaa !15
  store i32 %120, ptr %115, align 4, !tbaa !5
  %121 = getelementptr inbounds %"class.std::initializer_list", ptr %7, i32 0, i32 0
  store ptr %8, ptr %121, align 8, !tbaa !21
  %122 = getelementptr inbounds %"class.std::initializer_list", ptr %7, i32 0, i32 1
  store i64 4, ptr %122, align 8, !tbaa !25
  %123 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 0
  %124 = load ptr, ptr %123, align 8
  %125 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 1
  %126 = load i64, ptr %125, align 8
  %127 = call noundef i32 @_ZSt3minIiET_St16initializer_listIS0_E(ptr %124, i64 %126)
  %128 = load i32, ptr %2, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %129
  %131 = getelementptr inbounds %struct.area, ptr %130, i32 0, i32 9
  store i32 %127, ptr %131, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #3
  %132 = load i32, ptr %3, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %133
  %135 = getelementptr inbounds %struct.area, ptr %134, i32 0, i32 10
  %136 = load i32, ptr %135, align 4, !tbaa !14
  store i32 %136, ptr %10, align 4, !tbaa !5
  %137 = getelementptr inbounds i32, ptr %10, i64 1
  %138 = load i32, ptr %4, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %139
  %141 = getelementptr inbounds %struct.area, ptr %140, i32 0, i32 10
  %142 = load i32, ptr %141, align 4, !tbaa !14
  store i32 %142, ptr %137, align 4, !tbaa !5
  %143 = getelementptr inbounds i32, ptr %10, i64 2
  %144 = load i32, ptr %5, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %145
  %147 = getelementptr inbounds %struct.area, ptr %146, i32 0, i32 10
  %148 = load i32, ptr %147, align 4, !tbaa !14
  store i32 %148, ptr %143, align 4, !tbaa !5
  %149 = getelementptr inbounds i32, ptr %10, i64 3
  %150 = load i32, ptr %6, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %151
  %153 = getelementptr inbounds %struct.area, ptr %152, i32 0, i32 10
  %154 = load i32, ptr %153, align 4, !tbaa !14
  store i32 %154, ptr %149, align 4, !tbaa !5
  %155 = getelementptr inbounds %"class.std::initializer_list", ptr %9, i32 0, i32 0
  store ptr %10, ptr %155, align 8, !tbaa !21
  %156 = getelementptr inbounds %"class.std::initializer_list", ptr %9, i32 0, i32 1
  store i64 4, ptr %156, align 8, !tbaa !25
  %157 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 0
  %158 = load ptr, ptr %157, align 8
  %159 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 1
  %160 = load i64, ptr %159, align 8
  %161 = call noundef i32 @_ZSt3maxIiET_St16initializer_listIS0_E(ptr %158, i64 %160)
  %162 = load i32, ptr %2, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %163
  %165 = getelementptr inbounds %struct.area, ptr %164, i32 0, i32 10
  store i32 %161, ptr %165, align 4, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #3
  br label %166

166:                                              ; preds = %70, %58
  %167 = load i32, ptr %2, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %168
  %170 = getelementptr inbounds %struct.area, ptr %169, i32 0, i32 11
  %171 = load i32, ptr %170, align 4, !tbaa !26
  %172 = icmp sge i32 %171, 0
  br i1 %172, label %173, label %222

173:                                              ; preds = %166
  %174 = load i32, ptr %2, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %175
  %177 = getelementptr inbounds %struct.area, ptr %176, i32 0, i32 11
  %178 = load i32, ptr %177, align 4, !tbaa !26
  %179 = load i32, ptr %2, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %180
  %182 = getelementptr inbounds %struct.area, ptr %181, i32 0, i32 10
  store i32 %178, ptr %182, align 4, !tbaa !14
  %183 = load i32, ptr %2, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %184
  %186 = getelementptr inbounds %struct.area, ptr %185, i32 0, i32 9
  store i32 %178, ptr %186, align 4, !tbaa !15
  %187 = load i32, ptr %2, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %188
  %190 = getelementptr inbounds %struct.area, ptr %189, i32 0, i32 11
  %191 = load i32, ptr %190, align 4, !tbaa !26
  %192 = load i32, ptr %2, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %193
  %195 = getelementptr inbounds %struct.area, ptr %194, i32 0, i32 1
  %196 = load i32, ptr %195, align 4, !tbaa !18
  %197 = load i32, ptr %2, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %198
  %200 = getelementptr inbounds %struct.area, ptr %199, i32 0, i32 0
  %201 = load i32, ptr %200, align 4, !tbaa !17
  %202 = sub nsw i32 %196, %201
  %203 = add nsw i32 %202, 1
  %204 = mul nsw i32 %191, %203
  %205 = load i32, ptr %2, align 4, !tbaa !5
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %206
  %208 = getelementptr inbounds %struct.area, ptr %207, i32 0, i32 3
  %209 = load i32, ptr %208, align 4, !tbaa !20
  %210 = load i32, ptr %2, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %211
  %213 = getelementptr inbounds %struct.area, ptr %212, i32 0, i32 2
  %214 = load i32, ptr %213, align 4, !tbaa !19
  %215 = sub nsw i32 %209, %214
  %216 = add nsw i32 %215, 1
  %217 = mul nsw i32 %204, %216
  %218 = load i32, ptr %2, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %219
  %221 = getelementptr inbounds %struct.area, ptr %220, i32 0, i32 8
  store i32 %217, ptr %221, align 4, !tbaa !16
  br label %222

222:                                              ; preds = %173, %166
  %223 = load i32, ptr %2, align 4, !tbaa !5
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %224
  %226 = getelementptr inbounds %struct.area, ptr %225, i32 0, i32 12
  %227 = load i32, ptr %226, align 4, !tbaa !27
  %228 = icmp ne i32 %227, 0
  br i1 %228, label %229, label %289

229:                                              ; preds = %222
  %230 = load i32, ptr %2, align 4, !tbaa !5
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %231
  %233 = getelementptr inbounds %struct.area, ptr %232, i32 0, i32 12
  %234 = load i32, ptr %233, align 4, !tbaa !27
  %235 = load i32, ptr %2, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %236
  %238 = getelementptr inbounds %struct.area, ptr %237, i32 0, i32 9
  %239 = load i32, ptr %238, align 4, !tbaa !15
  %240 = add nsw i32 %239, %234
  store i32 %240, ptr %238, align 4, !tbaa !15
  %241 = load i32, ptr %2, align 4, !tbaa !5
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %242
  %244 = getelementptr inbounds %struct.area, ptr %243, i32 0, i32 12
  %245 = load i32, ptr %244, align 4, !tbaa !27
  %246 = load i32, ptr %2, align 4, !tbaa !5
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %247
  %249 = getelementptr inbounds %struct.area, ptr %248, i32 0, i32 10
  %250 = load i32, ptr %249, align 4, !tbaa !14
  %251 = add nsw i32 %250, %245
  store i32 %251, ptr %249, align 4, !tbaa !14
  %252 = load i32, ptr %2, align 4, !tbaa !5
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %253
  %255 = getelementptr inbounds %struct.area, ptr %254, i32 0, i32 12
  %256 = load i32, ptr %255, align 4, !tbaa !27
  %257 = load i32, ptr %2, align 4, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %258
  %260 = getelementptr inbounds %struct.area, ptr %259, i32 0, i32 1
  %261 = load i32, ptr %260, align 4, !tbaa !18
  %262 = load i32, ptr %2, align 4, !tbaa !5
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %263
  %265 = getelementptr inbounds %struct.area, ptr %264, i32 0, i32 0
  %266 = load i32, ptr %265, align 4, !tbaa !17
  %267 = sub nsw i32 %261, %266
  %268 = add nsw i32 %267, 1
  %269 = mul nsw i32 %256, %268
  %270 = load i32, ptr %2, align 4, !tbaa !5
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %271
  %273 = getelementptr inbounds %struct.area, ptr %272, i32 0, i32 3
  %274 = load i32, ptr %273, align 4, !tbaa !20
  %275 = load i32, ptr %2, align 4, !tbaa !5
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %276
  %278 = getelementptr inbounds %struct.area, ptr %277, i32 0, i32 2
  %279 = load i32, ptr %278, align 4, !tbaa !19
  %280 = sub nsw i32 %274, %279
  %281 = add nsw i32 %280, 1
  %282 = mul nsw i32 %269, %281
  %283 = load i32, ptr %2, align 4, !tbaa !5
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %284
  %286 = getelementptr inbounds %struct.area, ptr %285, i32 0, i32 8
  %287 = load i32, ptr %286, align 4, !tbaa !16
  %288 = add nsw i32 %287, %282
  store i32 %288, ptr %286, align 4, !tbaa !16
  br label %289

289:                                              ; preds = %229, %222
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  br label %290

290:                                              ; preds = %289, %13
  ret void
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZSt3minIiET_St16initializer_listIS0_E(ptr, i64) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZSt3maxIiET_St16initializer_listIS0_E(ptr, i64) #2

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

!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++ TBAA"}
!9 = !{!10, !6, i64 16}
!10 = !{!"_ZTS4area", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48}
!11 = !{!10, !6, i64 20}
!12 = !{!10, !6, i64 24}
!13 = !{!10, !6, i64 28}
!14 = !{!10, !6, i64 40}
!15 = !{!10, !6, i64 36}
!16 = !{!10, !6, i64 32}
!17 = !{!10, !6, i64 0}
!18 = !{!10, !6, i64 4}
!19 = !{!10, !6, i64 8}
!20 = !{!10, !6, i64 12}
!21 = !{!22, !23, i64 0}
!22 = !{!"_ZTSSt16initializer_listIiE", !23, i64 0, !24, i64 8}
!23 = !{!"any pointer", !7, i64 0}
!24 = !{!"long", !7, i64 0}
!25 = !{!22, !24, i64 8}
!26 = !{!10, !6, i64 44}
!27 = !{!10, !6, i64 48}


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

%struct.area = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }

@t = external dso_local local_unnamed_addr global [4840000 x %struct.area], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8maintaini(i32 noundef %0) local_unnamed_addr #0 {
  %2 = alloca [4 x i32], align 4
  %3 = alloca [4 x i32], align 4
  %4 = icmp eq i32 %0, 0
  br i1 %4, label %111, label %5

5:                                                ; preds = %1
  %6 = sext i32 %0 to i64
  %7 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %6
  %8 = getelementptr inbounds i8, ptr %7, i64 16
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %7, i64 20
  %11 = load i32, ptr %10, align 4, !tbaa !10
  %12 = getelementptr inbounds i8, ptr %7, i64 24
  %13 = load i32, ptr %12, align 4, !tbaa !11
  %14 = getelementptr inbounds i8, ptr %7, i64 28
  %15 = load i32, ptr %14, align 4, !tbaa !12
  %16 = getelementptr inbounds i8, ptr %7, i64 40
  store i32 0, ptr %16, align 4, !tbaa !13
  %17 = getelementptr inbounds i8, ptr %7, i64 36
  store i32 0, ptr %17, align 4, !tbaa !14
  %18 = getelementptr inbounds i8, ptr %7, i64 32
  store i32 0, ptr %18, align 4, !tbaa !15
  %19 = load i32, ptr %7, align 4, !tbaa !16
  %20 = getelementptr inbounds i8, ptr %7, i64 4
  %21 = load i32, ptr %20, align 4, !tbaa !17
  %.not = icmp eq i32 %19, %21
  br i1 %.not, label %22, label %27

22:                                               ; preds = %5
  %23 = getelementptr inbounds i8, ptr %7, i64 8
  %24 = load i32, ptr %23, align 4, !tbaa !18
  %25 = getelementptr inbounds i8, ptr %7, i64 12
  %26 = load i32, ptr %25, align 4, !tbaa !19
  %.not52 = icmp eq i32 %24, %26
  br i1 %.not52, label %71, label %27

27:                                               ; preds = %22, %5
  %28 = sext i32 %9 to i64
  %29 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %28
  %30 = getelementptr inbounds i8, ptr %29, i64 32
  %31 = load i32, ptr %30, align 4, !tbaa !15
  %32 = sext i32 %11 to i64
  %33 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %32
  %34 = getelementptr inbounds i8, ptr %33, i64 32
  %35 = load i32, ptr %34, align 4, !tbaa !15
  %36 = add nsw i32 %35, %31
  %37 = sext i32 %13 to i64
  %38 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %37
  %39 = getelementptr inbounds i8, ptr %38, i64 32
  %40 = load i32, ptr %39, align 4, !tbaa !15
  %41 = add nsw i32 %36, %40
  %42 = sext i32 %15 to i64
  %43 = getelementptr inbounds [4840000 x %struct.area], ptr @t, i64 0, i64 %42
  %44 = getelementptr inbounds i8, ptr %43, i64 32
  %45 = load i32, ptr %44, align 4, !tbaa !15
  %46 = add nsw i32 %41, %45
  store i32 %46, ptr %18, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #3
  %47 = getelementptr inbounds i8, ptr %29, i64 36
  %48 = load i32, ptr %47, align 4, !tbaa !14
  store i32 %48, ptr %2, align 4, !tbaa !20
  %49 = getelementptr inbounds i8, ptr %2, i64 4
  %50 = getelementptr inbounds i8, ptr %33, i64 36
  %51 = load i32, ptr %50, align 4, !tbaa !14
  store i32 %51, ptr %49, align 4, !tbaa !20
  %52 = getelementptr inbounds i8, ptr %2, i64 8
  %53 = getelementptr inbounds i8, ptr %38, i64 36
  %54 = load i32, ptr %53, align 4, !tbaa !14
  store i32 %54, ptr %52, align 4, !tbaa !20
  %55 = getelementptr inbounds i8, ptr %2, i64 12
  %56 = getelementptr inbounds i8, ptr %43, i64 36
  %57 = load i32, ptr %56, align 4, !tbaa !14
  store i32 %57, ptr %55, align 4, !tbaa !20
  %58 = call noundef i32 @_ZSt3minIiET_St16initializer_listIS0_E(ptr nonnull %2, i64 4)
  store i32 %58, ptr %17, align 4, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
  %59 = getelementptr inbounds i8, ptr %29, i64 40
  %60 = load i32, ptr %59, align 4, !tbaa !13
  store i32 %60, ptr %3, align 4, !tbaa !20
  %61 = getelementptr inbounds i8, ptr %3, i64 4
  %62 = getelementptr inbounds i8, ptr %33, i64 40
  %63 = load i32, ptr %62, align 4, !tbaa !13
  store i32 %63, ptr %61, align 4, !tbaa !20
  %64 = getelementptr inbounds i8, ptr %3, i64 8
  %65 = getelementptr inbounds i8, ptr %38, i64 40
  %66 = load i32, ptr %65, align 4, !tbaa !13
  store i32 %66, ptr %64, align 4, !tbaa !20
  %67 = getelementptr inbounds i8, ptr %3, i64 12
  %68 = getelementptr inbounds i8, ptr %43, i64 40
  %69 = load i32, ptr %68, align 4, !tbaa !13
  store i32 %69, ptr %67, align 4, !tbaa !20
  %70 = call noundef i32 @_ZSt3maxIiET_St16initializer_listIS0_E(ptr nonnull %3, i64 4)
  store i32 %70, ptr %16, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
  br label %71

71:                                               ; preds = %27, %22
  %72 = phi i32 [ %70, %27 ], [ 0, %22 ]
  %73 = getelementptr inbounds i8, ptr %7, i64 44
  %74 = load i32, ptr %73, align 4, !tbaa !21
  %75 = icmp sgt i32 %74, -1
  br i1 %75, label %76, label %89

76:                                               ; preds = %71
  store i32 %74, ptr %16, align 4, !tbaa !13
  store i32 %74, ptr %17, align 4, !tbaa !14
  %77 = load i32, ptr %20, align 4, !tbaa !17
  %78 = load i32, ptr %7, align 4, !tbaa !16
  %79 = add i32 %77, 1
  %80 = sub i32 %79, %78
  %81 = mul nsw i32 %80, %74
  %82 = getelementptr inbounds i8, ptr %7, i64 12
  %83 = load i32, ptr %82, align 4, !tbaa !19
  %84 = getelementptr inbounds i8, ptr %7, i64 8
  %85 = load i32, ptr %84, align 4, !tbaa !18
  %86 = add i32 %83, 1
  %87 = sub i32 %86, %85
  %88 = mul nsw i32 %81, %87
  store i32 %88, ptr %18, align 4, !tbaa !15
  br label %89

89:                                               ; preds = %76, %71
  %90 = phi i32 [ %74, %76 ], [ %72, %71 ]
  %91 = getelementptr inbounds i8, ptr %7, i64 48
  %92 = load i32, ptr %91, align 4, !tbaa !22
  %.not53 = icmp eq i32 %92, 0
  br i1 %.not53, label %111, label %93

93:                                               ; preds = %89
  %94 = load i32, ptr %17, align 4, !tbaa !14
  %95 = add nsw i32 %94, %92
  store i32 %95, ptr %17, align 4, !tbaa !14
  %96 = add nsw i32 %90, %92
  store i32 %96, ptr %16, align 4, !tbaa !13
  %97 = load i32, ptr %20, align 4, !tbaa !17
  %98 = load i32, ptr %7, align 4, !tbaa !16
  %99 = add i32 %97, 1
  %100 = sub i32 %99, %98
  %101 = mul nsw i32 %100, %92
  %102 = getelementptr inbounds i8, ptr %7, i64 12
  %103 = load i32, ptr %102, align 4, !tbaa !19
  %104 = getelementptr inbounds i8, ptr %7, i64 8
  %105 = load i32, ptr %104, align 4, !tbaa !18
  %106 = add i32 %103, 1
  %107 = sub i32 %106, %105
  %108 = mul nsw i32 %101, %107
  %109 = load i32, ptr %18, align 4, !tbaa !15
  %110 = add nsw i32 %108, %109
  store i32 %110, ptr %18, align 4, !tbaa !15
  br label %111

111:                                              ; preds = %89, %93, %1
  ret void
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZSt3minIiET_St16initializer_listIS0_E(ptr, i64) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZSt3maxIiET_St16initializer_listIS0_E(ptr, i64) local_unnamed_addr #2

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

!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, !7, i64 16}
!6 = !{!"_ZTS4area", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 20}
!11 = !{!6, !7, i64 24}
!12 = !{!6, !7, i64 28}
!13 = !{!6, !7, i64 40}
!14 = !{!6, !7, i64 36}
!15 = !{!6, !7, i64 32}
!16 = !{!6, !7, i64 0}
!17 = !{!6, !7, i64 4}
!18 = !{!6, !7, i64 8}
!19 = !{!6, !7, i64 12}
!20 = !{!7, !7, i64 0}
!21 = !{!6, !7, i64 44}
!22 = !{!6, !7, i64 48}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass