; LLVM IR from upupming/algorithm :: acwing/算法竞赛进阶指南/0x51-线性DP/274. 移动服务 (main)

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

@c = external dso_local global [210 x [210 x i32]], align 16
@p = external dso_local global [1010 x i32], align 16
@n = external dso_local global i32, align 4
@l = external dso_local global i32, align 4
@f = external dso_local global [1010 x [210 x [210 x i32]]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.memset.p0.i64(ptr align 16 @f, i8 63, i64 178164000, i1 false)
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @l)
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(4) @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %40, %0
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = load i32, ptr @l, align 4, !tbaa !5
  %20 = icmp sle i32 %18, %19
  br i1 %20, label %22, label %21

21:                                               ; preds = %17
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %43

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

23:                                               ; preds = %36, %22
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = load i32, ptr @l, align 4, !tbaa !5
  %26 = icmp sle i32 %24, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %23
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %39

28:                                               ; preds = %23
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [210 x [210 x i32]], ptr @c, i64 0, i64 %30
  %32 = load i32, ptr %4, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [210 x i32], ptr %31, i64 0, i64 %33
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %34)
  br label %36

36:                                               ; preds = %28
  %37 = load i32, ptr %4, align 4, !tbaa !5
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %4, align 4, !tbaa !5
  br label %23, !llvm.loop !9

39:                                               ; preds = %27
  br label %40

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

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

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

48:                                               ; preds = %44
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  br label %57

49:                                               ; preds = %44
  %50 = load i32, ptr %5, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [1010 x i32], ptr @p, i64 0, i64 %51
  %53 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %52)
  br label %54

54:                                               ; preds = %49
  %55 = load i32, ptr %5, align 4, !tbaa !5
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %5, align 4, !tbaa !5
  br label %44, !llvm.loop !12

57:                                               ; preds = %48
  store i32 3, ptr @p, align 16, !tbaa !5
  store i32 0, ptr getelementptr inbounds ([210 x i32], ptr getelementptr inbounds ([210 x [210 x i32]], ptr @f, i64 0, i64 1), i64 0, i64 2), align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %264, %57
  %59 = load i32, ptr %6, align 4, !tbaa !5
  %60 = load i32, ptr @n, align 4, !tbaa !5
  %61 = icmp sle i32 %59, %60
  br i1 %61, label %63, label %62

62:                                               ; preds = %58
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %267

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

64:                                               ; preds = %260, %63
  %65 = load i32, ptr %7, align 4, !tbaa !5
  %66 = load i32, ptr @l, align 4, !tbaa !5
  %67 = icmp sle i32 %65, %66
  br i1 %67, label %69, label %68

68:                                               ; preds = %64
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %263

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

70:                                               ; preds = %256, %69
  %71 = load i32, ptr %8, align 4, !tbaa !5
  %72 = load i32, ptr @l, align 4, !tbaa !5
  %73 = icmp sle i32 %71, %72
  br i1 %73, label %75, label %74

74:                                               ; preds = %70
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %259

75:                                               ; preds = %70
  %76 = load i32, ptr %6, align 4, !tbaa !5
  %77 = load i32, ptr %7, align 4, !tbaa !5
  %78 = load i32, ptr %8, align 4, !tbaa !5
  %79 = call noundef zeroext i1 @_Z2okiii(i32 noundef %76, i32 noundef %77, i32 noundef %78)
  br i1 %79, label %81, label %80

80:                                               ; preds = %75
  br label %256

81:                                               ; preds = %75
  %82 = load i32, ptr %6, align 4, !tbaa !5
  %83 = add nsw i32 %82, 1
  %84 = load i32, ptr %7, align 4, !tbaa !5
  %85 = load i32, ptr %8, align 4, !tbaa !5
  %86 = call noundef zeroext i1 @_Z2okiii(i32 noundef %83, i32 noundef %84, i32 noundef %85)
  br i1 %86, label %87, label %135

