; LLVM IR from kazunetakahashi/atcoder :: 2019/0504_AGC033/D.ll (Z10zero_setupv)

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

@dp1 = external dso_local global [17 x [186 x [186 x [186 x i16]]]], align 16
@dp2 = external dso_local global [17 x [186 x [186 x [186 x i16]]]], align 16
@H = external dso_local global i16, align 2
@W = external dso_local global i16, align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef signext i16 @_Zor5ColorS_(i16 noundef signext, i16 noundef signext) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z7press_Xii(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, i32 noundef, i32 noundef) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z7press_Yii(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10zero_setupv() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca i16, align 2
  %7 = alloca i16, align 2
  %8 = alloca i32, align 4
  %9 = alloca i16, align 2
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca i16, align 2
  %15 = alloca i16, align 2
  %16 = alloca i32, align 4
  %17 = alloca i16, align 2
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #3
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %134, %0
  %19 = load i32, ptr %1, align 4, !tbaa !5
  %20 = load i16, ptr @H, align 2, !tbaa !9
  %21 = sext i16 %20 to i32
  %22 = icmp sle i32 %19, %21
  br i1 %22, label %24, label %23

23:                                               ; preds = %18
  store i32 2, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #3
  br label %137

24:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  %25 = load i32, ptr %1, align 4, !tbaa !5
  store i32 %25, ptr %3, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %130, %24
  %27 = load i32, ptr %3, align 4, !tbaa !5
  %28 = load i16, ptr @H, align 2, !tbaa !9
  %29 = sext i16 %28 to i32
  %30 = icmp sle i32 %27, %29
  br i1 %30, label %32, label %31

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

32:                                               ; preds = %26
  %33 = load i32, ptr %1, align 4, !tbaa !5
  %34 = load i32, ptr %3, align 4, !tbaa !5
  %35 = icmp eq i32 %33, %34
  br i1 %35, label %36, label %58

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

37:                                               ; preds = %54, %36
  %38 = load i32, ptr %4, align 4, !tbaa !5
  %39 = load i16, ptr @W, align 2, !tbaa !9
  %40 = sext i16 %39 to i32
  %41 = icmp sle i32 %38, %40
  br i1 %41, label %43, label %42

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

43:                                               ; preds = %37
  %44 = load i16, ptr @W, align 2, !tbaa !9
  %45 = load i32, ptr %1, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [186 x [186 x [186 x i16]]], ptr @dp1, i64 0, i64 %46
  %48 = load i32, ptr %3, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [186 x [186 x i16]], ptr %47, i64 0, i64 %49
  %51 = load i32, ptr %4, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [186 x i16], ptr %50, i64 0, i64 %52
  store i16 %44, ptr %53, align 2, !tbaa !9
  br label %54

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

57:                                               ; preds = %42
  br label %129

58:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #3
  %59 = load i32, ptr %1, align 4, !tbaa !5
  %60 = load i32, ptr %3, align 4, !tbaa !5
  call void @_Z7press_Xii(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %5, i32 noundef %59, i32 noundef %60)
  call void @llvm.lifetime.start.p0(i64 2, ptr %6) #3
  %61 = load i16, ptr @W, align 2, !tbaa !9
  store i16 %61, ptr %6, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %7) #3
  store i16 0, ptr %7, align 2, !tbaa !13
  %62 = load i16, ptr @W, align 2, !tbaa !9
  %63 = load i32, ptr %1, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [186 x [186 x [186 x i16]]], ptr @dp1, i64 0, i64 %64
  %66 = load i32, ptr %3, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [186 x [186 x i16]], ptr %65, i64 0, i64 %67
  %69 = load i16, ptr @W, align 2, !tbaa !9
  %70 = sext i16 %69 to i64
  %71 = getelementptr inbounds [186 x i16], ptr %68, i64 0, i64 %70
  store i16 %62, ptr %71, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %72 = load i16, ptr @W, align 2, !tbaa !9
  %73 = sext i16 %72 to i32
  %74 = sub nsw i32 %73, 1
  store i32 %74, ptr %8, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %125, %58
  %76 = load i32, ptr %8, align 4, !tbaa !5
  %77 = icmp sge i32 %76, 0
  br i1 %77, label %79, label %78

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

79:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 2, ptr %9) #3
  %80 = load i16, ptr %7, align 2, !tbaa !13
  %81 = load i32, ptr %8, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %82) #3
  %84 = load i16, ptr %83, align 2, !tbaa !13
  %85 = call noundef signext i16 @_Zor5ColorS_(i16 noundef signext %80, i16 noundef signext %84)
  store i16 %85, ptr %9, align 2, !tbaa !13
  %86 = load i16, ptr %9, align 2, !tbaa !13
  %87 = icmp ne i16 %86, 3
  br i1 %87, label %88, label %90

88:                                               ; preds = %79
  %89 = load i16, ptr %9, align 2, !tbaa !13
  store i16 %89, ptr %7, align 2, !tbaa !13
  br label %114

90:                                               ; preds = %79
  %91 = load i32, ptr %8, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %92) #3
  %94 = load i16, ptr %93, align 2, !tbaa !13
  %95 = icmp eq i16 %94, 1
  br i1 %95, label %102, label %96

96:                                               ; preds = %90
  %97 = load i32, ptr %8, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %98) #3
  %100 = load i16, ptr %99, align 2, !tbaa !13
  %101 = icmp eq i16 %100, 2
  br i1 %101, label %102, label %110

102:                                              ; preds = %96, %90
  %103 = load i32, ptr %8, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  %105 = trunc i32 %104 to i16
  store i16 %105, ptr %6, align 2, !tbaa !9
  %106 = load i32, ptr %8, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %107) #3
  %109 = load i16, ptr %108, align 2, !tbaa !13
  store i16 %109, ptr %7, align 2, !tbaa !13
  br label %113

110:                                              ; preds = %96
  %111 = load i32, ptr %8, align 4, !tbaa !5
  %112 = trunc i32 %111 to i16
  store i16 %112, ptr %6, align 2, !tbaa !9
  store i16 0, ptr %7, align 2, !tbaa !13
  br label %113

113:                                              ; preds = %110, %102
  br label %114

114:                                              ; preds = %113, %88
  %115 = load i16, ptr %6, align 2, !tbaa !9
  %116 = load i32, ptr %1, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [186 x [186 x [186 x i16]]], ptr @dp1, i64 0, i64 %117
  %119 = load i32, ptr %3, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [186 x [186 x i16]], ptr %118, i64 0, i64 %120
  %122 = load i32, ptr %8, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [186 x i16], ptr %121, i64 0, i64 %123
  store i16 %115, ptr %124, align 2, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 2, ptr %9) #3
  br label %125

125:                                              ; preds = %114
  %126 = load i32, ptr %8, align 4, !tbaa !5
  %127 = add nsw i32 %126, -1
  store i32 %127, ptr %8, align 4, !tbaa !5
  br label %75, !llvm.loop !15

128:                                              ; preds = %78
  call void @llvm.lifetime.end.p0(i64 2, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %6) #3
  call void @_ZNSt6vectorI5ColorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #3
  br label %129

129:                                              ; preds = %128, %57
  br label %130

130:                                              ; preds = %129
  %131 = load i32, ptr %3, align 4, !tbaa !5
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %3, align 4, !tbaa !5
  br label %26, !llvm.loop !16

133:                                              ; preds = %31
  br label %134

134:                                              ; preds = %133
  %135 = load i32, ptr %1, align 4, !tbaa !5
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %1, align 4, !tbaa !5
  br label %18, !llvm.loop !17

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

138:                                              ; preds = %254, %137
  %139 = load i32, ptr %10, align 4, !tbaa !5
  %140 = load i16, ptr @W, align 2, !tbaa !9
  %141 = sext i16 %140 to i32
  %142 = icmp sle i32 %139, %141
  br i1 %142, label %144, label %143

143:                                              ; preds = %138
  store i32 14, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  br label %257

144:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %145 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %145, ptr %11, align 4, !tbaa !5
  br label %146

146:                                              ; preds = %250, %144
  %147 = load i32, ptr %11, align 4, !tbaa !5
  %148 = load i16, ptr @W, align 2, !tbaa !9
  %149 = sext i16 %148 to i32
  %150 = icmp sle i32 %147, %149
  br i1 %150, label %152, label %151

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

