; LLVM IR from lzyrapx/Competitive-Programming :: ACdream (1100（Flody+完全背包）)

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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@dis = external dso_local global [123 x [123 x i32]], align 16
@x = external dso_local global [123 x i32], align 16
@w = external dso_local global [123 x i32], align 16
@t = external dso_local global [123 x i32], align 16
@dp = external dso_local global [1234 x i64], align 16
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@T = external dso_local global i32, align 4
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; 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
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(4) @m)
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 4 dereferenceable(4) @T)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %39, %0
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = load i32, ptr @n, align 4, !tbaa !5
  %24 = icmp sle i32 %22, %23
  br i1 %24, label %26, label %25

25:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %42

26:                                               ; preds = %21
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [123 x i32], ptr @x, i64 0, i64 %28
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %29)
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [123 x i32], ptr @w, i64 0, i64 %32
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 4 dereferenceable(4) %33)
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [123 x i32], ptr @t, i64 0, i64 %36
  %38 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 4 dereferenceable(4) %37)
  br label %39

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

42:                                               ; preds = %25
  call void @llvm.memset.p0.i64(ptr align 16 @dis, i8 31, i64 60516, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %55, %42
  %44 = load i32, ptr %3, align 4, !tbaa !5
  %45 = load i32, ptr @n, align 4, !tbaa !5
  %46 = icmp sle i32 %44, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %58

48:                                               ; preds = %43
  %49 = load i32, ptr %3, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [123 x [123 x i32]], ptr @dis, i64 0, i64 %50
  %52 = load i32, ptr %3, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [123 x i32], ptr %51, i64 0, i64 %53
  store i32 0, ptr %54, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %48
  %56 = load i32, ptr %3, align 4, !tbaa !5
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %3, align 4, !tbaa !5
  br label %43, !llvm.loop !11

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

59:                                               ; preds = %82, %58
  %60 = load i32, ptr %4, align 4, !tbaa !5
  %61 = load i32, ptr @m, align 4, !tbaa !5
  %62 = icmp slt i32 %60, %61
  br i1 %62, label %64, label %63

63:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  br label %85

64:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %65 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %66 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %65, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %67 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %66, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %68 = load i32, ptr %5, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [123 x [123 x i32]], ptr @dis, i64 0, i64 %69
  %71 = load i32, ptr %6, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [123 x i32], ptr %70, i64 0, i64 %72
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %73, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = load i32, ptr %5, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [123 x [123 x i32]], ptr @dis, i64 0, i64 %77
  %79 = load i32, ptr %6, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [123 x i32], ptr %78, i64 0, i64 %80
  store i32 %75, ptr %81, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %82

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

85:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %86

86:                                               ; preds = %141, %85
  %87 = load i32, ptr %8, align 4, !tbaa !5
  %88 = load i32, ptr @n, align 4, !tbaa !5
  %89 = icmp sle i32 %87, %88
  br i1 %89, label %91, label %90

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

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

92:                                               ; preds = %137, %91
  %93 = load i32, ptr %10, align 4, !tbaa !5
  %94 = load i32, ptr @n, align 4, !tbaa !5
  %95 = icmp sle i32 %93, %94
  br i1 %95, label %97, label %96

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

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

98:                                               ; preds = %133, %97
  %99 = load i32, ptr %11, align 4, !tbaa !5
  %100 = load i32, ptr @n, align 4, !tbaa !5
  %101 = icmp sle i32 %99, %100
  br i1 %101, label %103, label %102

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

103:                                              ; preds = %98
  %104 = load i32, ptr %10, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [123 x [123 x i32]], ptr @dis, i64 0, i64 %105
  %107 = load i32, ptr %11, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [123 x i32], ptr %106, i64 0, i64 %108
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %110 = load i32, ptr %10, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [123 x [123 x i32]], ptr @dis, i64 0, i64 %111
  %113 = load i32, ptr %8, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [123 x i32], ptr %112, i64 0, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !5
  %117 = load i32, ptr %8, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [123 x [123 x i32]], ptr @dis, i64 0, i64 %118
  %120 = load i32, ptr %11, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [123 x i32], ptr %119, i64 0, i64 %121
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %124 = add nsw i32 %116, %123
  store i32 %124, ptr %12, align 4, !tbaa !5
  %125 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %109, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %127 = load i32, ptr %10, align 4, !tbaa !5
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [123 x [123 x i32]], ptr @dis, i64 0, i64 %128
  %130 = load i32, ptr %11, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [123 x i32], ptr %129, i64 0, i64 %131
  store i32 %126, ptr %132, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %133

133:                                              ; preds = %103
  %134 = load i32, ptr %11, align 4, !tbaa !5
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %11, align 4, !tbaa !5
  br label %98, !llvm.loop !13

136:                                              ; preds = %102
  br label %137

137:                                              ; preds = %136
  %138 = load i32, ptr %10, align 4, !tbaa !5
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %10, align 4, !tbaa !5
  br label %92, !llvm.loop !14

140:                                              ; preds = %96
  br label %141

141:                                              ; preds = %140
  %142 = load i32, ptr %8, align 4, !tbaa !5
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %8, align 4, !tbaa !5
  br label %86, !llvm.loop !15

144:                                              ; preds = %90
  call void @llvm.memset.p0.i64(ptr align 16 @dp, i8 0, i64 9872, i1 false)
  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
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %145

145:                                              ; preds = %227, %144
  %146 = load i32, ptr %14, align 4, !tbaa !5
  %147 = load i32, ptr @n, align 4, !tbaa !5
  %148 = icmp sle i32 %146, %147
  br i1 %148, label %150, label %149

149:                                              ; preds = %145
  store i32 20, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %230

150:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %151 = load i32, ptr @T, align 4, !tbaa !5
  store i32 %151, ptr %15, align 4, !tbaa !5
  br label %152

152:                                              ; preds = %223, %150
  %153 = load i32, ptr %15, align 4, !tbaa !5
  %154 = icmp sge i32 %153, 0
  br i1 %154, label %156, label %155

155:                                              ; preds = %152
  store i32 23, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %226

156:                                              ; preds = %152
  %157 = load i32, ptr %15, align 4, !tbaa !5
  %158 = load i32, ptr %14, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [123 x i32], ptr @dis, i64 0, i64 %159
  %161 = load i32, ptr %160, align 4, !tbaa !5
  %162 = add nsw i32 %157, %161
  store i32 %162, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %163

163:                                              ; preds = %218, %156
  %164 = load i32, ptr %16, align 4, !tbaa !5
  %165 = load i32, ptr %14, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [123 x i32], ptr @x, i64 0, i64 %166
  %168 = load i32, ptr %167, align 4, !tbaa !5
  %169 = icmp sle i32 %164, %168
  br i1 %169, label %171, label %170

170:                                              ; preds = %163
  store i32 26, ptr %9, align 4
  br label %221

171:                                              ; preds = %163
  %172 = load i32, ptr %13, align 4, !tbaa !5
  %173 = load i32, ptr %16, align 4, !tbaa !5
  %174 = load i32, ptr %14, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [123 x i32], ptr @t, i64 0, i64 %175
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %178 = mul nsw i32 %173, %177
  %179 = add nsw i32 %172, %178
  %180 = load i32, ptr @T, align 4, !tbaa !5
  %181 = icmp sgt i32 %179, %180
  br i1 %181, label %182, label %183

182:                                              ; preds = %171
  store i32 26, ptr %9, align 4
  br label %221

183:                                              ; preds = %171
  %184 = load i32, ptr %13, align 4, !tbaa !5
  %185 = load i32, ptr %16, align 4, !tbaa !5
  %186 = load i32, ptr %14, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [123 x i32], ptr @t, i64 0, i64 %187
  %189 = load i32, ptr %188, align 4, !tbaa !5
  %190 = mul nsw i32 %185, %189
  %191 = add nsw i32 %184, %190
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [1234 x i64], ptr @dp, i64 0, i64 %192
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %194 = load i32, ptr %15, align 4, !tbaa !5
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [1234 x i64], ptr @dp, i64 0, i64 %195
  %197 = load i64, ptr %196, align 8, !tbaa !16
  %198 = load i32, ptr %16, align 4, !tbaa !5
  %199 = load i32, ptr %14, align 4, !tbaa !5
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [123 x i32], ptr @w, i64 0, i64 %200
  %202 = load i32, ptr %201, align 4, !tbaa !5
  %203 = mul nsw i32 %198, %202
  %204 = sext i32 %203 to i64
  %205 = add nsw i64 %197, %204
  store i64 %205, ptr %17, align 8, !tbaa !16
  %206 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %193, ptr noundef nonnull align 8 dereferenceable(8) %17)
  %207 = load i64, ptr %206, align 8, !tbaa !16
  %208 = load i32, ptr %13, align 4, !tbaa !5
  %209 = load i32, ptr %16, align 4, !tbaa !5
  %210 = load i32, ptr %14, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [123 x i32], ptr @t, i64 0, i64 %211
  %213 = load i32, ptr %212, align 4, !tbaa !5
  %214 = mul nsw i32 %209, %213
  %215 = add nsw i32 %208, %214
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [1234 x i64], ptr @dp, i64 0, i64 %216
  store i64 %207, ptr %217, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %218

