; LLVM IR from facebookresearch/habitat-sim :: src/deps/basis-universal/encoder (basisu_frontend)

; 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.basisu::vector.76" = type { ptr, i32, i32 }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.78 = type { ptr, i32, i32, ptr }
%"class.basisu::tree_vector_quant.79" = type <{ %"class.basisu::vector.80", %"class.basisu::vector.76", i32, [4 x i8] }>
%"class.basisu::vector.80" = type { ptr, i32, i32 }
%"class.basisu::basisu_frontend" = type { %"struct.basisu::basisu_frontend::params", i32, i32, i8, i8, i8, i32, i32, %"class.basisu::vector", %"class.basisu::vector.0", %"class.basisu::vector.0", %"class.basisu::vector.0", %"class.basisu::tree_vector_quant", %"class.basisu::vector.6", %"class.basisu::vector.6", %"class.basisu::vector.8", %"class.basisu::vector.6", %"class.basisu::vector.10", %"class.basisu::vector.12", %"class.basisu::vector.6", %"class.basisu::vector.0", %"class.basisu::vector.6", %"class.basisu::vector.8", %"class.basisu::vector.6", %"class.basisu::vector.14", %"class.basisu::vector.16", %"class.basisu::vector.18", %"class.basisu::vector.20", %"class.std::mutex" }
%"struct.basisu::basisu_frontend::params" = type { i32, ptr, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, ptr, i32, i32, i8, float, i32, ptr, ptr }
%"class.basisu::vector" = type { ptr, i32, i32 }
%"class.basisu::tree_vector_quant" = type <{ %"class.basisu::vector.2", %"class.basisu::vector.4", i32, [4 x i8] }>
%"class.basisu::vector.2" = type { ptr, i32, i32 }
%"class.basisu::vector.4" = type { ptr, i32, i32 }
%"class.basisu::vector.10" = type { ptr, i32, i32 }
%"class.basisu::vector.12" = type { ptr, i32, i32 }
%"class.basisu::vector.0" = type { ptr, i32, i32 }
%"class.basisu::vector.8" = type { ptr, i32, i32 }
%"class.basisu::vector.6" = type { ptr, i32, i32 }
%"class.basisu::vector.14" = type { ptr, i32, i32 }
%"class.basisu::vector.16" = type { ptr, i32, i32 }
%"class.basisu::vector.18" = type { ptr, i32, i32 }
%"class.basisu::vector.20" = type { ptr, i32, i32 }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"struct.std::pair.83" = type { %"class.basisu::vec", i64 }
%"class.basisu::vec" = type { [16 x float] }

@.str.37 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [65 x i8], align 1

declare void @_ZN6basisu12debug_printfEPKcz(ptr noundef, ...) #0

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZN6basisuL21handle_verify_failureEi(i32 noundef) #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6basisu15basisu_frontend26generate_selector_clustersEv(ptr noundef nonnull align 8 dereferenceable(496) %0) #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.basisu::vector.76", align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::function", align 8
  %11 = alloca %class.anon.78, align 8
  %12 = alloca %"class.basisu::tree_vector_quant.79", align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i8, align 1
  %18 = alloca i32, align 4
  %19 = alloca i8, align 1
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %30 = load ptr, ptr %2, align 8
  call void (ptr, ...) @_ZN6basisu12debug_printfEPKcz(ptr noundef @.str.37)
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #7
  %31 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 1
  %32 = load i32, ptr %31, align 8, !tbaa !9
  %33 = zext i32 %32 to i64
  call void @_ZN6basisu6vectorISt4pairINS_3vecILj16EfEEmEEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %33)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 4096, ptr %4, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !31
  br label %34

34:                                               ; preds = %59, %1
  %35 = load i32, ptr %5, align 4, !tbaa !31
  %36 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 1
  %37 = load i32, ptr %36, align 8, !tbaa !9
  %38 = icmp ult i32 %35, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %76

40:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %41 = load i32, ptr %5, align 4, !tbaa !31
  store i32 %41, ptr %6, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %42 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 1
  %43 = load i32, ptr %42, align 8, !tbaa !9
  %44 = load i32, ptr %6, align 4, !tbaa !31
  %45 = add i32 %44, 4096
  %46 = invoke noundef i32 @_ZN6basisu7minimumIjEET_S1_S1_(i32 noundef %43, i32 noundef %45)
          to label %47 unwind label %62

47:                                               ; preds = %40
  store i32 %46, ptr %7, align 4, !tbaa !31
  %48 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 0
  %49 = getelementptr inbounds %"struct.basisu::basisu_frontend::params", ptr %48, i32 0, i32 19
  %50 = load ptr, ptr %49, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #7
  %51 = getelementptr inbounds %class.anon.78, ptr %11, i32 0, i32 0
  store ptr %30, ptr %51, align 8, !tbaa !33
  %52 = getelementptr inbounds %class.anon.78, ptr %11, i32 0, i32 1
  %53 = load i32, ptr %6, align 4, !tbaa !31
  store i32 %53, ptr %52, align 8, !tbaa !35
  %54 = getelementptr inbounds %class.anon.78, ptr %11, i32 0, i32 2
  %55 = load i32, ptr %7, align 4, !tbaa !31
  store i32 %55, ptr %54, align 4, !tbaa !36
  %56 = getelementptr inbounds %class.anon.78, ptr %11, i32 0, i32 3
  store ptr %3, ptr %56, align 8, !tbaa !5
  invoke void @"_ZNSt8functionIFvvEEC2IZN6basisu15basisu_frontend26generate_selector_clustersEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %57 unwind label %66

57:                                               ; preds = %47
  invoke void @_ZN6basisu8job_pool7add_jobEOSt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(189) %50, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %58 unwind label %70

58:                                               ; preds = %57
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %59

59:                                               ; preds = %58
  %60 = load i32, ptr %5, align 4, !tbaa !31
  %61 = add i32 %60, 4096
  store i32 %61, ptr %5, align 4, !tbaa !31
  br label %34, !llvm.loop !37

62:                                               ; preds = %40
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %8, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %9, align 4
  br label %75

66:                                               ; preds = %47
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %8, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %9, align 4
  br label %74

70:                                               ; preds = %57
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %8, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %9, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  br label %74

74:                                               ; preds = %70, %66
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
  br label %75

75:                                               ; preds = %74, %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %409

76:                                               ; preds = %39
  %77 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 0
  %78 = getelementptr inbounds %"struct.basisu::basisu_frontend::params", ptr %77, i32 0, i32 19
  %79 = load ptr, ptr %78, align 8, !tbaa !32
  invoke void @_ZN6basisu8job_pool12wait_for_allEv(ptr noundef nonnull align 8 dereferenceable(189) %79)
          to label %80 unwind label %88

80:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 40, ptr %12) #7
  invoke void @_ZN6basisu17tree_vector_quantINS_3vecILj16EfEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(36) %12)
          to label %81 unwind label %92

81:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !31
  br label %82

82:                                               ; preds = %109, %81
  %83 = load i32, ptr %13, align 4, !tbaa !31
  %84 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 1
  %85 = load i32, ptr %84, align 8, !tbaa !9
  %86 = icmp ult i32 %83, %85
  br i1 %86, label %96, label %87

87:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %116

88:                                               ; preds = %76
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %8, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %9, align 4
  br label %409

92:                                               ; preds = %80
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %8, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %9, align 4
  br label %408

96:                                               ; preds = %82
  %97 = load i32, ptr %13, align 4, !tbaa !31
  %98 = zext i32 %97 to i64
  %99 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN6basisu6vectorISt4pairINS_3vecILj16EfEEmEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %98)
          to label %100 unwind label %112

