; LLVM IR from VastoLorde95/Competitive-Programming :: CodeChef/SNACKDOWN/17/Pre-Elimination A/D (D)

; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::pair" = type { %"struct.std::pair.0", %"struct.std::pair.0" }
%"struct.std::pair.0" = type { i32, i32 }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@g = external dso_local global [15 x [15 x i32]], align 16
@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [117 x i8], align 1
@__PRETTY_FUNCTION__._Z5checkSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE = external hidden unnamed_addr constant [35 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z5checkSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"struct.std::pair", align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = call ptr @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  %17 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
  store ptr %16, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = call ptr @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %20 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  store ptr %19, ptr %20, align 8
  br label %21

21:                                               ; preds = %247, %1
  %22 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br i1 %22, label %24, label %23

23:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %249

24:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #6
  %25 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %25, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %26 = getelementptr inbounds %"struct.std::pair", ptr %6, i32 0, i32 0
  %27 = getelementptr inbounds %"struct.std::pair.0", ptr %26, i32 0, i32 0
  %28 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %28, ptr %7, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %29 = getelementptr inbounds %"struct.std::pair", ptr %6, i32 0, i32 0
  %30 = getelementptr inbounds %"struct.std::pair.0", ptr %29, i32 0, i32 1
  %31 = load i32, ptr %30, align 4, !tbaa !14
  store i32 %31, ptr %8, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %32 = getelementptr inbounds %"struct.std::pair", ptr %6, i32 0, i32 1
  %33 = getelementptr inbounds %"struct.std::pair.0", ptr %32, i32 0, i32 0
  %34 = load i32, ptr %33, align 4, !tbaa !15
  store i32 %34, ptr %9, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %35 = getelementptr inbounds %"struct.std::pair", ptr %6, i32 0, i32 1
  %36 = getelementptr inbounds %"struct.std::pair.0", ptr %35, i32 0, i32 1
  %37 = load i32, ptr %36, align 4, !tbaa !16
  store i32 %37, ptr %10, align 4, !tbaa !13
  %38 = load i32, ptr %7, align 4, !tbaa !13
  %39 = icmp sle i32 1, %38
  br i1 %39, label %40, label %44

40:                                               ; preds = %24
  %41 = load i32, ptr %7, align 4, !tbaa !13
  %42 = load i32, ptr @n, align 4, !tbaa !13
  %43 = icmp sle i32 %41, %42
  br label %44

44:                                               ; preds = %40, %24
  %45 = phi i1 [ false, %24 ], [ %43, %40 ]
  br i1 %45, label %46, label %47

46:                                               ; preds = %44
  br label %49

47:                                               ; preds = %44
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 63, ptr noundef @__PRETTY_FUNCTION__._Z5checkSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE) #7
  unreachable

48:                                               ; No predecessors!
  br label %49

49:                                               ; preds = %48, %46
  %50 = load i32, ptr %9, align 4, !tbaa !13
  %51 = icmp sle i32 1, %50
  br i1 %51, label %52, label %56

52:                                               ; preds = %49
  %53 = load i32, ptr %9, align 4, !tbaa !13
  %54 = load i32, ptr @n, align 4, !tbaa !13
  %55 = icmp sle i32 %53, %54
  br label %56

56:                                               ; preds = %52, %49
  %57 = phi i1 [ false, %49 ], [ %55, %52 ]
  br i1 %57, label %58, label %59

58:                                               ; preds = %56
  br label %61

59:                                               ; preds = %56
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 64, ptr noundef @__PRETTY_FUNCTION__._Z5checkSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE) #7
  unreachable

60:                                               ; No predecessors!
  br label %61

61:                                               ; preds = %60, %58
  %62 = load i32, ptr %8, align 4, !tbaa !13
  %63 = icmp sle i32 1, %62
  br i1 %63, label %64, label %68

64:                                               ; preds = %61
  %65 = load i32, ptr %8, align 4, !tbaa !13
  %66 = load i32, ptr @m, align 4, !tbaa !13
  %67 = icmp sle i32 %65, %66
  br label %68

68:                                               ; preds = %64, %61
  %69 = phi i1 [ false, %61 ], [ %67, %64 ]
  br i1 %69, label %70, label %71

70:                                               ; preds = %68
  br label %73

71:                                               ; preds = %68
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 65, ptr noundef @__PRETTY_FUNCTION__._Z5checkSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE) #7
  unreachable

72:                                               ; No predecessors!
  br label %73

73:                                               ; preds = %72, %70
  %74 = load i32, ptr %10, align 4, !tbaa !13
  %75 = icmp sle i32 1, %74
  br i1 %75, label %76, label %80

76:                                               ; preds = %73
  %77 = load i32, ptr %10, align 4, !tbaa !13
  %78 = load i32, ptr @m, align 4, !tbaa !13
  %79 = icmp sle i32 %77, %78
  br label %80

80:                                               ; preds = %76, %73
  %81 = phi i1 [ false, %73 ], [ %79, %76 ]
  br i1 %81, label %82, label %83

82:                                               ; preds = %80
  br label %85

83:                                               ; preds = %80
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 66, ptr noundef @__PRETTY_FUNCTION__._Z5checkSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE) #7
  unreachable

84:                                               ; No predecessors!
  br label %85

85:                                               ; preds = %84, %82
  %86 = load i32, ptr %7, align 4, !tbaa !13
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [15 x [15 x i32]], ptr @g, i64 0, i64 %87
  %89 = load i32, ptr %8, align 4, !tbaa !13
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [15 x i32], ptr %88, i64 0, i64 %90
  %92 = load i32, ptr %91, align 4, !tbaa !13
  %93 = icmp eq i32 %92, 1
  br i1 %93, label %94, label %95

94:                                               ; preds = %85
  br label %97

95:                                               ; preds = %85
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 78, ptr noundef @__PRETTY_FUNCTION__._Z5checkSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE) #7
  unreachable

96:                                               ; No predecessors!
  br label %97

97:                                               ; preds = %96, %94
  %98 = load i32, ptr %9, align 4, !tbaa !13
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [15 x [15 x i32]], ptr @g, i64 0, i64 %99
  %101 = load i32, ptr %10, align 4, !tbaa !13
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [15 x i32], ptr %100, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !13
  %105 = icmp eq i32 %104, 0
  br i1 %105, label %106, label %107

106:                                              ; preds = %97
  br label %109

107:                                              ; preds = %97
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 79, ptr noundef @__PRETTY_FUNCTION__._Z5checkSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE) #7
  unreachable

108:                                              ; No predecessors!
  br label %109

109:                                              ; preds = %108, %106
  %110 = load i32, ptr %7, align 4, !tbaa !13
  %111 = load i32, ptr %9, align 4, !tbaa !13
  %112 = sub nsw i32 %110, %111
  %113 = call i32 @llvm.abs.i32(i32 %112, i1 true)
  %114 = icmp eq i32 %113, 1
  br i1 %114, label %121, label %115

115:                                              ; preds = %109
  %116 = load i32, ptr %8, align 4, !tbaa !13
  %117 = load i32, ptr %10, align 4, !tbaa !13
  %118 = sub nsw i32 %116, %117
  %119 = call i32 @llvm.abs.i32(i32 %118, i1 true)
  %120 = icmp eq i32 %119, 1
  br i1 %120, label %121, label %151

121:                                              ; preds = %115, %109
  %122 = load i32, ptr %7, align 4, !tbaa !13
  %123 = load i32, ptr %9, align 4, !tbaa !13
  %124 = sub nsw i32 %122, %123
  %125 = call i32 @llvm.abs.i32(i32 %124, i1 true)
  %126 = icmp eq i32 %125, 0
  br i1 %126, label %133, label %127

127:                                              ; preds = %121
  %128 = load i32, ptr %8, align 4, !tbaa !13
  %129 = load i32, ptr %10, align 4, !tbaa !13
  %130 = sub nsw i32 %128, %129
  %131 = call i32 @llvm.abs.i32(i32 %130, i1 true)
  %132 = icmp eq i32 %131, 0
  br label %133

