; LLVM IR from Overload-Technologies/Overload :: Dependencies/assimp/code/Common (SpatialSort)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.__gnu_cxx::__normal_iterator.5" = type { ptr }
%class.aiVector3t = type { float, float, float }
%"class.Assimp::SpatialSort" = type <{ %class.aiVector3t, %class.aiVector3t, %"class.std::vector", i8, [7 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Assimp::SpatialSort::Entry, std::allocator<Assimp::SpatialSort::Entry>>::_Vector_impl" }
%"struct.std::_Vector_base<Assimp::SpatialSort::Entry, std::allocator<Assimp::SpatialSort::Entry>>::_Vector_impl" = type { %"struct.std::_Vector_base<Assimp::SpatialSort::Entry, std::allocator<Assimp::SpatialSort::Entry>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Assimp::SpatialSort::Entry, std::allocator<Assimp::SpatialSort::Entry>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Assimp::SpatialSort::Entry" = type { i32, %class.aiVector3t, float }

@.str.1 = external hidden unnamed_addr constant [112 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [93 x i8], align 1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK6Assimp11SpatialSort17CalculateDistanceERK10aiVector3tIfE(ptr noundef nonnull align 8 dereferenceable(49), ptr noundef nonnull align 4 dereferenceable(12)) #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZmiIfE10aiVector3tIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #3

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

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

declare void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef, ptr noundef, i32 noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK6Assimp11SpatialSort13FindPositionsERK10aiVector3tIfEfRSt6vectorIjSaIjEE(ptr noundef nonnull align 8 dereferenceable(49) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, float noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3) #1 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca float, align 4
  %8 = alloca ptr, align 8
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %17 = alloca float, align 4
  %18 = alloca %class.aiVector3t, align 4
  %19 = alloca { <2 x float>, float }, align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store float %2, ptr %7, align 4, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  %21 = load ptr, ptr %5, align 8
  %22 = getelementptr inbounds %"class.Assimp::SpatialSort", ptr %21, i32 0, i32 3
  %23 = load i8, ptr %22, align 8, !tbaa !11, !range !19, !noundef !20
  %24 = trunc i8 %23 to i1
  br i1 %24, label %26, label %25

25:                                               ; preds = %4
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 126)
  br label %26

26:                                               ; preds = %25, %4
  %27 = phi i1 [ true, %4 ], [ false, %25 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = call noundef float @_ZNK6Assimp11SpatialSort17CalculateDistanceERK10aiVector3tIfE(ptr noundef nonnull align 8 dereferenceable(49) %21, ptr noundef nonnull align 4 dereferenceable(12) %28)
  store float %29, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %30 = load float, ptr %9, align 4, !tbaa !9
  %31 = load float, ptr %7, align 4, !tbaa !9
  %32 = fsub float %30, %31
  store float %32, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %33 = load float, ptr %9, align 4, !tbaa !9
  %34 = load float, ptr %7, align 4, !tbaa !9
  %35 = fadd float %33, %34
  store float %35, ptr %11, align 4, !tbaa !9
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNSt6vectorIjSaIjEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #8
  %37 = getelementptr inbounds %"class.Assimp::SpatialSort", ptr %21, i32 0, i32 2
  %38 = call noundef i64 @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #8
  %39 = icmp eq i64 %38, 0
  br i1 %39, label %40, label %41

40:                                               ; preds = %26
  store i32 1, ptr %12, align 4
  br label %167

41:                                               ; preds = %26
  %42 = load float, ptr %11, align 4, !tbaa !9
  %43 = getelementptr inbounds %"class.Assimp::SpatialSort", ptr %21, i32 0, i32 2
  %44 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #8
  %45 = getelementptr inbounds %"struct.Assimp::SpatialSort::Entry", ptr %44, i32 0, i32 2
  %46 = load float, ptr %45, align 4, !tbaa !21
  %47 = fcmp olt float %42, %46
  br i1 %47, label %48, label %49

48:                                               ; preds = %41
  store i32 1, ptr %12, align 4
  br label %167

49:                                               ; preds = %41
  %50 = load float, ptr %10, align 4, !tbaa !9
  %51 = getelementptr inbounds %"class.Assimp::SpatialSort", ptr %21, i32 0, i32 2
  %52 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #8
  %53 = getelementptr inbounds %"struct.Assimp::SpatialSort::Entry", ptr %52, i32 0, i32 2
  %54 = load float, ptr %53, align 4, !tbaa !21
  %55 = fcmp ogt float %50, %54
  br i1 %55, label %56, label %57

56:                                               ; preds = %49
  store i32 1, ptr %12, align 4
  br label %167

57:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %58 = getelementptr inbounds %"class.Assimp::SpatialSort", ptr %21, i32 0, i32 2
  %59 = call noundef i64 @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %58) #8
  %60 = trunc i64 %59 to i32
  %61 = udiv i32 %60, 2
  store i32 %61, ptr %13, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %62 = getelementptr inbounds %"class.Assimp::SpatialSort", ptr %21, i32 0, i32 2
  %63 = call noundef i64 @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %62) #8
  %64 = trunc i64 %63 to i32
  %65 = udiv i32 %64, 4
  store i32 %65, ptr %14, align 4, !tbaa !24
  br label %66

66:                                               ; preds = %86, %57
  %67 = load i32, ptr %14, align 4, !tbaa !24
  %68 = icmp ugt i32 %67, 1
  br i1 %68, label %69, label %89

69:                                               ; preds = %66
  %70 = getelementptr inbounds %"class.Assimp::SpatialSort", ptr %21, i32 0, i32 2
  %71 = load i32, ptr %13, align 4, !tbaa !24
  %72 = zext i32 %71 to i64
  %73 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %72) #8
  %74 = getelementptr inbounds %"struct.Assimp::SpatialSort::Entry", ptr %73, i32 0, i32 2
  %75 = load float, ptr %74, align 4, !tbaa !21
  %76 = load float, ptr %10, align 4, !tbaa !9
  %77 = fcmp olt float %75, %76
  br i1 %77, label %78, label %82

78:                                               ; preds = %69
  %79 = load i32, ptr %14, align 4, !tbaa !24
  %80 = load i32, ptr %13, align 4, !tbaa !24
  %81 = add i32 %80, %79
  store i32 %81, ptr %13, align 4, !tbaa !24
  br label %86

82:                                               ; preds = %69
  %83 = load i32, ptr %14, align 4, !tbaa !24
  %84 = load i32, ptr %13, align 4, !tbaa !24
  %85 = sub i32 %84, %83
  store i32 %85, ptr %13, align 4, !tbaa !24
  br label %86

86:                                               ; preds = %82, %78
  %87 = load i32, ptr %14, align 4, !tbaa !24
  %88 = udiv i32 %87, 2
  store i32 %88, ptr %14, align 4, !tbaa !24
  br label %66, !llvm.loop !25

89:                                               ; preds = %66
  br label %90

90:                                               ; preds = %104, %89
  %91 = load i32, ptr %13, align 4, !tbaa !24
  %92 = icmp ugt i32 %91, 0
  br i1 %92, label %93, label %102

93:                                               ; preds = %90
  %94 = getelementptr inbounds %"class.Assimp::SpatialSort", ptr %21, i32 0, i32 2
  %95 = load i32, ptr %13, align 4, !tbaa !24
  %96 = zext i32 %95 to i64
  %97 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef %96) #8
  %98 = getelementptr inbounds %"struct.Assimp::SpatialSort::Entry", ptr %97, i32 0, i32 2
  %99 = load float, ptr %98, align 4, !tbaa !21
  %100 = load float, ptr %10, align 4, !tbaa !9
  %101 = fcmp ogt float %99, %100
  br label %102

102:                                              ; preds = %93, %90
  %103 = phi i1 [ false, %90 ], [ %101, %93 ]
  br i1 %103, label %104, label %107

104:                                              ; preds = %102
  %105 = load i32, ptr %13, align 4, !tbaa !24
  %106 = add i32 %105, -1
  store i32 %106, ptr %13, align 4, !tbaa !24
  br label %90, !llvm.loop !27

107:                                              ; preds = %102
  br label %108

108:                                              ; preds = %126, %107
  %109 = load i32, ptr %13, align 4, !tbaa !24
  %110 = zext i32 %109 to i64
  %111 = getelementptr inbounds %"class.Assimp::SpatialSort", ptr %21, i32 0, i32 2
  %112 = call noundef i64 @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %111) #8
  %113 = sub i64 %112, 1
  %114 = icmp ult i64 %110, %113
  br i1 %114, label %115, label %124

115:                                              ; preds = %108
  %116 = getelementptr inbounds %"class.Assimp::SpatialSort", ptr %21, i32 0, i32 2
  %117 = load i32, ptr %13, align 4, !tbaa !24
  %118 = zext i32 %117 to i64
  %119 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %118) #8
  %120 = getelementptr inbounds %"struct.Assimp::SpatialSort::Entry", ptr %119, i32 0, i32 2
  %121 = load float, ptr %120, align 4, !tbaa !21
  %122 = load float, ptr %10, align 4, !tbaa !9
  %123 = fcmp olt float %121, %122
  br label %124