100:                                              ; preds = %96
  %101 = getelementptr inbounds %"struct.std::pair.83", ptr %99, i32 0, i32 0
  %102 = load i32, ptr %13, align 4, !tbaa !31
  %103 = zext i32 %102 to i64
  %104 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZN6basisu6vectorISt4pairINS_3vecILj16EfEEmEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %103)
          to label %105 unwind label %112

105:                                              ; preds = %100
  %106 = getelementptr inbounds %"struct.std::pair.83", ptr %104, i32 0, i32 1
  %107 = load i64, ptr %106, align 8, !tbaa !39
  invoke void @_ZN6basisu17tree_vector_quantINS_3vecILj16EfEEE16add_training_vecERKS2_m(ptr noundef nonnull align 8 dereferenceable(36) %12, ptr noundef nonnull align 4 dereferenceable(64) %101, i64 noundef %107)
          to label %108 unwind label %112

108:                                              ; preds = %105
  br label %109

109:                                              ; preds = %108
  %110 = load i32, ptr %13, align 4, !tbaa !31
  %111 = add i32 %110, 1
  store i32 %111, ptr %13, align 4, !tbaa !31
  br label %82, !llvm.loop !43

112:                                              ; preds = %105, %100, %96
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %8, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %407

116:                                              ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %117 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 0
  %118 = getelementptr inbounds %"struct.basisu::basisu_frontend::params", ptr %117, i32 0, i32 4
  %119 = load i32, ptr %118, align 8, !tbaa !44
  %120 = icmp ule i32 %119, 1
  %121 = zext i1 %120 to i64
  %122 = select i1 %120, i32 32, i32 16
  store i32 %122, ptr %14, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %123 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 0
  %124 = getelementptr inbounds %"struct.basisu::basisu_frontend::params", ptr %123, i32 0, i32 3
  %125 = load i32, ptr %124, align 4, !tbaa !45
  %126 = icmp uge i32 %125, 256
  br i1 %126, label %127, label %129

127:                                              ; preds = %116
  %128 = load i32, ptr %14, align 4, !tbaa !31
  br label %130

129:                                              ; preds = %116
  br label %130

130:                                              ; preds = %129, %127
  %131 = phi i32 [ %128, %127 ], [ 0, %129 ]
  store i32 %131, ptr %15, align 4, !tbaa !31
  %132 = load i32, ptr %15, align 4, !tbaa !31
  invoke void (ptr, ...) @_ZN6basisu12debug_printfEPKcz(ptr noundef @.str.38, i32 noundef %132)
          to label %133 unwind label %170

133:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !31
  %134 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 0
  %135 = getelementptr inbounds %"struct.basisu::basisu_frontend::params", ptr %134, i32 0, i32 10
  %136 = load i8, ptr %135, align 1, !tbaa !46, !range !47, !noundef !48
  %137 = trunc i8 %136 to i1
  br i1 %137, label %138, label %142

138:                                              ; preds = %133
  %139 = call noundef i32 @_ZNSt6thread20hardware_concurrencyEv() #7
  %140 = invoke noundef i32 @_ZN6basisu7minimumIiEET_S1_S1_(i32 noundef %139, i32 noundef 8)
          to label %141 unwind label %174

141:                                              ; preds = %138
  br label %143

142:                                              ; preds = %133
  br label %143

143:                                              ; preds = %142, %141
  %144 = phi i32 [ %140, %141 ], [ 0, %142 ]
  store i32 %144, ptr %16, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #7
  %145 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 0
  %146 = getelementptr inbounds %"struct.basisu::basisu_frontend::params", ptr %145, i32 0, i32 3
  %147 = load i32, ptr %146, align 4, !tbaa !45
  %148 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 5
  %149 = load i8, ptr %148, align 2, !tbaa !49, !range !47, !noundef !48
  %150 = trunc i8 %149 to i1
  br i1 %150, label %151, label %153

151:                                              ; preds = %143
  %152 = load i32, ptr %15, align 4, !tbaa !31
  br label %154

153:                                              ; preds = %143
  br label %154

154:                                              ; preds = %153, %151
  %155 = phi i32 [ %152, %151 ], [ 0, %153 ]
  %156 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 19
  %157 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 21
  %158 = load i32, ptr %16, align 4, !tbaa !31
  %159 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 0
  %160 = getelementptr inbounds %"struct.basisu::basisu_frontend::params", ptr %159, i32 0, i32 19
  %161 = load ptr, ptr %160, align 8, !tbaa !32
  %162 = invoke noundef zeroext i1 @_ZN6basisu39generate_hierarchical_codebook_threadedINS_17tree_vector_quantINS_3vecILj16EfEEEEEEbRT_jjRNS_6vectorINS7_IjEEEESA_jPNS_8job_poolE(ptr noundef nonnull align 8 dereferenceable(36) %12, i32 noundef %147, i32 noundef %155, ptr noundef nonnull align 8 dereferenceable(16) %156, ptr noundef nonnull align 8 dereferenceable(16) %157, i32 noundef %158, ptr noundef %161)
          to label %163 unwind label %178

163:                                              ; preds = %154
  %164 = zext i1 %162 to i8
  store i8 %164, ptr %17, align 1, !tbaa !50
  br label %165

165:                                              ; preds = %163
  %166 = load i8, ptr %17, align 1, !tbaa !50, !range !47, !noundef !48
  %167 = trunc i8 %166 to i1
  br i1 %167, label %182, label %168

168:                                              ; preds = %165
  invoke void @_ZN6basisuL21handle_verify_failureEi(i32 noundef 1809)
          to label %169 unwind label %178

169:                                              ; preds = %168
  br label %182

170:                                              ; preds = %130
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %8, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %9, align 4
  br label %406

174:                                              ; preds = %138
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %8, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %9, align 4
  br label %405

178:                                              ; preds = %402, %399, %396, %219, %217, %195, %193, %188, %168, %154
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %8, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %9, align 4
  br label %404

182:                                              ; preds = %169, %165
  br label %183

183:                                              ; preds = %182
  br label %184

184:                                              ; preds = %183
  %185 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 5
  %186 = load i8, ptr %185, align 2, !tbaa !49, !range !47, !noundef !48
  %187 = trunc i8 %186 to i1
  br i1 %187, label %188, label %396

188:                                              ; preds = %184
  %189 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 21
  %190 = invoke noundef i32 @_ZNK6basisu6vectorINS0_IjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %189)
          to label %191 unwind label %178

191:                                              ; preds = %188
  %192 = icmp ne i32 %190, 0
  br i1 %192, label %217, label %193

193:                                              ; preds = %191
  %194 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 21
  invoke void @_ZN6basisu6vectorINS0_IjEEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %194, i64 noundef 0, i1 noundef zeroext false)
          to label %195 unwind label %178

195:                                              ; preds = %193
  %196 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 21
  invoke void @_ZN6basisu6vectorINS0_IjEEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %196, i64 noundef 1, i1 noundef zeroext false)
          to label %197 unwind label %178

197:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !31
  br label %198

198:                                              ; preds = %209, %197
  %199 = load i32, ptr %18, align 4, !tbaa !31
  %200 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 1
  %201 = load i32, ptr %200, align 8, !tbaa !9
  %202 = icmp ult i32 %199, %201
  br i1 %202, label %204, label %203

203:                                              ; preds = %198
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %216

204:                                              ; preds = %198
  %205 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 21
  %206 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6basisu6vectorINS0_IjEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %205, i64 noundef 0)
          to label %207 unwind label %212

207:                                              ; preds = %204
  invoke void @_ZN6basisu6vectorIjE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(16) %206, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %208 unwind label %212

208:                                              ; preds = %207
  br label %209