133:                                              ; preds = %127, %121
  %134 = phi i1 [ true, %121 ], [ %132, %127 ]
  br i1 %134, label %135, label %136

135:                                              ; preds = %133
  br label %138

136:                                              ; preds = %133
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 81, ptr noundef @__PRETTY_FUNCTION__._Z5checkSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE) #7
  unreachable

137:                                              ; No predecessors!
  br label %138

138:                                              ; preds = %137, %135
  %139 = load i32, ptr %7, align 4, !tbaa !13
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [15 x [15 x i32]], ptr @g, i64 0, i64 %140
  %142 = load i32, ptr %8, align 4, !tbaa !13
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [15 x i32], ptr %141, i64 0, i64 %143
  %145 = load i32, ptr %9, align 4, !tbaa !13
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [15 x [15 x i32]], ptr @g, i64 0, i64 %146
  %148 = load i32, ptr %10, align 4, !tbaa !13
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [15 x i32], ptr %147, i64 0, i64 %149
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %144, ptr noundef nonnull align 4 dereferenceable(4) %150) #6
  br label %246

151:                                              ; preds = %115
  %152 = load i32, ptr %7, align 4, !tbaa !13
  %153 = load i32, ptr %9, align 4, !tbaa !13
  %154 = icmp eq i32 %152, %153
  br i1 %154, label %155, label %200

155:                                              ; preds = %151
  %156 = load i32, ptr %8, align 4, !tbaa !13
  %157 = load i32, ptr %10, align 4, !tbaa !13
  %158 = sub nsw i32 %156, %157
  %159 = call i32 @llvm.abs.i32(i32 %158, i1 true)
  %160 = icmp eq i32 %159, 2
  br i1 %160, label %161, label %173

161:                                              ; preds = %155
  %162 = load i32, ptr %7, align 4, !tbaa !13
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [15 x [15 x i32]], ptr @g, i64 0, i64 %163
  %165 = load i32, ptr %8, align 4, !tbaa !13
  %166 = load i32, ptr %10, align 4, !tbaa !13
  %167 = add nsw i32 %165, %166
  %168 = sdiv i32 %167, 2
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [15 x i32], ptr %164, i64 0, i64 %169
  %171 = load i32, ptr %170, align 4, !tbaa !13
  %172 = icmp eq i32 %171, 1
  br label %173

173:                                              ; preds = %161, %155
  %174 = phi i1 [ false, %155 ], [ %172, %161 ]
  br i1 %174, label %175, label %176

175:                                              ; preds = %173
  br label %178

176:                                              ; preds = %173
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 86, ptr noundef @__PRETTY_FUNCTION__._Z5checkSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE) #7
  unreachable

177:                                              ; No predecessors!
  br label %178

178:                                              ; preds = %177, %175
  %179 = load i32, ptr %7, align 4, !tbaa !13
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [15 x [15 x i32]], ptr @g, i64 0, i64 %180
  %182 = load i32, ptr %8, align 4, !tbaa !13
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [15 x i32], ptr %181, i64 0, i64 %183
  store i32 0, ptr %184, align 4, !tbaa !13
  %185 = load i32, ptr %9, align 4, !tbaa !13
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [15 x [15 x i32]], ptr @g, i64 0, i64 %186
  %188 = load i32, ptr %10, align 4, !tbaa !13
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [15 x i32], ptr %187, i64 0, i64 %189
  store i32 1, ptr %190, align 4, !tbaa !13
  %191 = load i32, ptr %7, align 4, !tbaa !13
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds [15 x [15 x i32]], ptr @g, i64 0, i64 %192
  %194 = load i32, ptr %8, align 4, !tbaa !13
  %195 = load i32, ptr %10, align 4, !tbaa !13
  %196 = add nsw i32 %194, %195
  %197 = sdiv i32 %196, 2
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [15 x i32], ptr %193, i64 0, i64 %198
  store i32 0, ptr %199, align 4, !tbaa !13
  br label %245

200:                                              ; preds = %151
  %201 = load i32, ptr %7, align 4, !tbaa !13
  %202 = load i32, ptr %9, align 4, !tbaa !13
  %203 = sub nsw i32 %201, %202
  %204 = call i32 @llvm.abs.i32(i32 %203, i1 true)
  %205 = icmp eq i32 %204, 2
  br i1 %205, label %206, label %218

206:                                              ; preds = %200
  %207 = load i32, ptr %7, align 4, !tbaa !13
  %208 = load i32, ptr %9, align 4, !tbaa !13
  %209 = add nsw i32 %207, %208
  %210 = sdiv i32 %209, 2
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [15 x [15 x i32]], ptr @g, i64 0, i64 %211
  %213 = load i32, ptr %8, align 4, !tbaa !13
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [15 x i32], ptr %212, i64 0, i64 %214
  %216 = load i32, ptr %215, align 4, !tbaa !13
  %217 = icmp eq i32 %216, 1
  br label %218

218:                                              ; preds = %206, %200
  %219 = phi i1 [ false, %200 ], [ %217, %206 ]
  br i1 %219, label %220, label %221

220:                                              ; preds = %218
  br label %223

221:                                              ; preds = %218
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 92, ptr noundef @__PRETTY_FUNCTION__._Z5checkSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE) #7
  unreachable

222:                                              ; No predecessors!
  br label %223

223:                                              ; preds = %222, %220
  %224 = load i32, ptr %7, align 4, !tbaa !13
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [15 x [15 x i32]], ptr @g, i64 0, i64 %225
  %227 = load i32, ptr %8, align 4, !tbaa !13
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [15 x i32], ptr %226, i64 0, i64 %228
  store i32 0, ptr %229, align 4, !tbaa !13
  %230 = load i32, ptr %9, align 4, !tbaa !13
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [15 x [15 x i32]], ptr @g, i64 0, i64 %231
  %233 = load i32, ptr %10, align 4, !tbaa !13
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds [15 x i32], ptr %232, i64 0, i64 %234
  store i32 1, ptr %235, align 4, !tbaa !13
  %236 = load i32, ptr %7, align 4, !tbaa !13
  %237 = load i32, ptr %9, align 4, !tbaa !13
  %238 = add nsw i32 %236, %237
  %239 = sdiv i32 %238, 2
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [15 x [15 x i32]], ptr @g, i64 0, i64 %240
  %242 = load i32, ptr %8, align 4, !tbaa !13
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [15 x i32], ptr %241, i64 0, i64 %243
  store i32 0, ptr %244, align 4, !tbaa !13
  br label %245

245:                                              ; preds = %223, %178
  br label %246

246:                                              ; preds = %245, %138
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  br label %247

247:                                              ; preds = %246
  %248 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  br label %21

249:                                              ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 1, ptr %12, align 4, !tbaa !13
  br label %250

250:                                              ; preds = %275, %249
  %251 = load i32, ptr %12, align 4, !tbaa !13
  %252 = load i32, ptr @n, align 4, !tbaa !13
  %253 = icmp sle i32 %251, %252
  br i1 %253, label %255, label %254

254:                                              ; preds = %250
  store i32 4, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %278

255:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 1, ptr %14, align 4, !tbaa !13
  br label %256

256:                                              ; preds = %271, %255
  %257 = load i32, ptr %14, align 4, !tbaa !13
  %258 = load i32, ptr @m, align 4, !tbaa !13
  %259 = icmp sle i32 %257, %258
  br i1 %259, label %261, label %260

260:                                              ; preds = %256
  store i32 7, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %274

261:                                              ; preds = %256
  %262 = load i32, ptr %12, align 4, !tbaa !13
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds [15 x [15 x i32]], ptr @g, i64 0, i64 %263
  %265 = load i32, ptr %14, align 4, !tbaa !13
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [15 x i32], ptr %264, i64 0, i64 %266
  %268 = load i32, ptr %267, align 4, !tbaa !13
  %269 = load i32, ptr %11, align 4, !tbaa !13
  %270 = add nsw i32 %269, %268
  store i32 %270, ptr %11, align 4, !tbaa !13
  br label %271

271:                                              ; preds = %261
  %272 = load i32, ptr %14, align 4, !tbaa !13
  %273 = add nsw i32 %272, 1
  store i32 %273, ptr %14, align 4, !tbaa !13
  br label %256, !llvm.loop !17

274:                                              ; preds = %260
  br label %275

275:                                              ; preds = %274
  %276 = load i32, ptr %12, align 4, !tbaa !13
  %277 = add nsw i32 %276, 1
  store i32 %277, ptr %12, align 4, !tbaa !13
  br label %250, !llvm.loop !19

278:                                              ; preds = %254
  %279 = load i32, ptr %11, align 4, !tbaa !13
  %280 = icmp eq i32 %279, 1
  br i1 %280, label %281, label %282

281:                                              ; preds = %278
  br label %284

282:                                              ; preds = %278
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.1, i32 noundef 107, ptr noundef @__PRETTY_FUNCTION__._Z5checkSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE) #7
  unreachable

283:                                              ; No predecessors!
  br label %284

284:                                              ; preds = %283, %281
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  ret void
}

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

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #5

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

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

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

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


; 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.__gnu_cxx::__normal_iterator" = type { ptr }

@n = external dso_local local_unnamed_addr global i32, align 4
@m = external dso_local local_unnamed_addr global i32, align 4
@g = external dso_local global [15 x [15 x i32]], align 16
@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [117 x i8], align 1
@__PRETTY_FUNCTION__._Z5checkSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE = external hidden unnamed_addr constant [35 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z5checkSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE(ptr noundef nonnull %0) local_unnamed_addr #0 {
  %2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %4 = tail call ptr @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store ptr %4, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %5 = tail call ptr @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #6
  store ptr %5, ptr %3, align 8
  %6 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  br i1 %6, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %82, %1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  %7 = load i32, ptr @n, align 4, !tbaa !5
  %.not75 = icmp slt i32 %7, 1
  br i1 %.not75, label %._crit_edge78.thread, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %._crit_edge
  %8 = load i32, ptr @m, align 4, !tbaa !5
  %.not6970 = icmp slt i32 %8, 1
  br i1 %.not6970, label %._crit_edge78.thread, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %9 = add nuw i32 %8, 1
  %10 = add nuw i32 %7, 1
  %wide.trip.count85 = zext i32 %10 to i64
  %wide.trip.count = zext i32 %9 to i64
  %11 = zext nneg i32 %8 to i64
  %min.iters.check = icmp ult i32 %8, 8
  %n.vec = and i64 %11, 2147483640
  %ind.end = or disjoint i64 %n.vec, 1
  %cmp.n = icmp eq i64 %n.vec, %11
  br label %.preheader

.lr.ph:                                           ; preds = %1, %82
  %12 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %.sroa.0.0.copyload = load i32, ptr %12, align 4
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 4
  %.sroa.4.0.copyload = load i32, ptr %.sroa.4.0..sroa_idx, align 4
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 8
  %.sroa.5.0.copyload = load i32, ptr %.sroa.5.0..sroa_idx, align 4
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 12
  %.sroa.6.0.copyload = load i32, ptr %.sroa.6.0..sroa_idx, align 4
  %13 = icmp sgt i32 %.sroa.0.0.copyload, 0
  %14 = load i32, ptr @n, align 4
  %15 = icmp sle i32 %.sroa.0.0.copyload, %14
  %16 = select i1 %13, i1 %15, i1 false
  br i1 %16, label %18, label %17

17:                                               ; preds = %.lr.ph
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 63, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5checkSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE) #7
  unreachable

18:                                               ; preds = %.lr.ph
  %19 = icmp sgt i32 %.sroa.5.0.copyload, 0
  %20 = icmp sle i32 %.sroa.5.0.copyload, %14
  %21 = select i1 %19, i1 %20, i1 false
  br i1 %21, label %23, label %22

22:                                               ; preds = %18
  call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 64, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5checkSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE) #7
  unreachable

23:                                               ; preds = %18
  %24 = icmp sgt i32 %.sroa.4.0.copyload, 0
  %25 = load i32, ptr @m, align 4
  %26 = icmp sle i32 %.sroa.4.0.copyload, %25
  %27 = select i1 %24, i1 %26, i1 false
  br i1 %27, label %29, label %28

28:                                               ; preds = %23
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 65, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5checkSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE) #7
  unreachable

29:                                               ; preds = %23
  %30 = icmp sgt i32 %.sroa.6.0.copyload, 0
  %31 = icmp sle i32 %.sroa.6.0.copyload, %25
  %32 = select i1 %30, i1 %31, i1 false
  br i1 %32, label %34, label %33

33:                                               ; preds = %29
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 66, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5checkSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE) #7
  unreachable

34:                                               ; preds = %29
  %35 = zext nneg i32 %.sroa.0.0.copyload to i64
  %36 = zext nneg i32 %.sroa.4.0.copyload to i64
  %37 = getelementptr inbounds [15 x [15 x i32]], ptr @g, i64 0, i64 %35, i64 %36
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = icmp eq i32 %38, 1
  br i1 %39, label %41, label %40

40:                                               ; preds = %34
  call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 78, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5checkSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE) #7
  unreachable

41:                                               ; preds = %34
  %42 = zext nneg i32 %.sroa.5.0.copyload to i64
  %43 = zext nneg i32 %.sroa.6.0.copyload to i64
  %44 = getelementptr inbounds [15 x [15 x i32]], ptr @g, i64 0, i64 %42, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %48, label %47

47:                                               ; preds = %41
  call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 79, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5checkSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE) #7
  unreachable

48:                                               ; preds = %41
  %49 = sub nsw i32 %.sroa.0.0.copyload, %.sroa.5.0.copyload
  %50 = call i32 @llvm.abs.i32(i32 %49, i1 true)
  %51 = icmp eq i32 %50, 1
  br i1 %51, label %56, label %52

52:                                               ; preds = %48
  %53 = sub nsw i32 %.sroa.4.0.copyload, %.sroa.6.0.copyload
  %54 = call i32 @llvm.abs.i32(i32 %53, i1 true)
  %55 = icmp eq i32 %54, 1
  br i1 %55, label %56, label %60

56:                                               ; preds = %52, %48
  %57 = icmp eq i32 %.sroa.0.0.copyload, %.sroa.5.0.copyload
  %58 = icmp eq i32 %.sroa.4.0.copyload, %.sroa.6.0.copyload
  %or.cond = select i1 %57, i1 true, i1 %58
  br i1 %or.cond, label %.critedge, label %59

59:                                               ; preds = %56
  call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 81, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5checkSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE) #7
  unreachable

.critedge:                                        ; preds = %56
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %37, ptr noundef nonnull align 4 dereferenceable(4) %44) #6
  br label %82

60:                                               ; preds = %52
  %61 = icmp eq i32 %.sroa.0.0.copyload, %.sroa.5.0.copyload
  br i1 %61, label %62, label %72

62:                                               ; preds = %60
  %63 = icmp eq i32 %54, 2
  br i1 %63, label %64, label %.critedge2

64:                                               ; preds = %62
  %65 = add nuw nsw i32 %.sroa.6.0.copyload, %.sroa.4.0.copyload
  %66 = lshr i32 %65, 1
  %67 = zext nneg i32 %66 to i64
  %68 = getelementptr inbounds [15 x [15 x i32]], ptr @g, i64 0, i64 %35, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = icmp eq i32 %69, 1
  br i1 %70, label %71, label %.critedge2

.critedge2:                                       ; preds = %62, %64
  call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 86, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5checkSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE) #7
  unreachable

71:                                               ; preds = %64
  store i32 0, ptr %37, align 4, !tbaa !5
  store i32 1, ptr %44, align 4, !tbaa !5
  store i32 0, ptr %68, align 4, !tbaa !5
  br label %82

72:                                               ; preds = %60
  %73 = icmp eq i32 %50, 2
  br i1 %73, label %74, label %.critedge4

74:                                               ; preds = %72
  %75 = add nuw nsw i32 %.sroa.5.0.copyload, %.sroa.0.0.copyload
  %76 = lshr i32 %75, 1
  %77 = zext nneg i32 %76 to i64
  %78 = getelementptr inbounds [15 x [15 x i32]], ptr @g, i64 0, i64 %77, i64 %36
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = icmp eq i32 %79, 1
  br i1 %80, label %81, label %.critedge4

.critedge4:                                       ; preds = %72, %74
  call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i32 noundef 92, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5checkSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE) #7
  unreachable

81:                                               ; preds = %74
  store i32 0, ptr %37, align 4, !tbaa !5
  store i32 1, ptr %44, align 4, !tbaa !5
  store i32 0, ptr %78, align 4, !tbaa !5
  br label %82

82:                                               ; preds = %71, %81, %.critedge
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  %84 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  br i1 %84, label %.lr.ph, label %._crit_edge

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge74
  %indvars.iv82 = phi i64 [ 1, %.preheader.preheader ], [ %indvars.iv.next83, %._crit_edge74 ]
  %.06476 = phi i32 [ 0, %.preheader.preheader ], [ %.lcssa, %._crit_edge74 ]
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader
  %indvars.iv.ph = phi i64 [ 1, %.preheader ], [ %ind.end, %middle.block ]
  %.171.ph = phi i32 [ %.06476, %.preheader ], [ %91, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.preheader
  %85 = insertelement <4 x i32> <i32 poison, i32 0, i32 0, i32 0>, i32 %.06476, i64 0
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ %85, %vector.ph ], [ %88, %vector.body ]
  %vec.phi88 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %89, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %86 = getelementptr inbounds [15 x [15 x i32]], ptr @g, i64 0, i64 %indvars.iv82, i64 %offset.idx
  %87 = getelementptr inbounds i8, ptr %86, i64 16
  %wide.load = load <4 x i32>, ptr %86, align 4, !tbaa !5
  %wide.load89 = load <4 x i32>, ptr %87, align 4, !tbaa !5
  %88 = add <4 x i32> %wide.load, %vec.phi
  %89 = add <4 x i32> %wide.load89, %vec.phi88
  %index.next = add nuw i64 %index, 8
  %90 = icmp eq i64 %index.next, %n.vec
  br i1 %90, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %89, %88
  %91 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  br i1 %cmp.n, label %._crit_edge74, label %scalar.ph.preheader

._crit_edge78:                                    ; preds = %._crit_edge74
  %92 = icmp eq i32 %.lcssa, 1
  br i1 %92, label %96, label %._crit_edge78.thread

._crit_edge74:                                    ; preds = %scalar.ph, %middle.block
  %.lcssa = phi i32 [ %91, %middle.block ], [ %95, %scalar.ph ]
  %indvars.iv.next83 = add nuw nsw i64 %indvars.iv82, 1
  %exitcond86.not = icmp eq i64 %indvars.iv.next83, %wide.trip.count85
  br i1 %exitcond86.not, label %._crit_edge78, label %.preheader, !llvm.loop !13

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %.171 = phi i32 [ %95, %scalar.ph ], [ %.171.ph, %scalar.ph.preheader ]
  %93 = getelementptr inbounds [15 x [15 x i32]], ptr @g, i64 0, i64 %indvars.iv82, i64 %indvars.iv
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %95 = add nsw i32 %94, %.171
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge74, label %scalar.ph, !llvm.loop !14

._crit_edge78.thread:                             ; preds = %.preheader.lr.ph, %._crit_edge, %._crit_edge78
  call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.1, i32 noundef 107, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5checkSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE) #7
  unreachable

96:                                               ; preds = %._crit_edge78
  ret void
}

; 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 nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #4

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

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

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

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

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


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