; LLVM IR from lzyrapx/Competitive-Programming :: ACdream (1076（dp+置换+康拓展开）)

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

@sx = external dso_local global [123456 x [6 x i32]], align 16
@sy = external dso_local global [123456 x [6 x i32]], align 16
@dp = external dso_local global [123 x [150 x i32]], align 16
@op_s = external dso_local global [123 x i32], align 16
@op_t = external dso_local global [123 x i32], align 16
@id = external dso_local global [150 x [6 x i32]], align 16
@.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 uwtable
declare dso_local void @_Z4initv() #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z6CantorPi(ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z3calPiS_S_(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z4cal2PiS_(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca [6 x i32], align 16
  %6 = alloca [6 x i32], align 16
  %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
  %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
  %21 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @_Z4initv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  br label %22

22:                                               ; preds = %331, %0
  %23 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
  %24 = xor i32 %23, -1
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %26, label %334

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

27:                                               ; preds = %43, %26
  %28 = load i32, ptr %4, align 4, !tbaa !5
  %29 = icmp sle i32 %28, 5
  br i1 %29, label %31, label %30

30:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  br label %46

31:                                               ; preds = %27
  %32 = load i32, ptr %4, align 4, !tbaa !5
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = add nsw i32 %33, 1
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [123456 x [6 x i32]], ptr @sy, i64 0, i64 %35
  %37 = load i32, ptr %4, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [6 x i32], ptr %36, i64 0, i64 %38
  store i32 %32, ptr %39, align 4, !tbaa !5
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [6 x i32], ptr @sx, i64 0, i64 %41
  store i32 %32, ptr %42, align 4, !tbaa !5
  br label %43

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

46:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %82, %46
  %48 = load i32, ptr %7, align 4, !tbaa !5
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = icmp sle i32 %48, %49
  br i1 %50, label %52, label %51

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

52:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %65, %52
  %54 = load i32, ptr %9, align 4, !tbaa !5
  %55 = icmp sle i32 %54, 5
  br i1 %55, label %57, label %56

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

57:                                               ; preds = %53
  %58 = load i32, ptr %7, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [123456 x [6 x i32]], ptr @sy, i64 0, i64 %59
  %61 = load i32, ptr %9, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [6 x i32], ptr %60, i64 0, i64 %62
  %64 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %63)
  br label %65

65:                                               ; preds = %57
  %66 = load i32, ptr %9, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %9, align 4, !tbaa !5
  br label %53, !llvm.loop !11

68:                                               ; preds = %56
  %69 = load i32, ptr %7, align 4, !tbaa !5
  %70 = sub nsw i32 %69, 1
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [123456 x [6 x i32]], ptr @sx, i64 0, i64 %71
  %73 = getelementptr inbounds [6 x i32], ptr %72, i64 0, i64 0
  %74 = load i32, ptr %7, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [123456 x [6 x i32]], ptr @sy, i64 0, i64 %75
  %77 = getelementptr inbounds [6 x i32], ptr %76, i64 0, i64 0
  %78 = load i32, ptr %7, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [123456 x [6 x i32]], ptr @sx, i64 0, i64 %79
  %81 = getelementptr inbounds [6 x i32], ptr %80, i64 0, i64 0
  call void @_Z3calPiS_S_(ptr noundef %73, ptr noundef %77, ptr noundef %81)
  br label %82

82:                                               ; preds = %68
  %83 = load i32, ptr %7, align 4, !tbaa !5
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %7, align 4, !tbaa !5
  br label %47, !llvm.loop !12

85:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %86 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %86, ptr %10, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %121, %85
  %88 = load i32, ptr %10, align 4, !tbaa !5
  %89 = icmp sge i32 %88, 1
  br i1 %89, label %91, label %90

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

91:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 1, ptr %11, align 4, !tbaa !5
  br label %92

92:                                               ; preds = %107, %91
  %93 = load i32, ptr %11, align 4, !tbaa !5
  %94 = icmp sle i32 %93, 5
  br i1 %94, label %96, label %95

