; LLVM IR from OAID/AutoKernel :: AutoSearch/src/adams2019 (LoopNest)

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Halide8Internal13Autoscheduler16generate_tilingsERKSt6vectorIlSaIlEEiib(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %2, i32 noundef %3, i1 noundef zeroext %4) #1 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca i1, align 1
  %12 = alloca %"class.std::vector.3", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::vector", align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca i8, align 1
  %22 = alloca i8, align 1
  %23 = alloca i32, align 4
  %24 = alloca i64, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  store ptr %0, ptr %6, align 8
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  %32 = zext i1 %4 to i8
  store i8 %32, ptr %10, align 1, !tbaa !11
  store i1 false, ptr %11, align 1
  call void @_ZNSt6vectorIS_IlSaIlEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %33 = load i32, ptr %8, align 4, !tbaa !9
  %34 = icmp eq i32 %33, -1
  br i1 %34, label %35, label %41

35:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #5
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIlSaIlEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  invoke void @_ZNSt6vectorIS_IlSaIlEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %36 unwind label %37

36:                                               ; preds = %35
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  br label %401

37:                                               ; preds = %35
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %13, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %14, align 4
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  br label %405

41:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #5
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = load i32, ptr %8, align 4, !tbaa !9
  %44 = sub nsw i32 %43, 1
  %45 = load i32, ptr %9, align 4, !tbaa !9
  %46 = load i8, ptr %10, align 1, !tbaa !11, !range !13, !noundef !14
  %47 = trunc i8 %46 to i1
  invoke void @_ZN6Halide8Internal13Autoscheduler16generate_tilingsERKSt6vectorIlSaIlEEiib(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %15, ptr noundef nonnull align 8 dereferenceable(24) %42, i32 noundef %44, i32 noundef %45, i1 noundef zeroext %47)
          to label %48 unwind label %58

48:                                               ; preds = %41
  br label %49

49:                                               ; preds = %55, %48
  %50 = call noundef i64 @_ZNKSt6vectorIS_IlSaIlEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  %51 = load i32, ptr %9, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = mul i64 %52, 100
  %54 = icmp ugt i64 %50, %53
  br i1 %54, label %55, label %62

55:                                               ; preds = %49
  %56 = load i32, ptr %9, align 4, !tbaa !9
  %57 = mul nsw i32 %56, 2
  store i32 %57, ptr %9, align 4, !tbaa !9
  br label %49, !llvm.loop !15

58:                                               ; preds = %41
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %13, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %14, align 4
  br label %400

62:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store ptr %15, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %63 = load ptr, ptr %16, align 8, !tbaa !5
  %64 = call ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %63) #5
  %65 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %64, ptr %65, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %66 = load ptr, ptr %16, align 8, !tbaa !5
  %67 = call ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %66) #5
  %68 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %67, ptr %68, align 8
  br label %69

69:                                               ; preds = %396, %62
  %70 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIlSaIlEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  br i1 %70, label %72, label %71

71:                                               ; preds = %69
  store i32 4, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %399

72:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %73 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIlSaIlEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  store ptr %73, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #5
  store i8 0, ptr %21, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #5
  store i8 0, ptr %22, align 1, !tbaa !11
  %74 = load i32, ptr %8, align 4, !tbaa !9
  %75 = sext i32 %74 to i64
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = call noundef i64 @_ZNKSt6vectorIlSaIlEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %76) #5
  %78 = sub i64 %77, 1
  %79 = icmp eq i64 %75, %78
  br i1 %79, label %80, label %122

80:                                               ; preds = %72
  store i8 1, ptr %21, align 1, !tbaa !11
  store i8 1, ptr %22, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %118, %80
  %82 = load i32, ptr %23, align 4, !tbaa !9
  %83 = load i32, ptr %8, align 4, !tbaa !9
  %84 = icmp slt i32 %82, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %81
  store i32 6, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %121

86:                                               ; preds = %81
  %87 = load ptr, ptr %20, align 8, !tbaa !5
  %88 = load i32, ptr %23, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %87, i64 noundef %89) #5
  %91 = load i64, ptr %90, align 8, !tbaa !17
  %92 = icmp eq i64 %91, 1
  %93 = zext i1 %92 to i32
  %94 = load i8, ptr %22, align 1, !tbaa !11, !range !13, !noundef !14
  %95 = trunc i8 %94 to i1
  %96 = zext i1 %95 to i32
  %97 = and i32 %96, %93
  %98 = icmp ne i32 %97, 0
  %99 = zext i1 %98 to i8
  store i8 %99, ptr %22, align 1, !tbaa !11
  %100 = load ptr, ptr %20, align 8, !tbaa !5
  %101 = load i32, ptr %23, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %100, i64 noundef %102) #5
  %104 = load i64, ptr %103, align 8, !tbaa !17
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = load i32, ptr %23, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %105, i64 noundef %107) #5
  %109 = load i64, ptr %108, align 8, !tbaa !17
  %110 = icmp eq i64 %104, %109
  %111 = zext i1 %110 to i32
  %112 = load i8, ptr %21, align 1, !tbaa !11, !range !13, !noundef !14
  %113 = trunc i8 %112 to i1
  %114 = zext i1 %113 to i32
  %115 = and i32 %114, %111
  %116 = icmp ne i32 %115, 0
  %117 = zext i1 %116 to i8
  store i8 %117, ptr %21, align 1, !tbaa !11
  br label %118

118:                                              ; preds = %86
  %119 = load i32, ptr %23, align 4, !tbaa !9
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %23, align 4, !tbaa !9
  br label %81, !llvm.loop !19

121:                                              ; preds = %85
  br label %122

122:                                              ; preds = %121, %72
  %123 = load ptr, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  store i64 0, ptr %24, align 8, !tbaa !17
  invoke void @_ZNSt6vectorIlSaIlEE9push_backEOl(ptr noundef nonnull align 8 dereferenceable(24) %123, ptr noundef nonnull align 8 dereferenceable(8) %24)
          to label %124 unwind label %135

124:                                              ; preds = %122
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  %125 = load i8, ptr %10, align 1, !tbaa !11, !range !13, !noundef !14
  %126 = trunc i8 %125 to i1
  br i1 %126, label %164, label %127

127:                                              ; preds = %124
  %128 = load i8, ptr %22, align 1, !tbaa !11, !range !13, !noundef !14
  %129 = trunc i8 %128 to i1
  br i1 %129, label %143, label %130

130:                                              ; preds = %127
  %131 = load ptr, ptr %20, align 8, !tbaa !5
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %131) #5
  store i64 1, ptr %132, align 8, !tbaa !17
  %133 = load ptr, ptr %20, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIS_IlSaIlEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %133)
          to label %134 unwind label %139

134:                                              ; preds = %130
  br label %143

135:                                              ; preds = %122
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %13, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %398

139:                                              ; preds = %153, %130
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %13, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %14, align 4
  br label %398

143:                                              ; preds = %134, %127
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  %145 = load i32, ptr %8, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %144, i64 noundef %146) #5
  %148 = load i64, ptr %147, align 8, !tbaa !17
  %149 = icmp ne i64 %148, 1
  br i1 %149, label %150, label %163

150:                                              ; preds = %143
  %151 = load i8, ptr %21, align 1, !tbaa !11, !range !13, !noundef !14
  %152 = trunc i8 %151 to i1
  br i1 %152, label %163, label %153

153:                                              ; preds = %150
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = load i32, ptr %8, align 4, !tbaa !9
  %156 = sext i32 %155 to i64
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %154, i64 noundef %156) #5
  %158 = load i64, ptr %157, align 8, !tbaa !17
  %159 = load ptr, ptr %20, align 8, !tbaa !5
  %160 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %159) #5
  store i64 %158, ptr %160, align 8, !tbaa !17
  %161 = load ptr, ptr %20, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIS_IlSaIlEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %161)
          to label %162 unwind label %139

162:                                              ; preds = %153
  br label %163

163:                                              ; preds = %162, %150, %143
  br label %395

164:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 0, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  store i32 1, ptr %26, align 4, !tbaa !9
  br label %165

165:                                              ; preds = %236, %164
  %166 = load i32, ptr %26, align 4, !tbaa !9
  %167 = sext i32 %166 to i64
  %168 = load ptr, ptr %7, align 8, !tbaa !5
  %169 = load i32, ptr %8, align 4, !tbaa !9
  %170 = sext i32 %169 to i64
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %168, i64 noundef %170) #5
  %172 = load i64, ptr %171, align 8, !tbaa !17
  %173 = icmp slt i64 %167, %172
  br i1 %173, label %175, label %174

174:                                              ; preds = %165
  store i32 9, ptr %19, align 4
  br label %244

175:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %176 = load ptr, ptr %7, align 8, !tbaa !5
  %177 = load i32, ptr %8, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %176, i64 noundef %178) #5
  %180 = load i64, ptr %179, align 8, !tbaa !17
  %181 = load i32, ptr %26, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = add nsw i64 %180, %182
  %184 = sub nsw i64 %183, 1
  %185 = load i32, ptr %26, align 4, !tbaa !9
  %186 = sext i32 %185 to i64
  %187 = sdiv i64 %184, %186
  %188 = trunc i64 %187 to i32
  store i32 %188, ptr %27, align 4, !tbaa !9
  %189 = load i8, ptr %22, align 1, !tbaa !11, !range !13, !noundef !14
  %190 = trunc i8 %189 to i1
  br i1 %190, label %191, label %195

191:                                              ; preds = %175
  %192 = load i32, ptr %27, align 4, !tbaa !9
  %193 = icmp eq i32 %192, 1
  br i1 %193, label %194, label %195

194:                                              ; preds = %191
  store i32 11, ptr %19, align 4
  br label %233

195:                                              ; preds = %191, %175
  %196 = load i8, ptr %21, align 1, !tbaa !11, !range !13, !noundef !14
  %197 = trunc i8 %196 to i1
  br i1 %197, label %198, label %208

198:                                              ; preds = %195
  %199 = load i32, ptr %27, align 4, !tbaa !9
  %200 = sext i32 %199 to i64
  %201 = load ptr, ptr %7, align 8, !tbaa !5
  %202 = load i32, ptr %8, align 4, !tbaa !9
  %203 = sext i32 %202 to i64
  %204 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %201, i64 noundef %203) #5
  %205 = load i64, ptr %204, align 8, !tbaa !17
  %206 = icmp eq i64 %200, %205
  br i1 %206, label %207, label %208

207:                                              ; preds = %198
  store i32 11, ptr %19, align 4
  br label %233

208:                                              ; preds = %198, %195
  %209 = load i32, ptr %26, align 4, !tbaa !9
  %210 = icmp sgt i32 %209, 1
  br i1 %210, label %211, label %225

211:                                              ; preds = %208
  %212 = load i32, ptr %26, align 4, !tbaa !9
  %213 = load i32, ptr %27, align 4, !tbaa !9
  %214 = mul nsw i32 %212, %213
  %215 = mul nsw i32 %214, 7
  %216 = sext i32 %215 to i64
  %217 = load ptr, ptr %7, align 8, !tbaa !5
  %218 = load i32, ptr %8, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %217, i64 noundef %219) #5
  %221 = load i64, ptr %220, align 8, !tbaa !17
  %222 = mul nsw i64 %221, 8
  %223 = icmp sgt i64 %216, %222
  br i1 %223, label %224, label %225

224:                                              ; preds = %211
  store i32 9, ptr %19, align 4
  br label %233

225:                                              ; preds = %211, %208
  %226 = load i32, ptr %26, align 4, !tbaa !9
  store i32 %226, ptr %25, align 4, !tbaa !9
  %227 = load i32, ptr %27, align 4, !tbaa !9
  %228 = sext i32 %227 to i64
  %229 = load ptr, ptr %20, align 8, !tbaa !5
  %230 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %229) #5
  store i64 %228, ptr %230, align 8, !tbaa !17
  %231 = load ptr, ptr %20, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIS_IlSaIlEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %231)
          to label %232 unwind label %240

232:                                              ; preds = %225
  store i32 0, ptr %19, align 4
  br label %233

233:                                              ; preds = %232, %224, %207, %194
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  %234 = load i32, ptr %19, align 4
  switch i32 %234, label %244 [
    i32 0, label %235
    i32 11, label %236
  ]

235:                                              ; preds = %233
  br label %236

236:                                              ; preds = %235, %233
  %237 = load i32, ptr %9, align 4, !tbaa !9
  %238 = load i32, ptr %26, align 4, !tbaa !9
  %239 = mul nsw i32 %238, %237
  store i32 %239, ptr %26, align 4, !tbaa !9
  br label %165, !llvm.loop !20

240:                                              ; preds = %225
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %13, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %394

244:                                              ; preds = %233, %174
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %245

245:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  store i32 1, ptr %28, align 4, !tbaa !9
  br label %246

246:                                              ; preds = %322, %245
  %247 = load i32, ptr %28, align 4, !tbaa !9
  %248 = sext i32 %247 to i64
  %249 = load ptr, ptr %7, align 8, !tbaa !5
  %250 = load i32, ptr %8, align 4, !tbaa !9
  %251 = sext i32 %250 to i64
  %252 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %249, i64 noundef %251) #5
  %253 = load i64, ptr %252, align 8, !tbaa !17
  %254 = icmp sle i64 %248, %253
  br i1 %254, label %256, label %255

255:                                              ; preds = %246
  store i32 12, ptr %19, align 4
  br label %330

256:                                              ; preds = %246
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  %257 = load ptr, ptr %7, align 8, !tbaa !5
  %258 = load i32, ptr %8, align 4, !tbaa !9
  %259 = sext i32 %258 to i64
  %260 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %257, i64 noundef %259) #5
  %261 = load i64, ptr %260, align 8, !tbaa !17
  %262 = load i32, ptr %28, align 4, !tbaa !9
  %263 = sext i32 %262 to i64
  %264 = add nsw i64 %261, %263
  %265 = sub nsw i64 %264, 1
  %266 = load i32, ptr %28, align 4, !tbaa !9
  %267 = sext i32 %266 to i64
  %268 = sdiv i64 %265, %267
  %269 = trunc i64 %268 to i32
  store i32 %269, ptr %29, align 4, !tbaa !9
  %270 = load i8, ptr %22, align 1, !tbaa !11, !range !13, !noundef !14
  %271 = trunc i8 %270 to i1
  br i1 %271, label %272, label %276

272:                                              ; preds = %256
  %273 = load i32, ptr %28, align 4, !tbaa !9
  %274 = icmp eq i32 %273, 1
  br i1 %274, label %275, label %276

275:                                              ; preds = %272
  store i32 14, ptr %19, align 4
  br label %319

276:                                              ; preds = %272, %256
  %277 = load i8, ptr %21, align 1, !tbaa !11, !range !13, !noundef !14
  %278 = trunc i8 %277 to i1
  br i1 %278, label %279, label %289

279:                                              ; preds = %276
  %280 = load i32, ptr %28, align 4, !tbaa !9
  %281 = sext i32 %280 to i64
  %282 = load ptr, ptr %7, align 8, !tbaa !5
  %283 = load i32, ptr %8, align 4, !tbaa !9
  %284 = sext i32 %283 to i64
  %285 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %282, i64 noundef %284) #5
  %286 = load i64, ptr %285, align 8, !tbaa !17
  %287 = icmp eq i64 %281, %286
  br i1 %287, label %288, label %289

288:                                              ; preds = %279
  store i32 14, ptr %19, align 4
  br label %319

289:                                              ; preds = %279, %276
  %290 = load i32, ptr %28, align 4, !tbaa !9
  %291 = icmp sgt i32 %290, 1
  br i1 %291, label %292, label %298

292:                                              ; preds = %289
  %293 = load i32, ptr %29, align 4, !tbaa !9
  %294 = load i32, ptr %25, align 4, !tbaa !9
  %295 = mul nsw i32 %294, 2
  %296 = icmp slt i32 %293, %295
  br i1 %296, label %297, label %298

297:                                              ; preds = %292
  store i32 12, ptr %19, align 4
  br label %319

298:                                              ; preds = %292, %289
  %299 = load i32, ptr %29, align 4, !tbaa !9
  %300 = load i32, ptr %28, align 4, !tbaa !9
  %301 = mul nsw i32 %299, %300
  %302 = mul nsw i32 %301, 7
  %303 = sext i32 %302 to i64
  %304 = load ptr, ptr %7, align 8, !tbaa !5
  %305 = load i32, ptr %8, align 4, !tbaa !9
  %306 = sext i32 %305 to i64
  %307 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %304, i64 noundef %306) #5
  %308 = load i64, ptr %307, align 8, !tbaa !17
  %309 = mul nsw i64 %308, 8
  %310 = icmp sgt i64 %303, %309
  br i1 %310, label %311, label %312

311:                                              ; preds = %298
  store i32 12, ptr %19, align 4
  br label %319

312:                                              ; preds = %298
  %313 = load i32, ptr %28, align 4, !tbaa !9
  %314 = sext i32 %313 to i64
  %315 = load ptr, ptr %20, align 8, !tbaa !5
  %316 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %315) #5
  store i64 %314, ptr %316, align 8, !tbaa !17
  %317 = load ptr, ptr %20, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIS_IlSaIlEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %317)
          to label %318 unwind label %326

318:                                              ; preds = %312
  store i32 0, ptr %19, align 4
  br label %319

319:                                              ; preds = %318, %311, %297, %288, %275
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  %320 = load i32, ptr %19, align 4
  switch i32 %320, label %330 [
    i32 0, label %321
    i32 14, label %322
  ]

321:                                              ; preds = %319
  br label %322

322:                                              ; preds = %321, %319
  %323 = load i32, ptr %9, align 4, !tbaa !9
  %324 = load i32, ptr %28, align 4, !tbaa !9
  %325 = mul nsw i32 %324, %323
  store i32 %325, ptr %28, align 4, !tbaa !9
  br label %246, !llvm.loop !21

326:                                              ; preds = %312
  %327 = landingpad { ptr, i32 }
          cleanup
  %328 = extractvalue { ptr, i32 } %327, 0
  store ptr %328, ptr %13, align 8
  %329 = extractvalue { ptr, i32 } %327, 1
  store i32 %329, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  br label %394

330:                                              ; preds = %319, %255
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  br label %331

331:                                              ; preds = %330
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  store i32 3, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  %332 = load ptr, ptr %7, align 8, !tbaa !5
  %333 = load i32, ptr %8, align 4, !tbaa !9
  %334 = sext i32 %333 to i64
  %335 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %332, i64 noundef %334) #5
  %336 = load i64, ptr %335, align 8, !tbaa !17
  %337 = load i32, ptr %30, align 4, !tbaa !9
  %338 = sext i32 %337 to i64
  %339 = add nsw i64 %336, %338
  %340 = sub nsw i64 %339, 1
  %341 = load i32, ptr %30, align 4, !tbaa !9
  %342 = sext i32 %341 to i64
  %343 = sdiv i64 %340, %342
  %344 = trunc i64 %343 to i32
  store i32 %344, ptr %31, align 4, !tbaa !9
  %345 = load i32, ptr %9, align 4, !tbaa !9
  %346 = icmp eq i32 %345, 2
  br i1 %346, label %347, label %393

347:                                              ; preds = %331
  %348 = load i32, ptr %30, align 4, !tbaa !9
  %349 = sext i32 %348 to i64
  %350 = load ptr, ptr %7, align 8, !tbaa !5
  %351 = load i32, ptr %8, align 4, !tbaa !9
  %352 = sext i32 %351 to i64
  %353 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %350, i64 noundef %352) #5
  %354 = load i64, ptr %353, align 8, !tbaa !17
  %355 = icmp slt i64 %349, %354
  br i1 %355, label %356, label %393

356:                                              ; preds = %347
  %357 = load i32, ptr %31, align 4, !tbaa !9
  %358 = sext i32 %357 to i64
  %359 = load ptr, ptr %7, align 8, !tbaa !5
  %360 = load i32, ptr %8, align 4, !tbaa !9
  %361 = sext i32 %360 to i64
  %362 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %359, i64 noundef %361) #5
  %363 = load i64, ptr %362, align 8, !tbaa !17
  %364 = icmp slt i64 %358, %363
  br i1 %364, label %365, label %393

365:                                              ; preds = %356
  %366 = load i32, ptr %31, align 4, !tbaa !9
  %367 = icmp sgt i32 %366, 1
  br i1 %367, label %368, label %393

368:                                              ; preds = %365
  %369 = load i32, ptr %30, align 4, !tbaa !9
  %370 = load i32, ptr %31, align 4, !tbaa !9
  %371 = mul nsw i32 %369, %370
  %372 = mul nsw i32 %371, 7
  %373 = sext i32 %372 to i64
  %374 = load ptr, ptr %7, align 8, !tbaa !5
  %375 = load i32, ptr %8, align 4, !tbaa !9
  %376 = sext i32 %375 to i64
  %377 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %374, i64 noundef %376) #5
  %378 = load i64, ptr %377, align 8, !tbaa !17
  %379 = mul nsw i64 %378, 8
  %380 = icmp sle i64 %373, %379
  br i1 %380, label %381, label %392

381:                                              ; preds = %368
  %382 = load i32, ptr %31, align 4, !tbaa !9
  %383 = sext i32 %382 to i64
  %384 = load ptr, ptr %20, align 8, !tbaa !5
  %385 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %384) #5
  store i64 %383, ptr %385, align 8, !tbaa !17
  %386 = load ptr, ptr %20, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIS_IlSaIlEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %386)
          to label %387 unwind label %388

387:                                              ; preds = %381
  br label %392

388:                                              ; preds = %381
  %389 = landingpad { ptr, i32 }
          cleanup
  %390 = extractvalue { ptr, i32 } %389, 0
  store ptr %390, ptr %13, align 8
  %391 = extractvalue { ptr, i32 } %389, 1
  store i32 %391, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  br label %394

392:                                              ; preds = %387, %368
  br label %393

393:                                              ; preds = %392, %365, %356, %347, %331
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %395

394:                                              ; preds = %388, %326, %240
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %398

395:                                              ; preds = %393, %163
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %396

396:                                              ; preds = %395
  %397 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6vectorIlSaIlEES1_IS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  br label %69

398:                                              ; preds = %394, %139, %135
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @_ZNSt6vectorIS_IlSaIlEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  br label %400

399:                                              ; preds = %71
  call void @_ZNSt6vectorIS_IlSaIlEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
  br label %401

400:                                              ; preds = %398, %58
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
  br label %405

401:                                              ; preds = %399, %36
  store i1 true, ptr %11, align 1
  store i32 1, ptr %19, align 4
  %402 = load i1, ptr %11, align 1
  br i1 %402, label %404, label %403

403:                                              ; preds = %401
  call void @_ZNSt6vectorIS_IlSaIlEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %404

404:                                              ; preds = %403, %401
  ret void

405:                                              ; preds = %400, %37
  call void @_ZNSt6vectorIS_IlSaIlEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %406

406:                                              ; preds = %405
  %407 = load ptr, ptr %13, align 8
  %408 = load i32, ptr %14, align 4
  %409 = insertvalue { ptr, i32 } poison, ptr %407, 0
  %410 = insertvalue { ptr, i32 } %409, i32 %408, 1
  resume { ptr, i32 } %410
}

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Halide8Internal13Autoscheduler16generate_tilingsERKSt6vectorIlSaIlEEiib(ptr dead_on_unwind noalias nonnull writable sret(%"class.std::vector") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %2, i32 noundef %3, i1 noundef zeroext %4) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::vector.3", align 8
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca i64, align 8
  tail call void @_ZNSt6vectorIS_IlSaIlEESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %11 = icmp eq i32 %2, -1
  br i1 %11, label %12, label %16

12:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %6, i8 0, i64 24, i1 false)
  call void @_ZNSt6vectorIlSaIlEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  invoke void @_ZNSt6vectorIS_IlSaIlEESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %13 unwind label %14

13:                                               ; preds = %12
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  br label %198

14:                                               ; preds = %12
  %15 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIlSaIlEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  br label %199

16:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  %17 = add nsw i32 %2, -1
  invoke void @_ZN6Halide8Internal13Autoscheduler16generate_tilingsERKSt6vectorIlSaIlEEiib(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %17, i32 noundef %3, i1 noundef zeroext %4)
          to label %.preheader151 unwind label %23

.preheader151:                                    ; preds = %16, %.preheader151
  %.0 = phi i32 [ %22, %.preheader151 ], [ %3, %16 ]
  %18 = call noundef i64 @_ZNKSt6vectorIS_IlSaIlEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  %19 = sext i32 %.0 to i64
  %20 = mul nsw i64 %19, 100
  %21 = icmp ugt i64 %18, %20
  %22 = shl nsw i32 %.0, 1
  br i1 %21, label %.preheader151, label %25, !llvm.loop !5

23:                                               ; preds = %16
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %197

25:                                               ; preds = %.preheader151
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %26 = call ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  store ptr %26, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %27 = call ptr @_ZNSt6vectorIS_IlSaIlEESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  store ptr %27, ptr %9, align 8
  %28 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIlSaIlEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br i1 %28, label %.lr.ph171, label %._crit_edge172

.lr.ph171:                                        ; preds = %25
  %29 = sext i32 %2 to i64
  %30 = icmp slt i32 %2, 1
  %31 = icmp eq i32 %.0, 2
  br i1 %4, label %.lr.ph171.split.us.preheader, label %.lr.ph171.split

.lr.ph171.split.us.preheader:                     ; preds = %.lr.ph171
  %wide.trip.count211 = zext nneg i32 %2 to i64
  br label %.lr.ph171.split.us

.lr.ph171.split.us:                               ; preds = %.lr.ph171.split.us.preheader, %123
  %32 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIlSaIlEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %33 = call noundef i64 @_ZNKSt6vectorIlSaIlEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %34 = add i64 %33, -1
  %35 = icmp ne i64 %34, %29
  %brmerge = or i1 %35, %30
  %not. = xor i1 %35, true
  br i1 %brmerge, label %.loopexit.us, label %.lr.ph.us

.loopexit.us:                                     ; preds = %.lr.ph.us, %.lr.ph171.split.us
  %.1125.us.in = phi i1 [ %not., %.lr.ph171.split.us ], [ %141, %.lr.ph.us ]
  %.1123.us.in = phi i1 [ %not., %.lr.ph171.split.us ], [ %135, %.lr.ph.us ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  store i64 0, ptr %10, align 8, !tbaa !7
  invoke void @_ZNSt6vectorIlSaIlEE9push_backEOl(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %.preheader.us unwind label %.split.us

.preheader.us:                                    ; preds = %.loopexit.us
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %29) #5
  %37 = load i64, ptr %36, align 8, !tbaa !7
  %38 = icmp sgt i64 %37, 1
  br i1 %38, label %.lr.ph159.us, label %._crit_edge.us

.lr.ph159.us:                                     ; preds = %.preheader.us, %126
  %39 = phi i64 [ %128, %126 ], [ 1, %.preheader.us ]
  %.0117158.us = phi i32 [ %127, %126 ], [ 1, %.preheader.us ]
  %.0118157.us = phi i32 [ %.1119.ph.us, %126 ], [ 0, %.preheader.us ]
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %29) #5
  %41 = load i64, ptr %40, align 8, !tbaa !7
  %42 = add nsw i64 %39, -1
  %43 = add i64 %42, %41
  %44 = sdiv i64 %43, %39
  %45 = trunc i64 %44 to i32
  %46 = icmp eq i32 %45, 1
  %or.cond.us = select i1 %.1123.us.in, i1 %46, i1 false
  br i1 %or.cond.us, label %126, label %47

47:                                               ; preds = %.lr.ph159.us
  br i1 %.1125.us.in, label %48, label %53

48:                                               ; preds = %47
  %sext.us = shl i64 %44, 32
  %49 = ashr exact i64 %sext.us, 32
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %29) #5
  %51 = load i64, ptr %50, align 8, !tbaa !7
  %52 = icmp eq i64 %49, %51
  br i1 %52, label %126, label %53

53:                                               ; preds = %48, %47
  %54 = icmp sgt i32 %.0117158.us, 1
  br i1 %54, label %55, label %63

55:                                               ; preds = %53
  %56 = mul i32 %.0117158.us, 7
  %57 = mul i32 %56, %45
  %58 = sext i32 %57 to i64
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %29) #5
  %60 = load i64, ptr %59, align 8, !tbaa !7
  %61 = shl nsw i64 %60, 3
  %62 = icmp slt i64 %61, %58
  br i1 %62, label %._crit_edge.us, label %63

63:                                               ; preds = %55, %53
  %sext133.us = shl i64 %44, 32
  %64 = ashr exact i64 %sext133.us, 32
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #5
  store i64 %64, ptr %65, align 8, !tbaa !7
  invoke void @_ZNSt6vectorIS_IlSaIlEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %32)
          to label %126 unwind label %.split174.us

._crit_edge.us:                                   ; preds = %126, %55, %.preheader.us
  %.0118.lcssa.us = phi i32 [ 0, %.preheader.us ], [ %.0118157.us, %55 ], [ %.1119.ph.us, %126 ]
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %29) #5
  %67 = load i64, ptr %66, align 8, !tbaa !7
  %.not134163.us = icmp slt i64 %67, 1
  br i1 %.not134163.us, label %._crit_edge167.us, label %.lr.ph166.us

68:                                               ; preds = %.lr.ph166.us, %95
  %69 = phi i64 [ 1, %.lr.ph166.us ], [ %97, %95 ]
  %.0112164.us = phi i32 [ 1, %.lr.ph166.us ], [ %96, %95 ]
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %29) #5
  %71 = load i64, ptr %70, align 8, !tbaa !7
  %72 = add nsw i64 %69, -1
  %73 = add i64 %72, %71
  %74 = sdiv i64 %73, %69
  %75 = trunc i64 %74 to i32
  %76 = icmp eq i32 %.0112164.us, 1
  %or.cond3.us = select i1 %.1123.us.in, i1 %76, i1 false
  br i1 %or.cond3.us, label %95, label %77

77:                                               ; preds = %68
  br i1 %.1125.us.in, label %78, label %82

78:                                               ; preds = %77
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %29) #5
  %80 = load i64, ptr %79, align 8, !tbaa !7
  %81 = icmp eq i64 %80, %69
  br i1 %81, label %95, label %82

82:                                               ; preds = %78, %77
  %83 = icmp sgt i32 %.0112164.us, 1
  %84 = icmp sgt i32 %142, %75
  %or.cond143.us = select i1 %83, i1 %84, i1 false
  br i1 %or.cond143.us, label %._crit_edge167.us, label %85

85:                                               ; preds = %82
  %86 = mul i32 %.0112164.us, 7
  %87 = mul i32 %86, %75
  %88 = sext i32 %87 to i64
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %29) #5
  %90 = load i64, ptr %89, align 8, !tbaa !7
  %91 = shl nsw i64 %90, 3
  %92 = icmp slt i64 %91, %88
  br i1 %92, label %._crit_edge167.us, label %93

93:                                               ; preds = %85
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #5
  store i64 %69, ptr %94, align 8, !tbaa !7
  invoke void @_ZNSt6vectorIS_IlSaIlEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %32)
          to label %95 unwind label %.split177.us

95:                                               ; preds = %93, %78, %68
  %96 = mul nsw i32 %.0112164.us, %.0
  %97 = sext i32 %96 to i64
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %29) #5
  %99 = load i64, ptr %98, align 8, !tbaa !7
  %.not134.us = icmp slt i64 %99, %97
  br i1 %.not134.us, label %._crit_edge167.us, label %68, !llvm.loop !11

._crit_edge167.us:                                ; preds = %95, %85, %82, %._crit_edge.us
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %29) #5
  %101 = load i64, ptr %100, align 8, !tbaa !7
  %102 = add nsw i64 %101, 2
  %103 = sdiv i64 %102, 3
  %104 = trunc i64 %103 to i32
  br i1 %31, label %105, label %123

105:                                              ; preds = %._crit_edge167.us
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %29) #5
  %107 = load i64, ptr %106, align 8, !tbaa !7
  %108 = icmp sgt i64 %107, 3
  br i1 %108, label %109, label %123

109:                                              ; preds = %105
  %sext135.us = shl i64 %103, 32
  %110 = ashr exact i64 %sext135.us, 32
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %29) #5
  %112 = load i64, ptr %111, align 8, !tbaa !7
  %113 = icmp slt i64 %110, %112
  %114 = icmp sgt i32 %104, 1
  %or.cond5.us = select i1 %113, i1 %114, i1 false
  br i1 %or.cond5.us, label %115, label %123

115:                                              ; preds = %109
  %116 = mul i64 %103, 21
  %117 = and i64 %116, 4294967295
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %29) #5
  %119 = load i64, ptr %118, align 8, !tbaa !7
  %120 = shl nsw i64 %119, 3
  %.not136.us = icmp sgt i64 %117, %120
  br i1 %.not136.us, label %123, label %121

121:                                              ; preds = %115
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #5
  store i64 %110, ptr %122, align 8, !tbaa !7
  invoke void @_ZNSt6vectorIS_IlSaIlEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %32)
          to label %123 unwind label %.split180.us

123:                                              ; preds = %121, %115, %109, %105, %._crit_edge167.us
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6vectorIlSaIlEES1_IS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %125 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIlSaIlEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br i1 %125, label %.lr.ph171.split.us, label %._crit_edge172

126:                                              ; preds = %63, %48, %.lr.ph159.us
  %.1119.ph.us = phi i32 [ %.0117158.us, %63 ], [ %.0118157.us, %48 ], [ %.0118157.us, %.lr.ph159.us ]
  %127 = mul nsw i32 %.0117158.us, %.0
  %128 = sext i32 %127 to i64
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %29) #5
  %130 = load i64, ptr %129, align 8, !tbaa !7
  %131 = icmp sgt i64 %130, %128
  br i1 %131, label %.lr.ph159.us, label %._crit_edge.us, !llvm.loop !12

.lr.ph.us:                                        ; preds = %.lr.ph171.split.us, %.lr.ph.us
  %indvars.iv209 = phi i64 [ %indvars.iv.next210, %.lr.ph.us ], [ 0, %.lr.ph171.split.us ]
  %.0122154.us = phi i1 [ %135, %.lr.ph.us ], [ true, %.lr.ph171.split.us ]
  %.0124153.us = phi i1 [ %141, %.lr.ph.us ], [ true, %.lr.ph171.split.us ]
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %indvars.iv209) #5
  %133 = load i64, ptr %132, align 8, !tbaa !7
  %134 = icmp eq i64 %133, 1
  %135 = select i1 %134, i1 %.0122154.us, i1 false
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %indvars.iv209) #5
  %137 = load i64, ptr %136, align 8, !tbaa !7
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv209) #5
  %139 = load i64, ptr %138, align 8, !tbaa !7
  %140 = icmp eq i64 %137, %139
  %141 = select i1 %140, i1 %.0124153.us, i1 false
  %indvars.iv.next210 = add nuw nsw i64 %indvars.iv209, 1
  %exitcond212.not = icmp eq i64 %indvars.iv.next210, %wide.trip.count211
  br i1 %exitcond212.not, label %.loopexit.us, label %.lr.ph.us, !llvm.loop !13

.lr.ph166.us:                                     ; preds = %._crit_edge.us
  %142 = shl nsw i32 %.0118.lcssa.us, 1
  br label %68

.split.us:                                        ; preds = %.loopexit.us
  %143 = landingpad { ptr, i32 }
          cleanup
  br label %.split

.split174.us:                                     ; preds = %63
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %196

.split177.us:                                     ; preds = %93
  %145 = landingpad { ptr, i32 }
          cleanup
  br label %196

.split180.us:                                     ; preds = %121
  %146 = landingpad { ptr, i32 }
          cleanup
  br label %196

.lr.ph171.split:                                  ; preds = %.lr.ph171
  br i1 %30, label %.lr.ph171.split.split, label %.lr.ph171.split.split.us.preheader

.lr.ph171.split.split.us.preheader:               ; preds = %.lr.ph171.split
  %wide.trip.count = zext nneg i32 %2 to i64
  br label %.lr.ph171.split.split.us

.lr.ph171.split.split.us:                         ; preds = %.lr.ph171.split.split.us.preheader, %161
  %147 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIlSaIlEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %148 = call noundef i64 @_ZNKSt6vectorIlSaIlEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %149 = add i64 %148, -1
  %150 = icmp eq i64 %149, %29
  br i1 %150, label %.preheader150.us187, label %..loopexit_crit_edge.us192

..loopexit_crit_edge.us192:                       ; preds = %.preheader150.us187, %.lr.ph171.split.split.us
  %.1125.us182 = phi i1 [ false, %.lr.ph171.split.split.us ], [ %173, %.preheader150.us187 ]
  %.1123.us183 = phi i1 [ false, %.lr.ph171.split.split.us ], [ %167, %.preheader150.us187 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  store i64 0, ptr %10, align 8, !tbaa !7
  invoke void @_ZNSt6vectorIlSaIlEE9push_backEOl(ptr noundef nonnull align 8 dereferenceable(24) %147, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %151 unwind label %.split.split.us

151:                                              ; preds = %..loopexit_crit_edge.us192
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  br i1 %.1123.us183, label %154, label %152

152:                                              ; preds = %151
  %153 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %147) #5
  store i64 1, ptr %153, align 8, !tbaa !7
  invoke void @_ZNSt6vectorIS_IlSaIlEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %147)
          to label %154 unwind label %.split197.us

154:                                              ; preds = %152, %151
  %155 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %29) #5
  %156 = load i64, ptr %155, align 8, !tbaa !7
  %.not.us = icmp eq i64 %156, 1
  %brmerge220 = select i1 %.not.us, i1 true, i1 %.1125.us182
  br i1 %brmerge220, label %161, label %157

157:                                              ; preds = %154
  %158 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %29) #5
  %159 = load i64, ptr %158, align 8, !tbaa !7
  %160 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %147) #5
  store i64 %159, ptr %160, align 8, !tbaa !7
  invoke void @_ZNSt6vectorIS_IlSaIlEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %147)
          to label %161 unwind label %.split197.us

161:                                              ; preds = %154, %157
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6vectorIlSaIlEES1_IS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %163 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIlSaIlEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br i1 %163, label %.lr.ph171.split.split.us, label %._crit_edge172

.preheader150.us187:                              ; preds = %.lr.ph171.split.split.us, %.preheader150.us187
  %indvars.iv = phi i64 [ %indvars.iv.next, %.preheader150.us187 ], [ 0, %.lr.ph171.split.split.us ]
  %.0122154.us185 = phi i1 [ %167, %.preheader150.us187 ], [ true, %.lr.ph171.split.split.us ]
  %.0124153.us186 = phi i1 [ %173, %.preheader150.us187 ], [ true, %.lr.ph171.split.split.us ]
  %164 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %147, i64 noundef %indvars.iv) #5
  %165 = load i64, ptr %164, align 8, !tbaa !7
  %166 = icmp eq i64 %165, 1
  %167 = select i1 %166, i1 %.0122154.us185, i1 false
  %168 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %147, i64 noundef %indvars.iv) #5
  %169 = load i64, ptr %168, align 8, !tbaa !7
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv) #5
  %171 = load i64, ptr %170, align 8, !tbaa !7
  %172 = icmp eq i64 %169, %171
  %173 = select i1 %172, i1 %.0124153.us186, i1 false
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %..loopexit_crit_edge.us192, label %.preheader150.us187, !llvm.loop !13

.split.split.us:                                  ; preds = %..loopexit_crit_edge.us192
  %174 = landingpad { ptr, i32 }
          cleanup
  br label %.split

.split197.us:                                     ; preds = %157, %152
  %175 = landingpad { ptr, i32 }
          cleanup
  br label %196

._crit_edge172:                                   ; preds = %161, %193, %123, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @_ZNSt6vectorIS_IlSaIlEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  br label %198

.lr.ph171.split.split:                            ; preds = %.lr.ph171.split, %193
  %176 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt6vectorIlSaIlEES1_IS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %177 = call noundef i64 @_ZNKSt6vectorIlSaIlEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  store i64 0, ptr %10, align 8, !tbaa !7
  invoke void @_ZNSt6vectorIlSaIlEE9push_backEOl(ptr noundef nonnull align 8 dereferenceable(24) %176, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %178 unwind label %.split.split

178:                                              ; preds = %.lr.ph171.split.split
  %179 = add i64 %177, -1
  %180 = icmp eq i64 %179, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  br i1 %180, label %185, label %181

181:                                              ; preds = %178
  %182 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %176) #5
  store i64 1, ptr %182, align 8, !tbaa !7
  invoke void @_ZNSt6vectorIS_IlSaIlEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %176)
          to label %.thread unwind label %.split197

.split.split:                                     ; preds = %.lr.ph171.split.split
  %183 = landingpad { ptr, i32 }
          cleanup
  br label %.split

.split:                                           ; preds = %.split.split, %.split.split.us, %.split.us
  %.us-phi = phi { ptr, i32 } [ %143, %.split.us ], [ %183, %.split.split ], [ %174, %.split.split.us ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  br label %196

.split197:                                        ; preds = %189, %181
  %184 = landingpad { ptr, i32 }
          cleanup
  br label %196

185:                                              ; preds = %178
  %186 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %29) #5
  br label %193

.thread:                                          ; preds = %181
  %187 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %29) #5
  %188 = load i64, ptr %187, align 8, !tbaa !7
  %.not213 = icmp eq i64 %188, 1
  br i1 %.not213, label %193, label %189

189:                                              ; preds = %.thread
  %190 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIlSaIlEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %29) #5
  %191 = load i64, ptr %190, align 8, !tbaa !7
  %192 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIlSaIlEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %176) #5
  store i64 %191, ptr %192, align 8, !tbaa !7
  invoke void @_ZNSt6vectorIS_IlSaIlEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) %176)
          to label %193 unwind label %.split197

193:                                              ; preds = %185, %.thread, %189
  %194 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt6vectorIlSaIlEES1_IS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %195 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt6vectorIlSaIlEES1_IS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br i1 %195, label %.lr.ph171.split.split, label %._crit_edge172

196:                                              ; preds = %.split197, %.split197.us, %.split174.us, %.split177.us, %.split180.us, %.split
  %.pn.pn = phi { ptr, i32 } [ %.us-phi, %.split ], [ %146, %.split180.us ], [ %145, %.split177.us ], [ %144, %.split174.us ], [ %184, %.split197 ], [ %175, %.split197.us ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @_ZNSt6vectorIS_IlSaIlEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  br label %197

197:                                              ; preds = %196, %23
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %196 ], [ %24, %23 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  br label %199

198:                                              ; preds = %13, %._crit_edge172
  ret void

199:                                              ; preds = %197, %14
  %.pn140 = phi { ptr, i32 } [ %15, %14 ], [ %.pn.pn.pn, %197 ]
  call void @_ZNSt6vectorIS_IlSaIlEESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  resume { ptr, i32 } %.pn140
}

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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