218:                                              ; preds = %183
  %219 = load i32, ptr %16, align 4, !tbaa !5
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %16, align 4, !tbaa !5
  br label %163, !llvm.loop !18

221:                                              ; preds = %182, %170
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %222

222:                                              ; preds = %221
  br label %223

223:                                              ; preds = %222
  %224 = load i32, ptr %15, align 4, !tbaa !5
  %225 = add nsw i32 %224, -1
  store i32 %225, ptr %15, align 4, !tbaa !5
  br label %152, !llvm.loop !19

226:                                              ; preds = %155
  br label %227

227:                                              ; preds = %226
  %228 = load i32, ptr %14, align 4, !tbaa !5
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %14, align 4, !tbaa !5
  br label %145, !llvm.loop !20

230:                                              ; preds = %149
  %231 = load i32, ptr @T, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [1234 x i64], ptr @dp, i64 0, i64 %232
  %234 = load i64, ptr %233, align 8, !tbaa !16
  %235 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %234)
  %236 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %235, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  %237 = load i32, ptr %1, align 4
  ret i32 %237
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #5 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 #6 = { 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 #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 = !{!17, !17, i64 0}
!17 = !{!"long long", !7, i64 0}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !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"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@dis = external dso_local global [123 x [123 x i32]], align 16
@x = external dso_local global [123 x i32], align 16
@w = external dso_local global [123 x i32], align 16
@t = external dso_local global [123 x i32], align 16
@dp = external dso_local global [1234 x i64], align 16
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@T = external dso_local global i32, align 4
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; 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 i64, align 8
  %6 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %7 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 4 dereferenceable(4) @m)
  %8 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) @T)
  %9 = load i32, ptr @n, align 4, !tbaa !5
  %.not65 = icmp slt i32 %9, 1
  br i1 %.not65, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %0
  %.lcssa = phi i32 [ %9, %0 ], [ %18, %.lr.ph ]
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(60516) @dis, i8 31, i64 60516, i1 false)
  %.not5667 = icmp slt i32 %.lcssa, 0
  br i1 %.not5667, label %.preheader64, label %.lr.ph70.preheader