95:                                               ; preds = %92
  store i32 16, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %110

96:                                               ; preds = %92
  %97 = load i32, ptr %10, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [123456 x [6 x i32]], ptr @sy, i64 0, i64 %98
  %100 = load i32, ptr %11, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [6 x i32], ptr %99, i64 0, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = load i32, ptr %11, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [6 x i32], ptr %5, i64 0, i64 %105
  store i32 %103, ptr %106, align 4, !tbaa !5
  br label %107

107:                                              ; preds = %96
  %108 = load i32, ptr %11, align 4, !tbaa !5
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %11, align 4, !tbaa !5
  br label %92, !llvm.loop !13

110:                                              ; preds = %95
  %111 = load i32, ptr %10, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [123456 x [6 x i32]], ptr @sy, i64 0, i64 %113
  %115 = getelementptr inbounds [6 x i32], ptr %114, i64 0, i64 0
  %116 = getelementptr inbounds [6 x i32], ptr %5, i64 0, i64 0
  %117 = load i32, ptr %10, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [123456 x [6 x i32]], ptr @sy, i64 0, i64 %118
  %120 = getelementptr inbounds [6 x i32], ptr %119, i64 0, i64 0
  call void @_Z3calPiS_S_(ptr noundef %115, ptr noundef %116, ptr noundef %120)
  br label %121

121:                                              ; preds = %110
  %122 = load i32, ptr %10, align 4, !tbaa !5
  %123 = add nsw i32 %122, -1
  store i32 %123, ptr %10, align 4, !tbaa !5
  br label %87, !llvm.loop !14

124:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 1, ptr %12, align 4, !tbaa !5
  br label %125

125:                                              ; preds = %138, %124
  %126 = load i32, ptr %12, align 4, !tbaa !5
  %127 = load i32, ptr %3, align 4, !tbaa !5
  %128 = icmp sle i32 %126, %127
  br i1 %128, label %130, label %129

129:                                              ; preds = %125
  store i32 19, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %141

130:                                              ; preds = %125
  %131 = load i32, ptr %12, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [123 x i32], ptr @op_s, i64 0, i64 %132
  %134 = load i32, ptr %12, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [123 x i32], ptr @op_t, i64 0, i64 %135
  %137 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %133, ptr noundef %136)
  br label %138

138:                                              ; preds = %130
  %139 = load i32, ptr %12, align 4, !tbaa !5
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %12, align 4, !tbaa !5
  br label %125, !llvm.loop !15

141:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %142

142:                                              ; preds = %151, %141
  %143 = load i32, ptr %13, align 4, !tbaa !5
  %144 = icmp sle i32 %143, 5
  br i1 %144, label %146, label %145

145:                                              ; preds = %142
  store i32 22, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %154

146:                                              ; preds = %142
  %147 = load i32, ptr %13, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [6 x i32], ptr %5, i64 0, i64 %148
  %150 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %149)
  br label %151

151:                                              ; preds = %146
  %152 = load i32, ptr %13, align 4, !tbaa !5
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %13, align 4, !tbaa !5
  br label %142, !llvm.loop !16