152:                                              ; preds = %146
  %153 = load i32, ptr %10, align 4, !tbaa !5
  %154 = load i32, ptr %11, align 4, !tbaa !5
  %155 = icmp eq i32 %153, %154
  br i1 %155, label %156, label %178

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

157:                                              ; preds = %174, %156
  %158 = load i32, ptr %12, align 4, !tbaa !5
  %159 = load i16, ptr @H, align 2, !tbaa !9
  %160 = sext i16 %159 to i32
  %161 = icmp sle i32 %158, %160
  br i1 %161, label %163, label %162

162:                                              ; preds = %157
  store i32 20, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  br label %177

163:                                              ; preds = %157
  %164 = load i16, ptr @H, align 2, !tbaa !9
  %165 = load i32, ptr %10, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [186 x [186 x [186 x i16]]], ptr @dp2, i64 0, i64 %166
  %168 = load i32, ptr %11, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [186 x [186 x i16]], ptr %167, i64 0, i64 %169
  %171 = load i32, ptr %12, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [186 x i16], ptr %170, i64 0, i64 %172
  store i16 %164, ptr %173, align 2, !tbaa !9
  br label %174

174:                                              ; preds = %163
  %175 = load i32, ptr %12, align 4, !tbaa !5
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %12, align 4, !tbaa !5
  br label %157, !llvm.loop !18

177:                                              ; preds = %162
  br label %249

178:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #3
  %179 = load i32, ptr %10, align 4, !tbaa !5
  %180 = load i32, ptr %11, align 4, !tbaa !5
  call void @_Z7press_Yii(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %13, i32 noundef %179, i32 noundef %180)
  call void @llvm.lifetime.start.p0(i64 2, ptr %14) #3
  %181 = load i16, ptr @H, align 2, !tbaa !9
  store i16 %181, ptr %14, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %15) #3
  store i16 0, ptr %15, align 2, !tbaa !13
  %182 = load i16, ptr @H, align 2, !tbaa !9
  %183 = load i32, ptr %10, align 4, !tbaa !5
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [186 x [186 x [186 x i16]]], ptr @dp2, i64 0, i64 %184
  %186 = load i32, ptr %11, align 4, !tbaa !5
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [186 x [186 x i16]], ptr %185, i64 0, i64 %187
  %189 = load i16, ptr @H, align 2, !tbaa !9
  %190 = sext i16 %189 to i64
  %191 = getelementptr inbounds [186 x i16], ptr %188, i64 0, i64 %190
  store i16 %182, ptr %191, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %192 = load i16, ptr @H, align 2, !tbaa !9
  %193 = sext i16 %192 to i32
  %194 = sub nsw i32 %193, 1
  store i32 %194, ptr %16, align 4, !tbaa !5
  br label %195

195:                                              ; preds = %245, %178
  %196 = load i32, ptr %16, align 4, !tbaa !5
  %197 = icmp sge i32 %196, 0
  br i1 %197, label %199, label %198

198:                                              ; preds = %195
  store i32 23, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  br label %248

199:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 2, ptr %17) #3
  %200 = load i16, ptr %15, align 2, !tbaa !13
  %201 = load i32, ptr %16, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %202) #3
  %204 = load i16, ptr %203, align 2, !tbaa !13
  %205 = call noundef signext i16 @_Zor5ColorS_(i16 noundef signext %200, i16 noundef signext %204)
  store i16 %205, ptr %17, align 2, !tbaa !13
  %206 = load i16, ptr %17, align 2, !tbaa !13
  %207 = icmp ne i16 %206, 3
  br i1 %207, label %208, label %210

208:                                              ; preds = %199
  %209 = load i16, ptr %17, align 2, !tbaa !13
  store i16 %209, ptr %15, align 2, !tbaa !13
  br label %234

210:                                              ; preds = %199
  %211 = load i32, ptr %16, align 4, !tbaa !5
  %212 = sext i32 %211 to i64
  %213 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %212) #3
  %214 = load i16, ptr %213, align 2, !tbaa !13
  %215 = icmp eq i16 %214, 1
  br i1 %215, label %222, label %216

216:                                              ; preds = %210
  %217 = load i32, ptr %16, align 4, !tbaa !5
  %218 = sext i32 %217 to i64
  %219 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %218) #3
  %220 = load i16, ptr %219, align 2, !tbaa !13
  %221 = icmp eq i16 %220, 2
  br i1 %221, label %222, label %230

222:                                              ; preds = %216, %210
  %223 = load i32, ptr %16, align 4, !tbaa !5
  %224 = add nsw i32 %223, 1
  %225 = trunc i32 %224 to i16
  store i16 %225, ptr %14, align 2, !tbaa !9
  %226 = load i32, ptr %16, align 4, !tbaa !5
  %227 = sext i32 %226 to i64
  %228 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %227) #3
  %229 = load i16, ptr %228, align 2, !tbaa !13
  store i16 %229, ptr %15, align 2, !tbaa !13
  br label %233

230:                                              ; preds = %216
  %231 = load i32, ptr %16, align 4, !tbaa !5
  %232 = trunc i32 %231 to i16
  store i16 %232, ptr %14, align 2, !tbaa !9
  store i16 0, ptr %15, align 2, !tbaa !13
  br label %233

233:                                              ; preds = %230, %222
  br label %234

234:                                              ; preds = %233, %208
  %235 = load i16, ptr %14, align 2, !tbaa !9
  %236 = load i32, ptr %10, align 4, !tbaa !5
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [186 x [186 x [186 x i16]]], ptr @dp2, i64 0, i64 %237
  %239 = load i32, ptr %11, align 4, !tbaa !5
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [186 x [186 x i16]], ptr %238, i64 0, i64 %240
  %242 = load i32, ptr %16, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [186 x i16], ptr %241, i64 0, i64 %243
  store i16 %235, ptr %244, align 2, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #3
  br label %245

245:                                              ; preds = %234
  %246 = load i32, ptr %16, align 4, !tbaa !5
  %247 = add nsw i32 %246, -1
  store i32 %247, ptr %16, align 4, !tbaa !5
  br label %195, !llvm.loop !19

248:                                              ; preds = %198
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %14) #3
  call void @_ZNSt6vectorI5ColorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #3
  br label %249

249:                                              ; preds = %248, %177
  br label %250

250:                                              ; preds = %249
  %251 = load i32, ptr %11, align 4, !tbaa !5
  %252 = add nsw i32 %251, 1
  store i32 %252, ptr %11, align 4, !tbaa !5
  br label %146, !llvm.loop !20

253:                                              ; preds = %151
  br label %254

254:                                              ; preds = %253
  %255 = load i32, ptr %10, align 4, !tbaa !5
  %256 = add nsw i32 %255, 1
  store i32 %256, ptr %10, align 4, !tbaa !5
  br label %138, !llvm.loop !21

257:                                              ; preds = %143
  ret void
}

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


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Color, std::allocator<Color>>::_Vector_impl" }
%"struct.std::_Vector_base<Color, std::allocator<Color>>::_Vector_impl" = type { %"struct.std::_Vector_base<Color, std::allocator<Color>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Color, std::allocator<Color>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@dp1 = external dso_local local_unnamed_addr global [17 x [186 x [186 x [186 x i16]]]], align 16
@dp2 = external dso_local local_unnamed_addr global [17 x [186 x [186 x [186 x i16]]]], align 16
@H = external dso_local local_unnamed_addr global i16, align 2
@W = external dso_local local_unnamed_addr global i16, align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef signext i16 @_Zor5ColorS_(i16 noundef signext, i16 noundef signext) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z7press_Xii(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z7press_Yii(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10zero_setupv() local_unnamed_addr #1 {
  %1 = alloca %"class.std::vector", align 8
  %2 = alloca %"class.std::vector", align 8
  %3 = load i16, ptr @H, align 2, !tbaa !5
  %.not103 = icmp slt i16 %3, 0
  br i1 %.not103, label %.preheader86, label %.preheader89

.preheader89:                                     ; preds = %0, %._crit_edge102
  %4 = phi i16 [ %8, %._crit_edge102 ], [ %3, %0 ]
  %indvars.iv127 = phi i64 [ %indvars.iv.next128, %._crit_edge102 ], [ 0, %0 ]
  %5 = sext i16 %4 to i64
  %.not8298 = icmp sgt i64 %indvars.iv127, %5
  br i1 %.not8298, label %._crit_edge102, label %.lr.ph101

.lr.ph101:                                        ; preds = %.preheader89
  %6 = trunc nuw nsw i64 %indvars.iv127 to i32
  br label %9

.preheader86:                                     ; preds = %._crit_edge102, %0
  %7 = load i16, ptr @W, align 2, !tbaa !5
  %.not78121 = icmp slt i16 %7, 0
  br i1 %.not78121, label %._crit_edge123, label %.preheader85

._crit_edge102.loopexit:                          ; preds = %.loopexit88
  %.pre152 = sext i16 %45 to i64
  br label %._crit_edge102

._crit_edge102:                                   ; preds = %._crit_edge102.loopexit, %.preheader89
  %.pre-phi153 = phi i64 [ %.pre152, %._crit_edge102.loopexit ], [ %5, %.preheader89 ]
  %8 = phi i16 [ %45, %._crit_edge102.loopexit ], [ %4, %.preheader89 ]
  %indvars.iv.next128 = add nuw nsw i64 %indvars.iv127, 1
  %.not.not = icmp slt i64 %indvars.iv127, %.pre-phi153
  br i1 %.not.not, label %.preheader89, label %.preheader86, !llvm.loop !9

9:                                                ; preds = %.lr.ph101, %.loopexit88
  %10 = phi i16 [ %4, %.lr.ph101 ], [ %45, %.loopexit88 ]
  %11 = phi i16 [ %4, %.lr.ph101 ], [ %46, %.loopexit88 ]
  %indvars.iv129 = phi i64 [ %indvars.iv127, %.lr.ph101 ], [ %indvars.iv.next130, %.loopexit88 ]
  %12 = icmp eq i64 %indvars.iv127, %indvars.iv129
  br i1 %12, label %.preheader87, label %18

.preheader87:                                     ; preds = %9
  %13 = load i16, ptr @W, align 2, !tbaa !5
  %.not8495 = icmp slt i16 %13, 0
  br i1 %.not8495, label %.loopexit88, label %.lr.ph97

.lr.ph97:                                         ; preds = %.preheader87
  %narrow = add nuw i16 %13, 1
  %wide.trip.count = zext i16 %narrow to i64
  %min.iters.check = icmp ult i16 %13, 15
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph97
  %n.vec = and i64 %wide.trip.count, 65520
  %broadcast.splatinsert = insertelement <8 x i16> poison, i16 %13, i64 0
  %broadcast.splat = shufflevector <8 x i16> %broadcast.splatinsert, <8 x i16> poison, <8 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %14 = getelementptr inbounds [186 x [186 x [186 x i16]]], ptr @dp1, i64 0, i64 %indvars.iv127, i64 %indvars.iv127, i64 %index
  %15 = getelementptr inbounds i8, ptr %14, i64 16
  store <8 x i16> %broadcast.splat, ptr %14, align 4, !tbaa !5
  store <8 x i16> %broadcast.splat, ptr %15, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 16
  %16 = icmp eq i64 %index.next, %n.vec
  br i1 %16, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.loopexit88, label %scalar.ph.preheader

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

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv124 = phi i64 [ %indvars.iv.next125, %scalar.ph ], [ %indvars.iv124.ph, %scalar.ph.preheader ]
  %17 = getelementptr inbounds [186 x [186 x [186 x i16]]], ptr @dp1, i64 0, i64 %indvars.iv127, i64 %indvars.iv127, i64 %indvars.iv124
  store i16 %13, ptr %17, align 2, !tbaa !5
  %indvars.iv.next125 = add nuw nsw i64 %indvars.iv124, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next125, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit88, label %scalar.ph, !llvm.loop !14

18:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #3
  %19 = trunc nuw nsw i64 %indvars.iv129 to i32
  call void @_Z7press_Xii(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %1, i32 noundef %6, i32 noundef %19)
  %20 = load i16, ptr @W, align 2, !tbaa !5
  %21 = sext i16 %20 to i64
  %22 = getelementptr inbounds [186 x [186 x [186 x i16]]], ptr @dp1, i64 0, i64 %indvars.iv127, i64 %indvars.iv129, i64 %21
  store i16 %20, ptr %22, align 2, !tbaa !5
  %23 = icmp sgt i16 %20, 0
  br i1 %23, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %18
  %24 = zext nneg i16 %20 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %42, %18
  call void @_ZNSt6vectorI5ColorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #3
  %.pre = load i16, ptr @H, align 2, !tbaa !5
  br label %.loopexit88

.lr.ph:                                           ; preds = %.lr.ph.preheader, %42
  %indvars.iv = phi i64 [ %24, %.lr.ph.preheader ], [ %indvars.iv.next, %42 ]
  %.07092 = phi i16 [ 0, %.lr.ph.preheader ], [ %.171, %42 ]
  %.07291 = phi i16 [ %20, %.lr.ph.preheader ], [ %.173, %42 ]
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %25 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv.next) #3
  %26 = load i16, ptr %25, align 2, !tbaa !15
  %27 = call noundef signext i16 @_Zor5ColorS_(i16 noundef signext %.07092, i16 noundef signext %26)
  %.not83 = icmp eq i16 %27, 3
  br i1 %.not83, label %28, label %42

28:                                               ; preds = %.lr.ph
  %29 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv.next) #3
  %30 = load i16, ptr %29, align 2, !tbaa !15
  %31 = icmp eq i16 %30, 1
  br i1 %31, label %36, label %32

32:                                               ; preds = %28
  %33 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv.next) #3
  %34 = load i16, ptr %33, align 2, !tbaa !15
  %35 = icmp eq i16 %34, 2
  br i1 %35, label %36, label %40

36:                                               ; preds = %32, %28
  %37 = trunc i64 %indvars.iv to i16
  %38 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv.next) #3
  %39 = load i16, ptr %38, align 2, !tbaa !15
  br label %42

40:                                               ; preds = %32
  %41 = trunc i64 %indvars.iv.next to i16
  br label %42

42:                                               ; preds = %.lr.ph, %36, %40
  %.173 = phi i16 [ %37, %36 ], [ %41, %40 ], [ %.07291, %.lr.ph ]
  %.171 = phi i16 [ %39, %36 ], [ 0, %40 ], [ %27, %.lr.ph ]
  %43 = getelementptr inbounds [186 x [186 x [186 x i16]]], ptr @dp1, i64 0, i64 %indvars.iv127, i64 %indvars.iv129, i64 %indvars.iv.next
  store i16 %.173, ptr %43, align 2, !tbaa !5
  %44 = icmp ugt i64 %indvars.iv, 1
  br i1 %44, label %.lr.ph, label %._crit_edge, !llvm.loop !17

.loopexit88:                                      ; preds = %scalar.ph, %middle.block, %.preheader87, %._crit_edge
  %45 = phi i16 [ %10, %.preheader87 ], [ %.pre, %._crit_edge ], [ %10, %middle.block ], [ %10, %scalar.ph ]
  %46 = phi i16 [ %11, %.preheader87 ], [ %.pre, %._crit_edge ], [ %11, %middle.block ], [ %11, %scalar.ph ]
  %indvars.iv.next130 = add nuw nsw i64 %indvars.iv129, 1
  %47 = sext i16 %46 to i64
  %.not82.not = icmp slt i64 %indvars.iv129, %47
  br i1 %.not82.not, label %9, label %._crit_edge102.loopexit, !llvm.loop !18

.preheader85:                                     ; preds = %.preheader86, %._crit_edge120
  %48 = phi i16 [ %51, %._crit_edge120 ], [ %7, %.preheader86 ]
  %indvars.iv140 = phi i64 [ %indvars.iv.next141, %._crit_edge120 ], [ 0, %.preheader86 ]
  %49 = sext i16 %48 to i64
  %.not79116 = icmp sgt i64 %indvars.iv140, %49
  br i1 %.not79116, label %._crit_edge120, label %.lr.ph119

.lr.ph119:                                        ; preds = %.preheader85
  %50 = trunc nuw nsw i64 %indvars.iv140 to i32
  br label %52

._crit_edge123:                                   ; preds = %._crit_edge120, %.preheader86
  ret void

._crit_edge120.loopexit:                          ; preds = %.loopexit
  %.pre148 = sext i16 %88 to i64
  br label %._crit_edge120