87:                                               ; preds = %81
  %88 = load i32, ptr %6, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [1010 x [210 x [210 x i32]]], ptr @f, i64 0, i64 %90
  %92 = load i32, ptr %7, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [210 x [210 x i32]], ptr %91, i64 0, i64 %93
  %95 = load i32, ptr %8, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [210 x i32], ptr %94, i64 0, i64 %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %98 = load i32, ptr %6, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [1010 x [210 x [210 x i32]]], ptr @f, i64 0, i64 %99
  %101 = load i32, ptr %7, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [210 x [210 x i32]], ptr %100, i64 0, i64 %102
  %104 = load i32, ptr %8, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [210 x i32], ptr %103, i64 0, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = load i32, ptr %6, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [1010 x i32], ptr @p, i64 0, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [210 x [210 x i32]], ptr @c, i64 0, i64 %112
  %114 = load i32, ptr %6, align 4, !tbaa !5
  %115 = add nsw i32 %114, 1
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [1010 x i32], ptr @p, i64 0, i64 %116
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [210 x i32], ptr %113, i64 0, i64 %119
  %121 = load i32, ptr %120, align 4, !tbaa !5
  %122 = add nsw i32 %107, %121
  store i32 %122, ptr %9, align 4, !tbaa !5
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %97, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = load i32, ptr %6, align 4, !tbaa !5
  %126 = add nsw i32 %125, 1
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [1010 x [210 x [210 x i32]]], ptr @f, i64 0, i64 %127
  %129 = load i32, ptr %7, align 4, !tbaa !5
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [210 x [210 x i32]], ptr %128, i64 0, i64 %130
  %132 = load i32, ptr %8, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [210 x i32], ptr %131, i64 0, i64 %133
  store i32 %124, ptr %134, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %135

135:                                              ; preds = %87, %81
  %136 = load i32, ptr %6, align 4, !tbaa !5
  %137 = add nsw i32 %136, 1
  %138 = load i32, ptr %6, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [1010 x i32], ptr @p, i64 0, i64 %139
  %141 = load i32, ptr %140, align 4, !tbaa !5
  %142 = load i32, ptr %8, align 4, !tbaa !5
  %143 = call noundef zeroext i1 @_Z2okiii(i32 noundef %137, i32 noundef %141, i32 noundef %142)
  br i1 %143, label %144, label %195

144:                                              ; preds = %135
  %145 = load i32, ptr %6, align 4, !tbaa !5
  %146 = add nsw i32 %145, 1
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [1010 x [210 x [210 x i32]]], ptr @f, i64 0, i64 %147
  %149 = load i32, ptr %6, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [1010 x i32], ptr @p, i64 0, i64 %150
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [210 x [210 x i32]], ptr %148, i64 0, i64 %153
  %155 = load i32, ptr %8, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [210 x i32], ptr %154, i64 0, i64 %156
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %158 = load i32, ptr %6, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [1010 x [210 x [210 x i32]]], ptr @f, i64 0, i64 %159
  %161 = load i32, ptr %7, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [210 x [210 x i32]], ptr %160, i64 0, i64 %162
  %164 = load i32, ptr %8, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [210 x i32], ptr %163, i64 0, i64 %165
  %167 = load i32, ptr %166, align 4, !tbaa !5
  %168 = load i32, ptr %7, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [210 x [210 x i32]], ptr @c, i64 0, i64 %169
  %171 = load i32, ptr %6, align 4, !tbaa !5
  %172 = add nsw i32 %171, 1
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [1010 x i32], ptr @p, i64 0, i64 %173
  %175 = load i32, ptr %174, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [210 x i32], ptr %170, i64 0, i64 %176
  %178 = load i32, ptr %177, align 4, !tbaa !5
  %179 = add nsw i32 %167, %178
  store i32 %179, ptr %10, align 4, !tbaa !5
  %180 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %157, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %181 = load i32, ptr %180, align 4, !tbaa !5
  %182 = load i32, ptr %6, align 4, !tbaa !5
  %183 = add nsw i32 %182, 1
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [1010 x [210 x [210 x i32]]], ptr @f, i64 0, i64 %184
  %186 = load i32, ptr %6, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [1010 x i32], ptr @p, i64 0, i64 %187
  %189 = load i32, ptr %188, align 4, !tbaa !5
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [210 x [210 x i32]], ptr %185, i64 0, i64 %190
  %192 = load i32, ptr %8, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [210 x i32], ptr %191, i64 0, i64 %193
  store i32 %181, ptr %194, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %195

195:                                              ; preds = %144, %135
  %196 = load i32, ptr %6, align 4, !tbaa !5
  %197 = add nsw i32 %196, 1
  %198 = load i32, ptr %7, align 4, !tbaa !5
  %199 = load i32, ptr %6, align 4, !tbaa !5
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [1010 x i32], ptr @p, i64 0, i64 %200
  %202 = load i32, ptr %201, align 4, !tbaa !5
  %203 = call noundef zeroext i1 @_Z2okiii(i32 noundef %197, i32 noundef %198, i32 noundef %202)
  br i1 %203, label %204, label %255

204:                                              ; preds = %195
  %205 = load i32, ptr %6, align 4, !tbaa !5
  %206 = add nsw i32 %205, 1
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [1010 x [210 x [210 x i32]]], ptr @f, i64 0, i64 %207
  %209 = load i32, ptr %7, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [210 x [210 x i32]], ptr %208, i64 0, i64 %210
  %212 = load i32, ptr %6, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [1010 x i32], ptr @p, i64 0, i64 %213
  %215 = load i32, ptr %214, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [210 x i32], ptr %211, i64 0, i64 %216
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %218 = load i32, ptr %6, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [1010 x [210 x [210 x i32]]], ptr @f, i64 0, i64 %219
  %221 = load i32, ptr %7, align 4, !tbaa !5
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [210 x [210 x i32]], ptr %220, i64 0, i64 %222
  %224 = load i32, ptr %8, align 4, !tbaa !5
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [210 x i32], ptr %223, i64 0, i64 %225
  %227 = load i32, ptr %226, align 4, !tbaa !5
  %228 = load i32, ptr %8, align 4, !tbaa !5
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [210 x [210 x i32]], ptr @c, i64 0, i64 %229
  %231 = load i32, ptr %6, align 4, !tbaa !5
  %232 = add nsw i32 %231, 1
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [1010 x i32], ptr @p, i64 0, i64 %233
  %235 = load i32, ptr %234, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [210 x i32], ptr %230, i64 0, i64 %236
  %238 = load i32, ptr %237, align 4, !tbaa !5
  %239 = add nsw i32 %227, %238
  store i32 %239, ptr %11, align 4, !tbaa !5
  %240 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %217, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %241 = load i32, ptr %240, align 4, !tbaa !5
  %242 = load i32, ptr %6, align 4, !tbaa !5
  %243 = add nsw i32 %242, 1
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [1010 x [210 x [210 x i32]]], ptr @f, i64 0, i64 %244
  %246 = load i32, ptr %7, align 4, !tbaa !5
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [210 x [210 x i32]], ptr %245, i64 0, i64 %247
  %249 = load i32, ptr %6, align 4, !tbaa !5
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [1010 x i32], ptr @p, i64 0, i64 %250
  %252 = load i32, ptr %251, align 4, !tbaa !5
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [210 x i32], ptr %248, i64 0, i64 %253
  store i32 %241, ptr %254, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %255

255:                                              ; preds = %204, %195
  br label %256

256:                                              ; preds = %255, %80
  %257 = load i32, ptr %8, align 4, !tbaa !5
  %258 = add nsw i32 %257, 1
  store i32 %258, ptr %8, align 4, !tbaa !5
  br label %70, !llvm.loop !13

259:                                              ; preds = %74
  br label %260

260:                                              ; preds = %259
  %261 = load i32, ptr %7, align 4, !tbaa !5
  %262 = add nsw i32 %261, 1
  store i32 %262, ptr %7, align 4, !tbaa !5
  br label %64, !llvm.loop !14

263:                                              ; preds = %68
  br label %264

264:                                              ; preds = %263
  %265 = load i32, ptr %6, align 4, !tbaa !5
  %266 = add nsw i32 %265, 1
  store i32 %266, ptr %6, align 4, !tbaa !5
  br label %58, !llvm.loop !15

267:                                              ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 1061109567, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 1, ptr %13, align 4, !tbaa !5
  br label %268

268:                                              ; preds = %295, %267
  %269 = load i32, ptr %13, align 4, !tbaa !5
  %270 = load i32, ptr @l, align 4, !tbaa !5
  %271 = icmp sle i32 %269, %270
  br i1 %271, label %273, label %272

272:                                              ; preds = %268
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %298

273:                                              ; preds = %268
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %274

274:                                              ; preds = %291, %273
  %275 = load i32, ptr %14, align 4, !tbaa !5
  %276 = load i32, ptr @l, align 4, !tbaa !5
  %277 = icmp sle i32 %275, %276
  br i1 %277, label %279, label %278

278:                                              ; preds = %274
  store i32 23, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %294

279:                                              ; preds = %274
  %280 = load i32, ptr @n, align 4, !tbaa !5
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds [1010 x [210 x [210 x i32]]], ptr @f, i64 0, i64 %281
  %283 = load i32, ptr %13, align 4, !tbaa !5
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds [210 x [210 x i32]], ptr %282, i64 0, i64 %284
  %286 = load i32, ptr %14, align 4, !tbaa !5
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds [210 x i32], ptr %285, i64 0, i64 %287
  %289 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %288)
  %290 = load i32, ptr %289, align 4, !tbaa !5
  store i32 %290, ptr %12, align 4, !tbaa !5
  br label %291

291:                                              ; preds = %279
  %292 = load i32, ptr %14, align 4, !tbaa !5
  %293 = add nsw i32 %292, 1
  store i32 %293, ptr %14, align 4, !tbaa !5
  br label %274, !llvm.loop !16

294:                                              ; preds = %278
  br label %295

295:                                              ; preds = %294
  %296 = load i32, ptr %13, align 4, !tbaa !5
  %297 = add nsw i32 %296, 1
  store i32 %297, ptr %13, align 4, !tbaa !5
  br label %268, !llvm.loop !17

298:                                              ; preds = %272
  %299 = load i32, ptr %12, align 4, !tbaa !5
  %300 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %299)
  %301 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %300, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  %302 = load i32, ptr %1, align 4
  ret i32 %302
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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) #4

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !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" }

@c = external dso_local global [210 x [210 x i32]], align 16
@p = external dso_local global [1010 x i32], align 16
@n = external dso_local global i32, align 4
@l = external dso_local global i32, align 4
@f = external dso_local global [1010 x [210 x [210 x i32]]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(178164000) @f, i8 63, i64 178164000, i1 false)
  %5 = 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) @l)
  %6 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %7 = load i32, ptr @l, align 4, !tbaa !5
  %.not87 = icmp slt i32 %7, 1
  br i1 %.not87, label %.preheader83, label %.preheader84

.preheader84:                                     ; preds = %0, %._crit_edge
  %8 = phi i32 [ %10, %._crit_edge ], [ %7, %0 ]
  %indvars.iv116 = phi i64 [ %indvars.iv.next117, %._crit_edge ], [ 1, %0 ]
  %.not8085 = icmp slt i32 %8, 1
  br i1 %.not8085, label %.preheader84.._crit_edge_crit_edge, label %.lr.ph

.preheader84.._crit_edge_crit_edge:               ; preds = %.preheader84
  %.pre145 = sext i32 %8 to i64
  br label %._crit_edge

.preheader83:                                     ; preds = %._crit_edge, %0
  %.pre138140 = phi i32 [ %7, %0 ], [ %10, %._crit_edge ]
  %9 = load i32, ptr @n, align 4, !tbaa !5
  %.not7489 = icmp slt i32 %9, 1
  br i1 %.not7489, label %._crit_edge92, label %.lr.ph91

._crit_edge:                                      ; preds = %.lr.ph, %.preheader84.._crit_edge_crit_edge
  %.pre-phi146 = phi i64 [ %.pre145, %.preheader84.._crit_edge_crit_edge ], [ %14, %.lr.ph ]
  %10 = phi i32 [ %8, %.preheader84.._crit_edge_crit_edge ], [ %13, %.lr.ph ]
  %indvars.iv.next117 = add nuw nsw i64 %indvars.iv116, 1
  %.not.not = icmp slt i64 %indvars.iv116, %.pre-phi146
  br i1 %.not.not, label %.preheader84, label %.preheader83, !llvm.loop !9

.lr.ph:                                           ; preds = %.preheader84, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %.preheader84 ]
  %11 = getelementptr inbounds [210 x [210 x i32]], ptr @c, i64 0, i64 %indvars.iv116, i64 %indvars.iv
  %12 = 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) %11)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %13 = load i32, ptr @l, align 4, !tbaa !5
  %14 = sext i32 %13 to i64
  %.not80.not = icmp slt i64 %indvars.iv, %14
  br i1 %.not80.not, label %.lr.ph, label %._crit_edge, !llvm.loop !12

._crit_edge92.loopexit:                           ; preds = %.lr.ph91
  %.pre138.pre = load i32, ptr @l, align 4, !tbaa !5
  br label %._crit_edge92

._crit_edge92:                                    ; preds = %._crit_edge92.loopexit, %.preheader83
  %.pre138 = phi i32 [ %.pre138.pre, %._crit_edge92.loopexit ], [ %.pre138140, %.preheader83 ]
  %15 = phi i32 [ %19, %._crit_edge92.loopexit ], [ %9, %.preheader83 ]
  store i32 3, ptr @p, align 16, !tbaa !5
  store i32 0, ptr getelementptr inbounds (i8, ptr @f, i64 848), align 16, !tbaa !5
  %.not75100 = icmp slt i32 %15, 0
  br i1 %.not75100, label %._crit_edge103, label %.preheader82.lr.ph

.preheader82.lr.ph:                               ; preds = %._crit_edge92
  %16 = icmp slt i32 %.pre138, 1
  br i1 %16, label %._crit_edge103.thread, label %.preheader82

._crit_edge103.thread:                            ; preds = %.preheader82.lr.ph
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  store i32 1061109567, ptr %4, align 4, !tbaa !5
  br label %._crit_edge110

.lr.ph91:                                         ; preds = %.preheader83, %.lr.ph91
  %indvars.iv119 = phi i64 [ %indvars.iv.next120, %.lr.ph91 ], [ 1, %.preheader83 ]
  %17 = getelementptr inbounds [1010 x i32], ptr @p, i64 0, i64 %indvars.iv119
  %18 = 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) %17)
  %indvars.iv.next120 = add nuw nsw i64 %indvars.iv119, 1
  %19 = load i32, ptr @n, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %.not74.not = icmp slt i64 %indvars.iv119, %20
  br i1 %.not74.not, label %.lr.ph91, label %._crit_edge92.loopexit, !llvm.loop !13

.preheader82:                                     ; preds = %.preheader82.lr.ph, %._crit_edge99
  %21 = phi i32 [ %34, %._crit_edge99 ], [ %15, %.preheader82.lr.ph ]
  %22 = phi i32 [ %35, %._crit_edge99 ], [ %.pre138, %.preheader82.lr.ph ]
  %23 = phi i32 [ %36, %._crit_edge99 ], [ %.pre138, %.preheader82.lr.ph ]
  %24 = phi i32 [ %37, %._crit_edge99 ], [ %.pre138, %.preheader82.lr.ph ]
  %indvars.iv128 = phi i64 [ %.pre142, %._crit_edge99 ], [ 0, %.preheader82.lr.ph ]
  %.not7897 = icmp slt i32 %24, 1
  %.pre142 = add nuw nsw i64 %indvars.iv128, 1
  br i1 %.not7897, label %._crit_edge99, label %.preheader81.lr.ph

.preheader81.lr.ph:                               ; preds = %.preheader82
  %25 = getelementptr inbounds [1010 x i32], ptr @p, i64 0, i64 %indvars.iv128
  %26 = getelementptr inbounds [1010 x i32], ptr @p, i64 0, i64 %.pre142
  %27 = icmp slt i32 %23, 1
  br i1 %27, label %._crit_edge99, label %.preheader81.preheader

.preheader81.preheader:                           ; preds = %.preheader81.lr.ph
  %28 = trunc nuw nsw i64 %indvars.iv128 to i32
  %29 = trunc nuw i64 %.pre142 to i32
  br label %.preheader81

._crit_edge103:                                   ; preds = %._crit_edge99, %._crit_edge92
  %30 = phi i32 [ %.pre138, %._crit_edge92 ], [ %35, %._crit_edge99 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  store i32 1061109567, ptr %4, align 4, !tbaa !5
  %.not76108 = icmp slt i32 %30, 1
  br i1 %.not76108, label %._crit_edge110, label %.preheader

.preheader81:                                     ; preds = %.preheader81.preheader, %._crit_edge96
  %31 = phi i32 [ %22, %.preheader81.preheader ], [ %39, %._crit_edge96 ]
  %32 = phi i32 [ %23, %.preheader81.preheader ], [ %39, %._crit_edge96 ]
  %indvars.iv125 = phi i64 [ 1, %.preheader81.preheader ], [ %indvars.iv.next126, %._crit_edge96 ]
  %.not7993 = icmp slt i32 %32, 1
  br i1 %.not7993, label %.preheader81.._crit_edge96_crit_edge, label %.lr.ph95

.preheader81.._crit_edge96_crit_edge:             ; preds = %.preheader81
  %.pre143 = sext i32 %31 to i64
  br label %._crit_edge96

.lr.ph95:                                         ; preds = %.preheader81
  %33 = trunc nuw nsw i64 %indvars.iv125 to i32
  br label %40

._crit_edge99.loopexit112:                        ; preds = %._crit_edge96
  %.pre137 = load i32, ptr @n, align 4, !tbaa !5
  br label %._crit_edge99

._crit_edge99:                                    ; preds = %.preheader82, %.preheader81.lr.ph, %._crit_edge99.loopexit112
  %34 = phi i32 [ %.pre137, %._crit_edge99.loopexit112 ], [ %21, %.preheader81.lr.ph ], [ %21, %.preheader82 ]
  %35 = phi i32 [ %39, %._crit_edge99.loopexit112 ], [ %22, %.preheader81.lr.ph ], [ %22, %.preheader82 ]
  %36 = phi i32 [ %39, %._crit_edge99.loopexit112 ], [ %23, %.preheader81.lr.ph ], [ %23, %.preheader82 ]
  %37 = phi i32 [ %39, %._crit_edge99.loopexit112 ], [ %23, %.preheader81.lr.ph ], [ %24, %.preheader82 ]
  %38 = sext i32 %34 to i64
  %.not75.not = icmp slt i64 %indvars.iv128, %38
  br i1 %.not75.not, label %.preheader82, label %._crit_edge103, !llvm.loop !14

._crit_edge96:                                    ; preds = %95, %.preheader81.._crit_edge96_crit_edge
  %.pre-phi144 = phi i64 [ %.pre143, %.preheader81.._crit_edge96_crit_edge ], [ %97, %95 ]
  %39 = phi i32 [ %31, %.preheader81.._crit_edge96_crit_edge ], [ %96, %95 ]
  %indvars.iv.next126 = add nuw nsw i64 %indvars.iv125, 1
  %.not78.not = icmp slt i64 %indvars.iv125, %.pre-phi144
  br i1 %.not78.not, label %.preheader81, label %._crit_edge99.loopexit112, !llvm.loop !15

40:                                               ; preds = %.lr.ph95, %95
  %indvars.iv122 = phi i64 [ 1, %.lr.ph95 ], [ %indvars.iv.next123, %95 ]
  %41 = trunc nuw nsw i64 %indvars.iv122 to i32
  %42 = call noundef zeroext i1 @_Z2okiii(i32 noundef %28, i32 noundef %33, i32 noundef %41)
  br i1 %42, label %43, label %95

43:                                               ; preds = %40
  %44 = call noundef zeroext i1 @_Z2okiii(i32 noundef %29, i32 noundef %33, i32 noundef %41)
  br i1 %44, label %45, label %58

45:                                               ; preds = %43
  %46 = getelementptr inbounds [1010 x [210 x [210 x i32]]], ptr @f, i64 0, i64 %.pre142, i64 %indvars.iv125, i64 %indvars.iv122
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  %47 = getelementptr inbounds [1010 x [210 x [210 x i32]]], ptr @f, i64 0, i64 %indvars.iv128, i64 %indvars.iv125, i64 %indvars.iv122
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = load i32, ptr %25, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = load i32, ptr %26, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [210 x [210 x i32]], ptr @c, i64 0, i64 %50, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = add nsw i32 %54, %48
  store i32 %55, ptr %1, align 4, !tbaa !5
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %46, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %57 = load i32, ptr %56, align 4, !tbaa !5
  store i32 %57, ptr %46, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  br label %58

58:                                               ; preds = %45, %43
  %59 = load i32, ptr %25, align 4, !tbaa !5
  %60 = call noundef zeroext i1 @_Z2okiii(i32 noundef %29, i32 noundef %59, i32 noundef %41)
  %.pre = load i32, ptr %25, align 4, !tbaa !5
  br i1 %60, label %61, label %76

61:                                               ; preds = %58
  %62 = sext i32 %.pre to i64
  %63 = getelementptr inbounds [1010 x [210 x [210 x i32]]], ptr @f, i64 0, i64 %.pre142, i64 %62, i64 %indvars.iv122
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  %64 = getelementptr inbounds [1010 x [210 x [210 x i32]]], ptr @f, i64 0, i64 %indvars.iv128, i64 %indvars.iv125, i64 %indvars.iv122
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = load i32, ptr %26, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [210 x [210 x i32]], ptr @c, i64 0, i64 %indvars.iv125, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = add nsw i32 %69, %65
  store i32 %70, ptr %2, align 4, !tbaa !5
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %63, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = load i32, ptr %25, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [1010 x [210 x [210 x i32]]], ptr @f, i64 0, i64 %.pre142, i64 %74, i64 %indvars.iv122
  store i32 %72, ptr %75, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  br label %76

76:                                               ; preds = %61, %58
  %77 = phi i32 [ %73, %61 ], [ %.pre, %58 ]
  %78 = call noundef zeroext i1 @_Z2okiii(i32 noundef %29, i32 noundef %33, i32 noundef %77)
  br i1 %78, label %79, label %95

79:                                               ; preds = %76
  %80 = load i32, ptr %25, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [1010 x [210 x [210 x i32]]], ptr @f, i64 0, i64 %.pre142, i64 %indvars.iv125, i64 %81
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  %83 = getelementptr inbounds [1010 x [210 x [210 x i32]]], ptr @f, i64 0, i64 %indvars.iv128, i64 %indvars.iv125, i64 %indvars.iv122
  %84 = load i32, ptr %83, align 4, !tbaa !5
  %85 = load i32, ptr %26, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [210 x [210 x i32]], ptr @c, i64 0, i64 %indvars.iv122, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = add nsw i32 %88, %84
  store i32 %89, ptr %3, align 4, !tbaa !5
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %82, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = load i32, ptr %25, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [1010 x [210 x [210 x i32]]], ptr @f, i64 0, i64 %.pre142, i64 %indvars.iv125, i64 %93
  store i32 %91, ptr %94, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  br label %95

95:                                               ; preds = %76, %79, %40
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %96 = load i32, ptr @l, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %.not79.not = icmp slt i64 %indvars.iv122, %97
  br i1 %.not79.not, label %40, label %._crit_edge96, !llvm.loop !16

.preheader:                                       ; preds = %._crit_edge103, %._crit_edge107
  %98 = phi i32 [ %103, %._crit_edge107 ], [ 1061109567, %._crit_edge103 ]
  %99 = phi i32 [ %104, %._crit_edge107 ], [ %30, %._crit_edge103 ]
  %indvars.iv134 = phi i64 [ %indvars.iv.next135, %._crit_edge107 ], [ 1, %._crit_edge103 ]
  %.not77104 = icmp slt i32 %99, 1
  br i1 %.not77104, label %.preheader.._crit_edge107_crit_edge, label %.lr.ph106

.preheader.._crit_edge107_crit_edge:              ; preds = %.preheader
  %.pre141 = sext i32 %99 to i64
  br label %._crit_edge107

._crit_edge110:                                   ; preds = %._crit_edge107, %._crit_edge103.thread, %._crit_edge103
  %100 = phi i32 [ 1061109567, %._crit_edge103 ], [ 1061109567, %._crit_edge103.thread ], [ %103, %._crit_edge107 ]
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %100)
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %101, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  ret i32 0

._crit_edge107:                                   ; preds = %.lr.ph106, %.preheader.._crit_edge107_crit_edge
  %.pre-phi = phi i64 [ %.pre141, %.preheader.._crit_edge107_crit_edge ], [ %111, %.lr.ph106 ]
  %103 = phi i32 [ %98, %.preheader.._crit_edge107_crit_edge ], [ %109, %.lr.ph106 ]
  %104 = phi i32 [ %99, %.preheader.._crit_edge107_crit_edge ], [ %110, %.lr.ph106 ]
  %indvars.iv.next135 = add nuw nsw i64 %indvars.iv134, 1
  %.not76.not = icmp slt i64 %indvars.iv134, %.pre-phi
  br i1 %.not76.not, label %.preheader, label %._crit_edge110, !llvm.loop !17

.lr.ph106:                                        ; preds = %.preheader, %.lr.ph106
  %indvars.iv131 = phi i64 [ %indvars.iv.next132, %.lr.ph106 ], [ 1, %.preheader ]
  %105 = load i32, ptr @n, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [1010 x [210 x [210 x i32]]], ptr @f, i64 0, i64 %106, i64 %indvars.iv134, i64 %indvars.iv131
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %107)
  %109 = load i32, ptr %108, align 4, !tbaa !5
  store i32 %109, ptr %4, align 4, !tbaa !5
  %indvars.iv.next132 = add nuw nsw i64 %indvars.iv131, 1
  %110 = load i32, ptr @l, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %.not77.not = icmp slt i64 %indvars.iv131, %111
  br i1 %.not77.not, label %.lr.ph106, label %._crit_edge107, !llvm.loop !18
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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) #4

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.unswitch.partial.disable"}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10, !11}
!15 = distinct !{!15, !10, !11}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10, !11}
!18 = distinct !{!18, !10}


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