.lr.ph70.preheader:                               ; preds = %._crit_edge
  %10 = add nuw i32 %.lcssa, 1
  %wide.trip.count = zext i32 %10 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %11 = icmp ult i32 %.lcssa, 3
  br i1 %11, label %.preheader64.loopexit.unr-lcssa, label %.lr.ph70.preheader.new

.lr.ph70.preheader.new:                           ; preds = %.lr.ph70.preheader
  %unroll_iter = and i64 %wide.trip.count, 4294967292
  br label %.lr.ph70

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %0 ]
  %12 = getelementptr inbounds [123 x i32], ptr @x, i64 0, i64 %indvars.iv
  %13 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %14 = getelementptr inbounds [123 x i32], ptr @w, i64 0, i64 %indvars.iv
  %15 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %16 = getelementptr inbounds [123 x i32], ptr @t, i64 0, i64 %indvars.iv
  %17 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %18 = load i32, ptr @n, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %.not.not = icmp slt i64 %indvars.iv, %19
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.preheader64.loopexit.unr-lcssa:                  ; preds = %.lr.ph70, %.lr.ph70.preheader
  %indvars.iv104.unr = phi i64 [ 0, %.lr.ph70.preheader ], [ %indvars.iv.next105.3, %.lr.ph70 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader64, label %.lr.ph70.epil

.lr.ph70.epil:                                    ; preds = %.preheader64.loopexit.unr-lcssa, %.lr.ph70.epil
  %indvars.iv104.epil = phi i64 [ %indvars.iv.next105.epil, %.lr.ph70.epil ], [ %indvars.iv104.unr, %.preheader64.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph70.epil ], [ 0, %.preheader64.loopexit.unr-lcssa ]
  %20 = getelementptr inbounds [123 x [123 x i32]], ptr @dis, i64 0, i64 %indvars.iv104.epil, i64 %indvars.iv104.epil
  store i32 0, ptr %20, align 4, !tbaa !5
  %indvars.iv.next105.epil = add nuw nsw i64 %indvars.iv104.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 %.preheader64, label %.lr.ph70.epil, !llvm.loop !11

.preheader64:                                     ; preds = %.preheader64.loopexit.unr-lcssa, %.lr.ph70.epil, %._crit_edge
  %21 = load i32, ptr @m, align 4, !tbaa !5
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %.lr.ph72, label %.preheader63

.lr.ph70:                                         ; preds = %.lr.ph70, %.lr.ph70.preheader.new
  %indvars.iv104 = phi i64 [ 0, %.lr.ph70.preheader.new ], [ %indvars.iv.next105.3, %.lr.ph70 ]
  %niter = phi i64 [ 0, %.lr.ph70.preheader.new ], [ %niter.next.3, %.lr.ph70 ]
  %23 = getelementptr inbounds [123 x [123 x i32]], ptr @dis, i64 0, i64 %indvars.iv104, i64 %indvars.iv104
  store i32 0, ptr %23, align 16, !tbaa !5
  %indvars.iv.next105 = or disjoint i64 %indvars.iv104, 1
  %24 = getelementptr inbounds [123 x [123 x i32]], ptr @dis, i64 0, i64 %indvars.iv.next105, i64 %indvars.iv.next105
  store i32 0, ptr %24, align 16, !tbaa !5
  %indvars.iv.next105.1 = or disjoint i64 %indvars.iv104, 2
  %25 = getelementptr inbounds [123 x [123 x i32]], ptr @dis, i64 0, i64 %indvars.iv.next105.1, i64 %indvars.iv.next105.1
  store i32 0, ptr %25, align 16, !tbaa !5
  %indvars.iv.next105.2 = or disjoint i64 %indvars.iv104, 3
  %26 = getelementptr inbounds [123 x [123 x i32]], ptr @dis, i64 0, i64 %indvars.iv.next105.2, i64 %indvars.iv.next105.2
  store i32 0, ptr %26, align 16, !tbaa !5
  %indvars.iv.next105.3 = add nuw nsw i64 %indvars.iv104, 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 %.preheader64.loopexit.unr-lcssa, label %.lr.ph70, !llvm.loop !13

.preheader63.loopexit:                            ; preds = %.lr.ph72
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %.preheader63

.preheader63:                                     ; preds = %.preheader63.loopexit, %.preheader64
  %27 = phi i32 [ %.pre, %.preheader63.loopexit ], [ %.lcssa, %.preheader64 ]
  %.not5780 = icmp slt i32 %27, 0
  br i1 %.not5780, label %._crit_edge82.thread, label %.preheader62

._crit_edge82.thread:                             ; preds = %.preheader63
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(9872) @dp, i8 0, i64 9872, i1 false)
  %.pre125128 = load i32, ptr @T, align 4, !tbaa !5
  br label %._crit_edge97

.lr.ph72:                                         ; preds = %.preheader64, %.lr.ph72
  %.05271 = phi i32 [ %43, %.lr.ph72 ], [ 0, %.preheader64 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %31 = load i32, ptr %1, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = load i32, ptr %2, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [123 x [123 x i32]], ptr @dis, i64 0, i64 %32, i64 %34
  %36 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %35, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = load i32, ptr %1, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = load i32, ptr %2, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [123 x [123 x i32]], ptr @dis, i64 0, i64 %39, i64 %41
  store i32 %37, ptr %42, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  %43 = add nuw nsw i32 %.05271, 1
  %44 = load i32, ptr @m, align 4, !tbaa !5
  %45 = icmp slt i32 %43, %44
  br i1 %45, label %.lr.ph72, label %.preheader63.loopexit, !llvm.loop !14

.preheader62:                                     ; preds = %.preheader63, %._crit_edge79
  %46 = phi i32 [ %51, %._crit_edge79 ], [ %27, %.preheader63 ]
  %indvars.iv113 = phi i64 [ %indvars.iv.next114, %._crit_edge79 ], [ 0, %.preheader63 ]
  %.not6077 = icmp slt i32 %46, 0
  br i1 %.not6077, label %._crit_edge79, label %.preheader

._crit_edge82:                                    ; preds = %._crit_edge79
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(9872) @dp, i8 0, i64 9872, i1 false)
  %.not5893 = icmp sgt i32 %51, -1
  %.pre125 = load i32, ptr @T, align 4, !tbaa !5
  %47 = icmp sgt i32 %.pre125, -1
  %or.cond = select i1 %.not5893, i1 %47, i1 false
  br i1 %or.cond, label %.lr.ph96.split, label %._crit_edge97

.preheader:                                       ; preds = %.preheader62, %._crit_edge76
  %48 = phi i32 [ %53, %._crit_edge76 ], [ %46, %.preheader62 ]
  %49 = phi i32 [ %54, %._crit_edge76 ], [ %46, %.preheader62 ]
  %indvars.iv110 = phi i64 [ %indvars.iv.next111, %._crit_edge76 ], [ 0, %.preheader62 ]
  %.not6173 = icmp slt i32 %49, 0
  br i1 %.not6173, label %.preheader.._crit_edge76_crit_edge, label %.lr.ph75

.preheader.._crit_edge76_crit_edge:               ; preds = %.preheader
  %.pre126 = sext i32 %49 to i64
  br label %._crit_edge76

.lr.ph75:                                         ; preds = %.preheader
  %50 = getelementptr inbounds [123 x [123 x i32]], ptr @dis, i64 0, i64 %indvars.iv110, i64 %indvars.iv113
  br label %55

._crit_edge79:                                    ; preds = %._crit_edge76, %.preheader62
  %51 = phi i32 [ %46, %.preheader62 ], [ %53, %._crit_edge76 ]
  %indvars.iv.next114 = add nuw nsw i64 %indvars.iv113, 1
  %52 = sext i32 %51 to i64
  %.not57.not = icmp slt i64 %indvars.iv113, %52
  br i1 %.not57.not, label %.preheader62, label %._crit_edge82, !llvm.loop !15

._crit_edge76:                                    ; preds = %55, %.preheader.._crit_edge76_crit_edge
  %.pre-phi = phi i64 [ %.pre126, %.preheader.._crit_edge76_crit_edge ], [ %64, %55 ]
  %53 = phi i32 [ %48, %.preheader.._crit_edge76_crit_edge ], [ %63, %55 ]
  %54 = phi i32 [ %49, %.preheader.._crit_edge76_crit_edge ], [ %63, %55 ]
  %indvars.iv.next111 = add nuw nsw i64 %indvars.iv110, 1
  %.not60.not = icmp slt i64 %indvars.iv110, %.pre-phi
  br i1 %.not60.not, label %.preheader, label %._crit_edge79, !llvm.loop !17

55:                                               ; preds = %.lr.ph75, %55
  %indvars.iv107 = phi i64 [ 0, %.lr.ph75 ], [ %indvars.iv.next108, %55 ]
  %56 = getelementptr inbounds [123 x [123 x i32]], ptr @dis, i64 0, i64 %indvars.iv110, i64 %indvars.iv107
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  %57 = load i32, ptr %50, align 4, !tbaa !5
  %58 = getelementptr inbounds [123 x [123 x i32]], ptr @dis, i64 0, i64 %indvars.iv113, i64 %indvars.iv107
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = add nsw i32 %59, %57
  store i32 %60, ptr %4, align 4, !tbaa !5
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %56, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %62 = load i32, ptr %61, align 4, !tbaa !5
  store i32 %62, ptr %56, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  %indvars.iv.next108 = add nuw nsw i64 %indvars.iv107, 1
  %63 = load i32, ptr @n, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %.not61.not = icmp slt i64 %indvars.iv107, %64
  br i1 %.not61.not, label %55, label %._crit_edge76, !llvm.loop !18

._crit_edge97:                                    ; preds = %._crit_edge92, %._crit_edge82.thread, %._crit_edge82
  %65 = phi i32 [ %.pre125, %._crit_edge82 ], [ %.pre125128, %._crit_edge82.thread ], [ %.pr, %._crit_edge92 ]
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [1234 x i64], ptr @dp, i64 0, i64 %66
  %68 = load i64, ptr %67, align 8, !tbaa !19
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %68)
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret i32 0

.lr.ph96.split:                                   ; preds = %._crit_edge82, %._crit_edge92
  %71 = phi i32 [ %.pr, %._crit_edge92 ], [ %.pre125, %._crit_edge82 ]
  %72 = phi i32 [ %81, %._crit_edge92 ], [ %51, %._crit_edge82 ]
  %indvars.iv119 = phi i64 [ %indvars.iv.next120, %._crit_edge92 ], [ 0, %._crit_edge82 ]
  %73 = icmp sgt i32 %71, -1
  br i1 %73, label %.lr.ph91, label %._crit_edge92

.lr.ph91:                                         ; preds = %.lr.ph96.split
  %74 = getelementptr inbounds [123 x i32], ptr @dis, i64 0, i64 %indvars.iv119
  %75 = getelementptr inbounds [123 x i32], ptr @t, i64 0, i64 %indvars.iv119
  %76 = getelementptr inbounds [123 x i32], ptr @x, i64 0, i64 %indvars.iv119
  %77 = getelementptr inbounds [123 x i32], ptr @w, i64 0, i64 %indvars.iv119
  %78 = load i32, ptr %76, align 4, !tbaa !5
  %79 = icmp slt i32 %78, 0
  br i1 %79, label %._crit_edge92, label %.lr.ph91.split.preheader

.lr.ph91.split.preheader:                         ; preds = %.lr.ph91
  %80 = zext nneg i32 %71 to i64
  br label %.lr.ph91.split

._crit_edge92.loopexit98:                         ; preds = %._crit_edge87
  %.pre123 = load i32, ptr @n, align 4, !tbaa !5
  br label %._crit_edge92

._crit_edge92:                                    ; preds = %.lr.ph91, %._crit_edge92.loopexit98, %.lr.ph96.split
  %81 = phi i32 [ %.pre123, %._crit_edge92.loopexit98 ], [ %72, %.lr.ph96.split ], [ %72, %.lr.ph91 ]
  %indvars.iv.next120 = add nuw nsw i64 %indvars.iv119, 1
  %82 = sext i32 %81 to i64
  %.not58.not = icmp slt i64 %indvars.iv119, %82
  %.pr = load i32, ptr @T, align 4, !tbaa !5
  br i1 %.not58.not, label %.lr.ph96.split, label %._crit_edge97, !llvm.loop !21

