; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/369 Division 2/Problem C (C)

; 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_ostream" = type { ptr, %"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_istream" = type { ptr, i64, %"class.std::basic_ios" }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@dp = external dso_local global [110 x [110 x [110 x i64]]], align 16
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@c = external dso_local global [110 x i32], align 16
@p = external dso_local global [110 x [110 x i64]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 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)) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %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 i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %17 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %18 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %19 = getelementptr i8, ptr %18, i64 -24
  %20 = load i64, ptr %19, align 8
  %21 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %20
  %22 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %21, ptr noundef null)
  %23 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %24 = getelementptr i8, ptr %23, i64 -24
  %25 = load i64, ptr %24, align 8
  %26 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %25
  %27 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %26, ptr noundef null)
  %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) @n)
  %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) @m)
  %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) @k)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 1, ptr %2, align 4, !tbaa !8
  br label %31

31:                                               ; preds = %41, %0
  %32 = load i32, ptr %2, align 4, !tbaa !8
  %33 = load i32, ptr @n, align 4, !tbaa !8
  %34 = icmp sle i32 %32, %33
  br i1 %34, label %36, label %35

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

36:                                               ; preds = %31
  %37 = load i32, ptr %2, align 4, !tbaa !8
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [110 x i32], ptr @c, i64 0, i64 %38
  %40 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %39)
  br label %41

41:                                               ; preds = %36
  %42 = load i32, ptr %2, align 4, !tbaa !8
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %2, align 4, !tbaa !8
  br label %31, !llvm.loop !11

44:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store i32 1, ptr %3, align 4, !tbaa !8
  br label %45

45:                                               ; preds = %68, %44
  %46 = load i32, ptr %3, align 4, !tbaa !8
  %47 = load i32, ptr @n, align 4, !tbaa !8
  %48 = icmp sle i32 %46, %47
  br i1 %48, label %50, label %49

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

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

51:                                               ; preds = %64, %50
  %52 = load i32, ptr %5, align 4, !tbaa !8
  %53 = load i32, ptr @m, align 4, !tbaa !8
  %54 = icmp sle i32 %52, %53
  br i1 %54, label %56, label %55

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

56:                                               ; preds = %51
  %57 = load i32, ptr %3, align 4, !tbaa !8
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [110 x [110 x i64]], ptr @p, i64 0, i64 %58
  %60 = load i32, ptr %5, align 4, !tbaa !8
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [110 x i64], ptr %59, i64 0, i64 %61
  %63 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %62)
  br label %64

64:                                               ; preds = %56
  %65 = load i32, ptr %5, align 4, !tbaa !8
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %5, align 4, !tbaa !8
  br label %51, !llvm.loop !13

67:                                               ; preds = %55
  br label %68

68:                                               ; preds = %67
  %69 = load i32, ptr %3, align 4, !tbaa !8
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %3, align 4, !tbaa !8
  br label %45, !llvm.loop !14

71:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 1, ptr %6, align 4, !tbaa !8
  br label %72

72:                                               ; preds = %107, %71
  %73 = load i32, ptr %6, align 4, !tbaa !8
  %74 = load i32, ptr @n, align 4, !tbaa !8
  %75 = icmp sle i32 %73, %74
  br i1 %75, label %77, label %76

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

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

78:                                               ; preds = %103, %77
  %79 = load i32, ptr %7, align 4, !tbaa !8
  %80 = load i32, ptr @k, align 4, !tbaa !8
  %81 = icmp sle i32 %79, %80
  br i1 %81, label %83, label %82

82:                                               ; preds = %78
  store i32 14, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %106

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

84:                                               ; preds = %99, %83
  %85 = load i32, ptr %8, align 4, !tbaa !8
  %86 = load i32, ptr @m, align 4, !tbaa !8
  %87 = icmp sle i32 %85, %86
  br i1 %87, label %89, label %88

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

89:                                               ; preds = %84
  %90 = load i32, ptr %6, align 4, !tbaa !8
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [110 x [110 x [110 x i64]]], ptr @dp, i64 0, i64 %91
  %93 = load i32, ptr %7, align 4, !tbaa !8
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [110 x [110 x i64]], ptr %92, i64 0, i64 %94
  %96 = load i32, ptr %8, align 4, !tbaa !8
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [110 x i64], ptr %95, i64 0, i64 %97
  store i64 1152921504606846976, ptr %98, align 8, !tbaa !15
  br label %99

99:                                               ; preds = %89
  %100 = load i32, ptr %8, align 4, !tbaa !8
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %8, align 4, !tbaa !8
  br label %84, !llvm.loop !17

102:                                              ; preds = %88
  br label %103

103:                                              ; preds = %102
  %104 = load i32, ptr %7, align 4, !tbaa !8
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %7, align 4, !tbaa !8
  br label %78, !llvm.loop !18

106:                                              ; preds = %82
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %6, align 4, !tbaa !8
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %6, align 4, !tbaa !8
  br label %72, !llvm.loop !19

110:                                              ; preds = %76
  store i64 0, ptr @dp, align 16, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 1, ptr %9, align 4, !tbaa !8
  br label %111

111:                                              ; preds = %326, %110
  %112 = load i32, ptr %9, align 4, !tbaa !8
  %113 = load i32, ptr @n, align 4, !tbaa !8
  %114 = icmp sle i32 %112, %113
  br i1 %114, label %116, label %115

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

116:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 1, ptr %10, align 4, !tbaa !8
  br label %117

117:                                              ; preds = %322, %116
  %118 = load i32, ptr %10, align 4, !tbaa !8
  %119 = load i32, ptr %9, align 4, !tbaa !8
  %120 = icmp sle i32 %118, %119
  br i1 %120, label %121, label %125

121:                                              ; preds = %117
  %122 = load i32, ptr %10, align 4, !tbaa !8
  %123 = load i32, ptr @k, align 4, !tbaa !8
  %124 = icmp sle i32 %122, %123
  br label %125

125:                                              ; preds = %121, %117
  %126 = phi i1 [ false, %117 ], [ %124, %121 ]
  br i1 %126, label %128, label %127

127:                                              ; preds = %125
  store i32 23, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %325

128:                                              ; preds = %125
  %129 = load i32, ptr %9, align 4, !tbaa !8
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [110 x i32], ptr @c, i64 0, i64 %130
  %132 = load i32, ptr %131, align 4, !tbaa !8
  %133 = icmp eq i32 %132, 0
  br i1 %133, label %134, label %228

134:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 1, ptr %11, align 4, !tbaa !8
  br label %135

135:                                              ; preds = %224, %134
  %136 = load i32, ptr %11, align 4, !tbaa !8
  %137 = load i32, ptr @m, align 4, !tbaa !8
  %138 = icmp sle i32 %136, %137
  br i1 %138, label %140, label %139

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

140:                                              ; preds = %135
  %141 = load i32, ptr %9, align 4, !tbaa !8
  %142 = sub nsw i32 %141, 1
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [110 x [110 x [110 x i64]]], ptr @dp, i64 0, i64 %143
  %145 = load i32, ptr %10, align 4, !tbaa !8
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [110 x [110 x i64]], ptr %144, i64 0, i64 %146
  %148 = load i32, ptr %11, align 4, !tbaa !8
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [110 x i64], ptr %147, i64 0, i64 %149
  %151 = load i64, ptr %150, align 8, !tbaa !15
  %152 = load i32, ptr %9, align 4, !tbaa !8
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [110 x [110 x i64]], ptr @p, i64 0, i64 %153
  %155 = load i32, ptr %11, align 4, !tbaa !8
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [110 x i64], ptr %154, i64 0, i64 %156
  %158 = load i64, ptr %157, align 8, !tbaa !15
  %159 = add nsw i64 %151, %158
  %160 = load i32, ptr %9, align 4, !tbaa !8
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [110 x [110 x [110 x i64]]], ptr @dp, i64 0, i64 %161
  %163 = load i32, ptr %10, align 4, !tbaa !8
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [110 x [110 x i64]], ptr %162, i64 0, i64 %164
  %166 = load i32, ptr %11, align 4, !tbaa !8
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [110 x i64], ptr %165, i64 0, i64 %167
  store i64 %159, ptr %168, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 1, ptr %12, align 4, !tbaa !8
  br label %169

169:                                              ; preds = %220, %140
  %170 = load i32, ptr %12, align 4, !tbaa !8
  %171 = load i32, ptr @m, align 4, !tbaa !8
  %172 = icmp sle i32 %170, %171
  br i1 %172, label %174, label %173

173:                                              ; preds = %169
  store i32 29, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %223

174:                                              ; preds = %169
  %175 = load i32, ptr %12, align 4, !tbaa !8
  %176 = load i32, ptr %11, align 4, !tbaa !8
  %177 = icmp eq i32 %175, %176
  br i1 %177, label %178, label %179

178:                                              ; preds = %174
  br label %220

179:                                              ; preds = %174
  %180 = load i32, ptr %9, align 4, !tbaa !8
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [110 x [110 x [110 x i64]]], ptr @dp, i64 0, i64 %181
  %183 = load i32, ptr %10, align 4, !tbaa !8
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [110 x [110 x i64]], ptr %182, i64 0, i64 %184
  %186 = load i32, ptr %11, align 4, !tbaa !8
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [110 x i64], ptr %185, i64 0, i64 %187
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %189 = load i32, ptr %9, align 4, !tbaa !8
  %190 = sub nsw i32 %189, 1
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [110 x [110 x [110 x i64]]], ptr @dp, i64 0, i64 %191
  %193 = load i32, ptr %10, align 4, !tbaa !8
  %194 = sub nsw i32 %193, 1
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds [110 x [110 x i64]], ptr %192, i64 0, i64 %195
  %197 = load i32, ptr %12, align 4, !tbaa !8
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [110 x i64], ptr %196, i64 0, i64 %198
  %200 = load i64, ptr %199, align 8, !tbaa !15
  %201 = load i32, ptr %9, align 4, !tbaa !8
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [110 x [110 x i64]], ptr @p, i64 0, i64 %202
  %204 = load i32, ptr %11, align 4, !tbaa !8
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [110 x i64], ptr %203, i64 0, i64 %205
  %207 = load i64, ptr %206, align 8, !tbaa !15
  %208 = add nsw i64 %200, %207
  store i64 %208, ptr %13, align 8, !tbaa !15
  %209 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %188, ptr noundef nonnull align 8 dereferenceable(8) %13)
  %210 = load i64, ptr %209, align 8, !tbaa !15
  %211 = load i32, ptr %9, align 4, !tbaa !8
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [110 x [110 x [110 x i64]]], ptr @dp, i64 0, i64 %212
  %214 = load i32, ptr %10, align 4, !tbaa !8
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [110 x [110 x i64]], ptr %213, i64 0, i64 %215
  %217 = load i32, ptr %11, align 4, !tbaa !8
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [110 x i64], ptr %216, i64 0, i64 %218
  store i64 %210, ptr %219, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %220

220:                                              ; preds = %179, %178
  %221 = load i32, ptr %12, align 4, !tbaa !8
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %12, align 4, !tbaa !8
  br label %169, !llvm.loop !20

223:                                              ; preds = %173
  br label %224

224:                                              ; preds = %223
  %225 = load i32, ptr %11, align 4, !tbaa !8
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %11, align 4, !tbaa !8
  br label %135, !llvm.loop !21

227:                                              ; preds = %139
  br label %321

228:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 1, ptr %14, align 4, !tbaa !8
  br label %229

229:                                              ; preds = %317, %228
  %230 = load i32, ptr %14, align 4, !tbaa !8
  %231 = load i32, ptr @m, align 4, !tbaa !8
  %232 = icmp sle i32 %230, %231
  br i1 %232, label %234, label %233

233:                                              ; preds = %229
  store i32 32, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %320

234:                                              ; preds = %229
  %235 = load i32, ptr %14, align 4, !tbaa !8
  %236 = load i32, ptr %9, align 4, !tbaa !8
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [110 x i32], ptr @c, i64 0, i64 %237
  %239 = load i32, ptr %238, align 4, !tbaa !8
  %240 = icmp eq i32 %235, %239
  br i1 %240, label %241, label %278

241:                                              ; preds = %234
  %242 = load i32, ptr %9, align 4, !tbaa !8
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [110 x [110 x [110 x i64]]], ptr @dp, i64 0, i64 %243
  %245 = load i32, ptr %10, align 4, !tbaa !8
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds [110 x [110 x i64]], ptr %244, i64 0, i64 %246
  %248 = load i32, ptr %9, align 4, !tbaa !8
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [110 x i32], ptr @c, i64 0, i64 %249
  %251 = load i32, ptr %250, align 4, !tbaa !8
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [110 x i64], ptr %247, i64 0, i64 %252
  %254 = load i32, ptr %9, align 4, !tbaa !8
  %255 = sub nsw i32 %254, 1
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [110 x [110 x [110 x i64]]], ptr @dp, i64 0, i64 %256
  %258 = load i32, ptr %10, align 4, !tbaa !8
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [110 x [110 x i64]], ptr %257, i64 0, i64 %259
  %261 = load i32, ptr %14, align 4, !tbaa !8
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [110 x i64], ptr %260, i64 0, i64 %262
  %264 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %253, ptr noundef nonnull align 8 dereferenceable(8) %263)
  %265 = load i64, ptr %264, align 8, !tbaa !15
  %266 = load i32, ptr %9, align 4, !tbaa !8
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [110 x [110 x [110 x i64]]], ptr @dp, i64 0, i64 %267
  %269 = load i32, ptr %10, align 4, !tbaa !8
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [110 x [110 x i64]], ptr %268, i64 0, i64 %270
  %272 = load i32, ptr %9, align 4, !tbaa !8
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds [110 x i32], ptr @c, i64 0, i64 %273
  %275 = load i32, ptr %274, align 4, !tbaa !8
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds [110 x i64], ptr %271, i64 0, i64 %276
  store i64 %265, ptr %277, align 8, !tbaa !15
  br label %316

278:                                              ; preds = %234
  %279 = load i32, ptr %9, align 4, !tbaa !8
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds [110 x [110 x [110 x i64]]], ptr @dp, i64 0, i64 %280
  %282 = load i32, ptr %10, align 4, !tbaa !8
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [110 x [110 x i64]], ptr %281, i64 0, i64 %283
  %285 = load i32, ptr %9, align 4, !tbaa !8
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds [110 x i32], ptr @c, i64 0, i64 %286
  %288 = load i32, ptr %287, align 4, !tbaa !8
  %289 = sext i32 %288 to i64
  %290 = getelementptr inbounds [110 x i64], ptr %284, i64 0, i64 %289
  %291 = load i32, ptr %9, align 4, !tbaa !8
  %292 = sub nsw i32 %291, 1
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds [110 x [110 x [110 x i64]]], ptr @dp, i64 0, i64 %293
  %295 = load i32, ptr %10, align 4, !tbaa !8
  %296 = sub nsw i32 %295, 1
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds [110 x [110 x i64]], ptr %294, i64 0, i64 %297
  %299 = load i32, ptr %14, align 4, !tbaa !8
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds [110 x i64], ptr %298, i64 0, i64 %300
  %302 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %290, ptr noundef nonnull align 8 dereferenceable(8) %301)
  %303 = load i64, ptr %302, align 8, !tbaa !15
  %304 = load i32, ptr %9, align 4, !tbaa !8
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds [110 x [110 x [110 x i64]]], ptr @dp, i64 0, i64 %305
  %307 = load i32, ptr %10, align 4, !tbaa !8
  %308 = sext i32 %307 to i64
  %309 = getelementptr inbounds [110 x [110 x i64]], ptr %306, i64 0, i64 %308
  %310 = load i32, ptr %9, align 4, !tbaa !8
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds [110 x i32], ptr @c, i64 0, i64 %311
  %313 = load i32, ptr %312, align 4, !tbaa !8
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds [110 x i64], ptr %309, i64 0, i64 %314
  store i64 %303, ptr %315, align 8, !tbaa !15
  br label %316

316:                                              ; preds = %278, %241
  br label %317

317:                                              ; preds = %316
  %318 = load i32, ptr %14, align 4, !tbaa !8
  %319 = add nsw i32 %318, 1
  store i32 %319, ptr %14, align 4, !tbaa !8
  br label %229, !llvm.loop !22

320:                                              ; preds = %233
  br label %321

321:                                              ; preds = %320, %227
  br label %322

322:                                              ; preds = %321
  %323 = load i32, ptr %10, align 4, !tbaa !8
  %324 = add nsw i32 %323, 1
  store i32 %324, ptr %10, align 4, !tbaa !8
  br label %117, !llvm.loop !23

325:                                              ; preds = %127
  br label %326

326:                                              ; preds = %325
  %327 = load i32, ptr %9, align 4, !tbaa !8
  %328 = add nsw i32 %327, 1
  store i32 %328, ptr %9, align 4, !tbaa !8
  br label %111, !llvm.loop !24

329:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store i64 1152921504606846976, ptr %15, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 1, ptr %16, align 4, !tbaa !8
  br label %330

330:                                              ; preds = %347, %329
  %331 = load i32, ptr %16, align 4, !tbaa !8
  %332 = load i32, ptr @m, align 4, !tbaa !8
  %333 = icmp sle i32 %331, %332
  br i1 %333, label %335, label %334

334:                                              ; preds = %330
  store i32 35, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %350

335:                                              ; preds = %330
  %336 = load i32, ptr @n, align 4, !tbaa !8
  %337 = sext i32 %336 to i64
  %338 = getelementptr inbounds [110 x [110 x [110 x i64]]], ptr @dp, i64 0, i64 %337
  %339 = load i32, ptr @k, align 4, !tbaa !8
  %340 = sext i32 %339 to i64
  %341 = getelementptr inbounds [110 x [110 x i64]], ptr %338, i64 0, i64 %340
  %342 = load i32, ptr %16, align 4, !tbaa !8
  %343 = sext i32 %342 to i64
  %344 = getelementptr inbounds [110 x i64], ptr %341, i64 0, i64 %343
  %345 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %344)
  %346 = load i64, ptr %345, align 8, !tbaa !15
  store i64 %346, ptr %15, align 8, !tbaa !15
  br label %347

347:                                              ; preds = %335
  %348 = load i32, ptr %16, align 4, !tbaa !8
  %349 = add nsw i32 %348, 1
  store i32 %349, ptr %16, align 4, !tbaa !8
  br label %330, !llvm.loop !25

350:                                              ; preds = %334
  %351 = load i64, ptr %15, align 8, !tbaa !15
  %352 = icmp eq i64 %351, 1152921504606846976
  br i1 %352, label %353, label %354

353:                                              ; preds = %350
  store i64 -1, ptr %15, align 8, !tbaa !15
  br label %354

354:                                              ; preds = %353, %350
  %355 = load i64, ptr %15, align 8, !tbaa !15
  %356 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %355)
  %357 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %356, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  %358 = load i32, ptr %1, align 4
  ret i32 %358
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #3

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #4 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #3

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { 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 #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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = !{!16, !16, i64 0}
!16 = !{!"long long", !10, i64 0}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}


; 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_ostream" = type { ptr, %"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_istream" = type { ptr, i64, %"class.std::basic_ios" }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@dp = external dso_local global [110 x [110 x [110 x i64]]], align 16
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@c = external dso_local global [110 x i32], align 16
@p = external dso_local global [110 x [110 x i64]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8

; 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 #0 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)) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %4 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %5 = getelementptr i8, ptr %4, i64 -24
  %6 = load i64, ptr %5, align 8
  %7 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %6
  %8 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %7, ptr noundef null)
  %9 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %10 = getelementptr i8, ptr %9, i64 -24
  %11 = load i64, ptr %10, align 8
  %12 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %11
  %13 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %12, ptr noundef null)
  %14 = 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)
  %15 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(4) @m)
  %16 = 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) @k)
  %17 = load i32, ptr @n, align 4, !tbaa !8
  %.not106 = icmp slt i32 %17, 1
  br i1 %.not106, label %._crit_edge143.sink.split, label %.lr.ph

.preheader105:                                    ; preds = %.lr.ph
  %.not88111 = icmp slt i32 %22, 1
  br i1 %.not88111, label %._crit_edge143.sink.split, label %.preheader104.lr.ph

.preheader104.lr.ph:                              ; preds = %.preheader105
  %18 = load i32, ptr @m, align 4
  %19 = icmp slt i32 %18, 1
  br i1 %19, label %.preheader102.lr.ph, label %.preheader104

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %0 ]
  %20 = getelementptr inbounds [110 x i32], ptr @c, i64 0, i64 %indvars.iv
  %21 = 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) %20)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %22 = load i32, ptr @n, align 4, !tbaa !8
  %23 = sext i32 %22 to i64
  %.not.not = icmp slt i64 %indvars.iv, %23
  br i1 %.not.not, label %.lr.ph, label %.preheader105, !llvm.loop !11

.preheader104:                                    ; preds = %.preheader104.lr.ph, %._crit_edge
  %24 = phi i32 [ %32, %._crit_edge ], [ %22, %.preheader104.lr.ph ]
  %25 = phi i32 [ %33, %._crit_edge ], [ %18, %.preheader104.lr.ph ]
  %indvars.iv160 = phi i64 [ %indvars.iv.next161, %._crit_edge ], [ 1, %.preheader104.lr.ph ]
  %.not97108 = icmp slt i32 %25, 1
  br i1 %.not97108, label %._crit_edge, label %.lr.ph110

.preheader103:                                    ; preds = %._crit_edge
  %.not89120 = icmp slt i32 %32, 1
  br i1 %.not89120, label %._crit_edge143.sink.split, label %.preheader102.lr.phthread-pre-split

.preheader102.lr.phthread-pre-split:              ; preds = %.preheader103
  %.pr = load i32, ptr @m, align 4
  br label %.preheader102.lr.ph

.preheader102.lr.ph:                              ; preds = %.preheader104.lr.ph, %.preheader102.lr.phthread-pre-split
  %26 = phi i32 [ %.pr, %.preheader102.lr.phthread-pre-split ], [ %18, %.preheader104.lr.ph ]
  %27 = phi i32 [ %32, %.preheader102.lr.phthread-pre-split ], [ %22, %.preheader104.lr.ph ]
  %28 = load i32, ptr @k, align 4, !tbaa !8
  %.not95117 = icmp slt i32 %28, 0
  %.not96113 = icmp slt i32 %26, 0
  %or.cond = select i1 %.not95117, i1 true, i1 %.not96113
  br i1 %or.cond, label %._crit_edge122, label %.preheader102.preheader

.preheader102.preheader:                          ; preds = %.preheader102.lr.ph
  %29 = add nuw i32 %26, 1
  %30 = add nuw i32 %28, 1
  %31 = add nuw i32 %27, 1
  %wide.trip.count174 = zext i32 %31 to i64
  %wide.trip.count169 = zext i32 %30 to i64
  %wide.trip.count = zext i32 %29 to i64
  %min.iters.check = icmp ult i32 %26, 3
  %n.vec = and i64 %wide.trip.count, 4294967292
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br label %.preheader102

._crit_edge.loopexit:                             ; preds = %.lr.ph110
  %.pre = load i32, ptr @n, align 4, !tbaa !8
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader104
  %32 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %24, %.preheader104 ]
  %33 = phi i32 [ %37, %._crit_edge.loopexit ], [ %25, %.preheader104 ]
  %indvars.iv.next161 = add nuw nsw i64 %indvars.iv160, 1
  %34 = sext i32 %32 to i64
  %.not88.not = icmp slt i64 %indvars.iv160, %34
  br i1 %.not88.not, label %.preheader104, label %.preheader103, !llvm.loop !13

.lr.ph110:                                        ; preds = %.preheader104, %.lr.ph110
  %indvars.iv157 = phi i64 [ %indvars.iv.next158, %.lr.ph110 ], [ 1, %.preheader104 ]
  %35 = getelementptr inbounds [110 x [110 x i64]], ptr @p, i64 0, i64 %indvars.iv160, i64 %indvars.iv157
  %36 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %35)
  %indvars.iv.next158 = add nuw nsw i64 %indvars.iv157, 1
  %37 = load i32, ptr @m, align 4, !tbaa !8
  %38 = sext i32 %37 to i64
  %.not97.not = icmp slt i64 %indvars.iv157, %38
  br i1 %.not97.not, label %.lr.ph110, label %._crit_edge.loopexit, !llvm.loop !15

.preheader102:                                    ; preds = %.preheader102.preheader, %._crit_edge119.split
  %indvars.iv171 = phi i64 [ 1, %.preheader102.preheader ], [ %indvars.iv.next172, %._crit_edge119.split ]
  br label %.preheader101

._crit_edge122:                                   ; preds = %._crit_edge119.split, %.preheader102.lr.ph
  store i64 0, ptr @dp, align 16, !tbaa !16
  %39 = load i32, ptr @k, align 4
  %40 = icmp sgt i32 %39, 0
  br i1 %40, label %.preheader100, label %._crit_edge143

.preheader101:                                    ; preds = %.preheader102, %._crit_edge116
  %indvars.iv166 = phi i64 [ 0, %.preheader102 ], [ %indvars.iv.next167, %._crit_edge116 ]
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.body

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader101
  %indvars.iv163.ph = phi i64 [ 0, %.preheader101 ], [ %n.vec, %middle.block ]
  br label %scalar.ph

vector.body:                                      ; preds = %.preheader101, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.preheader101 ]
  %41 = getelementptr inbounds [110 x [110 x [110 x i64]]], ptr @dp, i64 0, i64 %indvars.iv171, i64 %indvars.iv166, i64 %index
  %42 = getelementptr inbounds i8, ptr %41, i64 16
  store <2 x i64> <i64 1152921504606846976, i64 1152921504606846976>, ptr %41, align 16, !tbaa !16
  store <2 x i64> <i64 1152921504606846976, i64 1152921504606846976>, ptr %42, align 16, !tbaa !16
  %index.next = add nuw i64 %index, 4
  %43 = icmp eq i64 %index.next, %n.vec
  br i1 %43, label %middle.block, label %vector.body, !llvm.loop !18

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge116, label %scalar.ph.preheader

._crit_edge119.split:                             ; preds = %._crit_edge116
  %indvars.iv.next172 = add nuw nsw i64 %indvars.iv171, 1
  %exitcond175.not = icmp eq i64 %indvars.iv.next172, %wide.trip.count174
  br i1 %exitcond175.not, label %._crit_edge122, label %.preheader102, !llvm.loop !21

._crit_edge116:                                   ; preds = %scalar.ph, %middle.block
  %indvars.iv.next167 = add nuw nsw i64 %indvars.iv166, 1
  %exitcond170.not = icmp eq i64 %indvars.iv.next167, %wide.trip.count169
  br i1 %exitcond170.not, label %._crit_edge119.split, label %.preheader101, !llvm.loop !22

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv163 = phi i64 [ %indvars.iv.next164, %scalar.ph ], [ %indvars.iv163.ph, %scalar.ph.preheader ]
  %44 = getelementptr inbounds [110 x [110 x [110 x i64]]], ptr @dp, i64 0, i64 %indvars.iv171, i64 %indvars.iv166, i64 %indvars.iv163
  store i64 1152921504606846976, ptr %44, align 8, !tbaa !16
  %indvars.iv.next164 = add nuw nsw i64 %indvars.iv163, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next164, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge116, label %scalar.ph, !llvm.loop !23

.preheader100:                                    ; preds = %._crit_edge122, %._crit_edge140
  %45 = phi i32 [ %51, %._crit_edge140 ], [ %27, %._crit_edge122 ]
  %46 = phi i32 [ %52, %._crit_edge140 ], [ %39, %._crit_edge122 ]
  %indvars.iv193 = phi i64 [ %indvars.iv.next194, %._crit_edge140 ], [ 1, %._crit_edge122 ]
  %47 = icmp sgt i32 %46, 0
  br i1 %47, label %.lr.ph139, label %._crit_edge140

.lr.ph139:                                        ; preds = %.preheader100
  %48 = getelementptr inbounds [110 x i32], ptr @c, i64 0, i64 %indvars.iv193
  %49 = add nsw i64 %indvars.iv193, -1
  br label %54

._crit_edge143.sink.split:                        ; preds = %.preheader103, %0, %.preheader105
  store i64 0, ptr @dp, align 16, !tbaa !16
  br label %._crit_edge143

._crit_edge143:                                   ; preds = %._crit_edge140, %._crit_edge143.sink.split, %._crit_edge122
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  store i64 1152921504606846976, ptr %2, align 8, !tbaa !16
  %50 = load i32, ptr @m, align 4, !tbaa !8
  %.not91144 = icmp slt i32 %50, 1
  br i1 %.not91144, label %._crit_edge148.thread, label %.lr.ph147

._crit_edge140.loopexit:                          ; preds = %.loopexit
  %.pre200 = load i32, ptr @n, align 4, !tbaa !8
  br label %._crit_edge140

._crit_edge140:                                   ; preds = %._crit_edge140.loopexit, %.preheader100
  %51 = phi i32 [ %.pre200, %._crit_edge140.loopexit ], [ %45, %.preheader100 ]
  %52 = phi i32 [ %97, %._crit_edge140.loopexit ], [ %46, %.preheader100 ]
  %indvars.iv.next194 = add nuw nsw i64 %indvars.iv193, 1
  %53 = sext i32 %51 to i64
  %.not90.not = icmp slt i64 %indvars.iv193, %53
  br i1 %.not90.not, label %.preheader100, label %._crit_edge143, !llvm.loop !24

54:                                               ; preds = %.lr.ph139, %.loopexit
  %indvars.iv190 = phi i64 [ 1, %.lr.ph139 ], [ %indvars.iv.next191, %.loopexit ]
  %55 = load i32, ptr %48, align 4, !tbaa !8
  %56 = icmp eq i32 %55, 0
  %57 = load i32, ptr @m, align 4, !tbaa !8
  %.not93134 = icmp slt i32 %57, 1
  br i1 %56, label %.preheader, label %.preheader98

.preheader98:                                     ; preds = %54
  br i1 %.not93134, label %.loopexit, label %.lr.ph128

.preheader:                                       ; preds = %54
  br i1 %.not93134, label %.loopexit, label %.lr.ph136.split.preheader

.lr.ph136.split.preheader:                        ; preds = %.preheader
  %58 = add nsw i64 %indvars.iv190, -1
  br label %.lr.ph136.split

.lr.ph136.split:                                  ; preds = %.lr.ph136.split.preheader, %._crit_edge133
  %59 = phi i32 [ %57, %.lr.ph136.split.preheader ], [ %66, %._crit_edge133 ]
  %indvars.iv182 = phi i64 [ 1, %.lr.ph136.split.preheader ], [ %indvars.iv.next183, %._crit_edge133 ]
  %60 = getelementptr inbounds [110 x [110 x [110 x i64]]], ptr @dp, i64 0, i64 %49, i64 %indvars.iv190, i64 %indvars.iv182
  %61 = load i64, ptr %60, align 8, !tbaa !16
  %62 = getelementptr inbounds [110 x [110 x i64]], ptr @p, i64 0, i64 %indvars.iv193, i64 %indvars.iv182
  %63 = load i64, ptr %62, align 8, !tbaa !16
  %64 = add nsw i64 %63, %61
  %65 = getelementptr inbounds [110 x [110 x [110 x i64]]], ptr @dp, i64 0, i64 %indvars.iv193, i64 %indvars.iv190, i64 %indvars.iv182
  store i64 %64, ptr %65, align 8, !tbaa !16
  %.not94129 = icmp slt i32 %59, 1
  br i1 %.not94129, label %._crit_edge133, label %.lr.ph132

._crit_edge133:                                   ; preds = %78, %.lr.ph136.split
  %66 = phi i32 [ %59, %.lr.ph136.split ], [ %79, %78 ]
  %indvars.iv.next183 = add nuw nsw i64 %indvars.iv182, 1
  %67 = sext i32 %66 to i64
  %.not93.not = icmp slt i64 %indvars.iv182, %67
  br i1 %.not93.not, label %.lr.ph136.split, label %.loopexit, !llvm.loop !25

.lr.ph132:                                        ; preds = %.lr.ph136.split, %78
  %68 = phi i32 [ %79, %78 ], [ %59, %.lr.ph136.split ]
  %69 = phi i32 [ %80, %78 ], [ %59, %.lr.ph136.split ]
  %indvars.iv179 = phi i64 [ %indvars.iv.next180, %78 ], [ 1, %.lr.ph136.split ]
  %70 = icmp eq i64 %indvars.iv179, %indvars.iv182
  br i1 %70, label %78, label %71

71:                                               ; preds = %.lr.ph132
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  %72 = getelementptr inbounds [110 x [110 x [110 x i64]]], ptr @dp, i64 0, i64 %49, i64 %58, i64 %indvars.iv179
  %73 = load i64, ptr %72, align 8, !tbaa !16
  %74 = load i64, ptr %62, align 8, !tbaa !16
  %75 = add nsw i64 %74, %73
  store i64 %75, ptr %1, align 8, !tbaa !16
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %77 = load i64, ptr %76, align 8, !tbaa !16
  store i64 %77, ptr %65, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  %.pre199 = load i32, ptr @m, align 4, !tbaa !8
  br label %78

78:                                               ; preds = %.lr.ph132, %71
  %79 = phi i32 [ %68, %.lr.ph132 ], [ %.pre199, %71 ]
  %80 = phi i32 [ %69, %.lr.ph132 ], [ %.pre199, %71 ]
  %indvars.iv.next180 = add nuw nsw i64 %indvars.iv179, 1
  %81 = sext i32 %80 to i64
  %.not94.not = icmp slt i64 %indvars.iv179, %81
  br i1 %.not94.not, label %.lr.ph132, label %._crit_edge133, !llvm.loop !26

.lr.ph128:                                        ; preds = %.preheader98, %.lr.ph128
  %82 = phi i32 [ %91, %.lr.ph128 ], [ %55, %.preheader98 ]
  %indvars.iv176 = phi i64 [ %indvars.iv.next177, %.lr.ph128 ], [ 1, %.preheader98 ]
  %83 = zext i32 %82 to i64
  %84 = icmp ne i64 %indvars.iv176, %83
  %85 = sext i32 %82 to i64
  %86 = getelementptr inbounds [110 x [110 x [110 x i64]]], ptr @dp, i64 0, i64 %indvars.iv193, i64 %indvars.iv190, i64 %85
  %87 = sext i1 %84 to i64
  %indvars.iv190. = add nsw i64 %indvars.iv190, %87
  %88 = getelementptr inbounds [110 x [110 x [110 x i64]]], ptr @dp, i64 0, i64 %49, i64 %indvars.iv190., i64 %indvars.iv176
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %86, ptr noundef nonnull align 8 dereferenceable(8) %88)
  %90 = load i64, ptr %89, align 8, !tbaa !16
  %91 = load i32, ptr %48, align 4, !tbaa !8
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [110 x [110 x [110 x i64]]], ptr @dp, i64 0, i64 %indvars.iv193, i64 %indvars.iv190, i64 %92
  store i64 %90, ptr %93, align 8, !tbaa !16
  %indvars.iv.next177 = add nuw nsw i64 %indvars.iv176, 1
  %94 = load i32, ptr @m, align 4, !tbaa !8
  %95 = sext i32 %94 to i64
  %.not92.not = icmp slt i64 %indvars.iv176, %95
  br i1 %.not92.not, label %.lr.ph128, label %.loopexit, !llvm.loop !27

.loopexit:                                        ; preds = %.lr.ph128, %._crit_edge133, %.preheader98, %.preheader
  %indvars.iv.next191 = add nuw nsw i64 %indvars.iv190, 1
  %96 = icmp ult i64 %indvars.iv190, %indvars.iv193
  %97 = load i32, ptr @k, align 4
  %98 = sext i32 %97 to i64
  %99 = icmp slt i64 %indvars.iv190, %98
  %100 = select i1 %96, i1 %99, i1 false
  br i1 %100, label %54, label %._crit_edge140.loopexit, !llvm.loop !28

._crit_edge148:                                   ; preds = %.lr.ph147
  %101 = icmp eq i64 %108, 1152921504606846976
  br i1 %101, label %._crit_edge148.thread, label %111

.lr.ph147:                                        ; preds = %._crit_edge143, %.lr.ph147
  %indvars.iv196 = phi i64 [ %indvars.iv.next197, %.lr.ph147 ], [ 1, %._crit_edge143 ]
  %102 = load i32, ptr @n, align 4, !tbaa !8
  %103 = sext i32 %102 to i64
  %104 = load i32, ptr @k, align 4, !tbaa !8
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [110 x [110 x [110 x i64]]], ptr @dp, i64 0, i64 %103, i64 %105, i64 %indvars.iv196
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %106)
  %108 = load i64, ptr %107, align 8, !tbaa !16
  store i64 %108, ptr %2, align 8, !tbaa !16
  %indvars.iv.next197 = add nuw nsw i64 %indvars.iv196, 1
  %109 = load i32, ptr @m, align 4, !tbaa !8
  %110 = sext i32 %109 to i64
  %.not91.not = icmp slt i64 %indvars.iv196, %110
  br i1 %.not91.not, label %.lr.ph147, label %._crit_edge148, !llvm.loop !29

._crit_edge148.thread:                            ; preds = %._crit_edge143, %._crit_edge148
  store i64 -1, ptr %2, align 8, !tbaa !16
  br label %111

111:                                              ; preds = %._crit_edge148.thread, %._crit_edge148
  %112 = phi i64 [ -1, %._crit_edge148.thread ], [ %108, %._crit_edge148 ]
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %112)
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %113, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  ret i32 0
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) local_unnamed_addr #4 align 2

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 #3

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

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

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

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

; 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 #0 align 2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { 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 #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 = { 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12, !14}
!14 = !{!"llvm.loop.unswitch.partial.disable"}
!15 = distinct !{!15, !12}
!16 = !{!17, !17, i64 0}
!17 = !{!"long long", !10, i64 0}
!18 = distinct !{!18, !12, !19, !20}
!19 = !{!"llvm.loop.isvectorized", i32 1}
!20 = !{!"llvm.loop.unroll.runtime.disable"}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12, !20, !19}
!24 = distinct !{!24, !12, !14}
!25 = distinct !{!25, !12, !14}
!26 = distinct !{!26, !12}
!27 = distinct !{!27, !12}
!28 = distinct !{!28, !12}
!29 = distinct !{!29, !12}


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