; LLVM IR from tangjz/acm-icpc :: lydsy (1358)

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

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@nL = external dso_local global i32, align 4
@nR = external dso_local global i32, align 4
@L = external dso_local global [301 x i32], align 16
@R = external dso_local global [301 x i32], align 16
@f = external dso_local global [45300 x i32], align 16
@ans = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %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 i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  br label %15

15:                                               ; preds = %38, %0
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = load i32, ptr @n, align 4, !tbaa !5
  %18 = icmp slt i32 %16, %17
  br i1 %18, label %20, label %19

19:                                               ; preds = %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %41

20:                                               ; preds = %15
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %3)
  %22 = load i32, ptr %3, align 4, !tbaa !5
  %23 = icmp slt i32 %22, 0
  br i1 %23, label %24, label %31

24:                                               ; preds = %20
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = sub nsw i32 0, %25
  %27 = load i32, ptr @nL, align 4, !tbaa !5
  %28 = add nsw i32 %27, 1
  store i32 %28, ptr @nL, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [301 x i32], ptr @L, i64 0, i64 %29
  store i32 %26, ptr %30, align 4, !tbaa !5
  br label %37

31:                                               ; preds = %20
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = load i32, ptr @nR, align 4, !tbaa !5
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr @nR, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [301 x i32], ptr @R, i64 0, i64 %35
  store i32 %32, ptr %36, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %31, %24
  br label %38

38:                                               ; preds = %37
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %2, align 4, !tbaa !5
  br label %15, !llvm.loop !9

41:                                               ; preds = %19
  %42 = load i32, ptr @nL, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds i32, ptr @L, i64 %43
  %45 = getelementptr inbounds i32, ptr %44, i64 1
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef getelementptr inbounds (i32, ptr @L, i64 1), ptr noundef %45)
  %46 = load i32, ptr @nR, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds i32, ptr @R, i64 %47
  %49 = getelementptr inbounds i32, ptr %48, i64 1
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef getelementptr inbounds (i32, ptr @R, i64 1), ptr noundef %49)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %265, %41
  %51 = load i32, ptr %4, align 4, !tbaa !5
  %52 = load i32, ptr @n, align 4, !tbaa !5
  %53 = icmp sle i32 %51, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %50
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %268

55:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %228, %55
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = load i32, ptr @nL, align 4, !tbaa !5
  %59 = icmp sle i32 %57, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %56
  store i32 8, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %231

61:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %62 = load i32, ptr %4, align 4, !tbaa !5
  %63 = load i32, ptr %6, align 4, !tbaa !5
  %64 = sub nsw i32 %62, %63
  store i32 %64, ptr %9, align 4, !tbaa !5
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @nR, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %66 = load i32, ptr %65, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  store i32 %66, ptr %8, align 4, !tbaa !5
  br label %67

67:                                               ; preds = %224, %61
  %68 = load i32, ptr %7, align 4, !tbaa !5
  %69 = load i32, ptr %8, align 4, !tbaa !5
  %70 = icmp sle i32 %68, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %67
  store i32 11, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %227

72:                                               ; preds = %67
  %73 = load i32, ptr %6, align 4, !tbaa !5
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %79, label %75

75:                                               ; preds = %72
  %76 = load i32, ptr %7, align 4, !tbaa !5
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %79, label %78

78:                                               ; preds = %75
  br label %224

79:                                               ; preds = %75, %72
  %80 = load i32, ptr %6, align 4, !tbaa !5
  %81 = load i32, ptr %7, align 4, !tbaa !5
  %82 = call noundef i32 @_Z3idxiii(i32 noundef %80, i32 noundef %81, i32 noundef 1)
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %83
  store i32 -1061109567, ptr %84, align 4, !tbaa !5
  %85 = load i32, ptr %6, align 4, !tbaa !5
  %86 = load i32, ptr %7, align 4, !tbaa !5
  %87 = call noundef i32 @_Z3idxiii(i32 noundef %85, i32 noundef %86, i32 noundef 0)
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %88
  store i32 -1061109567, ptr %89, align 4, !tbaa !5
  %90 = load i32, ptr %6, align 4, !tbaa !5
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %92, label %156

92:                                               ; preds = %79
  %93 = load i32, ptr %6, align 4, !tbaa !5
  %94 = load i32, ptr %7, align 4, !tbaa !5
  %95 = call noundef i32 @_Z3idxiii(i32 noundef %93, i32 noundef %94, i32 noundef 0)
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %96
  %98 = load i32, ptr %6, align 4, !tbaa !5
  %99 = sub nsw i32 %98, 1
  %100 = load i32, ptr %7, align 4, !tbaa !5
  %101 = call noundef i32 @_Z3idxiii(i32 noundef %99, i32 noundef %100, i32 noundef 0)
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = load i32, ptr %6, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [301 x i32], ptr @L, i64 0, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = load i32, ptr %6, align 4, !tbaa !5
  %110 = sub nsw i32 %109, 1
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [301 x i32], ptr @L, i64 0, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = sub nsw i32 %108, %113
  %115 = load i32, ptr %4, align 4, !tbaa !5
  %116 = load i32, ptr %6, align 4, !tbaa !5
  %117 = sub nsw i32 %115, %116
  %118 = load i32, ptr %7, align 4, !tbaa !5
  %119 = sub nsw i32 %117, %118
  %120 = add nsw i32 %119, 1
  %121 = mul nsw i32 %114, %120
  %122 = sub nsw i32 %104, %121
  %123 = load i32, ptr @m, align 4, !tbaa !5
  %124 = add nsw i32 %122, %123
  call void @_Z3updRii(ptr noundef nonnull align 4 dereferenceable(4) %97, i32 noundef %124)
  %125 = load i32, ptr %6, align 4, !tbaa !5
  %126 = load i32, ptr %7, align 4, !tbaa !5
  %127 = call noundef i32 @_Z3idxiii(i32 noundef %125, i32 noundef %126, i32 noundef 0)
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %128
  %130 = load i32, ptr %6, align 4, !tbaa !5
  %131 = sub nsw i32 %130, 1
  %132 = load i32, ptr %7, align 4, !tbaa !5
  %133 = call noundef i32 @_Z3idxiii(i32 noundef %131, i32 noundef %132, i32 noundef 1)
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %134
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = load i32, ptr %6, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [301 x i32], ptr @L, i64 0, i64 %138
  %140 = load i32, ptr %139, align 4, !tbaa !5
  %141 = load i32, ptr %7, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [301 x i32], ptr @R, i64 0, i64 %142
  %144 = load i32, ptr %143, align 4, !tbaa !5
  %145 = add nsw i32 %140, %144
  %146 = load i32, ptr %4, align 4, !tbaa !5
  %147 = load i32, ptr %6, align 4, !tbaa !5
  %148 = sub nsw i32 %146, %147
  %149 = load i32, ptr %7, align 4, !tbaa !5
  %150 = sub nsw i32 %148, %149
  %151 = add nsw i32 %150, 1
  %152 = mul nsw i32 %145, %151
  %153 = sub nsw i32 %136, %152
  %154 = load i32, ptr @m, align 4, !tbaa !5
  %155 = add nsw i32 %153, %154
  call void @_Z3updRii(ptr noundef nonnull align 4 dereferenceable(4) %129, i32 noundef %155)
  br label %156

156:                                              ; preds = %92, %79
  %157 = load i32, ptr %7, align 4, !tbaa !5
  %158 = icmp ne i32 %157, 0
  br i1 %158, label %159, label %223

159:                                              ; preds = %156
  %160 = load i32, ptr %6, align 4, !tbaa !5
  %161 = load i32, ptr %7, align 4, !tbaa !5
  %162 = call noundef i32 @_Z3idxiii(i32 noundef %160, i32 noundef %161, i32 noundef 1)
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %163
  %165 = load i32, ptr %6, align 4, !tbaa !5
  %166 = load i32, ptr %7, align 4, !tbaa !5
  %167 = sub nsw i32 %166, 1
  %168 = call noundef i32 @_Z3idxiii(i32 noundef %165, i32 noundef %167, i32 noundef 0)
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %169
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = load i32, ptr %6, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [301 x i32], ptr @L, i64 0, i64 %173
  %175 = load i32, ptr %174, align 4, !tbaa !5
  %176 = load i32, ptr %7, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [301 x i32], ptr @R, i64 0, i64 %177
  %179 = load i32, ptr %178, align 4, !tbaa !5
  %180 = add nsw i32 %175, %179
  %181 = load i32, ptr %4, align 4, !tbaa !5
  %182 = load i32, ptr %6, align 4, !tbaa !5
  %183 = sub nsw i32 %181, %182
  %184 = load i32, ptr %7, align 4, !tbaa !5
  %185 = sub nsw i32 %183, %184
  %186 = add nsw i32 %185, 1
  %187 = mul nsw i32 %180, %186
  %188 = sub nsw i32 %171, %187
  %189 = load i32, ptr @m, align 4, !tbaa !5
  %190 = add nsw i32 %188, %189
  call void @_Z3updRii(ptr noundef nonnull align 4 dereferenceable(4) %164, i32 noundef %190)
  %191 = load i32, ptr %6, align 4, !tbaa !5
  %192 = load i32, ptr %7, align 4, !tbaa !5
  %193 = call noundef i32 @_Z3idxiii(i32 noundef %191, i32 noundef %192, i32 noundef 1)
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %194
  %196 = load i32, ptr %6, align 4, !tbaa !5
  %197 = load i32, ptr %7, align 4, !tbaa !5
  %198 = sub nsw i32 %197, 1
  %199 = call noundef i32 @_Z3idxiii(i32 noundef %196, i32 noundef %198, i32 noundef 1)
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %200
  %202 = load i32, ptr %201, align 4, !tbaa !5
  %203 = load i32, ptr %7, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [301 x i32], ptr @R, i64 0, i64 %204
  %206 = load i32, ptr %205, align 4, !tbaa !5
  %207 = load i32, ptr %7, align 4, !tbaa !5
  %208 = sub nsw i32 %207, 1
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [301 x i32], ptr @R, i64 0, i64 %209
  %211 = load i32, ptr %210, align 4, !tbaa !5
  %212 = sub nsw i32 %206, %211
  %213 = load i32, ptr %4, align 4, !tbaa !5
  %214 = load i32, ptr %6, align 4, !tbaa !5
  %215 = sub nsw i32 %213, %214
  %216 = load i32, ptr %7, align 4, !tbaa !5
  %217 = sub nsw i32 %215, %216
  %218 = add nsw i32 %217, 1
  %219 = mul nsw i32 %212, %218
  %220 = sub nsw i32 %202, %219
  %221 = load i32, ptr @m, align 4, !tbaa !5
  %222 = add nsw i32 %220, %221
  call void @_Z3updRii(ptr noundef nonnull align 4 dereferenceable(4) %195, i32 noundef %222)
  br label %223

223:                                              ; preds = %159, %156
  br label %224

224:                                              ; preds = %223, %78
  %225 = load i32, ptr %7, align 4, !tbaa !5
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %7, align 4, !tbaa !5
  br label %67, !llvm.loop !11

227:                                              ; preds = %71
  br label %228

228:                                              ; preds = %227
  %229 = load i32, ptr %6, align 4, !tbaa !5
  %230 = add nsw i32 %229, 1
  store i32 %230, ptr %6, align 4, !tbaa !5
  br label %56, !llvm.loop !12

231:                                              ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %232 = load i32, ptr %4, align 4, !tbaa !5
  %233 = load i32, ptr @nR, align 4, !tbaa !5
  %234 = sub nsw i32 %232, %233
  store i32 %234, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !5
  %235 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %236 = load i32, ptr %235, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  store i32 %236, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %237 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) @nL)
  %238 = load i32, ptr %237, align 4, !tbaa !5
  store i32 %238, ptr %13, align 4, !tbaa !5
  br label %239

239:                                              ; preds = %261, %231
  %240 = load i32, ptr %10, align 4, !tbaa !5
  %241 = load i32, ptr %13, align 4, !tbaa !5
  %242 = icmp sle i32 %240, %241
  br i1 %242, label %244, label %243

243:                                              ; preds = %239
  store i32 14, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %264

244:                                              ; preds = %239
  %245 = load i32, ptr %10, align 4, !tbaa !5
  %246 = load i32, ptr %4, align 4, !tbaa !5
  %247 = load i32, ptr %10, align 4, !tbaa !5
  %248 = sub nsw i32 %246, %247
  %249 = call noundef i32 @_Z3idxiii(i32 noundef %245, i32 noundef %248, i32 noundef 0)
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %250
  %252 = load i32, ptr %251, align 4, !tbaa !5
  call void @_Z3updRii(ptr noundef nonnull align 4 dereferenceable(4) @ans, i32 noundef %252)
  %253 = load i32, ptr %10, align 4, !tbaa !5
  %254 = load i32, ptr %4, align 4, !tbaa !5
  %255 = load i32, ptr %10, align 4, !tbaa !5
  %256 = sub nsw i32 %254, %255
  %257 = call noundef i32 @_Z3idxiii(i32 noundef %253, i32 noundef %256, i32 noundef 1)
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %258
  %260 = load i32, ptr %259, align 4, !tbaa !5
  call void @_Z3updRii(ptr noundef nonnull align 4 dereferenceable(4) @ans, i32 noundef %260)
  br label %261

261:                                              ; preds = %244
  %262 = load i32, ptr %10, align 4, !tbaa !5
  %263 = add nsw i32 %262, 1
  store i32 %263, ptr %10, align 4, !tbaa !5
  br label %239, !llvm.loop !13

264:                                              ; preds = %243
  br label %265

265:                                              ; preds = %264
  %266 = load i32, ptr %4, align 4, !tbaa !5
  %267 = add nsw i32 %266, 1
  store i32 %267, ptr %4, align 4, !tbaa !5
  br label %50, !llvm.loop !14

268:                                              ; preds = %54
  %269 = load i32, ptr @ans, align 4, !tbaa !5
  %270 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %269)
  ret i32 0
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #1

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPiEvT_S1_(ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3idxiii(i32 noundef, i32 noundef, i32 noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z3updRii(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

declare i32 @printf(ptr noundef, ...) #1

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

!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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


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

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@nL = external dso_local global i32, align 4
@nR = external dso_local global i32, align 4
@L = external dso_local global [301 x i32], align 16
@R = external dso_local global [301 x i32], align 16
@f = external dso_local global [45300 x i32], align 16
@ans = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  %7 = load i32, ptr @n, align 4, !tbaa !5
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  %9 = load i32, ptr @nL, align 4, !tbaa !5
  %10 = sext i32 %9 to i64
  %11 = getelementptr inbounds i32, ptr @L, i64 %10
  %12 = getelementptr inbounds i8, ptr %11, i64 4
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef nonnull getelementptr inbounds (i8, ptr @L, i64 4), ptr noundef nonnull %12)
  %13 = load i32, ptr @nR, align 4, !tbaa !5
  %14 = sext i32 %13 to i64
  %15 = getelementptr inbounds i32, ptr @R, i64 %14
  %16 = getelementptr inbounds i8, ptr %15, i64 4
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef nonnull getelementptr inbounds (i8, ptr @R, i64 4), ptr noundef nonnull %16)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  store i32 1, ptr %2, align 4, !tbaa !5
  %17 = load i32, ptr @n, align 4, !tbaa !5
  %.not87 = icmp slt i32 %17, 1
  br i1 %.not87, label %._crit_edge88, label %.preheader

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.072 = phi i32 [ %25, %.lr.ph ], [ 0, %0 ]
  %18 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1)
  %19 = load i32, ptr %1, align 4, !tbaa !5
  %20 = icmp slt i32 %19, 0
  %nL.sink107 = select i1 %20, ptr @nL, ptr @nR
  %L.sink = select i1 %20, ptr @L, ptr @R
  %.sink = call i32 @llvm.abs.i32(i32 %19, i1 true)
  %21 = load i32, ptr %nL.sink107, align 4, !tbaa !5
  %22 = add nsw i32 %21, 1
  store i32 %22, ptr %nL.sink107, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [301 x i32], ptr %L.sink, i64 0, i64 %23
  store i32 %.sink, ptr %24, align 4, !tbaa !5
  %25 = add nuw nsw i32 %.072, 1
  %26 = load i32, ptr @n, align 4, !tbaa !5
  %27 = icmp slt i32 %25, %26
  br i1 %27, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.preheader:                                       ; preds = %._crit_edge, %._crit_edge86
  %28 = phi i32 [ %170, %._crit_edge86 ], [ 1, %._crit_edge ]
  %29 = load i32, ptr @nL, align 4, !tbaa !5
  %.not6078 = icmp slt i32 %29, 0
  br i1 %.not6078, label %._crit_edge81, label %.lr.ph80

._crit_edge88:                                    ; preds = %._crit_edge86, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  %30 = load i32, ptr @ans, align 4, !tbaa !5
  %31 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %30)
  ret i32 0

._crit_edge81.loopexit:                           ; preds = %._crit_edge77
  %.pre = load i32, ptr %2, align 4, !tbaa !5
  br label %._crit_edge81

._crit_edge81:                                    ; preds = %._crit_edge81.loopexit, %.preheader
  %32 = phi i32 [ %.pre, %._crit_edge81.loopexit ], [ %28, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %33 = load i32, ptr @nR, align 4, !tbaa !5
  %34 = sub nsw i32 %32, %33
  store i32 %34, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %36 = load i32, ptr %35, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  %37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) @nL)
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %.not6182 = icmp sgt i32 %36, %38
  br i1 %.not6182, label %._crit_edge86, label %.lr.ph85

.lr.ph80:                                         ; preds = %.preheader, %._crit_edge77
  %indvars.iv91 = phi i64 [ %indvars.iv.next92, %._crit_edge77 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %40 = trunc nuw i64 %indvars.iv91 to i32
  %41 = sub nsw i32 %39, %40
  store i32 %41, ptr %3, align 4, !tbaa !5
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @nR, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %43 = load i32, ptr %42, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  %.not6273 = icmp slt i32 %43, 0
  br i1 %.not6273, label %._crit_edge77, label %.lr.ph76

.lr.ph76:                                         ; preds = %.lr.ph80
  %.not63 = icmp eq i64 %indvars.iv91, 0
  %44 = add nsw i64 %indvars.iv91, -1
  %45 = getelementptr inbounds [301 x i32], ptr @L, i64 0, i64 %indvars.iv91
  %46 = getelementptr inbounds [301 x i32], ptr @L, i64 0, i64 %44
  %47 = add nuw i32 %43, 1
  %wide.trip.count = zext i32 %47 to i64
  %or.cond.not.peel = icmp eq i64 %indvars.iv91, 0
  br i1 %or.cond.not.peel, label %86, label %48

48:                                               ; preds = %.lr.ph76
  %49 = call noundef i32 @_Z3idxiii(i32 noundef %40, i32 noundef 0, i32 noundef 1)
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %50
  store i32 -1061109567, ptr %51, align 4, !tbaa !5
  %52 = call noundef i32 @_Z3idxiii(i32 noundef %40, i32 noundef 0, i32 noundef 0)
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %53
  store i32 -1061109567, ptr %54, align 4, !tbaa !5
  %55 = call noundef i32 @_Z3idxiii(i32 noundef %40, i32 noundef 0, i32 noundef 0)
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %56
  %58 = trunc nsw i64 %44 to i32
  %59 = call noundef i32 @_Z3idxiii(i32 noundef %58, i32 noundef 0, i32 noundef 0)
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = load i32, ptr %45, align 4, !tbaa !5
  %64 = load i32, ptr %46, align 4, !tbaa !5
  %65 = sub nsw i32 %63, %64
  %66 = load i32, ptr %2, align 4, !tbaa !5
  %67 = xor i32 %66, -1
  %.neg.peel = add i32 %40, %67
  %.neg65.peel = mul i32 %.neg.peel, %65
  %68 = load i32, ptr @m, align 4, !tbaa !5
  %69 = add i32 %68, %62
  %70 = add i32 %69, %.neg65.peel
  call void @_Z3updRii(ptr noundef nonnull align 4 dereferenceable(4) %57, i32 noundef %70)
  %71 = call noundef i32 @_Z3idxiii(i32 noundef %40, i32 noundef 0, i32 noundef 0)
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %72
  %74 = call noundef i32 @_Z3idxiii(i32 noundef %58, i32 noundef 0, i32 noundef 1)
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = load i32, ptr %45, align 4, !tbaa !5
  %79 = load i32, ptr @R, align 16, !tbaa !5
  %80 = add nsw i32 %79, %78
  %81 = load i32, ptr %2, align 4, !tbaa !5
  %82 = xor i32 %81, -1
  %.neg66.peel = add i32 %40, %82
  %.neg67.peel = mul i32 %.neg66.peel, %80
  %83 = load i32, ptr @m, align 4, !tbaa !5
  %84 = add i32 %83, %77
  %85 = add i32 %84, %.neg67.peel
  call void @_Z3updRii(ptr noundef nonnull align 4 dereferenceable(4) %73, i32 noundef %85)
  br label %86

86:                                               ; preds = %48, %.lr.ph76
  %exitcond.peel.not = icmp eq i32 %43, 0
  br i1 %exitcond.peel.not, label %._crit_edge77, label %.peel.next

.peel.next:                                       ; preds = %86
  %87 = trunc nsw i64 %44 to i32
  br label %90

._crit_edge77:                                    ; preds = %132, %86, %.lr.ph80
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 1
  %88 = load i32, ptr @nL, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %.not60.not = icmp slt i64 %indvars.iv91, %89
  br i1 %.not60.not, label %.lr.ph80, label %._crit_edge81.loopexit, !llvm.loop !11

90:                                               ; preds = %132, %.peel.next
  %indvars.iv = phi i64 [ 1, %.peel.next ], [ %indvars.iv.next, %132 ]
  %91 = trunc nuw nsw i64 %indvars.iv to i32
  %92 = call noundef i32 @_Z3idxiii(i32 noundef %40, i32 noundef %91, i32 noundef 1)
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %93
  store i32 -1061109567, ptr %94, align 4, !tbaa !5
  %95 = call noundef i32 @_Z3idxiii(i32 noundef %40, i32 noundef %91, i32 noundef 0)
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %96
  store i32 -1061109567, ptr %97, align 4, !tbaa !5
  br i1 %.not63, label %132, label %98

98:                                               ; preds = %90
  %99 = call noundef i32 @_Z3idxiii(i32 noundef %40, i32 noundef %91, i32 noundef 0)
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %100
  %102 = call noundef i32 @_Z3idxiii(i32 noundef %87, i32 noundef %91, i32 noundef 0)
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %106 = load i32, ptr %45, align 4, !tbaa !5
  %107 = load i32, ptr %46, align 4, !tbaa !5
  %108 = sub nsw i32 %106, %107
  %109 = load i32, ptr %2, align 4, !tbaa !5
  %110 = add nuw nsw i64 %indvars.iv, %indvars.iv91
  %111 = xor i32 %109, -1
  %112 = trunc nuw i64 %110 to i32
  %.neg = add i32 %112, %111
  %.neg65 = mul i32 %.neg, %108
  %113 = load i32, ptr @m, align 4, !tbaa !5
  %114 = add i32 %113, %105
  %115 = add i32 %114, %.neg65
  call void @_Z3updRii(ptr noundef nonnull align 4 dereferenceable(4) %101, i32 noundef %115)
  %116 = call noundef i32 @_Z3idxiii(i32 noundef %40, i32 noundef %91, i32 noundef 0)
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %117
  %119 = call noundef i32 @_Z3idxiii(i32 noundef %87, i32 noundef %91, i32 noundef 1)
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %120
  %122 = load i32, ptr %121, align 4, !tbaa !5
  %123 = load i32, ptr %45, align 4, !tbaa !5
  %124 = getelementptr inbounds [301 x i32], ptr @R, i64 0, i64 %indvars.iv
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = add nsw i32 %125, %123
  %127 = load i32, ptr %2, align 4, !tbaa !5
  %128 = xor i32 %127, -1
  %.neg66 = add i32 %112, %128
  %.neg67 = mul i32 %.neg66, %126
  %129 = load i32, ptr @m, align 4, !tbaa !5
  %130 = add i32 %129, %122
  %131 = add i32 %130, %.neg67
  call void @_Z3updRii(ptr noundef nonnull align 4 dereferenceable(4) %118, i32 noundef %131)
  br label %132

132:                                              ; preds = %98, %90
  %133 = call noundef i32 @_Z3idxiii(i32 noundef %40, i32 noundef %91, i32 noundef 1)
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %134
  %136 = add nsw i64 %indvars.iv, -1
  %137 = trunc nsw i64 %136 to i32
  %138 = call noundef i32 @_Z3idxiii(i32 noundef %40, i32 noundef %137, i32 noundef 0)
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %139
  %141 = load i32, ptr %140, align 4, !tbaa !5
  %142 = load i32, ptr %45, align 4, !tbaa !5
  %143 = getelementptr inbounds [301 x i32], ptr @R, i64 0, i64 %indvars.iv
  %144 = load i32, ptr %143, align 4, !tbaa !5
  %145 = add nsw i32 %144, %142
  %146 = load i32, ptr %2, align 4, !tbaa !5
  %147 = add nuw nsw i64 %indvars.iv, %indvars.iv91
  %148 = xor i32 %146, -1
  %149 = trunc nuw i64 %147 to i32
  %.neg68 = add i32 %149, %148
  %.neg69 = mul i32 %.neg68, %145
  %150 = load i32, ptr @m, align 4, !tbaa !5
  %151 = add i32 %150, %141
  %152 = add i32 %151, %.neg69
  call void @_Z3updRii(ptr noundef nonnull align 4 dereferenceable(4) %135, i32 noundef %152)
  %153 = call noundef i32 @_Z3idxiii(i32 noundef %40, i32 noundef %91, i32 noundef 1)
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %154
  %156 = call noundef i32 @_Z3idxiii(i32 noundef %40, i32 noundef %137, i32 noundef 1)
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %157
  %159 = load i32, ptr %158, align 4, !tbaa !5
  %160 = load i32, ptr %143, align 4, !tbaa !5
  %161 = getelementptr inbounds [301 x i32], ptr @R, i64 0, i64 %136
  %162 = load i32, ptr %161, align 4, !tbaa !5
  %163 = sub nsw i32 %160, %162
  %164 = load i32, ptr %2, align 4, !tbaa !5
  %165 = xor i32 %164, -1
  %.neg70 = add i32 %149, %165
  %.neg71 = mul i32 %.neg70, %163
  %166 = load i32, ptr @m, align 4, !tbaa !5
  %167 = add i32 %166, %159
  %168 = add i32 %167, %.neg71
  call void @_Z3updRii(ptr noundef nonnull align 4 dereferenceable(4) %155, i32 noundef %168)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge77, label %90, !llvm.loop !12

._crit_edge86:                                    ; preds = %.lr.ph85, %._crit_edge81
  %169 = load i32, ptr %2, align 4, !tbaa !5
  %170 = add nsw i32 %169, 1
  store i32 %170, ptr %2, align 4, !tbaa !5
  %171 = load i32, ptr @n, align 4, !tbaa !5
  %.not.not = icmp slt i32 %169, %171
  br i1 %.not.not, label %.preheader, label %._crit_edge88, !llvm.loop !14

.lr.ph85:                                         ; preds = %._crit_edge81, %.lr.ph85
  %.05683 = phi i32 [ %184, %.lr.ph85 ], [ %36, %._crit_edge81 ]
  %172 = load i32, ptr %2, align 4, !tbaa !5
  %173 = sub nsw i32 %172, %.05683
  %174 = call noundef i32 @_Z3idxiii(i32 noundef %.05683, i32 noundef %173, i32 noundef 0)
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %175
  %177 = load i32, ptr %176, align 4, !tbaa !5
  call void @_Z3updRii(ptr noundef nonnull align 4 dereferenceable(4) @ans, i32 noundef %177)
  %178 = load i32, ptr %2, align 4, !tbaa !5
  %179 = sub nsw i32 %178, %.05683
  %180 = call noundef i32 @_Z3idxiii(i32 noundef %.05683, i32 noundef %179, i32 noundef 1)
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [45300 x i32], ptr @f, i64 0, i64 %181
  %183 = load i32, ptr %182, align 4, !tbaa !5
  call void @_Z3updRii(ptr noundef nonnull align 4 dereferenceable(4) @ans, i32 noundef %183)
  %184 = add i32 %.05683, 1
  %exitcond94.not = icmp eq i32 %.05683, %38
  br i1 %exitcond94.not, label %._crit_edge86, label %.lr.ph85, !llvm.loop !15
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPiEvT_S1_(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3idxiii(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z3updRii(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #5

attributes #0 = { mustprogress norecurse 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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10, !13}
!13 = !{!"llvm.loop.peeled.count", i32 1}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass