; LLVM IR from kazunetakahashi/atcoder :: 2017/0320_RCO-final/A2.ll (Z6outputv)

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

@t = external dso_local global i32, align 4
@D = external dso_local global [1000 x i32], align 16
@C = external dso_local global [1000 x [8 x i32]], align 16
@can = external dso_local global [51 x i8], align 16
@can_ok = external dso_local global i8, align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z8make_canv() #0

; 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: mustprogress uwtable
declare dso_local void @_Z4filli(i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6changei(i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4passv() #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z4sellSt6vectorIiSaIiEE(ptr noundef) #0

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

; 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) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z6filledi(i32 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6outputv() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca [11 x %"class.std::vector"], align 16
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca i32, align 4
  %15 = load i8, ptr @can_ok, align 1, !tbaa !5, !range !9, !noundef !10
  %16 = trunc i8 %15 to i1
  br i1 %16, label %100, label %17

17:                                               ; preds = %0
  %18 = call noundef i32 @_Z8make_canv()
  %19 = icmp sge i32 %18, 45
  br i1 %19, label %20, label %21

20:                                               ; preds = %17
  store i8 1, ptr @can_ok, align 1, !tbaa !5
  br label %99

21:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 264, ptr %1) #3
  %22 = getelementptr inbounds [11 x %"class.std::vector"], ptr %1, i32 0, i32 0
  %23 = getelementptr inbounds %"class.std::vector", ptr %22, i64 11
  br label %24

24:                                               ; preds = %24, %21
  %25 = phi ptr [ %22, %21 ], [ %26, %24 ]
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #3
  %26 = getelementptr inbounds %"class.std::vector", ptr %25, i64 1
  %27 = icmp eq ptr %26, %23
  br i1 %27, label %28, label %24

28:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  store i32 0, ptr %2, align 4, !tbaa !11
  br label %29

29:                                               ; preds = %44, %28
  %30 = load i32, ptr %2, align 4, !tbaa !11
  %31 = icmp slt i32 %30, 8
  br i1 %31, label %33, label %32

32:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  br label %51

33:                                               ; preds = %29
  %34 = load i32, ptr @t, align 4, !tbaa !11
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [1000 x [8 x i32]], ptr @C, i64 0, i64 %35
  %37 = load i32, ptr %2, align 4, !tbaa !11
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [8 x i32], ptr %36, i64 0, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !11
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [11 x %"class.std::vector"], ptr %1, i64 0, i64 %41
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %43 unwind label %47

43:                                               ; preds = %33
  br label %44

44:                                               ; preds = %43
  %45 = load i32, ptr %2, align 4, !tbaa !11
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %2, align 4, !tbaa !11
  br label %29, !llvm.loop !13

47:                                               ; preds = %33
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %3, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  br label %91

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

52:                                               ; preds = %75, %51
  %53 = load i32, ptr %5, align 4, !tbaa !11
  %54 = icmp sle i32 %53, 10
  br i1 %54, label %56, label %55

55:                                               ; preds = %52
  store i32 5, ptr %6, align 4
  br label %78

56:                                               ; preds = %52
  %57 = load i32, ptr %5, align 4, !tbaa !11
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [11 x %"class.std::vector"], ptr %1, i64 0, i64 %58
  %60 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #3
  %61 = trunc i64 %60 to i32
  %62 = icmp sge i32 %61, 2
  br i1 %62, label %63, label %74

63:                                               ; preds = %56
  %64 = load i32, ptr %5, align 4, !tbaa !11
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [11 x %"class.std::vector"], ptr %1, i64 0, i64 %65
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef 0) #3
  %68 = load i32, ptr %67, align 4, !tbaa !11
  invoke void @_Z6changei(i32 noundef %68)
          to label %69 unwind label %70

69:                                               ; preds = %63
  store i32 8, ptr %6, align 4
  br label %78

70:                                               ; preds = %63
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %3, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  br label %91

74:                                               ; preds = %56
  br label %75

75:                                               ; preds = %74
  %76 = load i32, ptr %5, align 4, !tbaa !11
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %5, align 4, !tbaa !11
  br label %52, !llvm.loop !15

78:                                               ; preds = %69, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  %79 = load i32, ptr %6, align 4
  switch i32 %79, label %81 [
    i32 5, label %80
  ]

80:                                               ; preds = %78
  store i32 0, ptr %6, align 4
  br label %81

81:                                               ; preds = %80, %78
  %82 = getelementptr inbounds [11 x %"class.std::vector"], ptr %1, i32 0, i32 0
  %83 = getelementptr inbounds %"class.std::vector", ptr %82, i64 11
  br label %84

84:                                               ; preds = %84, %81
  %85 = phi ptr [ %83, %81 ], [ %86, %84 ]
  %86 = getelementptr inbounds %"class.std::vector", ptr %85, i64 -1
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %86) #3
  %87 = icmp eq ptr %86, %82
  br i1 %87, label %88, label %84

88:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 264, ptr %1) #3
  %89 = load i32, ptr %6, align 4
  switch i32 %89, label %242 [
    i32 0, label %90
    i32 8, label %236
  ]

90:                                               ; preds = %88
  br label %99

91:                                               ; preds = %70, %47
  %92 = getelementptr inbounds [11 x %"class.std::vector"], ptr %1, i32 0, i32 0
  %93 = getelementptr inbounds %"class.std::vector", ptr %92, i64 11
  br label %94

94:                                               ; preds = %94, %91
  %95 = phi ptr [ %93, %91 ], [ %96, %94 ]
  %96 = getelementptr inbounds %"class.std::vector", ptr %95, i64 -1
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %96) #3
  %97 = icmp eq ptr %96, %92
  br i1 %97, label %98, label %94

98:                                               ; preds = %94
  call void @llvm.lifetime.end.p0(i64 264, ptr %1) #3
  br label %237

99:                                               ; preds = %90, %20
  br label %100

100:                                              ; preds = %99, %0
  %101 = load i32, ptr @t, align 4, !tbaa !11
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [1000 x i32], ptr @D, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !11
  %105 = icmp sge i32 %104, 10
  br i1 %105, label %106, label %218

106:                                              ; preds = %100
  %107 = load i32, ptr @t, align 4, !tbaa !11
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [1000 x i32], ptr @D, i64 0, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !11
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [51 x i8], ptr @can, i64 0, i64 %111
  %113 = load i8, ptr %112, align 1, !tbaa !5, !range !9, !noundef !10
  %114 = trunc i8 %113 to i1
  br i1 %114, label %115, label %218

115:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !11
  br label %116

116:                                              ; preds = %212, %115
  %117 = load i32, ptr %7, align 4, !tbaa !11
  %118 = icmp slt i32 %117, 256
  br i1 %118, label %120, label %119

119:                                              ; preds = %116
  store i32 9, ptr %6, align 4
  br label %215

120:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !11
  br label %121

121:                                              ; preds = %142, %120
  %122 = load i32, ptr %9, align 4, !tbaa !11
  %123 = icmp slt i32 %122, 8
  br i1 %123, label %125, label %124

124:                                              ; preds = %121
  store i32 12, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %145

125:                                              ; preds = %121
  %126 = load i32, ptr %7, align 4, !tbaa !11
  %127 = load i32, ptr %9, align 4, !tbaa !11
  %128 = ashr i32 %126, %127
  %129 = and i32 %128, 1
  %130 = icmp eq i32 %129, 1
  br i1 %130, label %131, label %141

131:                                              ; preds = %125
  %132 = load i32, ptr @t, align 4, !tbaa !11
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [1000 x [8 x i32]], ptr @C, i64 0, i64 %133
  %135 = load i32, ptr %9, align 4, !tbaa !11
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [8 x i32], ptr %134, i64 0, i64 %136
  %138 = load i32, ptr %137, align 4, !tbaa !11
  %139 = load i32, ptr %8, align 4, !tbaa !11
  %140 = add nsw i32 %139, %138
  store i32 %140, ptr %8, align 4, !tbaa !11
  br label %141

141:                                              ; preds = %131, %125
  br label %142

142:                                              ; preds = %141
  %143 = load i32, ptr %9, align 4, !tbaa !11
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %9, align 4, !tbaa !11
  br label %121, !llvm.loop !16

145:                                              ; preds = %124
  %146 = load i32, ptr %8, align 4, !tbaa !11
  %147 = load i32, ptr @t, align 4, !tbaa !11
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [1000 x i32], ptr @D, i64 0, i64 %148
  %150 = load i32, ptr %149, align 4, !tbaa !11
  %151 = icmp eq i32 %146, %150
  br i1 %151, label %152, label %208

152:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !11
  br label %153

153:                                              ; preds = %169, %152
  %154 = load i32, ptr %10, align 4, !tbaa !11
  %155 = icmp slt i32 %154, 8
  br i1 %155, label %157, label %156

156:                                              ; preds = %153
  store i32 15, ptr %6, align 4
  br label %172

157:                                              ; preds = %153
  %158 = load i32, ptr %7, align 4, !tbaa !11
  %159 = load i32, ptr %10, align 4, !tbaa !11
  %160 = ashr i32 %158, %159
  %161 = and i32 %160, 1
  %162 = icmp eq i32 %161, 1
  br i1 %162, label %163, label %168

163:                                              ; preds = %157
  %164 = load i32, ptr %10, align 4, !tbaa !11
  %165 = call noundef zeroext i1 @_Z6filledi(i32 noundef %164)
  br i1 %165, label %168, label %166

166:                                              ; preds = %163
  %167 = load i32, ptr %10, align 4, !tbaa !11
  call void @_Z4filli(i32 noundef %167)
  store i32 8, ptr %6, align 4
  br label %172

168:                                              ; preds = %163, %157
  br label %169

169:                                              ; preds = %168
  %170 = load i32, ptr %10, align 4, !tbaa !11
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %10, align 4, !tbaa !11
  br label %153, !llvm.loop !17

172:                                              ; preds = %166, %156
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  %173 = load i32, ptr %6, align 4
  switch i32 %173, label %209 [
    i32 15, label %174
  ]

174:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #3
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  store i32 0, ptr %12, align 4, !tbaa !11
  br label %175

175:                                              ; preds = %192, %174
  %176 = load i32, ptr %12, align 4, !tbaa !11
  %177 = icmp slt i32 %176, 8
  br i1 %177, label %179, label %178

178:                                              ; preds = %175
  store i32 18, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  br label %195

179:                                              ; preds = %175
  %180 = load i32, ptr %7, align 4, !tbaa !11
  %181 = load i32, ptr %12, align 4, !tbaa !11
  %182 = ashr i32 %180, %181
  %183 = and i32 %182, 1
  %184 = icmp eq i32 %183, 1
  br i1 %184, label %185, label %191

185:                                              ; preds = %179
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %186 unwind label %187

186:                                              ; preds = %185
  br label %191

187:                                              ; preds = %185
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %3, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  br label %207

191:                                              ; preds = %186, %179
  br label %192

192:                                              ; preds = %191
  %193 = load i32, ptr %12, align 4, !tbaa !11
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %12, align 4, !tbaa !11
  br label %175, !llvm.loop !18

195:                                              ; preds = %178
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %196 unwind label %199

196:                                              ; preds = %195
  %197 = invoke noundef zeroext i1 @_Z4sellSt6vectorIiSaIiEE(ptr noundef %13)
          to label %198 unwind label %203

198:                                              ; preds = %196
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #3
  store i32 8, ptr %6, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #3
  br label %209

199:                                              ; preds = %195
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %3, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %4, align 4
  br label %207

203:                                              ; preds = %196
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %3, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %4, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #3
  br label %207

207:                                              ; preds = %203, %199, %187
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %237

208:                                              ; preds = %145
  store i32 0, ptr %6, align 4
  br label %209

209:                                              ; preds = %208, %198, %172
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  %210 = load i32, ptr %6, align 4
  switch i32 %210, label %215 [
    i32 0, label %211
  ]

211:                                              ; preds = %209
  br label %212

212:                                              ; preds = %211
  %213 = load i32, ptr %7, align 4, !tbaa !11
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %7, align 4, !tbaa !11
  br label %116, !llvm.loop !19

215:                                              ; preds = %209, %119
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  %216 = load i32, ptr %6, align 4
  switch i32 %216, label %242 [
    i32 9, label %217
    i32 8, label %236
  ]

217:                                              ; preds = %215
  br label %235

218:                                              ; preds = %106, %100
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  store i32 0, ptr %14, align 4, !tbaa !11
  br label %219

219:                                              ; preds = %229, %218
  %220 = load i32, ptr %14, align 4, !tbaa !11
  %221 = icmp slt i32 %220, 8
  br i1 %221, label %223, label %222

222:                                              ; preds = %219
  store i32 21, ptr %6, align 4
  br label %232

223:                                              ; preds = %219
  %224 = load i32, ptr %14, align 4, !tbaa !11
  %225 = call noundef zeroext i1 @_Z6filledi(i32 noundef %224)
  br i1 %225, label %228, label %226

226:                                              ; preds = %223
  %227 = load i32, ptr %14, align 4, !tbaa !11
  call void @_Z4filli(i32 noundef %227)
  store i32 8, ptr %6, align 4
  br label %232

228:                                              ; preds = %223
  br label %229

229:                                              ; preds = %228
  %230 = load i32, ptr %14, align 4, !tbaa !11
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr %14, align 4, !tbaa !11
  br label %219, !llvm.loop !20

232:                                              ; preds = %226, %222
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  %233 = load i32, ptr %6, align 4
  switch i32 %233, label %242 [
    i32 21, label %234
    i32 8, label %236
  ]

234:                                              ; preds = %232
  br label %235

235:                                              ; preds = %234, %217
  call void @_Z4passv()
  br label %236

236:                                              ; preds = %235, %232, %215, %88
  ret void

237:                                              ; preds = %207, %98
  %238 = load ptr, ptr %3, align 8
  %239 = load i32, ptr %4, align 4
  %240 = insertvalue { ptr, i32 } poison, ptr %238, 0
  %241 = insertvalue { ptr, i32 } %240, i32 %239, 1
  resume { ptr, i32 } %241

242:                                              ; preds = %232, %215, %88
  unreachable
}

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

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

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

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 = { 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 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i8 0, i8 2}
!10 = !{}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}


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

@t = external dso_local local_unnamed_addr global i32, align 4
@D = external dso_local local_unnamed_addr global [1000 x i32], align 16
@C = external dso_local local_unnamed_addr global [1000 x [8 x i32]], align 16
@can = external dso_local local_unnamed_addr global [51 x i8], align 16
@can_ok = external dso_local local_unnamed_addr global i8, align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z8make_canv() local_unnamed_addr #0

; 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: mustprogress uwtable
declare dso_local void @_Z4filli(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6changei(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4passv() local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z4sellSt6vectorIiSaIiEE(ptr noundef) local_unnamed_addr #0

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

; 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 #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z6filledi(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6outputv() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca [11 x %"class.std::vector"], align 16
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::vector", align 8
  %6 = load i8, ptr @can_ok, align 1, !tbaa !5, !range !9, !noundef !10
  %7 = trunc nuw i8 %6 to i1
  br i1 %7, label %94, label %8

8:                                                ; preds = %0
  %9 = tail call noundef i32 @_Z8make_canv()
  %10 = icmp sgt i32 %9, 44
  br i1 %10, label %11, label %12

11:                                               ; preds = %8
  store i8 1, ptr @can_ok, align 1, !tbaa !5
  br label %94

12:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 264, ptr nonnull %1) #3
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #3
  %.ptr.1 = getelementptr inbounds i8, ptr %1, i64 24
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1) #3
  %.ptr.2 = getelementptr inbounds i8, ptr %1, i64 48
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2) #3
  %.ptr.3 = getelementptr inbounds i8, ptr %1, i64 72
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3) #3
  %.ptr.4 = getelementptr inbounds i8, ptr %1, i64 96
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.4) #3
  %.ptr.5 = getelementptr inbounds i8, ptr %1, i64 120
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.5) #3
  %.ptr.6 = getelementptr inbounds i8, ptr %1, i64 144
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.6) #3
  %.ptr.7 = getelementptr inbounds i8, ptr %1, i64 168
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.7) #3
  %.ptr.8 = getelementptr inbounds i8, ptr %1, i64 192
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.8) #3
  %.ptr.9 = getelementptr inbounds i8, ptr %1, i64 216
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.9) #3
  %.ptr.10 = getelementptr inbounds i8, ptr %1, i64 240
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
  store i32 0, ptr %2, align 4, !tbaa !11
  br label %17

13:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
  %14 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1) #3
  %15 = trunc i64 %14 to i32
  %16 = icmp sgt i32 %15, 1
  br i1 %16, label %67, label %31

17:                                               ; preds = %12, %25
  %storemerge84 = phi i32 [ 0, %12 ], [ %27, %25 ]
  %18 = load i32, ptr @t, align 4, !tbaa !11
  %19 = sext i32 %18 to i64
  %20 = sext i32 %storemerge84 to i64
  %21 = getelementptr inbounds [1000 x [8 x i32]], ptr @C, i64 0, i64 %19, i64 %20
  %22 = load i32, ptr %21, align 4, !tbaa !11
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [11 x %"class.std::vector"], ptr %1, i64 0, i64 %23
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %25 unwind label %29

25:                                               ; preds = %17
  %26 = load i32, ptr %2, align 4, !tbaa !11
  %27 = add nsw i32 %26, 1
  store i32 %27, ptr %2, align 4, !tbaa !11
  %28 = icmp slt i32 %26, 7
  br i1 %28, label %17, label %13, !llvm.loop !13

29:                                               ; preds = %17
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
  br label %83

31:                                               ; preds = %13
  %32 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2) #3
  %33 = trunc i64 %32 to i32
  %34 = icmp sgt i32 %33, 1
  br i1 %34, label %67, label %35

35:                                               ; preds = %31
  %36 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.3) #3
  %37 = trunc i64 %36 to i32
  %38 = icmp sgt i32 %37, 1
  br i1 %38, label %67, label %39

39:                                               ; preds = %35
  %40 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.4) #3
  %41 = trunc i64 %40 to i32
  %42 = icmp sgt i32 %41, 1
  br i1 %42, label %67, label %43

43:                                               ; preds = %39
  %44 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.5) #3
  %45 = trunc i64 %44 to i32
  %46 = icmp sgt i32 %45, 1
  br i1 %46, label %67, label %47

47:                                               ; preds = %43
  %48 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.6) #3
  %49 = trunc i64 %48 to i32
  %50 = icmp sgt i32 %49, 1
  br i1 %50, label %67, label %51

51:                                               ; preds = %47
  %52 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.7) #3
  %53 = trunc i64 %52 to i32
  %54 = icmp sgt i32 %53, 1
  br i1 %54, label %67, label %55

55:                                               ; preds = %51
  %56 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.8) #3
  %57 = trunc i64 %56 to i32
  %58 = icmp sgt i32 %57, 1
  br i1 %58, label %67, label %59

59:                                               ; preds = %55
  %60 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.9) #3
  %61 = trunc i64 %60 to i32
  %62 = icmp sgt i32 %61, 1
  br i1 %62, label %67, label %63

63:                                               ; preds = %59
  %64 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.10) #3
  %65 = trunc i64 %64 to i32
  %66 = icmp sgt i32 %65, 1
  br i1 %66, label %67, label %.loopexit

67:                                               ; preds = %63, %59, %55, %51, %47, %43, %39, %35, %31, %13
  %.lcssa = phi ptr [ %.ptr.1, %13 ], [ %.ptr.2, %31 ], [ %.ptr.3, %35 ], [ %.ptr.4, %39 ], [ %.ptr.5, %43 ], [ %.ptr.6, %47 ], [ %.ptr.7, %51 ], [ %.ptr.8, %55 ], [ %.ptr.9, %59 ], [ %.ptr.10, %63 ]
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.lcssa, i64 noundef 0) #3
  %69 = load i32, ptr %68, align 4, !tbaa !11
  invoke void @_Z6changei(i32 noundef %69)
          to label %.loopexit unwind label %70

70:                                               ; preds = %67
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %83

.loopexit:                                        ; preds = %63, %67
  %72 = phi i1 [ false, %67 ], [ true, %63 ]
  %73 = getelementptr inbounds i8, ptr %1, i64 240
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %73) #3
  %74 = getelementptr inbounds i8, ptr %1, i64 216
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %74) #3
  %75 = getelementptr inbounds i8, ptr %1, i64 192
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %75) #3
  %76 = getelementptr inbounds i8, ptr %1, i64 168
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %76) #3
  %77 = getelementptr inbounds i8, ptr %1, i64 144
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %77) #3
  %78 = getelementptr inbounds i8, ptr %1, i64 120
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %78) #3
  %79 = getelementptr inbounds i8, ptr %1, i64 96
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %79) #3
  %80 = getelementptr inbounds i8, ptr %1, i64 72
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %80) #3
  %81 = getelementptr inbounds i8, ptr %1, i64 48
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %81) #3
  %82 = getelementptr inbounds i8, ptr %1, i64 24
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %82) #3
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #3
  call void @llvm.lifetime.end.p0(i64 264, ptr nonnull %1) #3
  br i1 %72, label %94, label %216

83:                                               ; preds = %70, %29
  %.pn = phi { ptr, i32 } [ %30, %29 ], [ %71, %70 ]
  %84 = getelementptr inbounds i8, ptr %1, i64 240
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %84) #3
  %85 = getelementptr inbounds i8, ptr %1, i64 216
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %85) #3
  %86 = getelementptr inbounds i8, ptr %1, i64 192
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %86) #3
  %87 = getelementptr inbounds i8, ptr %1, i64 168
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %87) #3
  %88 = getelementptr inbounds i8, ptr %1, i64 144
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %88) #3
  %89 = getelementptr inbounds i8, ptr %1, i64 120
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %89) #3
  %90 = getelementptr inbounds i8, ptr %1, i64 96
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %90) #3
  %91 = getelementptr inbounds i8, ptr %1, i64 72
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %91) #3
  %92 = getelementptr inbounds i8, ptr %1, i64 48
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %92) #3
  %93 = getelementptr inbounds i8, ptr %1, i64 24
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %93) #3
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #3
  call void @llvm.lifetime.end.p0(i64 264, ptr nonnull %1) #3
  br label %217

94:                                               ; preds = %.loopexit, %11, %0
  %95 = load i32, ptr @t, align 4
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [1000 x i32], ptr @D, i64 0, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !11
  %99 = icmp sgt i32 %98, 9
  br i1 %99, label %100, label %199

100:                                              ; preds = %94
  %101 = zext nneg i32 %98 to i64
  %102 = getelementptr inbounds [51 x i8], ptr @can, i64 0, i64 %101
  %103 = load i8, ptr %102, align 1, !tbaa !5, !range !9, !noundef !10
  %104 = trunc nuw i8 %103 to i1
  br i1 %104, label %.preheader77, label %199

.preheader77:                                     ; preds = %100
  %105 = getelementptr inbounds [1000 x [8 x i32]], ptr @C, i64 0, i64 %96, i64 0
  %106 = getelementptr inbounds [1000 x [8 x i32]], ptr @C, i64 0, i64 %96, i64 1
  %107 = getelementptr inbounds [1000 x [8 x i32]], ptr @C, i64 0, i64 %96, i64 2
  %108 = getelementptr inbounds [1000 x [8 x i32]], ptr @C, i64 0, i64 %96, i64 3
  %109 = getelementptr inbounds [1000 x [8 x i32]], ptr @C, i64 0, i64 %96, i64 4
  %110 = getelementptr inbounds [1000 x [8 x i32]], ptr @C, i64 0, i64 %96, i64 5
  %111 = getelementptr inbounds [1000 x [8 x i32]], ptr @C, i64 0, i64 %96, i64 6
  %112 = getelementptr inbounds [1000 x [8 x i32]], ptr @C, i64 0, i64 %96, i64 7
  br label %.preheader76

.preheader76:                                     ; preds = %.preheader77, %197
  %.03689 = phi i32 [ 0, %.preheader77 ], [ %198, %197 ]
  %113 = and i32 %.03689, 1
  %.not59 = icmp eq i32 %113, 0
  br i1 %.not59, label %116, label %114

.preheader:                                       ; preds = %151
  br i1 %.not59, label %155, label %153

114:                                              ; preds = %.preheader76
  %115 = load i32, ptr %105, align 16, !tbaa !11
  br label %116

116:                                              ; preds = %.preheader76, %114
  %.1 = phi i32 [ %115, %114 ], [ 0, %.preheader76 ]
  %117 = and i32 %.03689, 2
  %.not59.1 = icmp eq i32 %117, 0
  br i1 %.not59.1, label %121, label %118

118:                                              ; preds = %116
  %119 = load i32, ptr %106, align 4, !tbaa !11
  %120 = add nsw i32 %119, %.1
  br label %121

121:                                              ; preds = %118, %116
  %.1.1 = phi i32 [ %120, %118 ], [ %.1, %116 ]
  %122 = and i32 %.03689, 4
  %.not59.2 = icmp eq i32 %122, 0
  br i1 %.not59.2, label %126, label %123

123:                                              ; preds = %121
  %124 = load i32, ptr %107, align 8, !tbaa !11
  %125 = add nsw i32 %124, %.1.1
  br label %126

126:                                              ; preds = %123, %121
  %.1.2 = phi i32 [ %125, %123 ], [ %.1.1, %121 ]
  %127 = and i32 %.03689, 8
  %.not59.3 = icmp eq i32 %127, 0
  br i1 %.not59.3, label %131, label %128

128:                                              ; preds = %126
  %129 = load i32, ptr %108, align 4, !tbaa !11
  %130 = add nsw i32 %129, %.1.2
  br label %131

131:                                              ; preds = %128, %126
  %.1.3 = phi i32 [ %130, %128 ], [ %.1.2, %126 ]
  %132 = and i32 %.03689, 16
  %.not59.4 = icmp eq i32 %132, 0
  br i1 %.not59.4, label %136, label %133

133:                                              ; preds = %131
  %134 = load i32, ptr %109, align 16, !tbaa !11
  %135 = add nsw i32 %134, %.1.3
  br label %136

136:                                              ; preds = %133, %131
  %.1.4 = phi i32 [ %135, %133 ], [ %.1.3, %131 ]
  %137 = and i32 %.03689, 32
  %.not59.5 = icmp eq i32 %137, 0
  br i1 %.not59.5, label %141, label %138

138:                                              ; preds = %136
  %139 = load i32, ptr %110, align 4, !tbaa !11
  %140 = add nsw i32 %139, %.1.4
  br label %141

141:                                              ; preds = %138, %136
  %.1.5 = phi i32 [ %140, %138 ], [ %.1.4, %136 ]
  %142 = and i32 %.03689, 64
  %.not59.6 = icmp eq i32 %142, 0
  br i1 %.not59.6, label %146, label %143

143:                                              ; preds = %141
  %144 = load i32, ptr %111, align 8, !tbaa !11
  %145 = add nsw i32 %144, %.1.5
  br label %146

146:                                              ; preds = %143, %141
  %.1.6 = phi i32 [ %145, %143 ], [ %.1.5, %141 ]
  %147 = and i32 %.03689, 128
  %.not59.7 = icmp eq i32 %147, 0
  br i1 %.not59.7, label %151, label %148

148:                                              ; preds = %146
  %149 = load i32, ptr %112, align 4, !tbaa !11
  %150 = add nsw i32 %149, %.1.6
  br label %151

151:                                              ; preds = %148, %146
  %.1.7 = phi i32 [ %150, %148 ], [ %.1.6, %146 ]
  %152 = icmp eq i32 %.1.7, %98
  br i1 %152, label %.preheader, label %197

153:                                              ; preds = %.preheader
  %154 = call noundef zeroext i1 @_Z6filledi(i32 noundef 0)
  br i1 %154, label %155, label %177

155:                                              ; preds = %.preheader, %153
  br i1 %.not59.1, label %158, label %156

156:                                              ; preds = %155
  %157 = call noundef zeroext i1 @_Z6filledi(i32 noundef 1)
  br i1 %157, label %158, label %177

158:                                              ; preds = %156, %155
  br i1 %.not59.2, label %161, label %159

159:                                              ; preds = %158
  %160 = call noundef zeroext i1 @_Z6filledi(i32 noundef 2)
  br i1 %160, label %161, label %177

161:                                              ; preds = %159, %158
  br i1 %.not59.3, label %164, label %162

162:                                              ; preds = %161
  %163 = call noundef zeroext i1 @_Z6filledi(i32 noundef 3)
  br i1 %163, label %164, label %177

164:                                              ; preds = %162, %161
  br i1 %.not59.4, label %167, label %165

165:                                              ; preds = %164
  %166 = call noundef zeroext i1 @_Z6filledi(i32 noundef 4)
  br i1 %166, label %167, label %177

167:                                              ; preds = %165, %164
  br i1 %.not59.5, label %170, label %168

168:                                              ; preds = %167
  %169 = call noundef zeroext i1 @_Z6filledi(i32 noundef 5)
  br i1 %169, label %170, label %177

170:                                              ; preds = %168, %167
  br i1 %.not59.6, label %173, label %171

171:                                              ; preds = %170
  %172 = call noundef zeroext i1 @_Z6filledi(i32 noundef 6)
  br i1 %172, label %173, label %177

173:                                              ; preds = %171, %170
  br i1 %.not59.7, label %176, label %174

174:                                              ; preds = %173
  %175 = call noundef zeroext i1 @_Z6filledi(i32 noundef 7)
  br i1 %175, label %176, label %177

176:                                              ; preds = %174, %173
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #3
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
  store i32 0, ptr %4, align 4, !tbaa !11
  br label %179

177:                                              ; preds = %174, %171, %168, %165, %162, %159, %156, %153
  %.03390.lcssa = phi i32 [ 0, %153 ], [ 1, %156 ], [ 2, %159 ], [ 3, %162 ], [ 4, %165 ], [ 5, %168 ], [ 6, %171 ], [ 7, %174 ]
  call void @_Z4filli(i32 noundef %.03390.lcssa)
  br label %216

178:                                              ; preds = %185
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
  invoke void @_ZNSt6vectorIiSaIiEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %189 unwind label %192

179:                                              ; preds = %176, %185
  %storemerge5491 = phi i32 [ 0, %176 ], [ %187, %185 ]
  %180 = shl nuw nsw i32 1, %storemerge5491
  %181 = and i32 %180, %.03689
  %.not55 = icmp eq i32 %181, 0
  br i1 %.not55, label %185, label %182

182:                                              ; preds = %179
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %._crit_edge unwind label %183

._crit_edge:                                      ; preds = %182
  %.pre = load i32, ptr %4, align 4, !tbaa !11
  br label %185

183:                                              ; preds = %182
  %184 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
  br label %196

185:                                              ; preds = %._crit_edge, %179
  %186 = phi i32 [ %.pre, %._crit_edge ], [ %storemerge5491, %179 ]
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %4, align 4, !tbaa !11
  %188 = icmp slt i32 %186, 7
  br i1 %188, label %179, label %178, !llvm.loop !15

189:                                              ; preds = %178
  %190 = invoke noundef zeroext i1 @_Z4sellSt6vectorIiSaIiEE(ptr noundef nonnull %5)
          to label %191 unwind label %194

191:                                              ; preds = %189
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #3
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #3
  br label %216

192:                                              ; preds = %178
  %193 = landingpad { ptr, i32 }
          cleanup
  br label %196

194:                                              ; preds = %189
  %195 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #3
  br label %196

196:                                              ; preds = %194, %192, %183
  %.pn56 = phi { ptr, i32 } [ %184, %183 ], [ %195, %194 ], [ %193, %192 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #3
  br label %217

197:                                              ; preds = %151
  %198 = add nuw nsw i32 %.03689, 1
  %exitcond.not = icmp eq i32 %198, 256
  br i1 %exitcond.not, label %.thread68, label %.preheader76, !llvm.loop !16

199:                                              ; preds = %100, %94
  %200 = call noundef zeroext i1 @_Z6filledi(i32 noundef 0)
  br i1 %200, label %201, label %215

201:                                              ; preds = %199
  %202 = call noundef zeroext i1 @_Z6filledi(i32 noundef 1)
  br i1 %202, label %203, label %215

203:                                              ; preds = %201
  %204 = call noundef zeroext i1 @_Z6filledi(i32 noundef 2)
  br i1 %204, label %205, label %215

205:                                              ; preds = %203
  %206 = call noundef zeroext i1 @_Z6filledi(i32 noundef 3)
  br i1 %206, label %207, label %215

207:                                              ; preds = %205
  %208 = call noundef zeroext i1 @_Z6filledi(i32 noundef 4)
  br i1 %208, label %209, label %215

209:                                              ; preds = %207
  %210 = call noundef zeroext i1 @_Z6filledi(i32 noundef 5)
  br i1 %210, label %211, label %215

211:                                              ; preds = %209
  %212 = call noundef zeroext i1 @_Z6filledi(i32 noundef 6)
  br i1 %212, label %213, label %215

213:                                              ; preds = %211
  %214 = call noundef zeroext i1 @_Z6filledi(i32 noundef 7)
  br i1 %214, label %.thread68, label %215

215:                                              ; preds = %213, %211, %209, %207, %205, %203, %201, %199
  %.086.lcssa = phi i32 [ 0, %199 ], [ 1, %201 ], [ 2, %203 ], [ 3, %205 ], [ 4, %207 ], [ 5, %209 ], [ 6, %211 ], [ 7, %213 ]
  call void @_Z4filli(i32 noundef %.086.lcssa)
  br label %216

.thread68:                                        ; preds = %197, %213
  call void @_Z4passv()
  br label %216

216:                                              ; preds = %177, %191, %215, %.loopexit, %.thread68
  ret void

217:                                              ; preds = %196, %83
  %.pn56.pn = phi { ptr, i32 } [ %.pn56, %196 ], [ %.pn, %83 ]
  resume { ptr, i32 } %.pn56.pn
}

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

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

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

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 = { 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 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i8 0, i8 2}
!10 = !{}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


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