; LLVM IR from reyadussalahin/problem-solving :: search/binary_search/codeforces/F1490G (Solution)

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

@a = external dso_local global [200020 x i32], align 16
@x = external dso_local global [200020 x i32], align 16
@y = external dso_local global [200020 x i32], align 16
@s = external dso_local global [200020 x i64], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [116 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3cmpii(i32 noundef, i32 noundef) #0

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

22:                                               ; preds = %275, %0
  %23 = load i32, ptr %3, align 4, !tbaa !5
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = icmp slt i32 %23, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %22
  store i32 2, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %278

27:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %28 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %5, ptr noundef %6)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %43, %27
  %30 = load i32, ptr %7, align 4, !tbaa !5
  %31 = load i32, ptr %5, align 4, !tbaa !5
  %32 = icmp slt i32 %30, %31
  br i1 %32, label %34, label %33

33:                                               ; preds = %29
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %46

34:                                               ; preds = %29
  %35 = load i32, ptr %7, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [200020 x i32], ptr @a, i64 0, i64 %36
  %38 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %37)
  %39 = load i32, ptr %7, align 4, !tbaa !5
  %40 = load i32, ptr %7, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [200020 x i32], ptr @x, i64 0, i64 %41
  store i32 %39, ptr %42, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %34
  %44 = load i32, ptr %7, align 4, !tbaa !5
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %7, align 4, !tbaa !5
  br label %29, !llvm.loop !9

46:                                               ; preds = %33
  %47 = load i32, ptr @a, align 16, !tbaa !5
  %48 = sext i32 %47 to i64
  store i64 %48, ptr @s, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %69, %46
  %50 = load i32, ptr %8, align 4, !tbaa !5
  %51 = load i32, ptr %5, align 4, !tbaa !5
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %49
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %72

54:                                               ; preds = %49
  %55 = load i32, ptr %8, align 4, !tbaa !5
  %56 = sub nsw i32 %55, 1
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [200020 x i64], ptr @s, i64 0, i64 %57
  %59 = load i64, ptr %58, align 8, !tbaa !11
  %60 = load i32, ptr %8, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [200020 x i32], ptr @a, i64 0, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = add nsw i64 %59, %64
  %66 = load i32, ptr %8, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [200020 x i64], ptr @s, i64 0, i64 %67
  store i64 %65, ptr %68, align 8, !tbaa !11
  br label %69

69:                                               ; preds = %54
  %70 = load i32, ptr %8, align 4, !tbaa !5
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %8, align 4, !tbaa !5
  br label %49, !llvm.loop !13

72:                                               ; preds = %53
  %73 = load i32, ptr %5, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds i32, ptr @x, i64 %74
  call void @_ZSt4sortIPiPFbiiEEvT_S3_T0_(ptr noundef @x, ptr noundef %75, ptr noundef @_Z3cmpii)
  %76 = load i32, ptr %5, align 4, !tbaa !5
  %77 = sub nsw i32 %76, 1
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [200020 x i32], ptr @x, i64 0, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = load i32, ptr %5, align 4, !tbaa !5
  %82 = sub nsw i32 %81, 1
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [200020 x i32], ptr @y, i64 0, i64 %83
  store i32 %80, ptr %84, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %85 = load i32, ptr %5, align 4, !tbaa !5
  %86 = sub nsw i32 %85, 2
  store i32 %86, ptr %9, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %104, %72
  %88 = load i32, ptr %9, align 4, !tbaa !5
  %89 = icmp sge i32 %88, 0
  br i1 %89, label %91, label %90

90:                                               ; preds = %87
  store i32 11, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %107

91:                                               ; preds = %87
  %92 = load i32, ptr %9, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [200020 x i32], ptr @y, i64 0, i64 %94
  %96 = load i32, ptr %9, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [200020 x i32], ptr @x, i64 0, i64 %97
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %95, ptr noundef nonnull align 4 dereferenceable(4) %98)
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = load i32, ptr %9, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [200020 x i32], ptr @y, i64 0, i64 %102
  store i32 %100, ptr %103, align 4, !tbaa !5
  br label %104

104:                                              ; preds = %91
  %105 = load i32, ptr %9, align 4, !tbaa !5
  %106 = add nsw i32 %105, -1
  store i32 %106, ptr %9, align 4, !tbaa !5
  br label %87, !llvm.loop !14

107:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %108

108:                                              ; preds = %270, %107
  %109 = load i32, ptr %10, align 4, !tbaa !5
  %110 = load i32, ptr %6, align 4, !tbaa !5
  %111 = icmp slt i32 %109, %110
  br i1 %111, label %113, label %112

112:                                              ; preds = %108
  store i32 14, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %273

113:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %114 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %11)
  %115 = load i32, ptr %5, align 4, !tbaa !5
  %116 = sub nsw i32 %115, 1
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [200020 x i64], ptr @s, i64 0, i64 %117
  %119 = load i64, ptr %118, align 8, !tbaa !11
  %120 = icmp sle i64 %119, 0
  br i1 %120, label %121, label %135

121:                                              ; preds = %113
  %122 = load i32, ptr %5, align 4, !tbaa !5
  %123 = sub nsw i32 %122, 1
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [200020 x i32], ptr @x, i64 0, i64 %124
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [200020 x i64], ptr @s, i64 0, i64 %127
  %129 = load i64, ptr %128, align 8, !tbaa !11
  %130 = load i32, ptr %11, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = icmp slt i64 %129, %131
  br i1 %132, label %133, label %135

133:                                              ; preds = %121
  %134 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  store i32 16, ptr %4, align 4
  br label %267

135:                                              ; preds = %121, %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store i64 0, ptr %12, align 8, !tbaa !11
  %136 = load i32, ptr %5, align 4, !tbaa !5
  %137 = sub nsw i32 %136, 1
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [200020 x i64], ptr @s, i64 0, i64 %138
  %140 = load i64, ptr %139, align 8, !tbaa !11
  %141 = icmp sgt i64 %140, 0
  br i1 %141, label %142, label %221

142:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %143 = load i32, ptr %11, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = load i32, ptr %5, align 4, !tbaa !5
  %146 = sub nsw i32 %145, 1
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [200020 x i64], ptr @s, i64 0, i64 %147
  %149 = load i64, ptr %148, align 8, !tbaa !11
  %150 = add nsw i64 %144, %149
  %151 = load i32, ptr %5, align 4, !tbaa !5
  %152 = sub nsw i32 %151, 1
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [200020 x i64], ptr @s, i64 0, i64 %153
  %155 = load i64, ptr %154, align 8, !tbaa !11
  %156 = sdiv i64 %150, %155
  %157 = trunc i64 %156 to i32
  store i32 %157, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 -1, ptr %15, align 4, !tbaa !5
  br label %158

158:                                              ; preds = %194, %142
  %159 = load i32, ptr %13, align 4, !tbaa !5
  %160 = load i32, ptr %14, align 4, !tbaa !5
  %161 = icmp sle i32 %159, %160
  br i1 %161, label %162, label %195

162:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %163 = load i32, ptr %13, align 4, !tbaa !5
  %164 = load i32, ptr %14, align 4, !tbaa !5
  %165 = add nsw i32 %163, %164
  %166 = sdiv i32 %165, 2
  store i32 %166, ptr %16, align 4, !tbaa !5
  %167 = load i32, ptr %16, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = load i32, ptr %5, align 4, !tbaa !5
  %170 = sub nsw i32 %169, 1
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [200020 x i64], ptr @s, i64 0, i64 %171
  %173 = load i64, ptr %172, align 8, !tbaa !11
  %174 = mul nsw i64 %168, %173
  %175 = load i32, ptr %5, align 4, !tbaa !5
  %176 = sub nsw i32 %175, 1
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [200020 x i32], ptr @x, i64 0, i64 %177
  %179 = load i32, ptr %178, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [200020 x i64], ptr @s, i64 0, i64 %180
  %182 = load i64, ptr %181, align 8, !tbaa !11
  %183 = add nsw i64 %174, %182
  %184 = load i32, ptr %11, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = icmp sge i64 %183, %185
  br i1 %186, label %187, label %191

187:                                              ; preds = %162
  %188 = load i32, ptr %16, align 4, !tbaa !5
  store i32 %188, ptr %15, align 4, !tbaa !5
  %189 = load i32, ptr %16, align 4, !tbaa !5
  %190 = sub nsw i32 %189, 1
  store i32 %190, ptr %14, align 4, !tbaa !5
  br label %194

191:                                              ; preds = %162
  %192 = load i32, ptr %16, align 4, !tbaa !5
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %13, align 4, !tbaa !5
  br label %194

194:                                              ; preds = %191, %187
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %158, !llvm.loop !15

195:                                              ; preds = %158
  %196 = load i32, ptr %15, align 4, !tbaa !5
  %197 = icmp ne i32 %196, -1
  br i1 %197, label %198, label %199

198:                                              ; preds = %195
  br label %201

199:                                              ; preds = %195
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 66, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

200:                                              ; No predecessors!
  br label %201

201:                                              ; preds = %200, %198
  %202 = load i32, ptr %11, align 4, !tbaa !5
  %203 = sext i32 %202 to i64
  %204 = load i32, ptr %15, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = load i32, ptr %5, align 4, !tbaa !5
  %207 = sub nsw i32 %206, 1
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [200020 x i64], ptr @s, i64 0, i64 %208
  %210 = load i64, ptr %209, align 8, !tbaa !11
  %211 = mul nsw i64 %205, %210
  %212 = sub nsw i64 %203, %211
  %213 = trunc i64 %212 to i32
  store i32 %213, ptr %11, align 4, !tbaa !5
  %214 = load i64, ptr %12, align 8, !tbaa !11
  %215 = load i32, ptr %15, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = load i32, ptr %5, align 4, !tbaa !5
  %218 = sext i32 %217 to i64
  %219 = mul nsw i64 %216, %218
  %220 = add nsw i64 %214, %219
  store i64 %220, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %221

221:                                              ; preds = %201, %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %222 = load i32, ptr %5, align 4, !tbaa !5
  %223 = sub nsw i32 %222, 1
  store i32 %223, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 -1, ptr %19, align 4, !tbaa !5
  br label %224

224:                                              ; preds = %250, %221
  %225 = load i32, ptr %17, align 4, !tbaa !5
  %226 = load i32, ptr %18, align 4, !tbaa !5
  %227 = icmp sle i32 %225, %226
  br i1 %227, label %228, label %251

228:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %229 = load i32, ptr %17, align 4, !tbaa !5
  %230 = load i32, ptr %18, align 4, !tbaa !5
  %231 = add nsw i32 %229, %230
  %232 = sdiv i32 %231, 2
  store i32 %232, ptr %20, align 4, !tbaa !5
  %233 = load i32, ptr %11, align 4, !tbaa !5
  %234 = sext i32 %233 to i64
  %235 = load i32, ptr %20, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [200020 x i32], ptr @x, i64 0, i64 %236
  %238 = load i32, ptr %237, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [200020 x i64], ptr @s, i64 0, i64 %239
  %241 = load i64, ptr %240, align 8, !tbaa !11
  %242 = icmp sle i64 %234, %241
  br i1 %242, label %243, label %247

243:                                              ; preds = %228
  %244 = load i32, ptr %20, align 4, !tbaa !5
  store i32 %244, ptr %19, align 4, !tbaa !5
  %245 = load i32, ptr %20, align 4, !tbaa !5
  %246 = sub nsw i32 %245, 1
  store i32 %246, ptr %18, align 4, !tbaa !5
  br label %250

247:                                              ; preds = %228
  %248 = load i32, ptr %20, align 4, !tbaa !5
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %17, align 4, !tbaa !5
  br label %250

250:                                              ; preds = %247, %243
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %224, !llvm.loop !16

251:                                              ; preds = %224
  %252 = load i32, ptr %19, align 4, !tbaa !5
  %253 = icmp ne i32 %252, -1
  br i1 %253, label %254, label %255

254:                                              ; preds = %251
  br label %257

255:                                              ; preds = %251
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 80, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

256:                                              ; No predecessors!
  br label %257

257:                                              ; preds = %256, %254
  %258 = load i32, ptr %19, align 4, !tbaa !5
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [200020 x i32], ptr @y, i64 0, i64 %259
  %261 = load i32, ptr %260, align 4, !tbaa !5
  %262 = sext i32 %261 to i64
  %263 = load i64, ptr %12, align 8, !tbaa !11
  %264 = add nsw i64 %263, %262
  store i64 %264, ptr %12, align 8, !tbaa !11
  %265 = load i64, ptr %12, align 8, !tbaa !11
  %266 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i64 noundef %265)
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  store i32 0, ptr %4, align 4
  br label %267

267:                                              ; preds = %257, %133
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  %268 = load i32, ptr %4, align 4
  switch i32 %268, label %280 [
    i32 0, label %269
    i32 16, label %270
  ]

269:                                              ; preds = %267
  br label %270

270:                                              ; preds = %269, %267
  %271 = load i32, ptr %10, align 4, !tbaa !5
  %272 = add nsw i32 %271, 1
  store i32 %272, ptr %10, align 4, !tbaa !5
  br label %108, !llvm.loop !17

273:                                              ; preds = %112
  %274 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %275

275:                                              ; preds = %273
  %276 = load i32, ptr %3, align 4, !tbaa !5
  %277 = add nsw i32 %276, 1
  store i32 %277, ptr %3, align 4, !tbaa !5
  br label %22, !llvm.loop !18

278:                                              ; preds = %26
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %279 = load i32, ptr %1, align 4
  ret i32 %279

280:                                              ; preds = %267
  unreachable
}

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

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

; 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 @_ZSt4sortIPiPFbiiEEvT_S3_T0_(ptr noundef, ptr noundef, ptr noundef) #4

; 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)) #5

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #6

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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 #6 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn 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 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !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"

@a = external dso_local global [200020 x i32], align 16
@x = external dso_local global [200020 x i32], align 16
@y = external dso_local global [200020 x i32], align 16
@s = external dso_local local_unnamed_addr global [200020 x i64], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [116 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3cmpii(i32 noundef, i32 noundef) #0

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

._crit_edge97:                                    ; preds = %._crit_edge93, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0

.lr.ph96:                                         ; preds = %0, %._crit_edge93
  %.04894 = phi i32 [ %73, %._crit_edge93 ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %9 = load i32, ptr %2, align 4, !tbaa !5
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %.lr.ph96
  %11 = load i32, ptr @a, align 16, !tbaa !5
  %12 = sext i32 %11 to i64
  store i64 %12, ptr @s, align 16, !tbaa !9
  br label %._crit_edge71

._crit_edge:                                      ; preds = %.lr.ph
  %13 = load i32, ptr @a, align 16, !tbaa !5
  %14 = sext i32 %13 to i64
  store i64 %14, ptr @s, align 16, !tbaa !9
  %15 = icmp sgt i32 %23, 1
  br i1 %15, label %.lr.ph70.preheader, label %._crit_edge71

.lr.ph70.preheader:                               ; preds = %._crit_edge
  %wide.trip.count = zext nneg i32 %23 to i64
  %16 = add nsw i64 %wide.trip.count, -1
  %17 = add nsw i64 %wide.trip.count, -2
  %xtraiter = and i64 %16, 3
  %18 = icmp ult i64 %17, 3
  br i1 %18, label %._crit_edge71.loopexit.unr-lcssa, label %.lr.ph70.preheader.new

.lr.ph70.preheader.new:                           ; preds = %.lr.ph70.preheader
  %unroll_iter = and i64 %16, -4
  br label %.lr.ph70

.lr.ph:                                           ; preds = %.lr.ph96, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.lr.ph96 ]
  %19 = getelementptr inbounds [200020 x i32], ptr @a, i64 0, i64 %indvars.iv
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %19)
  %21 = getelementptr inbounds [200020 x i32], ptr @x, i64 0, i64 %indvars.iv
  %22 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %22, ptr %21, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = icmp slt i64 %indvars.iv.next, %24
  br i1 %25, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge71.loopexit.unr-lcssa:                 ; preds = %.lr.ph70, %.lr.ph70.preheader
  %.unr = phi i64 [ %14, %.lr.ph70.preheader ], [ %62, %.lr.ph70 ]
  %indvars.iv100.unr = phi i64 [ 1, %.lr.ph70.preheader ], [ %indvars.iv.next101.3, %.lr.ph70 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge71, label %.lr.ph70.epil

.lr.ph70.epil:                                    ; preds = %._crit_edge71.loopexit.unr-lcssa, %.lr.ph70.epil
  %26 = phi i64 [ %30, %.lr.ph70.epil ], [ %.unr, %._crit_edge71.loopexit.unr-lcssa ]
  %indvars.iv100.epil = phi i64 [ %indvars.iv.next101.epil, %.lr.ph70.epil ], [ %indvars.iv100.unr, %._crit_edge71.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph70.epil ], [ 0, %._crit_edge71.loopexit.unr-lcssa ]
  %27 = getelementptr inbounds [200020 x i32], ptr @a, i64 0, i64 %indvars.iv100.epil
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = add nsw i64 %26, %29
  %31 = getelementptr inbounds [200020 x i64], ptr @s, i64 0, i64 %indvars.iv100.epil
  store i64 %30, ptr %31, align 8, !tbaa !9
  %indvars.iv.next101.epil = add nuw nsw i64 %indvars.iv100.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge71, label %.lr.ph70.epil, !llvm.loop !13

._crit_edge71:                                    ; preds = %._crit_edge71.loopexit.unr-lcssa, %.lr.ph70.epil, %._crit_edge.thread, %._crit_edge
  %.lcssa107 = phi i32 [ %9, %._crit_edge.thread ], [ %23, %._crit_edge ], [ %23, %.lr.ph70.epil ], [ %23, %._crit_edge71.loopexit.unr-lcssa ]
  %32 = sext i32 %.lcssa107 to i64
  %33 = getelementptr inbounds i32, ptr @x, i64 %32
  call void @_ZSt4sortIPiPFbiiEEvT_S3_T0_(ptr noundef nonnull @x, ptr noundef nonnull %33, ptr noundef nonnull @_Z3cmpii)
  %34 = load i32, ptr %2, align 4, !tbaa !5
  %35 = add nsw i32 %34, -1
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [200020 x i32], ptr @x, i64 0, i64 %36
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = getelementptr inbounds [200020 x i32], ptr @y, i64 0, i64 %36
  store i32 %38, ptr %39, align 4, !tbaa !5
  %40 = icmp sgt i32 %34, 1
  br i1 %40, label %.lr.ph74.preheader, label %.preheader

.lr.ph74.preheader:                               ; preds = %._crit_edge71
  %41 = add nsw i32 %34, -2
  %42 = zext nneg i32 %41 to i64
  br label %.lr.ph74

.lr.ph70:                                         ; preds = %.lr.ph70, %.lr.ph70.preheader.new
  %43 = phi i64 [ %14, %.lr.ph70.preheader.new ], [ %62, %.lr.ph70 ]
  %indvars.iv100 = phi i64 [ 1, %.lr.ph70.preheader.new ], [ %indvars.iv.next101.3, %.lr.ph70 ]
  %niter = phi i64 [ 0, %.lr.ph70.preheader.new ], [ %niter.next.3, %.lr.ph70 ]
  %44 = getelementptr inbounds [200020 x i32], ptr @a, i64 0, i64 %indvars.iv100
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = add nsw i64 %43, %46
  %48 = getelementptr inbounds [200020 x i64], ptr @s, i64 0, i64 %indvars.iv100
  store i64 %47, ptr %48, align 8, !tbaa !9
  %indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1
  %49 = getelementptr inbounds [200020 x i32], ptr @a, i64 0, i64 %indvars.iv.next101
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = add nsw i64 %47, %51
  %53 = getelementptr inbounds [200020 x i64], ptr @s, i64 0, i64 %indvars.iv.next101
  store i64 %52, ptr %53, align 8, !tbaa !9
  %indvars.iv.next101.1 = add nuw nsw i64 %indvars.iv100, 2
  %54 = getelementptr inbounds [200020 x i32], ptr @a, i64 0, i64 %indvars.iv.next101.1
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = add nsw i64 %52, %56
  %58 = getelementptr inbounds [200020 x i64], ptr @s, i64 0, i64 %indvars.iv.next101.1
  store i64 %57, ptr %58, align 8, !tbaa !9
  %indvars.iv.next101.2 = add nuw nsw i64 %indvars.iv100, 3
  %59 = getelementptr inbounds [200020 x i32], ptr @a, i64 0, i64 %indvars.iv.next101.2
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = add nsw i64 %57, %61
  %63 = getelementptr inbounds [200020 x i64], ptr @s, i64 0, i64 %indvars.iv.next101.2
  store i64 %62, ptr %63, align 8, !tbaa !9
  %indvars.iv.next101.3 = add nuw nsw i64 %indvars.iv100, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge71.loopexit.unr-lcssa, label %.lr.ph70, !llvm.loop !15

.preheader:                                       ; preds = %.lr.ph74, %._crit_edge71
  %64 = load i32, ptr %3, align 4, !tbaa !5
  %65 = icmp sgt i32 %64, 0
  br i1 %65, label %.lr.ph92, label %._crit_edge93

.lr.ph74:                                         ; preds = %.lr.ph74.preheader, %.lr.ph74
  %indvars.iv103 = phi i64 [ %42, %.lr.ph74.preheader ], [ %indvars.iv.next104, %.lr.ph74 ]
  %66 = add nuw nsw i64 %indvars.iv103, 1
  %67 = getelementptr inbounds [200020 x i32], ptr @y, i64 0, i64 %66
  %68 = getelementptr inbounds [200020 x i32], ptr @x, i64 0, i64 %indvars.iv103
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %67, ptr noundef nonnull align 4 dereferenceable(4) %68)
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = getelementptr inbounds [200020 x i32], ptr @y, i64 0, i64 %indvars.iv103
  store i32 %70, ptr %71, align 4, !tbaa !5
  %indvars.iv.next104 = add nsw i64 %indvars.iv103, -1
  %.not112 = icmp eq i64 %indvars.iv103, 0
  br i1 %.not112, label %.preheader, label %.lr.ph74, !llvm.loop !16

._crit_edge93:                                    ; preds = %141, %.preheader
  %72 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  %73 = add nuw nsw i32 %.04894, 1
  %74 = load i32, ptr %1, align 4, !tbaa !5
  %75 = icmp slt i32 %73, %74
  br i1 %75, label %.lr.ph96, label %._crit_edge97, !llvm.loop !17

.lr.ph92:                                         ; preds = %.preheader, %141
  %.05691 = phi i32 [ %142, %141 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  %76 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %4)
  %77 = load i32, ptr %2, align 4, !tbaa !5
  %78 = add nsw i32 %77, -1
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [200020 x i64], ptr @s, i64 0, i64 %79
  %81 = load i64, ptr %80, align 8, !tbaa !9
  %82 = icmp slt i64 %81, 1
  br i1 %82, label %83, label %94

83:                                               ; preds = %.lr.ph92
  %84 = getelementptr inbounds [200020 x i32], ptr @x, i64 0, i64 %79
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [200020 x i64], ptr @s, i64 0, i64 %86
  %88 = load i64, ptr %87, align 8, !tbaa !9
  %89 = load i32, ptr %4, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = icmp slt i64 %88, %90
  br i1 %91, label %92, label %120

92:                                               ; preds = %83
  %93 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %141

94:                                               ; preds = %.lr.ph92
  %95 = load i32, ptr %4, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = add nsw i64 %81, %96
  %98 = sdiv i64 %97, %81
  %99 = trunc i64 %98 to i32
  %.not75 = icmp slt i32 %99, 0
  br i1 %.not75, label %._crit_edge81.thread, label %.lr.ph80

.lr.ph80:                                         ; preds = %94
  %100 = getelementptr inbounds [200020 x i32], ptr @x, i64 0, i64 %79
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [200020 x i64], ptr @s, i64 0, i64 %102
  %104 = load i64, ptr %103, align 8, !tbaa !9
  br label %105

105:                                              ; preds = %.lr.ph80, %105
  %.04978 = phi i32 [ -1, %.lr.ph80 ], [ %.150, %105 ]
  %.05177 = phi i32 [ %99, %.lr.ph80 ], [ %.152, %105 ]
  %.05376 = phi i32 [ 0, %.lr.ph80 ], [ %.154, %105 ]
  %106 = add nuw nsw i32 %.05177, %.05376
  %107 = lshr i32 %106, 1
  %108 = zext nneg i32 %107 to i64
  %109 = mul nuw nsw i64 %81, %108
  %110 = add nsw i64 %104, %109
  %.not66 = icmp slt i64 %110, %96
  %111 = add nsw i32 %107, -1
  %112 = add nuw nsw i32 %107, 1
  %.154 = select i1 %.not66, i32 %112, i32 %.05376
  %.152 = select i1 %.not66, i32 %.05177, i32 %111
  %.150 = select i1 %.not66, i32 %.04978, i32 %107
  %.not = icmp sgt i32 %.154, %.152
  br i1 %.not, label %._crit_edge81, label %105, !llvm.loop !18

._crit_edge81:                                    ; preds = %105
  %.not62 = icmp eq i32 %.150, -1
  br i1 %.not62, label %._crit_edge81.thread, label %113

._crit_edge81.thread:                             ; preds = %94, %._crit_edge81
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 66, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #8
  unreachable

113:                                              ; preds = %._crit_edge81
  %114 = zext nneg i32 %.150 to i64
  %115 = trunc i64 %81 to i32
  %116 = mul i32 %.150, %115
  %117 = sub i32 %95, %116
  store i32 %117, ptr %4, align 4, !tbaa !5
  %118 = sext i32 %77 to i64
  %119 = mul nsw i64 %114, %118
  br label %120

120:                                              ; preds = %83, %113
  %121 = phi i32 [ %117, %113 ], [ %89, %83 ]
  %.055 = phi i64 [ %119, %113 ], [ 0, %83 ]
  %.not6383 = icmp slt i32 %77, 1
  br i1 %.not6383, label %._crit_edge89.thread, label %.lr.ph88

.lr.ph88:                                         ; preds = %120
  %122 = sext i32 %121 to i64
  br label %123

123:                                              ; preds = %.lr.ph88, %123
  %.086 = phi i32 [ -1, %.lr.ph88 ], [ %.1, %123 ]
  %.04485 = phi i32 [ %78, %.lr.ph88 ], [ %.145, %123 ]
  %.04684 = phi i32 [ 0, %.lr.ph88 ], [ %.147, %123 ]
  %124 = add nuw nsw i32 %.04485, %.04684
  %125 = lshr i32 %124, 1
  %126 = zext nneg i32 %125 to i64
  %127 = getelementptr inbounds [200020 x i32], ptr @x, i64 0, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [200020 x i64], ptr @s, i64 0, i64 %129
  %131 = load i64, ptr %130, align 8, !tbaa !9
  %.not65 = icmp slt i64 %131, %122
  %132 = add nsw i32 %125, -1
  %133 = add nuw nsw i32 %125, 1
  %.147 = select i1 %.not65, i32 %133, i32 %.04684
  %.145 = select i1 %.not65, i32 %.04485, i32 %132
  %.1 = select i1 %.not65, i32 %.086, i32 %125
  %.not63 = icmp sgt i32 %.147, %.145
  br i1 %.not63, label %._crit_edge89, label %123, !llvm.loop !19

._crit_edge89:                                    ; preds = %123
  %.not64 = icmp eq i32 %.1, -1
  br i1 %.not64, label %._crit_edge89.thread, label %134

._crit_edge89.thread:                             ; preds = %120, %._crit_edge89
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 80, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #8
  unreachable

134:                                              ; preds = %._crit_edge89
  %135 = zext nneg i32 %.1 to i64
  %136 = getelementptr inbounds [200020 x i32], ptr @y, i64 0, i64 %135
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = add nsw i64 %.055, %138
  %140 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i64 noundef %139)
  br label %141

141:                                              ; preds = %134, %92
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  %142 = add nuw nsw i32 %.05691, 1
  %143 = load i32, ptr %3, align 4, !tbaa !5
  %144 = icmp slt i32 %142, %143
  br i1 %144, label %.lr.ph92, label %._crit_edge93, !llvm.loop !20
}

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

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

; 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 @_ZSt4sortIPiPFbiiEEvT_S3_T0_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

; 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 #5

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #6

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #5 = { 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 #6 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn 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, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}


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