124:                                              ; preds = %115, %108
  %125 = phi i1 [ false, %108 ], [ %123, %115 ]
  br i1 %125, label %126, label %129

126:                                              ; preds = %124
  %127 = load i32, ptr %13, align 4, !tbaa !24
  %128 = add i32 %127, 1
  store i32 %128, ptr %13, align 4, !tbaa !24
  br label %108, !llvm.loop !28

129:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %130 = getelementptr inbounds %"class.Assimp::SpatialSort", ptr %21, i32 0, i32 2
  %131 = call ptr @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %130) #8
  %132 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %16, i32 0, i32 0
  store ptr %131, ptr %132, align 8
  %133 = load i32, ptr %13, align 4, !tbaa !24
  %134 = zext i32 %133 to i64
  %135 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN6Assimp11SpatialSort5EntryESt6vectorIS3_SaIS3_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %16, i64 noundef %134) #8
  %136 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %15, i32 0, i32 0
  store ptr %135, ptr %136, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %137 = load float, ptr %7, align 4, !tbaa !9
  %138 = load float, ptr %7, align 4, !tbaa !9
  %139 = fmul float %137, %138
  store float %139, ptr %17, align 4, !tbaa !9
  br label %140

140:                                              ; preds = %165, %129
  %141 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN6Assimp11SpatialSort5EntryESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  %142 = getelementptr inbounds %"struct.Assimp::SpatialSort::Entry", ptr %141, i32 0, i32 2
  %143 = load float, ptr %142, align 4, !tbaa !21
  %144 = load float, ptr %11, align 4, !tbaa !9
  %145 = fcmp olt float %143, %144
  br i1 %145, label %146, label %166

146:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #8
  %147 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN6Assimp11SpatialSort5EntryESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  %148 = getelementptr inbounds %"struct.Assimp::SpatialSort::Entry", ptr %147, i32 0, i32 1
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = call { <2 x float>, float } @_ZmiIfE10aiVector3tIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(12) %148, ptr noundef nonnull align 4 dereferenceable(12) %149)
  store { <2 x float>, float } %150, ptr %19, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 8 %19, i64 12, i1 false)
  %151 = call noundef float @_ZNK10aiVector3tIfE12SquareLengthEv(ptr noundef nonnull align 4 dereferenceable(12) %18)
  %152 = load float, ptr %17, align 4, !tbaa !9
  %153 = fcmp olt float %151, %152
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #8
  br i1 %153, label %154, label %158

154:                                              ; preds = %146
  %155 = load ptr, ptr %8, align 8, !tbaa !5
  %156 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN6Assimp11SpatialSort5EntryESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  %157 = getelementptr inbounds %"struct.Assimp::SpatialSort::Entry", ptr %156, i32 0, i32 0
  call void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %155, ptr noundef nonnull align 4 dereferenceable(4) %157)
  br label %158

158:                                              ; preds = %154, %146
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN6Assimp11SpatialSort5EntryESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %160 = getelementptr inbounds %"class.Assimp::SpatialSort", ptr %21, i32 0, i32 2
  %161 = call ptr @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %160) #8
  %162 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %20, i32 0, i32 0
  store ptr %161, ptr %162, align 8
  %163 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPKN6Assimp11SpatialSort5EntryESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br i1 %163, label %164, label %165

164:                                              ; preds = %158
  br label %166

165:                                              ; preds = %158
  br label %140, !llvm.loop !29

166:                                              ; preds = %164, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  store i32 0, ptr %12, align 4
  br label %167

167:                                              ; preds = %166, %56, %48, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  %168 = load i32, ptr %12, align 4
  switch i32 %168, label %170 [
    i32 0, label %169
    i32 1, label %169
  ]

169:                                              ; preds = %167, %167
  ret void

170:                                              ; preds = %167
  unreachable
}

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK10aiVector3tIfE12SquareLengthEv(ptr noundef nonnull align 4 dereferenceable(12)) #6 align 2

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

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

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

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

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = { "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 = { 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 #7 = { 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 #8 = { 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 = !{!"float", !7, i64 0}
!11 = !{!12, !18, i64 48}
!12 = !{!"_ZTSN6Assimp11SpatialSortE", !13, i64 0, !13, i64 12, !14, i64 24, !18, i64 48}
!13 = !{!"_ZTS10aiVector3tIfE", !10, i64 0, !10, i64 4, !10, i64 8}
!14 = !{!"_ZTSSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIN6Assimp11SpatialSort5EntryESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN6Assimp11SpatialSort5EntryESaIS2_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN6Assimp11SpatialSort5EntryESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"bool", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!22, !10, i64 16}
!22 = !{!"_ZTSN6Assimp11SpatialSort5EntryE", !23, i64 0, !13, i64 4, !10, i64 16}
!23 = !{!"int", !7, i64 0}
!24 = !{!23, !23, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = distinct !{!28, !26}
!29 = distinct !{!29, !26}


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

%"class.__gnu_cxx::__normal_iterator.5" = type { ptr }
%class.aiVector3t = type { float, float, float }

@.str.1 = external hidden unnamed_addr constant [112 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [93 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK6Assimp11SpatialSort17CalculateDistanceERK10aiVector3tIfE(ptr noundef nonnull align 8 dereferenceable(49), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0 align 2

; 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 uwtable
declare dso_local { <2 x float>, float } @_ZmiIfE10aiVector3tIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2

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

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

declare void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK6Assimp11SpatialSort13FindPositionsERK10aiVector3tIfEfRSt6vectorIjSaIjEE(ptr noundef nonnull align 8 dereferenceable(49) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, float noundef %2, ptr noundef nonnull align 8 dereferenceable(24) %3) local_unnamed_addr #0 align 2 {
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %7 = alloca %class.aiVector3t, align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %9 = getelementptr inbounds i8, ptr %0, i64 48
  %10 = load i8, ptr %9, align 8, !tbaa !5, !range !17, !noundef !18
  %11 = trunc nuw i8 %10 to i1
  br i1 %11, label %13, label %12

12:                                               ; preds = %4
  tail call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 126)
  br label %13

13:                                               ; preds = %12, %4
  %14 = tail call noundef float @_ZNK6Assimp11SpatialSort17CalculateDistanceERK10aiVector3tIfE(ptr noundef nonnull align 8 dereferenceable(49) %0, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %15 = fsub float %14, %2
  %16 = fadd float %14, %2
  tail call void @_ZNSt6vectorIjSaIjEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %17 = getelementptr inbounds i8, ptr %0, i64 24
  %18 = tail call noundef i64 @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  %19 = icmp eq i64 %18, 0
  br i1 %19, label %90, label %20

20:                                               ; preds = %13
  %21 = tail call noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  %22 = getelementptr inbounds i8, ptr %21, i64 16
  %23 = load float, ptr %22, align 4, !tbaa !19
  %24 = fcmp olt float %16, %23
  br i1 %24, label %90, label %25

25:                                               ; preds = %20
  %26 = tail call noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  %27 = getelementptr inbounds i8, ptr %26, i64 16
  %28 = load float, ptr %27, align 4, !tbaa !19
  %29 = fcmp ogt float %15, %28
  br i1 %29, label %90, label %30

30:                                               ; preds = %25
  %31 = tail call noundef i64 @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  %32 = trunc i64 %31 to i32
  %33 = lshr i32 %32, 1
  %34 = tail call noundef i64 @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  %35 = trunc i64 %34 to i32
  %36 = icmp ugt i32 %35, 7
  br i1 %36, label %.lr.ph.preheader, label %.preheader

.lr.ph.preheader:                                 ; preds = %30
  %37 = lshr i32 %35, 2
  br label %.lr.ph

.preheader:                                       ; preds = %.lr.ph, %30
  %.0.lcssa = phi i32 [ %33, %30 ], [ %.1, %.lr.ph ]
  %.not39 = icmp eq i32 %.0.lcssa, 0
  br i1 %.not39, label %.critedge, label %.lr.ph41.preheader

.lr.ph41.preheader:                               ; preds = %.preheader
  %38 = zext i32 %.0.lcssa to i64
  br label %.lr.ph41

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.038 = phi i32 [ %.1, %.lr.ph ], [ %33, %.lr.ph.preheader ]
  %.03337 = phi i32 [ %45, %.lr.ph ], [ %37, %.lr.ph.preheader ]
  %39 = zext i32 %.038 to i64
  %40 = tail call noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %39) #7
  %41 = getelementptr inbounds i8, ptr %40, i64 16
  %42 = load float, ptr %41, align 4, !tbaa !19
  %43 = fcmp olt float %42, %15
  %44 = sub nsw i32 0, %.03337
  %.1.p = select i1 %43, i32 %.03337, i32 %44
  %.1 = add i32 %.1.p, %.038
  %45 = lshr i32 %.03337, 1
  %46 = icmp ugt i32 %.03337, 3
  br i1 %46, label %.lr.ph, label %.preheader, !llvm.loop !22

.lr.ph41:                                         ; preds = %.lr.ph41.preheader, %51
  %indvars.iv = phi i64 [ %38, %.lr.ph41.preheader ], [ %indvars.iv.next, %51 ]
  %47 = tail call noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %indvars.iv) #7
  %48 = getelementptr inbounds i8, ptr %47, i64 16
  %49 = load float, ptr %48, align 4, !tbaa !19
  %50 = fcmp ogt float %49, %15
  br i1 %50, label %51, label %.critedge.loopexit.split.loop.exit51

51:                                               ; preds = %.lr.ph41
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %52 = and i64 %indvars.iv.next, 4294967295
  %.not = icmp eq i64 %52, 0
  br i1 %.not, label %.critedge, label %.lr.ph41, !llvm.loop !24

.critedge.loopexit.split.loop.exit51:             ; preds = %.lr.ph41
  %53 = trunc nuw i64 %indvars.iv to i32
  br label %.critedge

.critedge:                                        ; preds = %51, %.critedge.loopexit.split.loop.exit51, %.preheader
  %.2.lcssa = phi i32 [ 0, %.preheader ], [ %53, %.critedge.loopexit.split.loop.exit51 ], [ 0, %51 ]
  %54 = zext i32 %.2.lcssa to i64
  %55 = tail call noundef i64 @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  %56 = add i64 %55, -1
  %57 = icmp ugt i64 %56, %54
  br i1 %57, label %.lr.ph46, label %.critedge2

58:                                               ; preds = %.lr.ph46
  %59 = add i32 %.345, 1
  %60 = zext i32 %59 to i64
  %61 = tail call noundef i64 @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  %62 = add i64 %61, -1
  %63 = icmp ugt i64 %62, %60
  br i1 %63, label %.lr.ph46, label %.critedge2, !llvm.loop !25

.lr.ph46:                                         ; preds = %.critedge, %58
  %64 = phi i64 [ %60, %58 ], [ %54, %.critedge ]
  %.345 = phi i32 [ %59, %58 ], [ %.2.lcssa, %.critedge ]
  %65 = tail call noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %64) #7
  %66 = getelementptr inbounds i8, ptr %65, i64 16
  %67 = load float, ptr %66, align 4, !tbaa !19
  %68 = fcmp olt float %67, %15
  br i1 %68, label %58, label %.critedge2

.critedge2:                                       ; preds = %.lr.ph46, %58, %.critedge
  %.lcssa = phi i64 [ %54, %.critedge ], [ %60, %58 ], [ %64, %.lr.ph46 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %69 = tail call ptr @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  store ptr %69, ptr %6, align 8
  %70 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN6Assimp11SpatialSort5EntryESt6vectorIS3_SaIS3_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef %.lcssa) #7
  store ptr %70, ptr %5, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  %71 = fmul float %2, %2
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  br label %72

72:                                               ; preds = %85, %.critedge2
  %73 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN6Assimp11SpatialSort5EntryESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %74 = getelementptr inbounds i8, ptr %73, i64 16
  %75 = load float, ptr %74, align 4, !tbaa !19
  %76 = fcmp olt float %75, %16
  br i1 %76, label %77, label %89

77:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #7
  %78 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN6Assimp11SpatialSort5EntryESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %79 = getelementptr inbounds i8, ptr %78, i64 4
  %80 = call { <2 x float>, float } @_ZmiIfE10aiVector3tIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(12) %79, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %.fca.0.extract = extractvalue { <2 x float>, float } %80, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %80, 1
  store <2 x float> %.fca.0.extract, ptr %7, align 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  %81 = call noundef float @_ZNK10aiVector3tIfE12SquareLengthEv(ptr noundef nonnull align 4 dereferenceable(12) %7)
  %82 = fcmp olt float %81, %71
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  br i1 %82, label %83, label %85

83:                                               ; preds = %77
  %84 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN6Assimp11SpatialSort5EntryESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %84)
  br label %85

85:                                               ; preds = %83, %77
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN6Assimp11SpatialSort5EntryESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %87 = call ptr @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  store ptr %87, ptr %8, align 8
  %88 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPKN6Assimp11SpatialSort5EntryESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br i1 %88, label %89, label %72, !llvm.loop !26

89:                                               ; preds = %85, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %90

90:                                               ; preds = %25, %20, %13, %89
  ret void
}

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK10aiVector3tIfE12SquareLengthEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5 align 2

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="64" "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 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 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 #4 = { "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 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 #6 = { 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 #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, !16, i64 48}
!6 = !{!"_ZTSN6Assimp11SpatialSortE", !7, i64 0, !7, i64 12, !11, i64 24, !16, i64 48}
!7 = !{!"_ZTS10aiVector3tIfE", !8, i64 0, !8, i64 4, !8, i64 8}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIN6Assimp11SpatialSort5EntryESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN6Assimp11SpatialSort5EntryESaIS2_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN6Assimp11SpatialSort5EntryESaIS2_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !9, i64 0}
!16 = !{!"bool", !9, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!20, !8, i64 16}
!20 = !{!"_ZTSN6Assimp11SpatialSort5EntryE", !21, i64 0, !7, i64 4, !8, i64 16}
!21 = !{!"int", !9, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = distinct !{!25, !23}
!26 = distinct !{!26, !23}


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