; LLVM IR from bqi343/cp-notebook :: Contests/USACO Solutions/2017-18/Feb 2018/Gold (taming)

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

@n = external dso_local global i32, align 4
@a = external dso_local global [100 x i32], align 16
@dp = external dso_local global [100 x [101 x [100 x i32]]], align 16
@ans = external dso_local global [101 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

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

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

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

22:                                               ; preds = %17
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [100 x i32], ptr @a, i64 0, i64 %24
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %25)
  br label %27

27:                                               ; preds = %22
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = add nsw i32 %28, 1
  store i32 %29, ptr %2, align 4, !tbaa !5
  br label %17, !llvm.loop !9

30:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %31

31:                                               ; preds = %67, %30
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = load i32, ptr @n, align 4, !tbaa !5
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %31
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %70

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

37:                                               ; preds = %63, %36
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %39 = load i32, ptr @n, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  %41 = icmp slt i32 %38, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %37
  store i32 8, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %66

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

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

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

49:                                               ; preds = %44
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [100 x [101 x [100 x i32]]], ptr @dp, i64 0, i64 %51
  %53 = load i32, ptr %5, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [101 x [100 x i32]], ptr %52, i64 0, i64 %54
  %56 = load i32, ptr %6, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [100 x i32], ptr %55, i64 0, i64 %57
  store i32 1000000007, ptr %58, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %49
  %60 = load i32, ptr %6, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %6, align 4, !tbaa !5
  br label %44, !llvm.loop !11

62:                                               ; preds = %48
  br label %63

63:                                               ; preds = %62
  %64 = load i32, ptr %5, align 4, !tbaa !5
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %5, align 4, !tbaa !5
  br label %37, !llvm.loop !12

66:                                               ; preds = %42
  br label %67

67:                                               ; preds = %66
  %68 = load i32, ptr %3, align 4, !tbaa !5
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %3, align 4, !tbaa !5
  br label %31, !llvm.loop !13

70:                                               ; preds = %35
  %71 = load i32, ptr @a, align 16, !tbaa !5
  %72 = icmp ne i32 %71, 0
  %73 = zext i1 %72 to i32
  store i32 %73, ptr getelementptr inbounds ([101 x [100 x i32]], ptr @dp, i64 0, i64 1), align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %203, %70
  %75 = load i32, ptr %7, align 4, !tbaa !5
  %76 = load i32, ptr @n, align 4, !tbaa !5
  %77 = sub nsw i32 %76, 1
  %78 = icmp slt i32 %75, %77
  br i1 %78, label %80, label %79

79:                                               ; preds = %74
  store i32 14, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %206

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

81:                                               ; preds = %199, %80
  %82 = load i32, ptr %8, align 4, !tbaa !5
  %83 = load i32, ptr @n, align 4, !tbaa !5
  %84 = add nsw i32 %83, 1
  %85 = icmp slt i32 %82, %84
  br i1 %85, label %87, label %86

86:                                               ; preds = %81
  store i32 17, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %202

87:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %88

88:                                               ; preds = %195, %87
  %89 = load i32, ptr %9, align 4, !tbaa !5
  %90 = load i32, ptr @n, align 4, !tbaa !5
  %91 = icmp slt i32 %89, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %88
  store i32 20, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %198

93:                                               ; preds = %88
  %94 = load i32, ptr %7, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [100 x [101 x [100 x i32]]], ptr @dp, i64 0, i64 %95
  %97 = load i32, ptr %8, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [101 x [100 x i32]], ptr %96, i64 0, i64 %98
  %100 = load i32, ptr %9, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [100 x i32], ptr %99, i64 0, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = icmp ne i32 %103, 1000000007
  br i1 %104, label %105, label %194

105:                                              ; preds = %93
  %106 = load i32, ptr %7, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [100 x [101 x [100 x i32]]], ptr @dp, i64 0, i64 %108
  %110 = load i32, ptr %8, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [101 x [100 x i32]], ptr %109, i64 0, i64 %111
  %113 = load i32, ptr %9, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [100 x i32], ptr %112, i64 0, i64 %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %116 = load i32, ptr %7, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [100 x [101 x [100 x i32]]], ptr @dp, i64 0, i64 %117
  %119 = load i32, ptr %8, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [101 x [100 x i32]], ptr %118, i64 0, i64 %120
  %122 = load i32, ptr %9, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [100 x i32], ptr %121, i64 0, i64 %123
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = load i32, ptr %7, align 4, !tbaa !5
  %127 = add nsw i32 %126, 1
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [100 x i32], ptr @a, i64 0, i64 %128
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = load i32, ptr %7, align 4, !tbaa !5
  %132 = add nsw i32 %131, 1
  %133 = load i32, ptr %9, align 4, !tbaa !5
  %134 = sub nsw i32 %132, %133
  %135 = icmp ne i32 %130, %134
  %136 = zext i1 %135 to i32
  %137 = add nsw i32 %125, %136
  store i32 %137, ptr %10, align 4, !tbaa !5
  %138 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %115, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = load i32, ptr %7, align 4, !tbaa !5
  %141 = add nsw i32 %140, 1
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [100 x [101 x [100 x i32]]], ptr @dp, i64 0, i64 %142
  %144 = load i32, ptr %8, align 4, !tbaa !5
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [101 x [100 x i32]], ptr %143, i64 0, i64 %145
  %147 = load i32, ptr %9, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [100 x i32], ptr %146, i64 0, i64 %148
  store i32 %139, ptr %149, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  %150 = load i32, ptr %7, align 4, !tbaa !5
  %151 = add nsw i32 %150, 1
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [100 x [101 x [100 x i32]]], ptr @dp, i64 0, i64 %152
  %154 = load i32, ptr %8, align 4, !tbaa !5
  %155 = add nsw i32 %154, 1
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [101 x [100 x i32]], ptr %153, i64 0, i64 %156
  %158 = load i32, ptr %7, align 4, !tbaa !5
  %159 = add nsw i32 %158, 1
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [100 x i32], ptr %157, i64 0, i64 %160
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %162 = load i32, ptr %7, align 4, !tbaa !5
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [100 x [101 x [100 x i32]]], ptr @dp, i64 0, i64 %163
  %165 = load i32, ptr %8, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [101 x [100 x i32]], ptr %164, i64 0, i64 %166
  %168 = load i32, ptr %9, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [100 x i32], ptr %167, i64 0, i64 %169
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = load i32, ptr %7, align 4, !tbaa !5
  %173 = add nsw i32 %172, 1
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [100 x i32], ptr @a, i64 0, i64 %174
  %176 = load i32, ptr %175, align 4, !tbaa !5
  %177 = icmp ne i32 %176, 0
  %178 = zext i1 %177 to i32
  %179 = add nsw i32 %171, %178
  store i32 %179, ptr %11, align 4, !tbaa !5
  %180 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %161, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %181 = load i32, ptr %180, align 4, !tbaa !5
  %182 = load i32, ptr %7, align 4, !tbaa !5
  %183 = add nsw i32 %182, 1
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [100 x [101 x [100 x i32]]], ptr @dp, i64 0, i64 %184
  %186 = load i32, ptr %8, align 4, !tbaa !5
  %187 = add nsw i32 %186, 1
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [101 x [100 x i32]], ptr %185, i64 0, i64 %188
  %190 = load i32, ptr %7, align 4, !tbaa !5
  %191 = add nsw i32 %190, 1
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [100 x i32], ptr %189, i64 0, i64 %192
  store i32 %181, ptr %193, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %194

194:                                              ; preds = %105, %93
  br label %195

195:                                              ; preds = %194
  %196 = load i32, ptr %9, align 4, !tbaa !5
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %9, align 4, !tbaa !5
  br label %88, !llvm.loop !14

198:                                              ; preds = %92
  br label %199

199:                                              ; preds = %198
  %200 = load i32, ptr %8, align 4, !tbaa !5
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %8, align 4, !tbaa !5
  br label %81, !llvm.loop !15

202:                                              ; preds = %86
  br label %203

203:                                              ; preds = %202
  %204 = load i32, ptr %7, align 4, !tbaa !5
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %7, align 4, !tbaa !5
  br label %74, !llvm.loop !16

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

207:                                              ; preds = %217, %206
  %208 = load i32, ptr %12, align 4, !tbaa !5
  %209 = load i32, ptr @n, align 4, !tbaa !5
  %210 = add nsw i32 %209, 1
  %211 = icmp slt i32 %208, %210
  br i1 %211, label %213, label %212

212:                                              ; preds = %207
  store i32 23, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %220

213:                                              ; preds = %207
  %214 = load i32, ptr %12, align 4, !tbaa !5
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [101 x i32], ptr @ans, i64 0, i64 %215
  store i32 1000000007, ptr %216, align 4, !tbaa !5
  br label %217

217:                                              ; preds = %213
  %218 = load i32, ptr %12, align 4, !tbaa !5
  %219 = add nsw i32 %218, 1
  store i32 %219, ptr %12, align 4, !tbaa !5
  br label %207, !llvm.loop !17

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

221:                                              ; preds = %256, %220
  %222 = load i32, ptr %13, align 4, !tbaa !5
  %223 = load i32, ptr @n, align 4, !tbaa !5
  %224 = add nsw i32 %223, 1
  %225 = icmp slt i32 %222, %224
  br i1 %225, label %227, label %226

226:                                              ; preds = %221
  store i32 26, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %259

227:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %228

228:                                              ; preds = %252, %227
  %229 = load i32, ptr %14, align 4, !tbaa !5
  %230 = load i32, ptr @n, align 4, !tbaa !5
  %231 = icmp slt i32 %229, %230
  br i1 %231, label %233, label %232

232:                                              ; preds = %228
  store i32 29, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %255

233:                                              ; preds = %228
  %234 = load i32, ptr %13, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [101 x i32], ptr @ans, i64 0, i64 %235
  %237 = load i32, ptr @n, align 4, !tbaa !5
  %238 = sub nsw i32 %237, 1
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [100 x [101 x [100 x i32]]], ptr @dp, i64 0, i64 %239
  %241 = load i32, ptr %13, align 4, !tbaa !5
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [101 x [100 x i32]], ptr %240, i64 0, i64 %242
  %244 = load i32, ptr %14, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [100 x i32], ptr %243, i64 0, i64 %245
  %247 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %236, ptr noundef nonnull align 4 dereferenceable(4) %246)
  %248 = load i32, ptr %247, align 4, !tbaa !5
  %249 = load i32, ptr %13, align 4, !tbaa !5
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [101 x i32], ptr @ans, i64 0, i64 %250
  store i32 %248, ptr %251, align 4, !tbaa !5
  br label %252

252:                                              ; preds = %233
  %253 = load i32, ptr %14, align 4, !tbaa !5
  %254 = add nsw i32 %253, 1
  store i32 %254, ptr %14, align 4, !tbaa !5
  br label %228, !llvm.loop !18

255:                                              ; preds = %232
  br label %256

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

259:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 1, ptr %15, align 4, !tbaa !5
  br label %260

260:                                              ; preds = %273, %259
  %261 = load i32, ptr %15, align 4, !tbaa !5
  %262 = load i32, ptr @n, align 4, !tbaa !5
  %263 = add nsw i32 %262, 1
  %264 = icmp slt i32 %261, %263
  br i1 %264, label %266, label %265

265:                                              ; preds = %260
  store i32 32, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %276

266:                                              ; preds = %260
  %267 = load i32, ptr %15, align 4, !tbaa !5
  %268 = sext i32 %267 to i64
  %269 = getelementptr inbounds [101 x i32], ptr @ans, i64 0, i64 %268
  %270 = load i32, ptr %269, align 4, !tbaa !5
  %271 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %270)
  %272 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %271, ptr noundef @.str)
  br label %273

273:                                              ; preds = %266
  %274 = load i32, ptr %15, align 4, !tbaa !5
  %275 = add nsw i32 %274, 1
  store i32 %275, ptr %15, align 4, !tbaa !5
  br label %260, !llvm.loop !20

276:                                              ; preds = %265
  %277 = load i32, ptr %1, align 4
  ret i32 %277
}

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

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

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

; Function Attrs: 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)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4

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

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

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

@n = external dso_local global i32, align 4
@a = external dso_local global [100 x i32], align 16
@dp = external dso_local global [100 x [101 x [100 x i32]]], align 16
@ans = external dso_local global [101 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = 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)
  %4 = load i32, ptr @n, align 4, !tbaa !5
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %.lr.ph, label %.preheader76.thread

.preheader81:                                     ; preds = %.lr.ph
  %6 = icmp sgt i32 %10, 0
  br i1 %6, label %.preheader80.preheader, label %.preheader76.thread

.preheader80.preheader:                           ; preds = %.preheader81
  %7 = add nuw i32 %10, 1
  %wide.trip.count127 = zext nneg i32 %10 to i64
  %wide.trip.count122 = zext i32 %7 to i64
  %min.iters.check = icmp ult i32 %10, 8
  %n.vec = and i64 %wide.trip.count127, 2147483640
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count127
  br label %.preheader80

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %8 = getelementptr inbounds [100 x i32], ptr @a, i64 0, i64 %indvars.iv
  %9 = 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) %8)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %10 = load i32, ptr @n, align 4, !tbaa !5
  %11 = sext i32 %10 to i64
  %12 = icmp slt i64 %indvars.iv.next, %11
  br i1 %12, label %.lr.ph, label %.preheader81, !llvm.loop !9

.preheader80:                                     ; preds = %.preheader80.preheader, %._crit_edge88.split.us
  %indvars.iv124 = phi i64 [ 0, %.preheader80.preheader ], [ %indvars.iv.next125, %._crit_edge88.split.us ]
  br label %.preheader79.us

.preheader79.us:                                  ; preds = %._crit_edge.us, %.preheader80
  %indvars.iv119 = phi i64 [ %indvars.iv.next120, %._crit_edge.us ], [ 1, %.preheader80 ]
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %.preheader79.us, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.preheader79.us ]
  %13 = getelementptr inbounds [100 x [101 x [100 x i32]]], ptr @dp, i64 0, i64 %indvars.iv124, i64 %indvars.iv119, i64 %index
  %14 = getelementptr inbounds i8, ptr %13, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %13, align 16, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %14, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %15 = icmp eq i64 %index.next, %n.vec
  br i1 %15, label %middle.block, label %vector.body, !llvm.loop !11

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

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

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv116 = phi i64 [ %indvars.iv.next117, %scalar.ph ], [ %indvars.iv116.ph, %scalar.ph.preheader ]
  %16 = getelementptr inbounds [100 x [101 x [100 x i32]]], ptr @dp, i64 0, i64 %indvars.iv124, i64 %indvars.iv119, i64 %indvars.iv116
  store i32 1000000007, ptr %16, align 4, !tbaa !5
  %indvars.iv.next117 = add nuw nsw i64 %indvars.iv116, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next117, %wide.trip.count127
  br i1 %exitcond.not, label %._crit_edge.us, label %scalar.ph, !llvm.loop !14

._crit_edge.us:                                   ; preds = %scalar.ph, %middle.block
  %indvars.iv.next120 = add nuw nsw i64 %indvars.iv119, 1
  %exitcond123.not = icmp eq i64 %indvars.iv.next120, %wide.trip.count122
  br i1 %exitcond123.not, label %._crit_edge88.split.us, label %.preheader79.us, !llvm.loop !15

._crit_edge88.split.us:                           ; preds = %._crit_edge.us
  %indvars.iv.next125 = add nuw nsw i64 %indvars.iv124, 1
  %exitcond128.not = icmp eq i64 %indvars.iv.next125, %wide.trip.count127
  br i1 %exitcond128.not, label %._crit_edge, label %.preheader80, !llvm.loop !16

.preheader76.thread:                              ; preds = %0, %.preheader81
  %17 = load i32, ptr @a, align 16, !tbaa !5
  %18 = icmp ne i32 %17, 0
  %19 = zext i1 %18 to i32
  store i32 %19, ptr getelementptr inbounds (i8, ptr @dp, i64 400), align 16, !tbaa !5
  br label %._crit_edge109

._crit_edge:                                      ; preds = %._crit_edge88.split.us
  %20 = load i32, ptr @a, align 16, !tbaa !5
  %21 = icmp ne i32 %20, 0
  %22 = zext i1 %21 to i32
  store i32 %22, ptr getelementptr inbounds (i8, ptr @dp, i64 400), align 16, !tbaa !5
  %.not = icmp eq i32 %10, 1
  br i1 %.not, label %.preheader76, label %.preheader78

.preheader78:                                     ; preds = %._crit_edge, %._crit_edge95
  %23 = phi i32 [ %35, %._crit_edge95 ], [ %10, %._crit_edge ]
  %indvars.iv135 = phi i64 [ %.pre153, %._crit_edge95 ], [ 0, %._crit_edge ]
  %.not7193 = icmp slt i32 %23, 1
  %.pre153 = add nuw nsw i64 %indvars.iv135, 1
  br i1 %.not7193, label %._crit_edge95, label %.preheader77.preheader

.preheader77.preheader:                           ; preds = %.preheader78
  %24 = getelementptr inbounds [100 x i32], ptr @a, i64 0, i64 %.pre153
  br label %.preheader77

.preheader76:                                     ; preds = %._crit_edge95, %._crit_edge
  %.lcssa = phi i32 [ %10, %._crit_edge ], [ %35, %._crit_edge95 ]
  %.not98 = icmp slt i32 %.lcssa, 1
  br i1 %.not98, label %._crit_edge109, label %.lr.ph100.preheader

.lr.ph100.preheader:                              ; preds = %.preheader76
  %25 = add nuw i32 %.lcssa, 1
  %wide.trip.count141 = zext i32 %25 to i64
  %26 = zext nneg i32 %.lcssa to i64
  %min.iters.check179 = icmp ult i32 %.lcssa, 8
  br i1 %min.iters.check179, label %.lr.ph100.preheader191, label %vector.ph180

.lr.ph100.preheader191:                           ; preds = %middle.block177, %.lr.ph100.preheader
  %indvars.iv138.ph = phi i64 [ 1, %.lr.ph100.preheader ], [ %ind.end, %middle.block177 ]
  br label %.lr.ph100

vector.ph180:                                     ; preds = %.lr.ph100.preheader
  %n.vec182 = and i64 %26, 2147483640
  %ind.end = or disjoint i64 %n.vec182, 1
  br label %vector.body184

vector.body184:                                   ; preds = %vector.body184, %vector.ph180
  %index185 = phi i64 [ 0, %vector.ph180 ], [ %index.next186, %vector.body184 ]
  %offset.idx = or disjoint i64 %index185, 1
  %27 = getelementptr inbounds [101 x i32], ptr @ans, i64 0, i64 %offset.idx
  %28 = getelementptr inbounds i8, ptr %27, i64 16
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %27, align 4, !tbaa !5
  store <4 x i32> <i32 1000000007, i32 1000000007, i32 1000000007, i32 1000000007>, ptr %28, align 4, !tbaa !5
  %index.next186 = add nuw i64 %index185, 8
  %29 = icmp eq i64 %index.next186, %n.vec182
  br i1 %29, label %middle.block177, label %vector.body184, !llvm.loop !17

middle.block177:                                  ; preds = %vector.body184
  %cmp.n187 = icmp eq i64 %n.vec182, %26
  br i1 %cmp.n187, label %.preheader74.preheader, label %.lr.ph100.preheader191

.preheader77:                                     ; preds = %.preheader77.preheader, %._crit_edge92
  %30 = phi i32 [ %23, %.preheader77.preheader ], [ %39, %._crit_edge92 ]
  %31 = phi i32 [ %23, %.preheader77.preheader ], [ %40, %._crit_edge92 ]
  %indvars.iv132 = phi i64 [ 1, %.preheader77.preheader ], [ %33, %._crit_edge92 ]
  %32 = icmp sgt i32 %31, 0
  %33 = add nuw nsw i64 %indvars.iv132, 1
  br i1 %32, label %.lr.ph91, label %._crit_edge92

.lr.ph91:                                         ; preds = %.preheader77
  %34 = getelementptr inbounds [100 x [101 x [100 x i32]]], ptr @dp, i64 0, i64 %.pre153, i64 %33, i64 %.pre153
  br label %42

._crit_edge95:                                    ; preds = %._crit_edge92, %.preheader78
  %35 = phi i32 [ %23, %.preheader78 ], [ %39, %._crit_edge92 ]
  %36 = add nsw i32 %35, -1
  %37 = sext i32 %36 to i64
  %38 = icmp slt i64 %.pre153, %37
  br i1 %38, label %.preheader78, label %.preheader76, !llvm.loop !18

._crit_edge92:                                    ; preds = %65, %.preheader77
  %39 = phi i32 [ %30, %.preheader77 ], [ %66, %65 ]
  %40 = phi i32 [ %31, %.preheader77 ], [ %67, %65 ]
  %41 = sext i32 %40 to i64
  %.not71.not = icmp slt i64 %indvars.iv132, %41
  br i1 %.not71.not, label %.preheader77, label %._crit_edge95, !llvm.loop !20

42:                                               ; preds = %.lr.ph91, %65
  %43 = phi i32 [ %30, %.lr.ph91 ], [ %66, %65 ]
  %44 = phi i32 [ %31, %.lr.ph91 ], [ %67, %65 ]
  %45 = phi i32 [ %31, %.lr.ph91 ], [ %68, %65 ]
  %indvars.iv129 = phi i64 [ 0, %.lr.ph91 ], [ %indvars.iv.next130, %65 ]
  %46 = getelementptr inbounds [100 x [101 x [100 x i32]]], ptr @dp, i64 0, i64 %indvars.iv135, i64 %indvars.iv132, i64 %indvars.iv129
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %.not72 = icmp eq i32 %47, 1000000007
  br i1 %.not72, label %65, label %48

48:                                               ; preds = %42
  %49 = getelementptr inbounds [100 x [101 x [100 x i32]]], ptr @dp, i64 0, i64 %.pre153, i64 %indvars.iv132, i64 %indvars.iv129
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  %50 = load i32, ptr %24, align 4, !tbaa !5
  %51 = sub nsw i64 %.pre153, %indvars.iv129
  %52 = trunc nsw i64 %51 to i32
  %53 = icmp ne i32 %50, %52
  %54 = zext i1 %53 to i32
  %55 = add nsw i32 %47, %54
  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) %49, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %57 = load i32, ptr %56, align 4, !tbaa !5
  store i32 %57, ptr %49, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  %58 = load i32, ptr %46, align 4, !tbaa !5
  %59 = load i32, ptr %24, align 4, !tbaa !5
  %60 = icmp ne i32 %59, 0
  %61 = zext i1 %60 to i32
  %62 = add nsw i32 %58, %61
  store i32 %62, ptr %2, align 4, !tbaa !5
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %34, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %64 = load i32, ptr %63, align 4, !tbaa !5
  store i32 %64, ptr %34, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %42, %48
  %66 = phi i32 [ %43, %42 ], [ %.pre, %48 ]
  %67 = phi i32 [ %44, %42 ], [ %.pre, %48 ]
  %68 = phi i32 [ %45, %42 ], [ %.pre, %48 ]
  %indvars.iv.next130 = add nuw nsw i64 %indvars.iv129, 1
  %69 = sext i32 %68 to i64
  %70 = icmp slt i64 %indvars.iv.next130, %69
  br i1 %70, label %42, label %._crit_edge92, !llvm.loop !21

.lr.ph100:                                        ; preds = %.lr.ph100.preheader191, %.lr.ph100
  %indvars.iv138 = phi i64 [ %indvars.iv.next139, %.lr.ph100 ], [ %indvars.iv138.ph, %.lr.ph100.preheader191 ]
  %71 = getelementptr inbounds [101 x i32], ptr @ans, i64 0, i64 %indvars.iv138
  store i32 1000000007, ptr %71, align 4, !tbaa !5
  %indvars.iv.next139 = add nuw nsw i64 %indvars.iv138, 1
  %exitcond142.not = icmp eq i64 %indvars.iv.next139, %wide.trip.count141
  br i1 %exitcond142.not, label %.preheader74.preheader, label %.lr.ph100, !llvm.loop !22

.preheader74.preheader:                           ; preds = %.lr.ph100, %middle.block177
  br label %.preheader74

.preheader74:                                     ; preds = %.preheader74.preheader, %._crit_edge103
  %72 = phi i32 [ %76, %._crit_edge103 ], [ %.lcssa, %.preheader74.preheader ]
  %indvars.iv146 = phi i64 [ %indvars.iv.next147, %._crit_edge103 ], [ 1, %.preheader74.preheader ]
  %73 = icmp sgt i32 %72, 0
  br i1 %73, label %.lr.ph102, label %.preheader74.._crit_edge103_crit_edge

.preheader74.._crit_edge103_crit_edge:            ; preds = %.preheader74
  %.pre152 = sext i32 %72 to i64
  br label %._crit_edge103

.lr.ph102:                                        ; preds = %.preheader74
  %74 = getelementptr inbounds [101 x i32], ptr @ans, i64 0, i64 %indvars.iv146
  br label %77

.preheader:                                       ; preds = %._crit_edge103
  %75 = icmp slt i32 %76, 1
  br i1 %75, label %._crit_edge109, label %.lr.ph108

._crit_edge103:                                   ; preds = %77, %.preheader74.._crit_edge103_crit_edge
  %.pre-phi = phi i64 [ %.pre152, %.preheader74.._crit_edge103_crit_edge ], [ %85, %77 ]
  %76 = phi i32 [ %72, %.preheader74.._crit_edge103_crit_edge ], [ %84, %77 ]
  %indvars.iv.next147 = add nuw nsw i64 %indvars.iv146, 1
  %.not69.not = icmp slt i64 %indvars.iv146, %.pre-phi
  br i1 %.not69.not, label %.preheader74, label %.preheader, !llvm.loop !23

77:                                               ; preds = %.lr.ph102, %77
  %indvars.iv143 = phi i64 [ 0, %.lr.ph102 ], [ %indvars.iv.next144, %77 ]
  %78 = phi i32 [ %72, %.lr.ph102 ], [ %84, %77 ]
  %79 = add nsw i32 %78, -1
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [100 x [101 x [100 x i32]]], ptr @dp, i64 0, i64 %80, i64 %indvars.iv146, i64 %indvars.iv143
  %82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %74, ptr noundef nonnull align 4 dereferenceable(4) %81)
  %83 = load i32, ptr %82, align 4, !tbaa !5
  store i32 %83, ptr %74, align 4, !tbaa !5
  %indvars.iv.next144 = add nuw nsw i64 %indvars.iv143, 1
  %84 = load i32, ptr @n, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = icmp slt i64 %indvars.iv.next144, %85
  br i1 %86, label %77, label %._crit_edge103, !llvm.loop !24

._crit_edge109:                                   ; preds = %.lr.ph108, %.preheader76, %.preheader76.thread, %.preheader
  ret i32 0

.lr.ph108:                                        ; preds = %.preheader, %.lr.ph108
  %indvars.iv149 = phi i64 [ %indvars.iv.next150, %.lr.ph108 ], [ 1, %.preheader ]
  %87 = getelementptr inbounds [101 x i32], ptr @ans, i64 0, i64 %indvars.iv149
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %88)
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %89, ptr noundef nonnull @.str)
  %indvars.iv.next150 = add nuw nsw i64 %indvars.iv149, 1
  %91 = load i32, ptr @n, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %.not70.not = icmp slt i64 %indvars.iv149, %92
  br i1 %.not70.not, label %.lr.ph108, label %._crit_edge109, !llvm.loop !25
}

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

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

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

; Function Attrs: 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 #3

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4

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

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


; Effective O3 passes: 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