._crit_edge120:                                   ; preds = %._crit_edge120.loopexit, %.preheader85
  %.pre-phi149 = phi i64 [ %.pre148, %._crit_edge120.loopexit ], [ %49, %.preheader85 ]
  %51 = phi i16 [ %88, %._crit_edge120.loopexit ], [ %48, %.preheader85 ]
  %indvars.iv.next141 = add nuw nsw i64 %indvars.iv140, 1
  %.not78.not = icmp slt i64 %indvars.iv140, %.pre-phi149
  br i1 %.not78.not, label %.preheader85, label %._crit_edge123, !llvm.loop !19

52:                                               ; preds = %.lr.ph119, %.loopexit
  %53 = phi i16 [ %48, %.lr.ph119 ], [ %88, %.loopexit ]
  %54 = phi i16 [ %48, %.lr.ph119 ], [ %89, %.loopexit ]
  %indvars.iv142 = phi i64 [ %indvars.iv140, %.lr.ph119 ], [ %indvars.iv.next143, %.loopexit ]
  %55 = icmp eq i64 %indvars.iv140, %indvars.iv142
  br i1 %55, label %.preheader, label %61

.preheader:                                       ; preds = %52
  %56 = load i16, ptr @H, align 2, !tbaa !5
  %.not81113 = icmp slt i16 %56, 0
  br i1 %.not81113, label %.loopexit, label %.lr.ph115

.lr.ph115:                                        ; preds = %.preheader
  %narrow154 = add nuw i16 %56, 1
  %wide.trip.count138 = zext i16 %narrow154 to i64
  %min.iters.check159 = icmp ult i16 %56, 15
  br i1 %min.iters.check159, label %scalar.ph158.preheader, label %vector.ph160

vector.ph160:                                     ; preds = %.lr.ph115
  %n.vec162 = and i64 %wide.trip.count138, 65520
  %broadcast.splatinsert166 = insertelement <8 x i16> poison, i16 %56, i64 0
  %broadcast.splat167 = shufflevector <8 x i16> %broadcast.splatinsert166, <8 x i16> poison, <8 x i32> zeroinitializer
  br label %vector.body164

vector.body164:                                   ; preds = %vector.body164, %vector.ph160
  %index165 = phi i64 [ 0, %vector.ph160 ], [ %index.next168, %vector.body164 ]
  %57 = getelementptr inbounds [186 x [186 x [186 x i16]]], ptr @dp2, i64 0, i64 %indvars.iv140, i64 %indvars.iv140, i64 %index165
  %58 = getelementptr inbounds i8, ptr %57, i64 16
  store <8 x i16> %broadcast.splat167, ptr %57, align 4, !tbaa !5
  store <8 x i16> %broadcast.splat167, ptr %58, align 4, !tbaa !5
  %index.next168 = add nuw i64 %index165, 16
  %59 = icmp eq i64 %index.next168, %n.vec162
  br i1 %59, label %middle.block157, label %vector.body164, !llvm.loop !20

middle.block157:                                  ; preds = %vector.body164
  %cmp.n169 = icmp eq i64 %n.vec162, %wide.trip.count138
  br i1 %cmp.n169, label %.loopexit, label %scalar.ph158.preheader

scalar.ph158.preheader:                           ; preds = %middle.block157, %.lr.ph115
  %indvars.iv135.ph = phi i64 [ 0, %.lr.ph115 ], [ %n.vec162, %middle.block157 ]
  br label %scalar.ph158

scalar.ph158:                                     ; preds = %scalar.ph158.preheader, %scalar.ph158
  %indvars.iv135 = phi i64 [ %indvars.iv.next136, %scalar.ph158 ], [ %indvars.iv135.ph, %scalar.ph158.preheader ]
  %60 = getelementptr inbounds [186 x [186 x [186 x i16]]], ptr @dp2, i64 0, i64 %indvars.iv140, i64 %indvars.iv140, i64 %indvars.iv135
  store i16 %56, ptr %60, align 2, !tbaa !5
  %indvars.iv.next136 = add nuw nsw i64 %indvars.iv135, 1
  %exitcond139.not = icmp eq i64 %indvars.iv.next136, %wide.trip.count138
  br i1 %exitcond139.not, label %.loopexit, label %scalar.ph158, !llvm.loop !21

61:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #3
  %62 = trunc nuw nsw i64 %indvars.iv142 to i32
  call void @_Z7press_Yii(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %2, i32 noundef %50, i32 noundef %62)
  %63 = load i16, ptr @H, align 2, !tbaa !5
  %64 = sext i16 %63 to i64
  %65 = getelementptr inbounds [186 x [186 x [186 x i16]]], ptr @dp2, i64 0, i64 %indvars.iv140, i64 %indvars.iv142, i64 %64
  store i16 %63, ptr %65, align 2, !tbaa !5
  %66 = icmp sgt i16 %63, 0
  br i1 %66, label %.lr.ph111.preheader, label %._crit_edge112

.lr.ph111.preheader:                              ; preds = %61
  %67 = zext nneg i16 %63 to i64
  br label %.lr.ph111

._crit_edge112:                                   ; preds = %85, %61
  call void @_ZNSt6vectorI5ColorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #3
  %.pre146 = load i16, ptr @W, align 2, !tbaa !5
  br label %.loopexit

.lr.ph111:                                        ; preds = %.lr.ph111.preheader, %85
  %indvars.iv133 = phi i64 [ %67, %.lr.ph111.preheader ], [ %indvars.iv.next134, %85 ]
  %.063107 = phi i16 [ 0, %.lr.ph111.preheader ], [ %.1, %85 ]
  %.064106 = phi i16 [ %63, %.lr.ph111.preheader ], [ %.165, %85 ]
  %indvars.iv.next134 = add nsw i64 %indvars.iv133, -1
  %68 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv.next134) #3
  %69 = load i16, ptr %68, align 2, !tbaa !15
  %70 = call noundef signext i16 @_Zor5ColorS_(i16 noundef signext %.063107, i16 noundef signext %69)
  %.not80 = icmp eq i16 %70, 3
  br i1 %.not80, label %71, label %85

71:                                               ; preds = %.lr.ph111
  %72 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv.next134) #3
  %73 = load i16, ptr %72, align 2, !tbaa !15
  %74 = icmp eq i16 %73, 1
  br i1 %74, label %79, label %75

75:                                               ; preds = %71
  %76 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv.next134) #3
  %77 = load i16, ptr %76, align 2, !tbaa !15
  %78 = icmp eq i16 %77, 2
  br i1 %78, label %79, label %83

79:                                               ; preds = %75, %71
  %80 = trunc i64 %indvars.iv133 to i16
  %81 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv.next134) #3
  %82 = load i16, ptr %81, align 2, !tbaa !15
  br label %85

83:                                               ; preds = %75
  %84 = trunc i64 %indvars.iv.next134 to i16
  br label %85

85:                                               ; preds = %.lr.ph111, %79, %83
  %.165 = phi i16 [ %80, %79 ], [ %84, %83 ], [ %.064106, %.lr.ph111 ]
  %.1 = phi i16 [ %82, %79 ], [ 0, %83 ], [ %70, %.lr.ph111 ]
  %86 = getelementptr inbounds [186 x [186 x [186 x i16]]], ptr @dp2, i64 0, i64 %indvars.iv140, i64 %indvars.iv142, i64 %indvars.iv.next134
  store i16 %.165, ptr %86, align 2, !tbaa !5
  %87 = icmp ugt i64 %indvars.iv133, 1
  br i1 %87, label %.lr.ph111, label %._crit_edge112, !llvm.loop !22

.loopexit:                                        ; preds = %scalar.ph158, %middle.block157, %.preheader, %._crit_edge112
  %88 = phi i16 [ %53, %.preheader ], [ %.pre146, %._crit_edge112 ], [ %53, %middle.block157 ], [ %53, %scalar.ph158 ]
  %89 = phi i16 [ %54, %.preheader ], [ %.pre146, %._crit_edge112 ], [ %54, %middle.block157 ], [ %54, %scalar.ph158 ]
  %indvars.iv.next143 = add nuw nsw i64 %indvars.iv142, 1
  %90 = sext i16 %89 to i64
  %.not79.not = icmp slt i64 %indvars.iv142, %90
  br i1 %.not79.not, label %52, label %._crit_edge120.loopexit, !llvm.loop !23
}

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


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