154:                                              ; preds = %145
  call void @llvm.memset.p0.i64(ptr align 16 @dp, i8 63, i64 73800, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %155 = getelementptr inbounds [6 x i32], ptr %5, i64 0, i64 0
  %156 = call noundef i32 @_Z6CantorPi(ptr noundef %155)
  store i32 %156, ptr %14, align 4, !tbaa !5
  %157 = load i32, ptr %14, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [150 x i32], ptr @dp, i64 0, i64 %158
  store i32 0, ptr %159, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %160

160:                                              ; preds = %319, %154
  %161 = load i32, ptr %17, align 4, !tbaa !5
  %162 = load i32, ptr %3, align 4, !tbaa !5
  %163 = icmp slt i32 %161, %162
  br i1 %163, label %165, label %164

164:                                              ; preds = %160
  store i32 25, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %322

165:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 1, ptr %18, align 4, !tbaa !5
  br label %166

166:                                              ; preds = %315, %165
  %167 = load i32, ptr %18, align 4, !tbaa !5
  %168 = icmp sle i32 %167, 120
  br i1 %168, label %170, label %169

169:                                              ; preds = %166
  store i32 28, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %318

170:                                              ; preds = %166
  %171 = load i32, ptr %17, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [123 x [150 x i32]], ptr @dp, i64 0, i64 %172
  %174 = load i32, ptr %18, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [150 x i32], ptr %173, i64 0, i64 %175
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %178 = icmp eq i32 %177, 1061109567
  br i1 %178, label %179, label %180

179:                                              ; preds = %170
  br label %315

180:                                              ; preds = %170
  %181 = load i32, ptr %17, align 4, !tbaa !5
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [123 x [150 x i32]], ptr @dp, i64 0, i64 %182
  %184 = load i32, ptr %18, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [150 x i32], ptr %183, i64 0, i64 %185
  %187 = load i32, ptr %17, align 4, !tbaa !5
  %188 = add nsw i32 %187, 1
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [123 x [150 x i32]], ptr @dp, i64 0, i64 %189
  %191 = load i32, ptr %18, align 4, !tbaa !5
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [150 x i32], ptr %190, i64 0, i64 %192
  %194 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %186, ptr noundef nonnull align 4 dereferenceable(4) %193)
  %195 = load i32, ptr %194, align 4, !tbaa !5
  %196 = load i32, ptr %17, align 4, !tbaa !5
  %197 = add nsw i32 %196, 1
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [123 x [150 x i32]], ptr @dp, i64 0, i64 %198
  %200 = load i32, ptr %18, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [150 x i32], ptr %199, i64 0, i64 %201
  store i32 %195, ptr %202, align 4, !tbaa !5
  %203 = load i32, ptr %17, align 4, !tbaa !5
  %204 = add nsw i32 %203, 1
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [123 x i32], ptr @op_s, i64 0, i64 %205
  %207 = load i32, ptr %206, align 4, !tbaa !5
  store i32 %207, ptr %15, align 4, !tbaa !5
  %208 = load i32, ptr %17, align 4, !tbaa !5
  %209 = add nsw i32 %208, 1
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [123 x i32], ptr @op_t, i64 0, i64 %210
  %212 = load i32, ptr %211, align 4, !tbaa !5
  store i32 %212, ptr %16, align 4, !tbaa !5
  %213 = load i32, ptr %15, align 4, !tbaa !5
  %214 = load i32, ptr %16, align 4, !tbaa !5
  %215 = icmp slt i32 %213, %214
  br i1 %215, label %216, label %265