209:                                              ; preds = %208
  %210 = load i32, ptr %18, align 4, !tbaa !31
  %211 = add i32 %210, 1
  store i32 %211, ptr %18, align 4, !tbaa !31
  br label %198, !llvm.loop !51

212:                                              ; preds = %207, %204
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %8, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %404

216:                                              ; preds = %203
  br label %217

217:                                              ; preds = %216, %191
  %218 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 22
  invoke void @_ZN6basisu6vectorIhE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %218, i64 noundef 0, i1 noundef zeroext false)
          to label %219 unwind label %178

219:                                              ; preds = %217
  %220 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 22
  %221 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 1
  %222 = load i32, ptr %221, align 8, !tbaa !9
  %223 = zext i32 %222 to i64
  invoke void @_ZN6basisu6vectorIhE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %220, i64 noundef %223, i1 noundef zeroext false)
          to label %224 unwind label %178

224:                                              ; preds = %219
  %225 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 22
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #7
  store i8 -1, ptr %19, align 1, !tbaa !52
  invoke void @_ZN6basisu14vector_set_allINS_6vectorIhEEEEvRT_RKNS3_10value_typeE(ptr noundef nonnull align 8 dereferenceable(16) %225, ptr noundef nonnull align 1 dereferenceable(1) %19)
          to label %226 unwind label %234

226:                                              ; preds = %224
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !31
  br label %227

227:                                              ; preds = %280, %226
  %228 = load i32, ptr %20, align 4, !tbaa !31
  %229 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 21
  %230 = invoke noundef i32 @_ZNK6basisu6vectorINS0_IjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %229)
          to label %231 unwind label %238

231:                                              ; preds = %227
  %232 = icmp ult i32 %228, %230
  br i1 %232, label %242, label %233

233:                                              ; preds = %231
  store i32 13, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %285

234:                                              ; preds = %224
  %235 = landingpad { ptr, i32 }
          cleanup
  %236 = extractvalue { ptr, i32 } %235, 0
  store ptr %236, ptr %8, align 8
  %237 = extractvalue { ptr, i32 } %235, 1
  store i32 %237, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  br label %404

238:                                              ; preds = %227
  %239 = landingpad { ptr, i32 }
          cleanup
  %240 = extractvalue { ptr, i32 } %239, 0
  store ptr %240, ptr %8, align 8
  %241 = extractvalue { ptr, i32 } %239, 1
  store i32 %241, ptr %9, align 4
  br label %284

242:                                              ; preds = %231
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %243 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 21
  %244 = load i32, ptr %20, align 4, !tbaa !31
  %245 = zext i32 %244 to i64
  %246 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6basisu6vectorINS0_IjEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %243, i64 noundef %245)
          to label %247 unwind label %255

247:                                              ; preds = %242
  store ptr %246, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !31
  br label %248

248:                                              ; preds = %276, %247
  %249 = load i32, ptr %23, align 4, !tbaa !31
  %250 = load ptr, ptr %22, align 8, !tbaa !5
  %251 = invoke noundef i32 @_ZNK6basisu6vectorIjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %250)
          to label %252 unwind label %259

252:                                              ; preds = %248
  %253 = icmp ult i32 %249, %251
  br i1 %253, label %263, label %254

254:                                              ; preds = %252
  store i32 16, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %279

255:                                              ; preds = %242
  %256 = landingpad { ptr, i32 }
          cleanup
  %257 = extractvalue { ptr, i32 } %256, 0
  store ptr %257, ptr %8, align 8
  %258 = extractvalue { ptr, i32 } %256, 1
  store i32 %258, ptr %9, align 4
  br label %283

259:                                              ; preds = %271, %263, %248
  %260 = landingpad { ptr, i32 }
          cleanup
  %261 = extractvalue { ptr, i32 } %260, 0
  store ptr %261, ptr %8, align 8
  %262 = extractvalue { ptr, i32 } %260, 1
  store i32 %262, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %283

263:                                              ; preds = %252
  %264 = load i32, ptr %20, align 4, !tbaa !31
  %265 = trunc i32 %264 to i8
  %266 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 22
  %267 = load ptr, ptr %22, align 8, !tbaa !5
  %268 = load i32, ptr %23, align 4, !tbaa !31
  %269 = zext i32 %268 to i64
  %270 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %267, i64 noundef %269)
          to label %271 unwind label %259

271:                                              ; preds = %263
  %272 = load i32, ptr %270, align 4, !tbaa !31
  %273 = zext i32 %272 to i64
  %274 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %266, i64 noundef %273)
          to label %275 unwind label %259

275:                                              ; preds = %271
  store i8 %265, ptr %274, align 1, !tbaa !52
  br label %276

276:                                              ; preds = %275
  %277 = load i32, ptr %23, align 4, !tbaa !31
  %278 = add i32 %277, 1
  store i32 %278, ptr %23, align 4, !tbaa !31
  br label %248, !llvm.loop !53

279:                                              ; preds = %254
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %280

280:                                              ; preds = %279
  %281 = load i32, ptr %20, align 4, !tbaa !31
  %282 = add i32 %281, 1
  store i32 %282, ptr %20, align 4, !tbaa !31
  br label %227, !llvm.loop !54

283:                                              ; preds = %259, %255
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %284

284:                                              ; preds = %283, %238
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %404

285:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store i32 0, ptr %24, align 4, !tbaa !31
  br label %286

286:                                              ; preds = %311, %285
  %287 = load i32, ptr %24, align 4, !tbaa !31
  %288 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 1
  %289 = load i32, ptr %288, align 8, !tbaa !9
  %290 = icmp ult i32 %287, %289
  br i1 %290, label %292, label %291

291:                                              ; preds = %286
  store i32 19, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %314

292:                                              ; preds = %286
  br label %293

293:                                              ; preds = %292
  %294 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 22
  %295 = load i32, ptr %24, align 4, !tbaa !31
  %296 = zext i32 %295 to i64
  %297 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %294, i64 noundef %296)
          to label %298 unwind label %304

298:                                              ; preds = %293
  %299 = load i8, ptr %297, align 1, !tbaa !52
  %300 = zext i8 %299 to i32
  %301 = icmp ne i32 %300, 255
  br i1 %301, label %308, label %302

302:                                              ; preds = %298
  invoke void @_ZN6basisuL21handle_verify_failureEi(i32 noundef 1836)
          to label %303 unwind label %304

303:                                              ; preds = %302
  br label %308

304:                                              ; preds = %302, %293
  %305 = landingpad { ptr, i32 }
          cleanup
  %306 = extractvalue { ptr, i32 } %305, 0
  store ptr %306, ptr %8, align 8
  %307 = extractvalue { ptr, i32 } %305, 1
  store i32 %307, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %404

308:                                              ; preds = %303, %298
  br label %309

309:                                              ; preds = %308
  br label %310

310:                                              ; preds = %309
  br label %311

311:                                              ; preds = %310
  %312 = load i32, ptr %24, align 4, !tbaa !31
  %313 = add i32 %312, 1
  store i32 %313, ptr %24, align 4, !tbaa !31
  br label %286, !llvm.loop !55

314:                                              ; preds = %291
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 0, ptr %25, align 4, !tbaa !31
  br label %315

315:                                              ; preds = %390, %314
  %316 = load i32, ptr %25, align 4, !tbaa !31
  %317 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 19
  %318 = invoke noundef i32 @_ZNK6basisu6vectorINS0_IjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %317)
          to label %319 unwind label %322

319:                                              ; preds = %315
  %320 = icmp ult i32 %316, %318
  br i1 %320, label %326, label %321

321:                                              ; preds = %319
  store i32 24, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %395

322:                                              ; preds = %315
  %323 = landingpad { ptr, i32 }
          cleanup
  %324 = extractvalue { ptr, i32 } %323, 0
  store ptr %324, ptr %8, align 8
  %325 = extractvalue { ptr, i32 } %323, 1
  store i32 %325, ptr %9, align 4
  br label %394

326:                                              ; preds = %319
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %327 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 19
  %328 = load i32, ptr %25, align 4, !tbaa !31
  %329 = zext i32 %328 to i64
  %330 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN6basisu6vectorINS0_IjEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %327, i64 noundef %329)
          to label %331 unwind label %339

331:                                              ; preds = %326
  store ptr %330, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  store i32 0, ptr %27, align 4, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  store i32 0, ptr %28, align 4, !tbaa !31
  br label %332

332:                                              ; preds = %385, %331
  %333 = load i32, ptr %28, align 4, !tbaa !31
  %334 = load ptr, ptr %26, align 8, !tbaa !5
  %335 = invoke noundef i32 @_ZNK6basisu6vectorIjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %334)
          to label %336 unwind label %343

336:                                              ; preds = %332
  %337 = icmp ult i32 %333, %335
  br i1 %337, label %347, label %338

338:                                              ; preds = %336
  store i32 27, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %389

339:                                              ; preds = %326
  %340 = landingpad { ptr, i32 }
          cleanup
  %341 = extractvalue { ptr, i32 } %340, 0
  store ptr %341, ptr %8, align 8
  %342 = extractvalue { ptr, i32 } %340, 1
  store i32 %342, ptr %9, align 4
  br label %393

343:                                              ; preds = %332
  %344 = landingpad { ptr, i32 }
          cleanup
  %345 = extractvalue { ptr, i32 } %344, 0
  store ptr %345, ptr %8, align 8
  %346 = extractvalue { ptr, i32 } %344, 1
  store i32 %346, ptr %9, align 4
  br label %388

347:                                              ; preds = %336
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %348 = load ptr, ptr %26, align 8, !tbaa !5
  %349 = load i32, ptr %28, align 4, !tbaa !31
  %350 = zext i32 %349 to i64
  %351 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %348, i64 noundef %350)
          to label %352 unwind label %364

352:                                              ; preds = %347
  %353 = load i32, ptr %351, align 4, !tbaa !31
  store i32 %353, ptr %29, align 4, !tbaa !31
  %354 = load i32, ptr %28, align 4, !tbaa !31
  %355 = icmp ne i32 %354, 0
  br i1 %355, label %368, label %356

356:                                              ; preds = %352
  %357 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 22
  %358 = load i32, ptr %29, align 4, !tbaa !31
  %359 = zext i32 %358 to i64
  %360 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %357, i64 noundef %359)
          to label %361 unwind label %364

361:                                              ; preds = %356
  %362 = load i8, ptr %360, align 1, !tbaa !52
  %363 = zext i8 %362 to i32
  store i32 %363, ptr %27, align 4, !tbaa !31
  br label %384

364:                                              ; preds = %379, %369, %356, %347
  %365 = landingpad { ptr, i32 }
          cleanup
  %366 = extractvalue { ptr, i32 } %365, 0
  store ptr %366, ptr %8, align 8
  %367 = extractvalue { ptr, i32 } %365, 1
  store i32 %367, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %388

368:                                              ; preds = %352
  br label %369

369:                                              ; preds = %368
  %370 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 22
  %371 = load i32, ptr %29, align 4, !tbaa !31
  %372 = zext i32 %371 to i64
  %373 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %370, i64 noundef %372)
          to label %374 unwind label %364

374:                                              ; preds = %369
  %375 = load i8, ptr %373, align 1, !tbaa !52
  %376 = zext i8 %375 to i32
  %377 = load i32, ptr %27, align 4, !tbaa !31
  %378 = icmp eq i32 %376, %377
  br i1 %378, label %381, label %379

379:                                              ; preds = %374
  invoke void @_ZN6basisuL21handle_verify_failureEi(i32 noundef 1854)
          to label %380 unwind label %364

380:                                              ; preds = %379
  br label %381

381:                                              ; preds = %380, %374
  br label %382

382:                                              ; preds = %381
  br label %383

383:                                              ; preds = %382
  br label %384

384:                                              ; preds = %383, %361
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %385

385:                                              ; preds = %384
  %386 = load i32, ptr %28, align 4, !tbaa !31
  %387 = add i32 %386, 1
  store i32 %387, ptr %28, align 4, !tbaa !31
  br label %332, !llvm.loop !56

388:                                              ; preds = %364, %343
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %393

389:                                              ; preds = %338
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %390

390:                                              ; preds = %389
  %391 = load i32, ptr %25, align 4, !tbaa !31
  %392 = add i32 %391, 1
  store i32 %392, ptr %25, align 4, !tbaa !31
  br label %315, !llvm.loop !57

393:                                              ; preds = %388, %339
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %394

394:                                              ; preds = %393, %322
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %404

395:                                              ; preds = %321
  br label %396

396:                                              ; preds = %395, %184
  %397 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 19
  %398 = invoke noundef i32 @_ZNK6basisu6vectorINS0_IjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %397)
          to label %399 unwind label %178

399:                                              ; preds = %396
  %400 = getelementptr inbounds %"class.basisu::basisu_frontend", ptr %30, i32 0, i32 21
  %401 = invoke noundef i32 @_ZNK6basisu6vectorINS0_IjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %400)
          to label %402 unwind label %178

402:                                              ; preds = %399
  invoke void (ptr, ...) @_ZN6basisu12debug_printfEPKcz(ptr noundef @.str.39, i32 noundef %398, i32 noundef %401)
          to label %403 unwind label %178

403:                                              ; preds = %402
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @_ZN6basisu17tree_vector_quantINS_3vecILj16EfEEED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %12) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @_ZN6basisu6vectorISt4pairINS_3vecILj16EfEEmEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #7
  ret void

404:                                              ; preds = %394, %304, %284, %234, %212, %178
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #7
  br label %405

405:                                              ; preds = %404, %174
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %406

406:                                              ; preds = %405, %170
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %407

407:                                              ; preds = %406, %112
  call void @_ZN6basisu17tree_vector_quantINS_3vecILj16EfEEED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %12) #7
  br label %408

408:                                              ; preds = %407, %92
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #7
  br label %409

409:                                              ; preds = %408, %88, %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @_ZN6basisu6vectorISt4pairINS_3vecILj16EfEEmEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #7
  br label %410

410:                                              ; preds = %409
  %411 = load ptr, ptr %8, align 8
  %412 = load i32, ptr %9, align 4
  %413 = insertvalue { ptr, i32 } poison, ptr %411, 0
  %414 = insertvalue { ptr, i32 } %413, i32 %412, 1
  resume { ptr, i32 } %414
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6basisu7minimumIjEET_S1_S1_(i32 noundef, i32 noundef) #2

declare void @_ZN6basisu8job_pool7add_jobEOSt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(189), ptr noundef nonnull align 8 dereferenceable(32)) #0

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN6basisu8job_pool12wait_for_allEv(ptr noundef nonnull align 8 dereferenceable(189)) #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu6vectorINS0_IjEEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext) #5 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6basisu7minimumIiEET_S1_S1_(i32 noundef, i32 noundef) #2

; Function Attrs: nounwind
declare noundef i32 @_ZNSt6thread20hardware_concurrencyEv() #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu6vectorIhE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6basisu14vector_set_allINS_6vectorIhEEEEvRT_RKNS3_10value_typeE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu6vectorISt4pairINS_3vecILj16EfEEmEEC2Em(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZN6basisu15basisu_frontend26generate_selector_clustersEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6basisu17tree_vector_quantINS_3vecILj16EfEEE16add_training_vecERKS2_m(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(64), i64 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZN6basisu6vectorISt4pairINS_3vecILj16EfEEmEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6basisu39generate_hierarchical_codebook_threadedINS_17tree_vector_quantINS_3vecILj16EfEEEEEEbRT_jjRNS_6vectorINS7_IjEEEESA_jPNS_8job_poolE(ptr noundef nonnull align 8 dereferenceable(36), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, ptr noundef) #3

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 88}
!10 = !{!"_ZTSN6basisu15basisu_frontendE", !11, i64 0, !12, i64 88, !12, i64 92, !13, i64 96, !13, i64 97, !13, i64 98, !12, i64 100, !12, i64 104, !16, i64 112, !17, i64 128, !17, i64 144, !17, i64 160, !18, i64 176, !21, i64 216, !21, i64 232, !22, i64 248, !21, i64 264, !23, i64 280, !24, i64 296, !21, i64 312, !17, i64 328, !21, i64 344, !22, i64 360, !21, i64 376, !25, i64 392, !26, i64 408, !27, i64 424, !28, i64 440, !29, i64 456}
!11 = !{!"_ZTSN6basisu15basisu_frontend6paramsE", !12, i64 0, !6, i64 8, !12, i64 16, !12, i64 20, !12, i64 24, !13, i64 28, !13, i64 29, !13, i64 30, !13, i64 31, !13, i64 32, !13, i64 33, !13, i64 34, !6, i64 40, !12, i64 48, !12, i64 52, !13, i64 56, !14, i64 60, !15, i64 64, !6, i64 72, !6, i64 80}
!12 = !{!"int", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!"_ZTSN6basist18basis_texture_typeE", !7, i64 0}
!16 = !{!"_ZTSN6basisu6vectorINS_11pixel_blockEEE", !6, i64 0, !12, i64 8, !12, i64 12}
!17 = !{!"_ZTSN6basisu6vectorINS_9etc_blockEEE", !6, i64 0, !12, i64 8, !12, i64 12}
!18 = !{!"_ZTSN6basisu17tree_vector_quantINS_3vecILj6EfEEEE", !19, i64 0, !20, i64 16, !12, i64 32}
!19 = !{!"_ZTSN6basisu6vectorINS_17tree_vector_quantINS_3vecILj6EfEEE9tsvq_nodeEEE", !6, i64 0, !12, i64 8, !12, i64 12}
!20 = !{!"_ZTSN6basisu6vectorISt4pairINS_3vecILj6EfEEmEEE", !6, i64 0, !12, i64 8, !12, i64 12}
!21 = !{!"_ZTSN6basisu6vectorINS0_IjEEEE", !6, i64 0, !12, i64 8, !12, i64 12}
!22 = !{!"_ZTSN6basisu6vectorIhEE", !6, i64 0, !12, i64 8, !12, i64 12}
!23 = !{!"_ZTSN6basisu6vectorINS_15basisu_frontend27endpoint_cluster_etc_paramsEEE", !6, i64 0, !12, i64 8, !12, i64 12}
!24 = !{!"_ZTSN6basisu6vectorINS_5vec2UEEE", !6, i64 0, !12, i64 8, !12, i64 12}
!25 = !{!"_ZTSN6basisu6vectorIN6basist38etc1_global_selector_codebook_entry_idEEE", !6, i64 0, !12, i64 8, !12, i64 12}
!26 = !{!"_ZTSN6basisu6vectorIbEE", !6, i64 0, !12, i64 8, !12, i64 12}
!27 = !{!"_ZTSN6basisu6vectorIjEE", !6, i64 0, !12, i64 8, !12, i64 12}
!28 = !{!"_ZTSN6basisu6vectorINS_15basisu_frontend27subblock_endpoint_quant_errEEE", !6, i64 0, !12, i64 8, !12, i64 12}
!29 = !{!"_ZTSSt5mutex", !30, i64 0}
!30 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!31 = !{!12, !12, i64 0}
!32 = !{!10, !6, i64 80}
!33 = !{!34, !6, i64 0}
!34 = !{!"_ZTSZN6basisu15basisu_frontend26generate_selector_clustersEvE3$_0", !6, i64 0, !12, i64 8, !12, i64 12, !6, i64 16}
!35 = !{!34, !12, i64 8}
!36 = !{!34, !12, i64 12}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = !{!40, !42, i64 64}
!40 = !{!"_ZTSSt4pairIN6basisu3vecILj16EfEEmE", !41, i64 0, !42, i64 64}
!41 = !{!"_ZTSN6basisu3vecILj16EfEE", !7, i64 0}
!42 = !{!"long", !7, i64 0}
!43 = distinct !{!43, !38}
!44 = !{!10, !12, i64 24}
!45 = !{!10, !12, i64 20}
!46 = !{!10, !13, i64 33}
!47 = !{i8 0, i8 2}
!48 = !{}
!49 = !{!10, !13, i64 98}
!50 = !{!13, !13, i64 0}
!51 = distinct !{!51, !38}
!52 = !{!7, !7, i64 0}
!53 = distinct !{!53, !38}
!54 = distinct !{!54, !38}
!55 = distinct !{!55, !38}
!56 = distinct !{!56, !38}
!57 = distinct !{!57, !38}


; 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.basisu::vector.76" = type { ptr, i32, i32 }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.78 = type { ptr, i32, i32, ptr }
%"class.basisu::tree_vector_quant.79" = type <{ %"class.basisu::vector.80", %"class.basisu::vector.76", i32, [4 x i8] }>
%"class.basisu::vector.80" = type { ptr, i32, i32 }

@.str.37 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [65 x i8], align 1

declare void @_ZN6basisu12debug_printfEPKcz(ptr noundef, ...) 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: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZN6basisuL21handle_verify_failureEi(i32 noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6basisu15basisu_frontend26generate_selector_clustersEv(ptr noundef nonnull align 8 dereferenceable(496) %0) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.basisu::vector.76", align 8
  %3 = alloca %"class.std::function", align 8
  %4 = alloca %class.anon.78, align 8
  %5 = alloca %"class.basisu::tree_vector_quant.79", align 8
  %6 = alloca i32, align 4
  %7 = alloca i8, align 1
  tail call void (ptr, ...) @_ZN6basisu12debug_printfEPKcz(ptr noundef nonnull @.str.37)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #7
  %8 = getelementptr inbounds i8, ptr %0, i64 88
  %9 = load i32, ptr %8, align 8, !tbaa !5
  %10 = zext i32 %9 to i64
  call void @_ZN6basisu6vectorISt4pairINS_3vecILj16EfEEmEEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %2, i64 noundef %10)
  %11 = load i32, ptr %8, align 8, !tbaa !5
  %.not92 = icmp eq i32 %11, 0
  br i1 %.not92, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %1
  %12 = getelementptr inbounds i8, ptr %0, i64 80
  %13 = getelementptr inbounds i8, ptr %4, i64 8
  %14 = getelementptr inbounds i8, ptr %4, i64 12
  %15 = getelementptr inbounds i8, ptr %4, i64 16
  br label %18

._crit_edge:                                      ; preds = %24, %1
  %16 = getelementptr inbounds i8, ptr %0, i64 80
  %17 = load ptr, ptr %16, align 8, !tbaa !30
  invoke void @_ZN6basisu8job_pool12wait_for_allEv(ptr noundef nonnull align 8 dereferenceable(189) %17)
          to label %32 unwind label %42

18:                                               ; preds = %.lr.ph, %24
  %19 = phi i32 [ %11, %.lr.ph ], [ %25, %24 ]
  %.069 = phi i32 [ 0, %.lr.ph ], [ %20, %24 ]
  %20 = add i32 %.069, 4096
  %21 = call noundef i32 @_ZN6basisu7minimumIjEET_S1_S1_(i32 noundef %19, i32 noundef %20)
  %22 = load ptr, ptr %12, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  store ptr %0, ptr %4, align 8, !tbaa !31
  store i32 %.069, ptr %13, align 8, !tbaa !33
  store i32 %21, ptr %14, align 4, !tbaa !34
  store ptr %2, ptr %15, align 8, !tbaa !35
  invoke void @"_ZNSt8functionIFvvEEC2IZN6basisu15basisu_frontend26generate_selector_clustersEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %23 unwind label %27

23:                                               ; preds = %18
  invoke void @_ZN6basisu8job_pool7add_jobEOSt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(189) %22, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %24 unwind label %29

24:                                               ; preds = %23
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  %25 = load i32, ptr %8, align 8, !tbaa !5
  %26 = icmp ult i32 %20, %25
  br i1 %26, label %18, label %._crit_edge, !llvm.loop !36

27:                                               ; preds = %18
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %31

29:                                               ; preds = %23
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  br label %31

31:                                               ; preds = %29, %27
  %.pn64 = phi { ptr, i32 } [ %30, %29 ], [ %28, %27 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #7
  br label %159

32:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #7
  invoke void @_ZN6basisu17tree_vector_quantINS_3vecILj16EfEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(36) %5)
          to label %.preheader68 unwind label %44

.preheader68:                                     ; preds = %32
  %33 = load i32, ptr %8, align 8, !tbaa !5
  %.not93 = icmp eq i32 %33, 0
  br i1 %.not93, label %._crit_edge72, label %.lr.ph71

._crit_edge72:                                    ; preds = %50, %.preheader68
  %34 = getelementptr inbounds i8, ptr %0, i64 24
  %35 = load i32, ptr %34, align 8, !tbaa !38
  %36 = icmp ult i32 %35, 2
  %37 = select i1 %36, i32 32, i32 16
  %38 = getelementptr inbounds i8, ptr %0, i64 20
  %39 = load i32, ptr %38, align 4, !tbaa !39
  %40 = icmp ugt i32 %39, 255
  %41 = select i1 %40, i32 %37, i32 0
  invoke void (ptr, ...) @_ZN6basisu12debug_printfEPKcz(ptr noundef nonnull @.str.38, i32 noundef %41)
          to label %56 unwind label %76

42:                                               ; preds = %._crit_edge
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %159

44:                                               ; preds = %32
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %158

.lr.ph71:                                         ; preds = %.preheader68, %50
  %indvars.iv = phi i64 [ %indvars.iv.next, %50 ], [ 0, %.preheader68 ]
  %46 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN6basisu6vectorISt4pairINS_3vecILj16EfEEmEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %2, i64 noundef %indvars.iv)
  %47 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZN6basisu6vectorISt4pairINS_3vecILj16EfEEmEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %2, i64 noundef %indvars.iv)
  %48 = getelementptr inbounds i8, ptr %47, i64 64
  %49 = load i64, ptr %48, align 8, !tbaa !40
  invoke void @_ZN6basisu17tree_vector_quantINS_3vecILj16EfEEE16add_training_vecERKS2_m(ptr noundef nonnull align 8 dereferenceable(36) %5, ptr noundef nonnull align 4 dereferenceable(64) %46, i64 noundef %49)
          to label %50 unwind label %54

50:                                               ; preds = %.lr.ph71
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %51 = load i32, ptr %8, align 8, !tbaa !5
  %52 = zext i32 %51 to i64
  %53 = icmp ult i64 %indvars.iv.next, %52
  br i1 %53, label %.lr.ph71, label %._crit_edge72, !llvm.loop !44

54:                                               ; preds = %.lr.ph71
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %157

56:                                               ; preds = %._crit_edge72
  %57 = getelementptr inbounds i8, ptr %0, i64 33
  %58 = load i8, ptr %57, align 1, !tbaa !45, !range !46, !noundef !47
  %59 = trunc nuw i8 %58 to i1
  br i1 %59, label %60, label %63

60:                                               ; preds = %56
  %61 = call noundef i32 @_ZNSt6thread20hardware_concurrencyEv() #7
  %62 = call noundef i32 @_ZN6basisu7minimumIiEET_S1_S1_(i32 noundef %61, i32 noundef 8)
  br label %63

63:                                               ; preds = %56, %60
  %64 = phi i32 [ %62, %60 ], [ 0, %56 ]
  %65 = load i32, ptr %38, align 4, !tbaa !39
  %66 = getelementptr inbounds i8, ptr %0, i64 98
  %67 = load i8, ptr %66, align 2, !tbaa !48, !range !46, !noundef !47
  %68 = trunc nuw i8 %67 to i1
  %69 = select i1 %68, i32 %41, i32 0
  %70 = getelementptr inbounds i8, ptr %0, i64 312
  %71 = getelementptr inbounds i8, ptr %0, i64 344
  %72 = load ptr, ptr %16, align 8, !tbaa !30
  %73 = invoke noundef zeroext i1 @_ZN6basisu39generate_hierarchical_codebook_threadedINS_17tree_vector_quantINS_3vecILj16EfEEEEEEbRT_jjRNS_6vectorINS7_IjEEEESA_jPNS_8job_poolE(ptr noundef nonnull align 8 dereferenceable(36) %5, i32 noundef %65, i32 noundef %69, ptr noundef nonnull align 8 dereferenceable(16) %70, ptr noundef nonnull align 8 dereferenceable(16) %71, i32 noundef %64, ptr noundef %72)
          to label %74 unwind label %78

74:                                               ; preds = %63
  br i1 %73, label %80, label %75

75:                                               ; preds = %74
  call void @_ZN6basisuL21handle_verify_failureEi(i32 noundef 1809)
  br label %80

76:                                               ; preds = %._crit_edge72
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %157

78:                                               ; preds = %.loopexit, %99, %97, %86, %85, %63
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %157

80:                                               ; preds = %75, %74
  %81 = load i8, ptr %66, align 2, !tbaa !48, !range !46, !noundef !47
  %82 = trunc nuw i8 %81 to i1
  br i1 %82, label %83, label %.loopexit

83:                                               ; preds = %80
  %84 = call noundef i32 @_ZNK6basisu6vectorINS0_IjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %71)
  %.not = icmp eq i32 %84, 0
  br i1 %.not, label %85, label %97

85:                                               ; preds = %83
  invoke void @_ZN6basisu6vectorINS0_IjEEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %71, i64 noundef 0, i1 noundef zeroext false)
          to label %86 unwind label %78

86:                                               ; preds = %85
  invoke void @_ZN6basisu6vectorINS0_IjEEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %71, i64 noundef 1, i1 noundef zeroext false)
          to label %87 unwind label %78

87:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  store i32 0, ptr %6, align 4, !tbaa !49
  %88 = load i32, ptr %8, align 8, !tbaa !5
  %.not94 = icmp eq i32 %88, 0
  br i1 %.not94, label %._crit_edge75, label %.lr.ph74

._crit_edge75:                                    ; preds = %90, %87
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  br label %97

.lr.ph74:                                         ; preds = %87, %90
  %89 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6basisu6vectorINS0_IjEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %71, i64 noundef 0)
  invoke void @_ZN6basisu6vectorIjE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(16) %89, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %90 unwind label %95

90:                                               ; preds = %.lr.ph74
  %91 = load i32, ptr %6, align 4, !tbaa !49
  %92 = add i32 %91, 1
  store i32 %92, ptr %6, align 4, !tbaa !49
  %93 = load i32, ptr %8, align 8, !tbaa !5
  %94 = icmp ult i32 %92, %93
  br i1 %94, label %.lr.ph74, label %._crit_edge75, !llvm.loop !50

95:                                               ; preds = %.lr.ph74
  %96 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  br label %157

97:                                               ; preds = %._crit_edge75, %83
  %98 = getelementptr inbounds i8, ptr %0, i64 360
  invoke void @_ZN6basisu6vectorIhE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %98, i64 noundef 0, i1 noundef zeroext false)
          to label %99 unwind label %78

99:                                               ; preds = %97
  %100 = load i32, ptr %8, align 8, !tbaa !5
  %101 = zext i32 %100 to i64
  invoke void @_ZN6basisu6vectorIhE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16) %98, i64 noundef %101, i1 noundef zeroext false)
          to label %102 unwind label %78

102:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #7
  store i8 -1, ptr %7, align 1, !tbaa !51
  invoke void @_ZN6basisu14vector_set_allINS_6vectorIhEEEEvRT_RKNS3_10value_typeE(ptr noundef nonnull align 8 dereferenceable(16) %98, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %103 unwind label %106

103:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  %104 = call noundef i32 @_ZNK6basisu6vectorINS0_IjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %71)
  %.not95 = icmp eq i32 %104, 0
  br i1 %.not95, label %.preheader67, label %.lr.ph82

.preheader67:                                     ; preds = %._crit_edge79, %103
  %105 = load i32, ptr %8, align 8, !tbaa !5
  %.not97 = icmp eq i32 %105, 0
  br i1 %.not97, label %.preheader, label %.lr.ph84

106:                                              ; preds = %102
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  br label %157

.lr.ph82:                                         ; preds = %103, %._crit_edge79
  %indvars.iv104 = phi i64 [ %indvars.iv.next105, %._crit_edge79 ], [ 0, %103 ]
  %108 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6basisu6vectorINS0_IjEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %71, i64 noundef %indvars.iv104)
  %109 = call noundef i32 @_ZNK6basisu6vectorIjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %108)
  %.not96 = icmp eq i32 %109, 0
  br i1 %.not96, label %._crit_edge79, label %.lr.ph78

.lr.ph78:                                         ; preds = %.lr.ph82
  %110 = trunc i64 %indvars.iv104 to i8
  br label %114

._crit_edge79:                                    ; preds = %114, %.lr.ph82
  %indvars.iv.next105 = add nuw nsw i64 %indvars.iv104, 1
  %111 = call noundef i32 @_ZNK6basisu6vectorINS0_IjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %71)
  %112 = zext i32 %111 to i64
  %113 = icmp ult i64 %indvars.iv.next105, %112
  br i1 %113, label %.lr.ph82, label %.preheader67, !llvm.loop !52

114:                                              ; preds = %.lr.ph78, %114
  %indvars.iv101 = phi i64 [ 0, %.lr.ph78 ], [ %indvars.iv.next102, %114 ]
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %108, i64 noundef %indvars.iv101)
  %116 = load i32, ptr %115, align 4, !tbaa !49
  %117 = zext i32 %116 to i64
  %118 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %98, i64 noundef %117)
  store i8 %110, ptr %118, align 1, !tbaa !51
  %indvars.iv.next102 = add nuw nsw i64 %indvars.iv101, 1
  %119 = call noundef i32 @_ZNK6basisu6vectorIjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %108)
  %120 = zext i32 %119 to i64
  %121 = icmp ult i64 %indvars.iv.next102, %120
  br i1 %121, label %114, label %._crit_edge79, !llvm.loop !53

.preheader:                                       ; preds = %126, %.preheader67
  %122 = call noundef i32 @_ZNK6basisu6vectorINS0_IjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %70)
  %.not98 = icmp eq i32 %122, 0
  br i1 %.not98, label %.loopexit, label %.lr.ph91

.lr.ph84:                                         ; preds = %.preheader67, %126
  %indvars.iv107 = phi i64 [ %indvars.iv.next108, %126 ], [ 0, %.preheader67 ]
  %123 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %98, i64 noundef %indvars.iv107)
  %124 = load i8, ptr %123, align 1, !tbaa !51
  %.not60 = icmp eq i8 %124, -1
  br i1 %.not60, label %125, label %126

125:                                              ; preds = %.lr.ph84
  call void @_ZN6basisuL21handle_verify_failureEi(i32 noundef 1836)
  br label %126

126:                                              ; preds = %.lr.ph84, %125
  %indvars.iv.next108 = add nuw nsw i64 %indvars.iv107, 1
  %127 = load i32, ptr %8, align 8, !tbaa !5
  %128 = zext i32 %127 to i64
  %129 = icmp ult i64 %indvars.iv.next108, %128
  br i1 %129, label %.lr.ph84, label %.preheader, !llvm.loop !54

.lr.ph91:                                         ; preds = %.preheader, %._crit_edge89
  %indvars.iv114 = phi i64 [ %indvars.iv.next115, %._crit_edge89 ], [ 0, %.preheader ]
  %130 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN6basisu6vectorINS0_IjEEEixEm(ptr noundef nonnull align 8 dereferenceable(16) %70, i64 noundef %indvars.iv114)
  %131 = call noundef i32 @_ZNK6basisu6vectorIjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %130)
  %.not99 = icmp eq i32 %131, 0
  br i1 %.not99, label %._crit_edge89, label %132

132:                                              ; preds = %.lr.ph91
  %133 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %130, i64 noundef 0)
  %134 = load i32, ptr %133, align 4, !tbaa !49
  %135 = zext i32 %134 to i64
  %136 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %98, i64 noundef %135)
  %137 = load i8, ptr %136, align 1, !tbaa !51
  %138 = call noundef i32 @_ZNK6basisu6vectorIjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %130)
  %139 = icmp ugt i32 %138, 1
  br i1 %139, label %.lr.ph88.peel.next, label %._crit_edge89

._crit_edge89:                                    ; preds = %150, %132, %.lr.ph91
  %indvars.iv.next115 = add nuw nsw i64 %indvars.iv114, 1
  %140 = call noundef i32 @_ZNK6basisu6vectorINS0_IjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %70)
  %141 = zext i32 %140 to i64
  %142 = icmp ult i64 %indvars.iv.next115, %141
  br i1 %142, label %.lr.ph91, label %.loopexit, !llvm.loop !55

.lr.ph88.peel.next:                               ; preds = %132, %150
  %indvars.iv110 = phi i64 [ %indvars.iv.next111, %150 ], [ 1, %132 ]
  %143 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK6basisu6vectorIjEixEm(ptr noundef nonnull align 8 dereferenceable(16) %130, i64 noundef %indvars.iv110)
  %144 = load i32, ptr %143, align 4, !tbaa !49
  %145 = zext i32 %144 to i64
  %146 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %98, i64 noundef %145)
  %147 = load i8, ptr %146, align 1, !tbaa !51
  %148 = icmp eq i8 %137, %147
  br i1 %148, label %150, label %149

149:                                              ; preds = %.lr.ph88.peel.next
  call void @_ZN6basisuL21handle_verify_failureEi(i32 noundef 1854)
  br label %150

150:                                              ; preds = %.lr.ph88.peel.next, %149
  %indvars.iv.next111 = add nuw nsw i64 %indvars.iv110, 1
  %151 = call noundef i32 @_ZNK6basisu6vectorIjE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %130)
  %152 = zext i32 %151 to i64
  %153 = icmp ult i64 %indvars.iv.next111, %152
  br i1 %153, label %.lr.ph88.peel.next, label %._crit_edge89, !llvm.loop !56

.loopexit:                                        ; preds = %._crit_edge89, %.preheader, %80
  %154 = call noundef i32 @_ZNK6basisu6vectorINS0_IjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %70)
  %155 = call noundef i32 @_ZNK6basisu6vectorINS0_IjEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %71)
  invoke void (ptr, ...) @_ZN6basisu12debug_printfEPKcz(ptr noundef nonnull @.str.39, i32 noundef %154, i32 noundef %155)
          to label %156 unwind label %78

156:                                              ; preds = %.loopexit
  call void @_ZN6basisu17tree_vector_quantINS_3vecILj16EfEEED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %5) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #7
  call void @_ZN6basisu6vectorISt4pairINS_3vecILj16EfEEmEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #7
  ret void

157:                                              ; preds = %76, %106, %95, %78, %54
  %.pn61 = phi { ptr, i32 } [ %55, %54 ], [ %77, %76 ], [ %79, %78 ], [ %107, %106 ], [ %96, %95 ]
  call void @_ZN6basisu17tree_vector_quantINS_3vecILj16EfEEED2Ev(ptr noundef nonnull align 8 dereferenceable(36) %5) #7
  br label %158

158:                                              ; preds = %157, %44
  %.pn61.pn = phi { ptr, i32 } [ %.pn61, %157 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #7
  br label %159

159:                                              ; preds = %158, %42, %31
  %.pn64.pn = phi { ptr, i32 } [ %.pn64, %31 ], [ %.pn61.pn, %158 ], [ %43, %42 ]
  call void @_ZN6basisu6vectorISt4pairINS_3vecILj16EfEEmEED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #7
  resume { ptr, i32 } %.pn64.pn
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6basisu7minimumIjEET_S1_S1_(i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @_ZN6basisu8job_pool7add_jobEOSt8functionIFvvEE(ptr noundef nonnull align 8 dereferenceable(189), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN6basisu8job_pool12wait_for_allEv(ptr noundef nonnull align 8 dereferenceable(189)) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu6vectorINS0_IjEEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext) local_unnamed_addr #5 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6basisu7minimumIiEET_S1_S1_(i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare noundef i32 @_ZNSt6thread20hardware_concurrencyEv() local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu6vectorIhE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6basisu14vector_set_allINS_6vectorIhEEEEvRT_RKNS3_10value_typeE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu6vectorIhEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu6vectorISt4pairINS_3vecILj16EfEEmEEC2Em(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZN6basisu15basisu_frontend26generate_selector_clustersEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6basisu17tree_vector_quantINS_3vecILj16EfEEE16add_training_vecERKS2_m(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(64), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZN6basisu6vectorISt4pairINS_3vecILj16EfEEmEEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN6basisu39generate_hierarchical_codebook_threadedINS_17tree_vector_quantINS_3vecILj16EfEEEEEEbRT_jjRNS_6vectorINS7_IjEEEESA_jPNS_8job_poolE(ptr noundef nonnull align 8 dereferenceable(36), i32 noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, ptr noundef) local_unnamed_addr #3

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

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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, !8, i64 88}
!6 = !{!"_ZTSN6basisu15basisu_frontendE", !7, i64 0, !8, i64 88, !8, i64 92, !12, i64 96, !12, i64 97, !12, i64 98, !8, i64 100, !8, i64 104, !15, i64 112, !16, i64 128, !16, i64 144, !16, i64 160, !17, i64 176, !20, i64 216, !20, i64 232, !21, i64 248, !20, i64 264, !22, i64 280, !23, i64 296, !20, i64 312, !16, i64 328, !20, i64 344, !21, i64 360, !20, i64 376, !24, i64 392, !25, i64 408, !26, i64 424, !27, i64 440, !28, i64 456}
!7 = !{!"_ZTSN6basisu15basisu_frontend6paramsE", !8, i64 0, !11, i64 8, !8, i64 16, !8, i64 20, !8, i64 24, !12, i64 28, !12, i64 29, !12, i64 30, !12, i64 31, !12, i64 32, !12, i64 33, !12, i64 34, !11, i64 40, !8, i64 48, !8, i64 52, !12, i64 56, !13, i64 60, !14, i64 64, !11, i64 72, !11, i64 80}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"bool", !9, i64 0}
!13 = !{!"float", !9, i64 0}
!14 = !{!"_ZTSN6basist18basis_texture_typeE", !9, i64 0}
!15 = !{!"_ZTSN6basisu6vectorINS_11pixel_blockEEE", !11, i64 0, !8, i64 8, !8, i64 12}
!16 = !{!"_ZTSN6basisu6vectorINS_9etc_blockEEE", !11, i64 0, !8, i64 8, !8, i64 12}
!17 = !{!"_ZTSN6basisu17tree_vector_quantINS_3vecILj6EfEEEE", !18, i64 0, !19, i64 16, !8, i64 32}
!18 = !{!"_ZTSN6basisu6vectorINS_17tree_vector_quantINS_3vecILj6EfEEE9tsvq_nodeEEE", !11, i64 0, !8, i64 8, !8, i64 12}
!19 = !{!"_ZTSN6basisu6vectorISt4pairINS_3vecILj6EfEEmEEE", !11, i64 0, !8, i64 8, !8, i64 12}
!20 = !{!"_ZTSN6basisu6vectorINS0_IjEEEE", !11, i64 0, !8, i64 8, !8, i64 12}
!21 = !{!"_ZTSN6basisu6vectorIhEE", !11, i64 0, !8, i64 8, !8, i64 12}
!22 = !{!"_ZTSN6basisu6vectorINS_15basisu_frontend27endpoint_cluster_etc_paramsEEE", !11, i64 0, !8, i64 8, !8, i64 12}
!23 = !{!"_ZTSN6basisu6vectorINS_5vec2UEEE", !11, i64 0, !8, i64 8, !8, i64 12}
!24 = !{!"_ZTSN6basisu6vectorIN6basist38etc1_global_selector_codebook_entry_idEEE", !11, i64 0, !8, i64 8, !8, i64 12}
!25 = !{!"_ZTSN6basisu6vectorIbEE", !11, i64 0, !8, i64 8, !8, i64 12}
!26 = !{!"_ZTSN6basisu6vectorIjEE", !11, i64 0, !8, i64 8, !8, i64 12}
!27 = !{!"_ZTSN6basisu6vectorINS_15basisu_frontend27subblock_endpoint_quant_errEEE", !11, i64 0, !8, i64 8, !8, i64 12}
!28 = !{!"_ZTSSt5mutex", !29, i64 0}
!29 = !{!"_ZTSSt12__mutex_base", !9, i64 0}
!30 = !{!6, !11, i64 80}
!31 = !{!32, !11, i64 0}
!32 = !{!"_ZTSZN6basisu15basisu_frontend26generate_selector_clustersEvE3$_0", !11, i64 0, !8, i64 8, !8, i64 12, !11, i64 16}
!33 = !{!32, !8, i64 8}
!34 = !{!32, !8, i64 12}
!35 = !{!11, !11, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = !{!6, !8, i64 24}
!39 = !{!6, !8, i64 20}
!40 = !{!41, !43, i64 64}
!41 = !{!"_ZTSSt4pairIN6basisu3vecILj16EfEEmE", !42, i64 0, !43, i64 64}
!42 = !{!"_ZTSN6basisu3vecILj16EfEE", !9, i64 0}
!43 = !{!"long", !9, i64 0}
!44 = distinct !{!44, !37}
!45 = !{!6, !12, i64 33}
!46 = !{i8 0, i8 2}
!47 = !{}
!48 = !{!6, !12, i64 98}
!49 = !{!8, !8, i64 0}
!50 = distinct !{!50, !37}
!51 = !{!9, !9, i64 0}
!52 = distinct !{!52, !37}
!53 = distinct !{!53, !37}
!54 = distinct !{!54, !37}
!55 = distinct !{!55, !37}
!56 = distinct !{!56, !37, !57}
!57 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass