; LLVM IR from eyangch/competitive-programming :: USACOcontests/gold/2013.02/partition.ll (Z5scorei)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@N = external dso_local global i32, align 4
@K = external dso_local global i32, align 4
@b = external dso_local global [15 x [15 x i32]], align 16

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z5scorei(i32 noundef %0) #0 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca [15 x [15 x i32]], align 16
  %7 = alloca double, align 8
  %8 = alloca [15 x i32], align 16
  %9 = alloca double, align 8
  %10 = alloca [15 x %"class.std::vector"], align 16
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca [15 x [15 x i32]], align 16
  %28 = alloca double, align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %47, %1
  %33 = load i32, ptr %5, align 4, !tbaa !5
  %34 = load i32, ptr @N, align 4, !tbaa !5
  %35 = icmp slt i32 %33, %34
  br i1 %35, label %37, label %36

36:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %50

37:                                               ; preds = %32
  %38 = load i32, ptr %3, align 4, !tbaa !5
  %39 = load i32, ptr %5, align 4, !tbaa !5
  %40 = shl i32 1, %39
  %41 = and i32 %38, %40
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %43, label %46

43:                                               ; preds = %37
  %44 = load i32, ptr %4, align 4, !tbaa !5
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %4, align 4, !tbaa !5
  br label %46

46:                                               ; preds = %43, %37
  br label %47

47:                                               ; preds = %46
  %48 = load i32, ptr %5, align 4, !tbaa !5
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %5, align 4, !tbaa !5
  br label %32, !llvm.loop !9

50:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 900, ptr %6) #5
  %51 = getelementptr inbounds [15 x [15 x i32]], ptr %6, i64 0, i64 0
  %52 = getelementptr inbounds [15 x i32], ptr %51, i64 0, i64 0
  %53 = load i32, ptr @N, align 4, !tbaa !5
  %54 = sub nsw i32 %53, 1
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [15 x [15 x i32]], ptr %6, i64 0, i64 %55
  %57 = getelementptr inbounds [15 x i32], ptr %56, i64 0, i64 0
  %58 = load i32, ptr @N, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds i32, ptr %57, i64 %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store double 1.000000e+09, ptr %7, align 8, !tbaa !11
  call void @_ZSt4fillIPidEvT_S1_RKT0_(ptr noundef %52, ptr noundef %60, ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 60, ptr %8) #5
  %61 = getelementptr inbounds [15 x i32], ptr %8, i64 0, i64 0
  %62 = getelementptr inbounds [15 x i32], ptr %8, i64 0, i64 0
  %63 = load i32, ptr @N, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds i32, ptr %62, i64 %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store double 1.000000e+09, ptr %9, align 8, !tbaa !11
  call void @_ZSt4fillIPidEvT_S1_RKT0_(ptr noundef %61, ptr noundef %65, ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 360, ptr %10) #5
  %66 = getelementptr inbounds [15 x %"class.std::vector"], ptr %10, i32 0, i32 0
  %67 = getelementptr inbounds %"class.std::vector", ptr %66, i64 15
  br label %68

68:                                               ; preds = %68, %50
  %69 = phi ptr [ %66, %50 ], [ %70, %68 ]
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %69) #5
  %70 = getelementptr inbounds %"class.std::vector", ptr %69, i64 1
  %71 = icmp eq ptr %70, %67
  br i1 %71, label %72, label %68

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

73:                                               ; preds = %253, %72
  %74 = load i32, ptr %11, align 4, !tbaa !5
  %75 = load i32, ptr @N, align 4, !tbaa !5
  %76 = icmp slt i32 %74, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %73
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %257

78:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #5
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %79 unwind label %85

79:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %114, %79
  %81 = load i32, ptr %17, align 4, !tbaa !5
  %82 = load i32, ptr @N, align 4, !tbaa !5
  %83 = icmp slt i32 %81, %82
  br i1 %83, label %89, label %84

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

85:                                               ; preds = %78
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %15, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %256

89:                                               ; preds = %80
  %90 = load i32, ptr %11, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [15 x [15 x i32]], ptr @b, i64 0, i64 %91
  %93 = load i32, ptr %17, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [15 x i32], ptr %92, i64 0, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  %98 = sub i64 %97, 1
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %98) #5
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = add nsw i32 %100, %96
  store i32 %101, ptr %99, align 4, !tbaa !5
  %102 = load i32, ptr %3, align 4, !tbaa !5
  %103 = load i32, ptr %17, align 4, !tbaa !5
  %104 = shl i32 1, %103
  %105 = and i32 %102, %104
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %113

107:                                              ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %108 unwind label %109

108:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %113

109:                                              ; preds = %107
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %15, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %256

113:                                              ; preds = %108, %89
  br label %114

114:                                              ; preds = %113
  %115 = load i32, ptr %17, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %17, align 4, !tbaa !5
  br label %80, !llvm.loop !13

117:                                              ; preds = %84
  %118 = load i32, ptr %11, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [15 x %"class.std::vector"], ptr %10, i64 0, i64 %119
  %121 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %120, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %122 unwind label %132

122:                                              ; preds = %117
  %123 = load i32, ptr %11, align 4, !tbaa !5
  %124 = icmp sgt i32 %123, 0
  br i1 %124, label %125, label %157

125:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %126

126:                                              ; preds = %153, %125
  %127 = load i32, ptr %19, align 4, !tbaa !5
  %128 = load i32, ptr %4, align 4, !tbaa !5
  %129 = add nsw i32 %128, 1
  %130 = icmp slt i32 %127, %129
  br i1 %130, label %136, label %131

131:                                              ; preds = %126
  store i32 11, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %156

132:                                              ; preds = %117
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %15, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %16, align 4
  br label %256

136:                                              ; preds = %126
  %137 = load i32, ptr %11, align 4, !tbaa !5
  %138 = sub nsw i32 %137, 1
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [15 x %"class.std::vector"], ptr %10, i64 0, i64 %139
  %141 = load i32, ptr %19, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %140, i64 noundef %142) #5
  %144 = load i32, ptr %143, align 4, !tbaa !5
  %145 = load i32, ptr %11, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [15 x %"class.std::vector"], ptr %10, i64 0, i64 %146
  %148 = load i32, ptr %19, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %147, i64 noundef %149) #5
  %151 = load i32, ptr %150, align 4, !tbaa !5
  %152 = add nsw i32 %151, %144
  store i32 %152, ptr %150, align 4, !tbaa !5
  br label %153

153:                                              ; preds = %136
  %154 = load i32, ptr %19, align 4, !tbaa !5
  %155 = add nsw i32 %154, 1
  store i32 %155, ptr %19, align 4, !tbaa !5
  br label %126, !llvm.loop !14

156:                                              ; preds = %131
  br label %157

157:                                              ; preds = %156, %122
  %158 = load i32, ptr %11, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [15 x i32], ptr %8, i64 0, i64 %159
  store i32 0, ptr %160, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %161 = load i32, ptr %11, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [15 x %"class.std::vector"], ptr %10, i64 0, i64 %162
  store ptr %163, ptr %20, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %164 = load ptr, ptr %20, align 8, !tbaa !15
  %165 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %164) #5
  %166 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %165, ptr %166, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %167 = load ptr, ptr %20, align 8, !tbaa !15
  %168 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %167) #5
  %169 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %168, ptr %169, align 8
  br label %170

170:                                              ; preds = %185, %157
  %171 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #5
  br i1 %171, label %173, label %172

172:                                              ; preds = %170
  store i32 14, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %191

173:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %174 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  %175 = load i32, ptr %174, align 4, !tbaa !5
  store i32 %175, ptr %23, align 4, !tbaa !5
  %176 = load i32, ptr %11, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [15 x i32], ptr %8, i64 0, i64 %177
  %179 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %178, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %180 unwind label %187

180:                                              ; preds = %173
  %181 = load i32, ptr %179, align 4, !tbaa !5
  %182 = load i32, ptr %11, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [15 x i32], ptr %8, i64 0, i64 %183
  store i32 %181, ptr %184, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %185

185:                                              ; preds = %180
  %186 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  br label %170

187:                                              ; preds = %173
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %15, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %256

191:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %192

192:                                              ; preds = %249, %191
  %193 = load i32, ptr %24, align 4, !tbaa !5
  %194 = load i32, ptr %11, align 4, !tbaa !5
  %195 = icmp slt i32 %193, %194
  br i1 %195, label %197, label %196

196:                                              ; preds = %192
  store i32 16, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %252

197:                                              ; preds = %192
  %198 = load i32, ptr %24, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [15 x [15 x i32]], ptr %6, i64 0, i64 %199
  %201 = load i32, ptr %11, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [15 x i32], ptr %200, i64 0, i64 %202
  store i32 0, ptr %203, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 0, ptr %25, align 4, !tbaa !5
  br label %204

204:                                              ; preds = %241, %197
  %205 = load i32, ptr %25, align 4, !tbaa !5
  %206 = load i32, ptr %4, align 4, !tbaa !5
  %207 = add nsw i32 %206, 1
  %208 = icmp slt i32 %205, %207
  br i1 %208, label %210, label %209

209:                                              ; preds = %204
  store i32 19, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %248

210:                                              ; preds = %204
  %211 = load i32, ptr %24, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [15 x [15 x i32]], ptr %6, i64 0, i64 %212
  %214 = load i32, ptr %11, align 4, !tbaa !5
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [15 x i32], ptr %213, i64 0, i64 %215
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  %217 = load i32, ptr %11, align 4, !tbaa !5
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [15 x %"class.std::vector"], ptr %10, i64 0, i64 %218
  %220 = load i32, ptr %25, align 4, !tbaa !5
  %221 = sext i32 %220 to i64
  %222 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %219, i64 noundef %221) #5
  %223 = load i32, ptr %222, align 4, !tbaa !5
  %224 = load i32, ptr %24, align 4, !tbaa !5
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [15 x %"class.std::vector"], ptr %10, i64 0, i64 %225
  %227 = load i32, ptr %25, align 4, !tbaa !5
  %228 = sext i32 %227 to i64
  %229 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %226, i64 noundef %228) #5
  %230 = load i32, ptr %229, align 4, !tbaa !5
  %231 = sub nsw i32 %223, %230
  store i32 %231, ptr %26, align 4, !tbaa !5
  %232 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %216, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %233 unwind label %244

233:                                              ; preds = %210
  %234 = load i32, ptr %232, align 4, !tbaa !5
  %235 = load i32, ptr %24, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [15 x [15 x i32]], ptr %6, i64 0, i64 %236
  %238 = load i32, ptr %11, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [15 x i32], ptr %237, i64 0, i64 %239
  store i32 %234, ptr %240, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %241

241:                                              ; preds = %233
  %242 = load i32, ptr %25, align 4, !tbaa !5
  %243 = add nsw i32 %242, 1
  store i32 %243, ptr %25, align 4, !tbaa !5
  br label %204, !llvm.loop !17

244:                                              ; preds = %210
  %245 = landingpad { ptr, i32 }
          cleanup
  %246 = extractvalue { ptr, i32 } %245, 0
  store ptr %246, ptr %15, align 8
  %247 = extractvalue { ptr, i32 } %245, 1
  store i32 %247, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %256

248:                                              ; preds = %209
  br label %249

249:                                              ; preds = %248
  %250 = load i32, ptr %24, align 4, !tbaa !5
  %251 = add nsw i32 %250, 1
  store i32 %251, ptr %24, align 4, !tbaa !5
  br label %192, !llvm.loop !18

252:                                              ; preds = %196
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  br label %253

253:                                              ; preds = %252
  %254 = load i32, ptr %11, align 4, !tbaa !5
  %255 = add nsw i32 %254, 1
  store i32 %255, ptr %11, align 4, !tbaa !5
  br label %73, !llvm.loop !19

256:                                              ; preds = %244, %187, %132, %109, %85
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %377

257:                                              ; preds = %77
  call void @llvm.lifetime.start.p0(i64 900, ptr %27) #5
  %258 = getelementptr inbounds [15 x [15 x i32]], ptr %27, i64 0, i64 0
  %259 = getelementptr inbounds [15 x i32], ptr %258, i64 0, i64 0
  %260 = load i32, ptr @N, align 4, !tbaa !5
  %261 = sub nsw i32 %260, 1
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [15 x [15 x i32]], ptr %27, i64 0, i64 %262
  %264 = getelementptr inbounds [15 x i32], ptr %263, i64 0, i64 0
  %265 = load i32, ptr @N, align 4, !tbaa !5
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds i32, ptr %264, i64 %266
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  store double 1.000000e+09, ptr %28, align 8, !tbaa !11
  invoke void @_ZSt4fillIPidEvT_S1_RKT0_(ptr noundef %259, ptr noundef %267, ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %268 unwind label %274

268:                                              ; preds = %257
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  store i32 0, ptr %29, align 4, !tbaa !5
  br label %269

269:                                              ; preds = %341, %268
  %270 = load i32, ptr %29, align 4, !tbaa !5
  %271 = load i32, ptr @N, align 4, !tbaa !5
  %272 = icmp slt i32 %270, %271
  br i1 %272, label %278, label %273

273:                                              ; preds = %269
  store i32 22, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  br label %344

274:                                              ; preds = %257
  %275 = landingpad { ptr, i32 }
          cleanup
  %276 = extractvalue { ptr, i32 } %275, 0
  store ptr %276, ptr %15, align 8
  %277 = extractvalue { ptr, i32 } %275, 1
  store i32 %277, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  br label %370

278:                                              ; preds = %269
  %279 = load i32, ptr %29, align 4, !tbaa !5
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds [15 x i32], ptr %8, i64 0, i64 %280
  %282 = load i32, ptr %281, align 4, !tbaa !5
  %283 = load i32, ptr %29, align 4, !tbaa !5
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds [15 x [15 x i32]], ptr %27, i64 0, i64 %284
  %286 = getelementptr inbounds [15 x i32], ptr %285, i64 0, i64 0
  store i32 %282, ptr %286, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  store i32 1, ptr %30, align 4, !tbaa !5
  br label %287

287:                                              ; preds = %337, %278
  %288 = load i32, ptr %30, align 4, !tbaa !5
  %289 = load i32, ptr %29, align 4, !tbaa !5
  %290 = icmp sle i32 %288, %289
  br i1 %290, label %292, label %291

291:                                              ; preds = %287
  store i32 25, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  br label %340

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

293:                                              ; preds = %329, %292
  %294 = load i32, ptr %31, align 4, !tbaa !5
  %295 = load i32, ptr %29, align 4, !tbaa !5
  %296 = icmp slt i32 %294, %295
  br i1 %296, label %298, label %297

297:                                              ; preds = %293
  store i32 28, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  br label %336

298:                                              ; preds = %293
  %299 = load i32, ptr %29, align 4, !tbaa !5
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds [15 x [15 x i32]], ptr %27, i64 0, i64 %300
  %302 = load i32, ptr %30, align 4, !tbaa !5
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds [15 x i32], ptr %301, i64 0, i64 %303
  %305 = load i32, ptr %31, align 4, !tbaa !5
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds [15 x [15 x i32]], ptr %27, i64 0, i64 %306
  %308 = load i32, ptr %30, align 4, !tbaa !5
  %309 = sub nsw i32 %308, 1
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds [15 x i32], ptr %307, i64 0, i64 %310
  %312 = load i32, ptr %31, align 4, !tbaa !5
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds [15 x [15 x i32]], ptr %6, i64 0, i64 %313
  %315 = load i32, ptr %29, align 4, !tbaa !5
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds [15 x i32], ptr %314, i64 0, i64 %316
  %318 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %311, ptr noundef nonnull align 4 dereferenceable(4) %317)
          to label %319 unwind label %332

319:                                              ; preds = %298
  %320 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %304, ptr noundef nonnull align 4 dereferenceable(4) %318)
          to label %321 unwind label %332

321:                                              ; preds = %319
  %322 = load i32, ptr %320, align 4, !tbaa !5
  %323 = load i32, ptr %29, align 4, !tbaa !5
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds [15 x [15 x i32]], ptr %27, i64 0, i64 %324
  %326 = load i32, ptr %30, align 4, !tbaa !5
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [15 x i32], ptr %325, i64 0, i64 %327
  store i32 %322, ptr %328, align 4, !tbaa !5
  br label %329

329:                                              ; preds = %321
  %330 = load i32, ptr %31, align 4, !tbaa !5
  %331 = add nsw i32 %330, 1
  store i32 %331, ptr %31, align 4, !tbaa !5
  br label %293, !llvm.loop !20

332:                                              ; preds = %319, %298
  %333 = landingpad { ptr, i32 }
          cleanup
  %334 = extractvalue { ptr, i32 } %333, 0
  store ptr %334, ptr %15, align 8
  %335 = extractvalue { ptr, i32 } %333, 1
  store i32 %335, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  br label %370

336:                                              ; preds = %297
  br label %337

337:                                              ; preds = %336
  %338 = load i32, ptr %30, align 4, !tbaa !5
  %339 = add nsw i32 %338, 1
  store i32 %339, ptr %30, align 4, !tbaa !5
  br label %287, !llvm.loop !21

340:                                              ; preds = %291
  br label %341

341:                                              ; preds = %340
  %342 = load i32, ptr %29, align 4, !tbaa !5
  %343 = add nsw i32 %342, 1
  store i32 %343, ptr %29, align 4, !tbaa !5
  br label %269, !llvm.loop !22

344:                                              ; preds = %273
  %345 = load i32, ptr @K, align 4, !tbaa !5
  %346 = load i32, ptr %4, align 4, !tbaa !5
  %347 = sub nsw i32 %345, %346
  %348 = load i32, ptr @N, align 4, !tbaa !5
  %349 = icmp sge i32 %347, %348
  br i1 %349, label %355, label %350

350:                                              ; preds = %344
  %351 = load i32, ptr @K, align 4, !tbaa !5
  %352 = load i32, ptr %4, align 4, !tbaa !5
  %353 = sub nsw i32 %351, %352
  %354 = icmp slt i32 %353, 0
  br i1 %354, label %355, label %356

355:                                              ; preds = %350, %344
  store i32 1000000000, ptr %2, align 4
  store i32 1, ptr %12, align 4
  br label %367

356:                                              ; preds = %350
  %357 = load i32, ptr @N, align 4, !tbaa !5
  %358 = sub nsw i32 %357, 1
  %359 = sext i32 %358 to i64
  %360 = getelementptr inbounds [15 x [15 x i32]], ptr %27, i64 0, i64 %359
  %361 = load i32, ptr @K, align 4, !tbaa !5
  %362 = load i32, ptr %4, align 4, !tbaa !5
  %363 = sub nsw i32 %361, %362
  %364 = sext i32 %363 to i64
  %365 = getelementptr inbounds [15 x i32], ptr %360, i64 0, i64 %364
  %366 = load i32, ptr %365, align 4, !tbaa !5
  store i32 %366, ptr %2, align 4
  store i32 1, ptr %12, align 4
  br label %367

367:                                              ; preds = %356, %355
  call void @llvm.lifetime.end.p0(i64 900, ptr %27) #5
  %368 = getelementptr inbounds [15 x %"class.std::vector"], ptr %10, i32 0, i32 0
  %369 = getelementptr inbounds %"class.std::vector", ptr %368, i64 15
  br label %371

370:                                              ; preds = %332, %274
  call void @llvm.lifetime.end.p0(i64 900, ptr %27) #5
  br label %377

371:                                              ; preds = %371, %367
  %372 = phi ptr [ %369, %367 ], [ %373, %371 ]
  %373 = getelementptr inbounds %"class.std::vector", ptr %372, i64 -1
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %373) #5
  %374 = icmp eq ptr %373, %368
  br i1 %374, label %375, label %371

375:                                              ; preds = %371
  call void @llvm.lifetime.end.p0(i64 360, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 60, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 900, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  %376 = load i32, ptr %2, align 4
  ret i32 %376

377:                                              ; preds = %370, %256
  %378 = getelementptr inbounds [15 x %"class.std::vector"], ptr %10, i32 0, i32 0
  %379 = getelementptr inbounds %"class.std::vector", ptr %378, i64 15
  br label %380

380:                                              ; preds = %380, %377
  %381 = phi ptr [ %379, %377 ], [ %382, %380 ]
  %382 = getelementptr inbounds %"class.std::vector", ptr %381, i64 -1
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %382) #5
  %383 = icmp eq ptr %382, %378
  br i1 %383, label %384, label %380

384:                                              ; preds = %380
  call void @llvm.lifetime.end.p0(i64 360, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 60, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 900, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %385

385:                                              ; preds = %384
  %386 = load ptr, ptr %15, align 8
  %387 = load i32, ptr %16, align 4
  %388 = insertvalue { ptr, i32 } poison, ptr %386, 0
  %389 = insertvalue { ptr, i32 } %388, i32 %387, 1
  resume { ptr, i32 } %389
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPidEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 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)) #4

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 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 = { 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 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = !{!16, !16, i64 0}
!16 = !{!"any pointer", !7, i64 0}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}
!22 = distinct !{!22, !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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@N = external dso_local local_unnamed_addr global i32, align 4
@K = external dso_local local_unnamed_addr global i32, align 4
@b = external dso_local local_unnamed_addr global [15 x [15 x i32]], align 16

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z5scorei(i32 noundef %0) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %2 = alloca [15 x [15 x i32]], align 16
  %3 = alloca double, align 8
  %4 = alloca [15 x i32], align 16
  %5 = alloca double, align 8
  %6 = alloca [15 x %"class.std::vector"], align 16
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca [15 x [15 x i32]], align 16
  %15 = alloca double, align 8
  %16 = load i32, ptr @N, align 4, !tbaa !5
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %1
  %min.iters.check = icmp ult i32 %16, 8
  br i1 %min.iters.check, label %.lr.ph.preheader186, label %vector.ph

.lr.ph.preheader186:                              ; preds = %middle.block, %.lr.ph.preheader
  %.078103.ph = phi i32 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %.079102.ph = phi i32 [ 0, %.lr.ph.preheader ], [ %25, %middle.block ]
  br label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i32 %16, 2147483640
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %0, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i32 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %22, %vector.body ]
  %vec.phi182 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %23, %vector.body ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %18 = lshr <4 x i32> %broadcast.splat, %vec.ind
  %19 = lshr <4 x i32> %broadcast.splat, %step.add
  %20 = and <4 x i32> %18, <i32 1, i32 1, i32 1, i32 1>
  %21 = and <4 x i32> %19, <i32 1, i32 1, i32 1, i32 1>
  %22 = add <4 x i32> %20, %vec.phi
  %23 = add <4 x i32> %21, %vec.phi182
  %index.next = add nuw i32 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %24 = icmp eq i32 %index.next, %n.vec
  br i1 %24, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %23, %22
  %25 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i32 %16, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader186

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %1
  %.079.lcssa = phi i32 [ 0, %1 ], [ %25, %middle.block ], [ %spec.select, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 900, ptr nonnull %2) #6
  %26 = add nsw i32 %16, -1
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [15 x [15 x i32]], ptr %2, i64 0, i64 %27
  %29 = sext i32 %16 to i64
  %30 = getelementptr inbounds i32, ptr %28, i64 %29
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  store double 1.000000e+09, ptr %3, align 8, !tbaa !13
  call void @_ZSt4fillIPidEvT_S1_RKT0_(ptr noundef nonnull %2, ptr noundef nonnull %30, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 60, ptr nonnull %4) #6
  %31 = load i32, ptr @N, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds i32, ptr %4, i64 %32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  store double 1.000000e+09, ptr %5, align 8, !tbaa !13
  call void @_ZSt4fillIPidEvT_S1_RKT0_(ptr noundef nonnull %4, ptr noundef nonnull %33, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 360, ptr nonnull %6) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %.ptr.1 = getelementptr inbounds i8, ptr %6, i64 24
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1) #6
  %.ptr.2 = getelementptr inbounds i8, ptr %6, i64 48
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2) #6
  %.ptr.3 = getelementptr inbounds i8, ptr %6, i64 72
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3) #6
  %.ptr.4 = getelementptr inbounds i8, ptr %6, i64 96
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.4) #6
  %.ptr.5 = getelementptr inbounds i8, ptr %6, i64 120
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.5) #6
  %.ptr.6 = getelementptr inbounds i8, ptr %6, i64 144
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.6) #6
  %.ptr.7 = getelementptr inbounds i8, ptr %6, i64 168
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.7) #6
  %.ptr.8 = getelementptr inbounds i8, ptr %6, i64 192
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.8) #6
  %.ptr.9 = getelementptr inbounds i8, ptr %6, i64 216
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.9) #6
  %.ptr.10 = getelementptr inbounds i8, ptr %6, i64 240
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.10) #6
  %.ptr.11 = getelementptr inbounds i8, ptr %6, i64 264
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.11) #6
  %.ptr.12 = getelementptr inbounds i8, ptr %6, i64 288
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.12) #6
  %.ptr.13 = getelementptr inbounds i8, ptr %6, i64 312
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.13) #6
  %.ptr.14 = getelementptr inbounds i8, ptr %6, i64 336
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.14) #6
  %34 = load i32, ptr @N, align 4, !tbaa !5
  %35 = icmp sgt i32 %34, 0
  br i1 %35, label %.lr.ph119.preheader, label %._crit_edge.._crit_edge120_crit_edge

._crit_edge.._crit_edge120_crit_edge:             ; preds = %._crit_edge
  %.pre174 = sext i32 %34 to i64
  br label %._crit_edge120

.lr.ph:                                           ; preds = %.lr.ph.preheader186, %.lr.ph
  %.078103 = phi i32 [ %38, %.lr.ph ], [ %.078103.ph, %.lr.ph.preheader186 ]
  %.079102 = phi i32 [ %spec.select, %.lr.ph ], [ %.079102.ph, %.lr.ph.preheader186 ]
  %36 = lshr i32 %0, %.078103
  %37 = and i32 %36, 1
  %spec.select = add nuw nsw i32 %37, %.079102
  %38 = add nuw nsw i32 %.078103, 1
  %exitcond.not = icmp eq i32 %38, %16
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !15

.lr.ph119.preheader:                              ; preds = %._crit_edge
  %39 = add nuw i32 %.079.lcssa, 1
  %wide.trip.count = zext i32 %39 to i64
  %wide.trip.count145 = zext i32 %39 to i64
  br label %.lr.ph119

._crit_edge120:                                   ; preds = %._crit_edge117, %._crit_edge.._crit_edge120_crit_edge
  %.pre-phi = phi i64 [ %.pre174, %._crit_edge.._crit_edge120_crit_edge ], [ %91, %._crit_edge117 ]
  %.lcssa97 = phi i32 [ %34, %._crit_edge.._crit_edge120_crit_edge ], [ %90, %._crit_edge117 ]
  call void @llvm.lifetime.start.p0(i64 900, ptr nonnull %14) #6
  %40 = add nsw i32 %.lcssa97, -1
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [15 x [15 x i32]], ptr %14, i64 0, i64 %41
  %43 = getelementptr inbounds i32, ptr %42, i64 %.pre-phi
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  store double 1.000000e+09, ptr %15, align 8, !tbaa !13
  invoke void @_ZSt4fillIPidEvT_S1_RKT0_(ptr noundef nonnull %14, ptr noundef nonnull %43, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %105 unwind label %111

.lr.ph119:                                        ; preds = %.lr.ph119.preheader, %._crit_edge117
  %indvars.iv152 = phi i64 [ 0, %.lr.ph119.preheader ], [ %indvars.iv.next153, %._crit_edge117 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  store i32 0, ptr %8, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %44 unwind label %49

44:                                               ; preds = %.lr.ph119
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  %45 = load i32, ptr @N, align 4, !tbaa !5
  %46 = icmp sgt i32 %45, 0
  br i1 %46, label %.lr.ph107, label %._crit_edge108

._crit_edge108:                                   ; preds = %65, %44
  %47 = getelementptr inbounds [15 x %"class.std::vector"], ptr %6, i64 0, i64 %indvars.iv152
  %48 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIiSaIiEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %47, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %69 unwind label %72

49:                                               ; preds = %.lr.ph119
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  br label %104

.lr.ph107:                                        ; preds = %44, %65
  %indvars.iv = phi i64 [ %indvars.iv.next, %65 ], [ 0, %44 ]
  %51 = getelementptr inbounds [15 x [15 x i32]], ptr @b, i64 0, i64 %indvars.iv152, i64 %indvars.iv
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  %54 = add i64 %53, -1
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %54) #6
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = add nsw i32 %56, %52
  store i32 %57, ptr %55, align 4, !tbaa !5
  %58 = trunc nuw nsw i64 %indvars.iv to i32
  %59 = shl nuw i32 1, %58
  %60 = and i32 %59, %0
  %.not91 = icmp eq i32 %60, 0
  br i1 %.not91, label %65, label %61

61:                                               ; preds = %.lr.ph107
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %62 unwind label %63

62:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  br label %65

63:                                               ; preds = %61
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  br label %104

65:                                               ; preds = %.lr.ph107, %62
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %66 = load i32, ptr @N, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = icmp slt i64 %indvars.iv.next, %67
  br i1 %68, label %.lr.ph107, label %._crit_edge108, !llvm.loop !16

69:                                               ; preds = %._crit_edge108
  %.not88 = icmp eq i64 %indvars.iv152, 0
  br i1 %.not88, label %.loopexit, label %.preheader95

.preheader95:                                     ; preds = %69
  %70 = add nsw i64 %indvars.iv152, -1
  %71 = getelementptr inbounds [15 x %"class.std::vector"], ptr %6, i64 0, i64 %70
  br label %74

72:                                               ; preds = %._crit_edge108
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %104

74:                                               ; preds = %.preheader95, %74
  %indvars.iv137 = phi i64 [ 0, %.preheader95 ], [ %indvars.iv.next138, %74 ]
  %75 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %indvars.iv137) #6
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %indvars.iv137) #6
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = add nsw i32 %78, %76
  store i32 %79, ptr %77, align 4, !tbaa !5
  %indvars.iv.next138 = add nuw nsw i64 %indvars.iv137, 1
  %exitcond140.not = icmp eq i64 %indvars.iv.next138, %wide.trip.count
  br i1 %exitcond140.not, label %.loopexit, label %74, !llvm.loop !17

.loopexit:                                        ; preds = %74, %69
  %80 = getelementptr inbounds [15 x i32], ptr %4, i64 0, i64 %indvars.iv152
  store i32 0, ptr %80, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %81 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #6
  store ptr %81, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %82 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #6
  store ptr %82, ptr %11, align 8
  %83 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br i1 %83, label %.lr.ph111, label %._crit_edge112

._crit_edge112:                                   ; preds = %.lr.ph111, %.loopexit
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br i1 %.not88, label %._crit_edge117, label %.lr.ph116

.lr.ph111:                                        ; preds = %.loopexit, %.lr.ph111
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %85 = load i32, ptr %84, align 4, !tbaa !5
  store i32 %85, ptr %12, align 4, !tbaa !5
  %86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %80, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %87 = load i32, ptr %86, align 4, !tbaa !5
  store i32 %87, ptr %80, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %89 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br i1 %89, label %.lr.ph111, label %._crit_edge112

._crit_edge117:                                   ; preds = %95, %._crit_edge112
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  %indvars.iv.next153 = add nuw nsw i64 %indvars.iv152, 1
  %90 = load i32, ptr @N, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = icmp slt i64 %indvars.iv.next153, %91
  br i1 %92, label %.lr.ph119, label %._crit_edge120, !llvm.loop !18

.lr.ph116:                                        ; preds = %._crit_edge112, %95
  %indvars.iv147 = phi i64 [ %indvars.iv.next148, %95 ], [ 0, %._crit_edge112 ]
  %93 = getelementptr inbounds [15 x [15 x i32]], ptr %2, i64 0, i64 %indvars.iv147, i64 %indvars.iv152
  store i32 0, ptr %93, align 4, !tbaa !5
  %94 = getelementptr inbounds [15 x %"class.std::vector"], ptr %6, i64 0, i64 %indvars.iv147
  br label %96

95:                                               ; preds = %96
  %indvars.iv.next148 = add nuw nsw i64 %indvars.iv147, 1
  %exitcond151.not = icmp eq i64 %indvars.iv.next148, %indvars.iv152
  br i1 %exitcond151.not, label %._crit_edge117, label %.lr.ph116, !llvm.loop !19

96:                                               ; preds = %.lr.ph116, %96
  %indvars.iv141 = phi i64 [ 0, %.lr.ph116 ], [ %indvars.iv.next142, %96 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %indvars.iv141) #6
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef %indvars.iv141) #6
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = sub nsw i32 %98, %100
  store i32 %101, ptr %13, align 4, !tbaa !5
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %93, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %103 = load i32, ptr %102, align 4, !tbaa !5
  store i32 %103, ptr %93, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  %indvars.iv.next142 = add nuw nsw i64 %indvars.iv141, 1
  %exitcond146.not = icmp eq i64 %indvars.iv.next142, %wide.trip.count145
  br i1 %exitcond146.not, label %95, label %96, !llvm.loop !20

104:                                              ; preds = %72, %63, %49
  %.pn = phi { ptr, i32 } [ %64, %63 ], [ %73, %72 ], [ %50, %49 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  br label %149

105:                                              ; preds = %._crit_edge120
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  %106 = load i32, ptr @N, align 4, !tbaa !5
  %107 = icmp sgt i32 %106, 0
  br i1 %107, label %.lr.ph130, label %._crit_edge131

._crit_edge131:                                   ; preds = %._crit_edge127.split.us, %105
  %.lcssa = phi i32 [ %106, %105 ], [ %125, %._crit_edge127.split.us ]
  %108 = load i32, ptr @K, align 4, !tbaa !5
  %109 = sub nsw i32 %108, %.079.lcssa
  %.not = icmp sge i32 %109, %.lcssa
  %110 = icmp slt i32 %109, 0
  %or.cond = or i1 %.not, %110
  br i1 %or.cond, label %134, label %128

111:                                              ; preds = %._crit_edge120
  %112 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 900, ptr nonnull %14) #6
  br label %149

.lr.ph130:                                        ; preds = %105, %._crit_edge127.split.us
  %113 = phi i32 [ %125, %._crit_edge127.split.us ], [ %106, %105 ]
  %indvars.iv169 = phi i64 [ %indvars.iv.next170, %._crit_edge127.split.us ], [ 0, %105 ]
  %indvars.iv167 = phi i64 [ %indvars.iv.next168, %._crit_edge127.split.us ], [ 1, %105 ]
  %114 = getelementptr inbounds [15 x i32], ptr %4, i64 0, i64 %indvars.iv169
  %115 = load i32, ptr %114, align 4, !tbaa !5
  %116 = getelementptr inbounds [15 x [15 x i32]], ptr %14, i64 0, i64 %indvars.iv169
  store i32 %115, ptr %116, align 4, !tbaa !5
  %.not87125 = icmp eq i64 %indvars.iv169, 0
  br i1 %.not87125, label %._crit_edge127.split.us, label %.preheader.us

.preheader.us:                                    ; preds = %.lr.ph130, %._crit_edge124.us
  %indvars.iv160 = phi i64 [ %indvars.iv.next161, %._crit_edge124.us ], [ 1, %.lr.ph130 ]
  %117 = getelementptr inbounds [15 x [15 x i32]], ptr %14, i64 0, i64 %indvars.iv169, i64 %indvars.iv160
  %118 = add nsw i64 %indvars.iv160, -1
  br label %119

119:                                              ; preds = %.preheader.us, %119
  %indvars.iv155 = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next156, %119 ]
  %120 = getelementptr inbounds [15 x [15 x i32]], ptr %14, i64 0, i64 %indvars.iv155, i64 %118
  %121 = getelementptr inbounds [15 x [15 x i32]], ptr %2, i64 0, i64 %indvars.iv155, i64 %indvars.iv169
  %122 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %120, ptr noundef nonnull align 4 dereferenceable(4) %121)
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %117, ptr noundef nonnull align 4 dereferenceable(4) %122)
  %124 = load i32, ptr %123, align 4, !tbaa !5
  store i32 %124, ptr %117, align 4, !tbaa !5
  %indvars.iv.next156 = add nuw nsw i64 %indvars.iv155, 1
  %exitcond159.not = icmp eq i64 %indvars.iv.next156, %indvars.iv169
  br i1 %exitcond159.not, label %._crit_edge124.us, label %119, !llvm.loop !21

._crit_edge124.us:                                ; preds = %119
  %indvars.iv.next161 = add nuw nsw i64 %indvars.iv160, 1
  %exitcond166.not = icmp eq i64 %indvars.iv.next161, %indvars.iv167
  br i1 %exitcond166.not, label %._crit_edge127.split.us.loopexit, label %.preheader.us, !llvm.loop !22

._crit_edge127.split.us.loopexit:                 ; preds = %._crit_edge124.us
  %.pre = load i32, ptr @N, align 4, !tbaa !5
  br label %._crit_edge127.split.us

._crit_edge127.split.us:                          ; preds = %._crit_edge127.split.us.loopexit, %.lr.ph130
  %125 = phi i32 [ %.pre, %._crit_edge127.split.us.loopexit ], [ %113, %.lr.ph130 ]
  %indvars.iv.next170 = add nuw nsw i64 %indvars.iv169, 1
  %126 = sext i32 %125 to i64
  %127 = icmp slt i64 %indvars.iv.next170, %126
  %indvars.iv.next168 = add nuw nsw i64 %indvars.iv167, 1
  br i1 %127, label %.lr.ph130, label %._crit_edge131, !llvm.loop !23

128:                                              ; preds = %._crit_edge131
  %129 = add nsw i32 %.lcssa, -1
  %130 = sext i32 %129 to i64
  %131 = zext nneg i32 %109 to i64
  %132 = getelementptr inbounds [15 x [15 x i32]], ptr %14, i64 0, i64 %130, i64 %131
  %133 = load i32, ptr %132, align 4, !tbaa !5
  br label %134

134:                                              ; preds = %._crit_edge131, %128
  %.071 = phi i32 [ %133, %128 ], [ 1000000000, %._crit_edge131 ]
  call void @llvm.lifetime.end.p0(i64 900, ptr nonnull %14) #6
  %135 = getelementptr inbounds i8, ptr %6, i64 336
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %135) #6
  %136 = getelementptr inbounds i8, ptr %6, i64 312
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %136) #6
  %137 = getelementptr inbounds i8, ptr %6, i64 288
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %137) #6
  %138 = getelementptr inbounds i8, ptr %6, i64 264
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %138) #6
  %139 = getelementptr inbounds i8, ptr %6, i64 240
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %139) #6
  %140 = getelementptr inbounds i8, ptr %6, i64 216
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %140) #6
  %141 = getelementptr inbounds i8, ptr %6, i64 192
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %141) #6
  %142 = getelementptr inbounds i8, ptr %6, i64 168
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %142) #6
  %143 = getelementptr inbounds i8, ptr %6, i64 144
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %143) #6
  %144 = getelementptr inbounds i8, ptr %6, i64 120
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %144) #6
  %145 = getelementptr inbounds i8, ptr %6, i64 96
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %145) #6
  %146 = getelementptr inbounds i8, ptr %6, i64 72
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %146) #6
  %147 = getelementptr inbounds i8, ptr %6, i64 48
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %147) #6
  %148 = getelementptr inbounds i8, ptr %6, i64 24
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %148) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 360, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 60, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 900, ptr nonnull %2) #6
  ret i32 %.071

149:                                              ; preds = %111, %104
  %.pn.pn = phi { ptr, i32 } [ %.pn, %104 ], [ %112, %111 ]
  %150 = getelementptr inbounds i8, ptr %6, i64 336
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %150) #6
  %151 = getelementptr inbounds i8, ptr %6, i64 312
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %151) #6
  %152 = getelementptr inbounds i8, ptr %6, i64 288
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %152) #6
  %153 = getelementptr inbounds i8, ptr %6, i64 264
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %153) #6
  %154 = getelementptr inbounds i8, ptr %6, i64 240
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %154) #6
  %155 = getelementptr inbounds i8, ptr %6, i64 216
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %155) #6
  %156 = getelementptr inbounds i8, ptr %6, i64 192
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %156) #6
  %157 = getelementptr inbounds i8, ptr %6, i64 168
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %157) #6
  %158 = getelementptr inbounds i8, ptr %6, i64 144
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %158) #6
  %159 = getelementptr inbounds i8, ptr %6, i64 120
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %159) #6
  %160 = getelementptr inbounds i8, ptr %6, i64 96
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %160) #6
  %161 = getelementptr inbounds i8, ptr %6, i64 72
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %161) #6
  %162 = getelementptr inbounds i8, ptr %6, i64 48
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %162) #6
  %163 = getelementptr inbounds i8, ptr %6, i64 24
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %163) #6
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 360, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 60, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 900, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn.pn
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPidEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 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 #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #5

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


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