216:                                              ; preds = %180
  %217 = load i32, ptr %15, align 4, !tbaa !5
  %218 = sub nsw i32 %217, 1
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [123456 x [6 x i32]], ptr @sx, i64 0, i64 %219
  %221 = getelementptr inbounds [6 x i32], ptr %220, i64 0, i64 0
  %222 = getelementptr inbounds [6 x i32], ptr %6, i64 0, i64 0
  call void @_Z4cal2PiS_(ptr noundef %221, ptr noundef %222)
  %223 = getelementptr inbounds [6 x i32], ptr %6, i64 0, i64 0
  %224 = load i32, ptr %16, align 4, !tbaa !5
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [123456 x [6 x i32]], ptr @sx, i64 0, i64 %225
  %227 = getelementptr inbounds [6 x i32], ptr %226, i64 0, i64 0
  %228 = getelementptr inbounds [6 x i32], ptr %5, i64 0, i64 0
  call void @_Z3calPiS_S_(ptr noundef %223, ptr noundef %227, ptr noundef %228)
  %229 = load i32, ptr %18, align 4, !tbaa !5
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds [150 x [6 x i32]], ptr @id, i64 0, i64 %230
  %232 = getelementptr inbounds [6 x i32], ptr %231, i64 0, i64 0
  %233 = getelementptr inbounds [6 x i32], ptr %5, i64 0, i64 0
  %234 = getelementptr inbounds [6 x i32], ptr %6, i64 0, i64 0
  call void @_Z3calPiS_S_(ptr noundef %232, ptr noundef %233, ptr noundef %234)
  %235 = getelementptr inbounds [6 x i32], ptr %6, i64 0, i64 0
  %236 = call noundef i32 @_Z6CantorPi(ptr noundef %235)
  store i32 %236, ptr %14, align 4, !tbaa !5
  %237 = load i32, ptr %17, align 4, !tbaa !5
  %238 = add nsw i32 %237, 1
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [123 x [150 x i32]], ptr @dp, i64 0, i64 %239
  %241 = load i32, ptr %14, align 4, !tbaa !5
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [150 x i32], ptr %240, i64 0, i64 %242
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %244 = load i32, ptr %17, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [123 x [150 x i32]], ptr @dp, i64 0, i64 %245
  %247 = load i32, ptr %18, align 4, !tbaa !5
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [150 x i32], ptr %246, i64 0, i64 %248
  %250 = load i32, ptr %249, align 4, !tbaa !5
  %251 = load i32, ptr %16, align 4, !tbaa !5
  %252 = add nsw i32 %250, %251
  %253 = load i32, ptr %15, align 4, !tbaa !5
  %254 = sub nsw i32 %252, %253
  %255 = add nsw i32 %254, 1
  store i32 %255, ptr %19, align 4, !tbaa !5
  %256 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %243, ptr noundef nonnull align 4 dereferenceable(4) %19)
  %257 = load i32, ptr %256, align 4, !tbaa !5
  %258 = load i32, ptr %17, align 4, !tbaa !5
  %259 = add nsw i32 %258, 1
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds [123 x [150 x i32]], ptr @dp, i64 0, i64 %260
  %262 = load i32, ptr %14, align 4, !tbaa !5
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds [150 x i32], ptr %261, i64 0, i64 %263
  store i32 %257, ptr %264, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %314

265:                                              ; preds = %180
  %266 = load i32, ptr %15, align 4, !tbaa !5
  %267 = add nsw i32 %266, 1
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds [123456 x [6 x i32]], ptr @sy, i64 0, i64 %268
  %270 = getelementptr inbounds [6 x i32], ptr %269, i64 0, i64 0
  %271 = getelementptr inbounds [6 x i32], ptr %6, i64 0, i64 0
  call void @_Z4cal2PiS_(ptr noundef %270, ptr noundef %271)
  %272 = getelementptr inbounds [6 x i32], ptr %6, i64 0, i64 0
  %273 = load i32, ptr %16, align 4, !tbaa !5
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [123456 x [6 x i32]], ptr @sy, i64 0, i64 %274
  %276 = getelementptr inbounds [6 x i32], ptr %275, i64 0, i64 0
  %277 = getelementptr inbounds [6 x i32], ptr %5, i64 0, i64 0
  call void @_Z3calPiS_S_(ptr noundef %272, ptr noundef %276, ptr noundef %277)
  %278 = load i32, ptr %18, align 4, !tbaa !5
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds [150 x [6 x i32]], ptr @id, i64 0, i64 %279
  %281 = getelementptr inbounds [6 x i32], ptr %280, i64 0, i64 0
  %282 = getelementptr inbounds [6 x i32], ptr %5, i64 0, i64 0
  %283 = getelementptr inbounds [6 x i32], ptr %6, i64 0, i64 0
  call void @_Z3calPiS_S_(ptr noundef %281, ptr noundef %282, ptr noundef %283)
  %284 = getelementptr inbounds [6 x i32], ptr %6, i64 0, i64 0
  %285 = call noundef i32 @_Z6CantorPi(ptr noundef %284)
  store i32 %285, ptr %14, align 4, !tbaa !5
  %286 = load i32, ptr %17, align 4, !tbaa !5
  %287 = add nsw i32 %286, 1
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds [123 x [150 x i32]], ptr @dp, i64 0, i64 %288
  %290 = load i32, ptr %14, align 4, !tbaa !5
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds [150 x i32], ptr %289, i64 0, i64 %291
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %293 = load i32, ptr %17, align 4, !tbaa !5
  %294 = sext i32 %293 to i64
  %295 = getelementptr inbounds [123 x [150 x i32]], ptr @dp, i64 0, i64 %294
  %296 = load i32, ptr %18, align 4, !tbaa !5
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds [150 x i32], ptr %295, i64 0, i64 %297
  %299 = load i32, ptr %298, align 4, !tbaa !5
  %300 = load i32, ptr %15, align 4, !tbaa !5
  %301 = add nsw i32 %299, %300
  %302 = load i32, ptr %16, align 4, !tbaa !5
  %303 = sub nsw i32 %301, %302
  %304 = add nsw i32 %303, 1
  store i32 %304, ptr %20, align 4, !tbaa !5
  %305 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %292, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %306 = load i32, ptr %305, align 4, !tbaa !5
  %307 = load i32, ptr %17, align 4, !tbaa !5
  %308 = add nsw i32 %307, 1
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds [123 x [150 x i32]], ptr @dp, i64 0, i64 %309
  %311 = load i32, ptr %14, align 4, !tbaa !5
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds [150 x i32], ptr %310, i64 0, i64 %312
  store i32 %306, ptr %313, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %314

314:                                              ; preds = %265, %216
  br label %315

315:                                              ; preds = %314, %179
  %316 = load i32, ptr %18, align 4, !tbaa !5
  %317 = add nsw i32 %316, 1
  store i32 %317, ptr %18, align 4, !tbaa !5
  br label %166, !llvm.loop !17

318:                                              ; preds = %169
  br label %319

319:                                              ; preds = %318
  %320 = load i32, ptr %17, align 4, !tbaa !5
  %321 = add nsw i32 %320, 1
  store i32 %321, ptr %17, align 4, !tbaa !5
  br label %160, !llvm.loop !18

322:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %323 = load i32, ptr %3, align 4, !tbaa !5
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds [123 x [150 x i32]], ptr @dp, i64 0, i64 %324
  %326 = getelementptr inbounds [150 x i32], ptr %325, i64 0, i64 1
  %327 = load i32, ptr %326, align 4, !tbaa !5
  store i32 %327, ptr %21, align 4, !tbaa !5
  %328 = load i32, ptr %21, align 4, !tbaa !5
  %329 = icmp eq i32 %328, 1061109567
  br i1 %329, label %330, label %331

330:                                              ; preds = %322
  store i32 -1, ptr %21, align 4, !tbaa !5
  br label %331

331:                                              ; preds = %330, %322
  %332 = load i32, ptr %21, align 4, !tbaa !5
  %333 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %332)
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  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 24, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #7
  br label %22, !llvm.loop !19

334:                                              ; preds = %22
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %335 = load i32, ptr %1, align 4
  ret i32 %335
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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

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

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

@sx = external dso_local global [123456 x [6 x i32]], align 16
@sy = external dso_local global [123456 x [6 x i32]], align 16
@dp = external dso_local global [123 x [150 x i32]], align 16
@op_s = external dso_local global [123 x i32], align 16
@op_t = external dso_local global [123 x i32], align 16
@id = external dso_local global [150 x [6 x i32]], align 16
@.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 uwtable
declare dso_local void @_Z4initv() local_unnamed_addr #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z6CantorPi(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z3calPiS_S_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z4cal2PiS_(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca [6 x i32], align 16
  %4 = alloca [6 x i32], align 16
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  tail call void @_Z4initv()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %.not107 = icmp eq i32 %7, -1
  br i1 %.not107, label %._crit_edge108, label %.preheader93.preheader

.preheader93.preheader:                           ; preds = %0
  %scevgep = getelementptr inbounds i8, ptr %3, i64 4
  %8 = getelementptr inbounds i8, ptr %3, i64 8
  %9 = getelementptr inbounds i8, ptr %3, i64 12
  %10 = getelementptr inbounds i8, ptr %3, i64 16
  %11 = getelementptr inbounds i8, ptr %3, i64 20
  br label %.preheader93

.preheader93:                                     ; preds = %.preheader93.preheader, %._crit_edge
  %12 = load i32, ptr %1, align 4, !tbaa !5
  %13 = add nsw i32 %12, 1
  %14 = sext i32 %13 to i64
  %15 = getelementptr inbounds [123456 x [6 x i32]], ptr @sy, i64 0, i64 %14, i64 1
  store <4 x i32> <i32 1, i32 2, i32 3, i32 4>, ptr %15, align 4, !tbaa !5
  store <4 x i32> <i32 1, i32 2, i32 3, i32 4>, ptr getelementptr inbounds (i8, ptr @sx, i64 4), align 4, !tbaa !5
  %16 = getelementptr inbounds [123456 x [6 x i32]], ptr @sy, i64 0, i64 %14, i64 5
  store i32 5, ptr %16, align 4, !tbaa !5
  store i32 5, ptr getelementptr inbounds (i8, ptr @sx, i64 20), align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #8
  %.not8597 = icmp slt i32 %12, 1
  br i1 %.not8597, label %.preheader91, label %.preheader89

.preheader92:                                     ; preds = %.preheader89
  %17 = icmp sgt i32 %36, 0
  br i1 %17, label %.preheader88.preheader, label %.preheader91

.preheader88.preheader:                           ; preds = %.preheader92
  %18 = zext nneg i32 %36 to i64
  %19 = mul nuw nsw i64 %18, 24
  %20 = or disjoint i64 %19, 4
  %21 = getelementptr i8, ptr @sy, i64 %20
  br label %.preheader88

.preheader89:                                     ; preds = %.preheader93, %.preheader89
  %indvars.iv = phi i64 [ %indvars.iv.next, %.preheader89 ], [ 1, %.preheader93 ]
  %22 = getelementptr inbounds [123456 x [6 x i32]], ptr @sy, i64 0, i64 %indvars.iv, i64 1
  %23 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %22)
  %24 = getelementptr inbounds [123456 x [6 x i32]], ptr @sy, i64 0, i64 %indvars.iv, i64 2
  %25 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %24)
  %26 = getelementptr inbounds [123456 x [6 x i32]], ptr @sy, i64 0, i64 %indvars.iv, i64 3
  %27 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %26)
  %28 = getelementptr inbounds [123456 x [6 x i32]], ptr @sy, i64 0, i64 %indvars.iv, i64 4
  %29 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %28)
  %30 = getelementptr inbounds [123456 x [6 x i32]], ptr @sy, i64 0, i64 %indvars.iv, i64 5
  %31 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %30)
  %32 = add nsw i64 %indvars.iv, -1
  %33 = getelementptr inbounds [123456 x [6 x i32]], ptr @sx, i64 0, i64 %32
  %34 = getelementptr inbounds [123456 x [6 x i32]], ptr @sy, i64 0, i64 %indvars.iv
  %35 = getelementptr inbounds [123456 x [6 x i32]], ptr @sx, i64 0, i64 %indvars.iv
  call void @_Z3calPiS_S_(ptr noundef nonnull %33, ptr noundef nonnull %34, ptr noundef nonnull %35)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %36 = load i32, ptr %1, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %.not85.not = icmp slt i64 %indvars.iv, %37
  br i1 %.not85.not, label %.preheader89, label %.preheader92, !llvm.loop !9

.preheader91:                                     ; preds = %.preheader88, %.preheader93, %.preheader92
  %38 = load i32, ptr %2, align 4, !tbaa !5
  %.not86101 = icmp slt i32 %38, 1
  br i1 %.not86101, label %.preheader90, label %.lr.ph

.preheader88:                                     ; preds = %.preheader88.preheader, %.preheader88
  %indvars.iv118 = phi i64 [ %18, %.preheader88.preheader ], [ %indvars.iv.next119, %.preheader88 ]
  %indvar = phi i64 [ 0, %.preheader88.preheader ], [ %indvar.next, %.preheader88 ]
  %39 = mul nsw i64 %indvar, -24
  %scevgep114 = getelementptr i8, ptr %21, i64 %39
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(20) %scevgep, ptr noundef nonnull align 4 dereferenceable(20) %scevgep114, i64 20, i1 false), !tbaa !5
  %40 = add nuw nsw i64 %indvars.iv118, 1
  %41 = getelementptr inbounds [123456 x [6 x i32]], ptr @sy, i64 0, i64 %40
  %42 = getelementptr inbounds [123456 x [6 x i32]], ptr @sy, i64 0, i64 %indvars.iv118
  call void @_Z3calPiS_S_(ptr noundef nonnull %41, ptr noundef nonnull %3, ptr noundef nonnull %42)
  %indvars.iv.next119 = add nsw i64 %indvars.iv118, -1
  %indvar.next = add nuw nsw i64 %indvar, 1
  %exitcond.not = icmp eq i64 %indvar.next, %18
  br i1 %exitcond.not, label %.preheader91, label %.preheader88, !llvm.loop !11

.preheader90:                                     ; preds = %.lr.ph, %.preheader91
  %43 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %scevgep)
  %44 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %8)
  %45 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %9)
  %46 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %10)
  %47 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %11)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(73800) @dp, i8 63, i64 73800, i1 false)
  %48 = call noundef i32 @_Z6CantorPi(ptr noundef nonnull %3)
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [150 x i32], ptr @dp, i64 0, i64 %49
  store i32 0, ptr %50, align 4, !tbaa !5
  %51 = load i32, ptr %2, align 4, !tbaa !5
  %52 = icmp sgt i32 %51, 0
  br i1 %52, label %.preheader, label %.preheader90.._crit_edge_crit_edge

.preheader90.._crit_edge_crit_edge:               ; preds = %.preheader90
  %.pre = sext i32 %51 to i64
  br label %._crit_edge

.lr.ph:                                           ; preds = %.preheader91, %.lr.ph
  %indvars.iv121 = phi i64 [ %indvars.iv.next122, %.lr.ph ], [ 1, %.preheader91 ]
  %53 = getelementptr inbounds [123 x i32], ptr @op_s, i64 0, i64 %indvars.iv121
  %54 = getelementptr inbounds [123 x i32], ptr @op_t, i64 0, i64 %indvars.iv121
  %55 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %53, ptr noundef nonnull %54)
  %indvars.iv.next122 = add nuw nsw i64 %indvars.iv121, 1
  %56 = load i32, ptr %2, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %.not86.not = icmp slt i64 %indvars.iv121, %57
  br i1 %.not86.not, label %.lr.ph, label %.preheader90, !llvm.loop !12

.preheader:                                       ; preds = %.preheader90, %65
  %indvars.iv132 = phi i64 [ %indvars.iv.next133, %65 ], [ 0, %.preheader90 ]
  %indvars.iv.next133 = add nuw nsw i64 %indvars.iv132, 1
  %58 = getelementptr inbounds [123 x i32], ptr @op_s, i64 0, i64 %indvars.iv.next133
  %59 = getelementptr inbounds [123 x i32], ptr @op_t, i64 0, i64 %indvars.iv.next133
  br label %69

._crit_edge:                                      ; preds = %65, %.preheader90.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.preheader90.._crit_edge_crit_edge ], [ %67, %65 ]
  %60 = getelementptr inbounds [123 x [150 x i32]], ptr @dp, i64 0, i64 %.pre-phi, i64 1
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = icmp eq i32 %61, 1061109567
  %spec.store.select = select i1 %62, i32 -1, i32 %61
  %63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %spec.store.select)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  %64 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %.not = icmp eq i32 %64, -1
  br i1 %.not, label %._crit_edge108, label %.preheader93, !llvm.loop !13

65:                                               ; preds = %108
  %66 = load i32, ptr %2, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = icmp slt i64 %indvars.iv.next133, %67
  br i1 %68, label %.preheader, label %._crit_edge, !llvm.loop !14

69:                                               ; preds = %.preheader, %108
  %indvars.iv128 = phi i64 [ 1, %.preheader ], [ %indvars.iv.next129, %108 ]
  %70 = getelementptr inbounds [123 x [150 x i32]], ptr @dp, i64 0, i64 %indvars.iv132, i64 %indvars.iv128
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = icmp eq i32 %71, 1061109567
  br i1 %72, label %108, label %73

73:                                               ; preds = %69
  %74 = getelementptr inbounds [123 x [150 x i32]], ptr @dp, i64 0, i64 %indvars.iv.next133, i64 %indvars.iv128
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %70, ptr noundef nonnull align 4 dereferenceable(4) %74)
  %76 = load i32, ptr %75, align 4, !tbaa !5
  store i32 %76, ptr %74, align 4, !tbaa !5
  %77 = load i32, ptr %58, align 4, !tbaa !5
  %78 = load i32, ptr %59, align 4, !tbaa !5
  %79 = icmp slt i32 %77, %78
  %80 = sext i32 %78 to i64
  %81 = getelementptr inbounds [150 x [6 x i32]], ptr @id, i64 0, i64 %indvars.iv128
  br i1 %79, label %82, label %95

82:                                               ; preds = %73
  %83 = add nsw i32 %77, -1
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [123456 x [6 x i32]], ptr @sx, i64 0, i64 %84
  call void @_Z4cal2PiS_(ptr noundef nonnull %85, ptr noundef nonnull %4)
  %86 = getelementptr inbounds [123456 x [6 x i32]], ptr @sx, i64 0, i64 %80
  call void @_Z3calPiS_S_(ptr noundef nonnull %4, ptr noundef nonnull %86, ptr noundef nonnull %3)
  call void @_Z3calPiS_S_(ptr noundef nonnull %81, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %87 = call noundef i32 @_Z6CantorPi(ptr noundef nonnull %4)
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [123 x [150 x i32]], ptr @dp, i64 0, i64 %indvars.iv.next133, i64 %88
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  %90 = load i32, ptr %70, align 4, !tbaa !5
  %reass.sub = sub i32 %78, %77
  %91 = add i32 %reass.sub, 1
  %92 = add i32 %91, %90
  store i32 %92, ptr %5, align 4, !tbaa !5
  %93 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %89, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %94 = load i32, ptr %93, align 4, !tbaa !5
  store i32 %94, ptr %89, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  br label %108

95:                                               ; preds = %73
  %96 = add i32 %77, 1
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [123456 x [6 x i32]], ptr @sy, i64 0, i64 %97
  call void @_Z4cal2PiS_(ptr noundef nonnull %98, ptr noundef nonnull %4)
  %99 = getelementptr inbounds [123456 x [6 x i32]], ptr @sy, i64 0, i64 %80
  call void @_Z3calPiS_S_(ptr noundef nonnull %4, ptr noundef nonnull %99, ptr noundef nonnull %3)
  call void @_Z3calPiS_S_(ptr noundef nonnull %81, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %100 = call noundef i32 @_Z6CantorPi(ptr noundef nonnull %4)
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [123 x [150 x i32]], ptr @dp, i64 0, i64 %indvars.iv.next133, i64 %101
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  %103 = load i32, ptr %70, align 4, !tbaa !5
  %104 = sub i32 %96, %78
  %105 = add i32 %104, %103
  store i32 %105, ptr %6, align 4, !tbaa !5
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %102, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %107 = load i32, ptr %106, align 4, !tbaa !5
  store i32 %107, ptr %102, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  br label %108

108:                                              ; preds = %82, %95, %69
  %indvars.iv.next129 = add nuw nsw i64 %indvars.iv128, 1
  %exitcond131.not = icmp eq i64 %indvars.iv.next129, 121
  br i1 %exitcond131.not, label %65, label %69, !llvm.loop !15

._crit_edge108:                                   ; preds = %._crit_edge, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0
}

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7

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 = { 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 #3 = { 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 #4 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { 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}
!15 = distinct !{!15, !10}


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