.lr.ph91.split:                                   ; preds = %.lr.ph91.split.preheader, %._crit_edge87
  %83 = phi i32 [ %78, %.lr.ph91.split.preheader ], [ %112, %._crit_edge87 ]
  %indvars.iv116 = phi i64 [ %80, %.lr.ph91.split.preheader ], [ %indvars.iv.next117, %._crit_edge87 ]
  %84 = load i32, ptr %74, align 4, !tbaa !5
  %85 = trunc nuw nsw i64 %indvars.iv116 to i32
  %86 = add nsw i32 %84, %85
  %.not5983 = icmp slt i32 %83, 0
  br i1 %.not5983, label %._crit_edge87, label %.lr.ph86

.lr.ph86:                                         ; preds = %.lr.ph91.split
  %87 = getelementptr inbounds [1234 x i64], ptr @dp, i64 0, i64 %indvars.iv116
  %88 = load i32, ptr @T, align 4, !tbaa !5
  %89 = icmp sgt i32 %86, %88
  br i1 %89, label %._crit_edge87, label %.lr.ph140

90:                                               ; preds = %.lr.ph140
  %91 = add nuw nsw i32 %.084139, 1
  %92 = mul nsw i32 %106, %91
  %93 = add nsw i32 %92, %86
  %94 = load i32, ptr @T, align 4, !tbaa !5
  %95 = icmp sgt i32 %93, %94
  br i1 %95, label %._crit_edge87, label %.lr.ph140, !llvm.loop !22

.lr.ph140:                                        ; preds = %.lr.ph86, %90
  %96 = phi i32 [ %93, %90 ], [ %86, %.lr.ph86 ]
  %.084139 = phi i32 [ %91, %90 ], [ 0, %.lr.ph86 ]
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [1234 x i64], ptr @dp, i64 0, i64 %97
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %99 = load i64, ptr %87, align 8, !tbaa !19
  %100 = load i32, ptr %77, align 4, !tbaa !5
  %101 = mul nsw i32 %100, %.084139
  %102 = sext i32 %101 to i64
  %103 = add nsw i64 %99, %102
  store i64 %103, ptr %5, align 8, !tbaa !19
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %98, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %105 = load i64, ptr %104, align 8, !tbaa !19
  %106 = load i32, ptr %75, align 4, !tbaa !5
  %107 = mul nsw i32 %106, %.084139
  %108 = add nsw i32 %107, %86
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [1234 x i64], ptr @dp, i64 0, i64 %109
  store i64 %105, ptr %110, align 8, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %111 = load i32, ptr %76, align 4, !tbaa !5
  %.not59.not = icmp slt i32 %.084139, %111
  br i1 %.not59.not, label %90, label %._crit_edge87, !llvm.loop !22

._crit_edge87:                                    ; preds = %90, %.lr.ph140, %.lr.ph86, %.lr.ph91.split
  %112 = phi i32 [ %83, %.lr.ph91.split ], [ %83, %.lr.ph86 ], [ %111, %.lr.ph140 ], [ %111, %90 ]
  %indvars.iv.next117 = add nsw i64 %indvars.iv116, -1
  %113 = icmp sgt i64 %indvars.iv116, 0
  br i1 %113, label %.lr.ph91.split, label %._crit_edge92.loopexit98, !llvm.loop !23
}

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) 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: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 #6 = { 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 #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, !12}
!12 = !{!"llvm.loop.unroll.disable"}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10, !16}
!16 = !{!"llvm.loop.unswitch.partial.disable"}
!17 = distinct !{!17, !10, !16}
!18 = distinct !{!18, !10}
!19 = !{!20, !20, i64 0}
!20 = !{!"long long", !7, i64 0}
!21 = distinct !{!21, !10, !16}
!22 = distinct !{!22, !10}
!23 = distinct !{!23, !10, !16}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass