; 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.3 = external hidden unnamed_addr constant [102 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 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

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

22:                                               ; preds = %3
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 242)
  br label %23

23:                                               ; preds = %22, %3
  %24 = phi i1 [ true, %3 ], [ false, %22 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = call noundef float @_ZNK6Assimp11SpatialSort17CalculateDistanceERK10aiVector3tIfE(ptr noundef nonnull align 8 dereferenceable(49) %18, ptr noundef nonnull align 4 dereferenceable(12) %25)
  store float %26, ptr %8, align 4, !tbaa !20
  %27 = call noundef i32 @_ZN12_GLOBAL__N_18ToBinaryERKf(ptr noundef nonnull align 4 dereferenceable(4) %8)
  %28 = sub nsw i32 %27, 5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  store i32 %28, ptr %7, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %29 = load i32, ptr %7, align 4, !tbaa !21
  %30 = add nsw i32 %29, 10
  store i32 %30, ptr %9, align 4, !tbaa !21
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %32 = getelementptr inbounds %"class.Assimp::SpatialSort", ptr %18, i32 0, i32 2
  %33 = call noundef i64 @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #8
  %34 = trunc i64 %33 to i32
  %35 = udiv i32 %34, 2
  store i32 %35, ptr %10, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %36 = getelementptr inbounds %"class.Assimp::SpatialSort", ptr %18, i32 0, i32 2
  %37 = call noundef i64 @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #8
  %38 = trunc i64 %37 to i32
  %39 = udiv i32 %38, 4
  store i32 %39, ptr %11, align 4, !tbaa !21
  br label %40

40:                                               ; preds = %60, %23
  %41 = load i32, ptr %11, align 4, !tbaa !21
  %42 = icmp ugt i32 %41, 1
  br i1 %42, label %43, label %63

43:                                               ; preds = %40
  %44 = load i32, ptr %7, align 4, !tbaa !21
  %45 = getelementptr inbounds %"class.Assimp::SpatialSort", ptr %18, i32 0, i32 2
  %46 = load i32, ptr %10, align 4, !tbaa !21
  %47 = zext i32 %46 to i64
  %48 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %47) #8
  %49 = getelementptr inbounds %"struct.Assimp::SpatialSort::Entry", ptr %48, i32 0, i32 2
  %50 = call noundef i32 @_ZN12_GLOBAL__N_18ToBinaryERKf(ptr noundef nonnull align 4 dereferenceable(4) %49)
  %51 = icmp sgt i32 %44, %50
  br i1 %51, label %52, label %56

52:                                               ; preds = %43
  %53 = load i32, ptr %11, align 4, !tbaa !21
  %54 = load i32, ptr %10, align 4, !tbaa !21
  %55 = add i32 %54, %53
  store i32 %55, ptr %10, align 4, !tbaa !21
  br label %60

56:                                               ; preds = %43
  %57 = load i32, ptr %11, align 4, !tbaa !21
  %58 = load i32, ptr %10, align 4, !tbaa !21
  %59 = sub i32 %58, %57
  store i32 %59, ptr %10, align 4, !tbaa !21
  br label %60

60:                                               ; preds = %56, %52
  %61 = load i32, ptr %11, align 4, !tbaa !21
  %62 = udiv i32 %61, 2
  store i32 %62, ptr %11, align 4, !tbaa !21
  br label %40, !llvm.loop !23

63:                                               ; preds = %40
  br label %64

64:                                               ; preds = %78, %63
  %65 = load i32, ptr %10, align 4, !tbaa !21
  %66 = icmp ugt i32 %65, 0
  br i1 %66, label %67, label %76

67:                                               ; preds = %64
  %68 = load i32, ptr %7, align 4, !tbaa !21
  %69 = getelementptr inbounds %"class.Assimp::SpatialSort", ptr %18, i32 0, i32 2
  %70 = load i32, ptr %10, align 4, !tbaa !21
  %71 = zext i32 %70 to i64
  %72 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef %71) #8
  %73 = getelementptr inbounds %"struct.Assimp::SpatialSort::Entry", ptr %72, i32 0, i32 2
  %74 = call noundef i32 @_ZN12_GLOBAL__N_18ToBinaryERKf(ptr noundef nonnull align 4 dereferenceable(4) %73)
  %75 = icmp slt i32 %68, %74
  br label %76

76:                                               ; preds = %67, %64
  %77 = phi i1 [ false, %64 ], [ %75, %67 ]
  br i1 %77, label %78, label %81

78:                                               ; preds = %76
  %79 = load i32, ptr %10, align 4, !tbaa !21
  %80 = add i32 %79, -1
  store i32 %80, ptr %10, align 4, !tbaa !21
  br label %64, !llvm.loop !25

81:                                               ; preds = %76
  br label %82

82:                                               ; preds = %100, %81
  %83 = load i32, ptr %10, align 4, !tbaa !21
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds %"class.Assimp::SpatialSort", ptr %18, i32 0, i32 2
  %86 = call noundef i64 @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %85) #8
  %87 = sub i64 %86, 1
  %88 = icmp ult i64 %84, %87
  br i1 %88, label %89, label %98

89:                                               ; preds = %82
  %90 = load i32, ptr %7, align 4, !tbaa !21
  %91 = getelementptr inbounds %"class.Assimp::SpatialSort", ptr %18, i32 0, i32 2
  %92 = load i32, ptr %10, align 4, !tbaa !21
  %93 = zext i32 %92 to i64
  %94 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %93) #8
  %95 = getelementptr inbounds %"struct.Assimp::SpatialSort::Entry", ptr %94, i32 0, i32 2
  %96 = call noundef i32 @_ZN12_GLOBAL__N_18ToBinaryERKf(ptr noundef nonnull align 4 dereferenceable(4) %95)
  %97 = icmp sgt i32 %90, %96
  br label %98

98:                                               ; preds = %89, %82
  %99 = phi i1 [ false, %82 ], [ %97, %89 ]
  br i1 %99, label %100, label %103

100:                                              ; preds = %98
  %101 = load i32, ptr %10, align 4, !tbaa !21
  %102 = add i32 %101, 1
  store i32 %102, ptr %10, align 4, !tbaa !21
  br label %82, !llvm.loop !26

103:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %104 = getelementptr inbounds %"class.Assimp::SpatialSort", ptr %18, i32 0, i32 2
  %105 = call ptr @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %104) #8
  %106 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %13, i32 0, i32 0
  store ptr %105, ptr %106, align 8
  %107 = load i32, ptr %10, align 4, !tbaa !21
  %108 = zext i32 %107 to i64
  %109 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN6Assimp11SpatialSort5EntryESt6vectorIS3_SaIS3_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %13, i64 noundef %108) #8
  %110 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %12, i32 0, i32 0
  store ptr %109, ptr %110, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %111

111:                                              ; preds = %136, %103
  %112 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN6Assimp11SpatialSort5EntryESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  %113 = getelementptr inbounds %"struct.Assimp::SpatialSort::Entry", ptr %112, i32 0, i32 2
  %114 = call noundef i32 @_ZN12_GLOBAL__N_18ToBinaryERKf(ptr noundef nonnull align 4 dereferenceable(4) %113)
  %115 = load i32, ptr %9, align 4, !tbaa !21
  %116 = icmp slt i32 %114, %115
  br i1 %116, label %117, label %137

117:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #8
  %118 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN6Assimp11SpatialSort5EntryESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  %119 = getelementptr inbounds %"struct.Assimp::SpatialSort::Entry", ptr %118, i32 0, i32 1
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = call { <2 x float>, float } @_ZmiIfE10aiVector3tIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(12) %119, ptr noundef nonnull align 4 dereferenceable(12) %120)
  store { <2 x float>, float } %121, ptr %16, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 8 %16, i64 12, i1 false)
  %122 = call noundef float @_ZNK10aiVector3tIfE12SquareLengthEv(ptr noundef nonnull align 4 dereferenceable(12) %15)
  store float %122, ptr %14, align 4, !tbaa !20
  %123 = call noundef i32 @_ZN12_GLOBAL__N_18ToBinaryERKf(ptr noundef nonnull align 4 dereferenceable(4) %14)
  %124 = icmp sge i32 6, %123
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br i1 %124, label %125, label %129

125:                                              ; preds = %117
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN6Assimp11SpatialSort5EntryESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  %128 = getelementptr inbounds %"struct.Assimp::SpatialSort::Entry", ptr %127, i32 0, i32 0
  call void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %126, ptr noundef nonnull align 4 dereferenceable(4) %128)
  br label %129

129:                                              ; preds = %125, %117
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN6Assimp11SpatialSort5EntryESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %131 = getelementptr inbounds %"class.Assimp::SpatialSort", ptr %18, i32 0, i32 2
  %132 = call ptr @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %131) #8
  %133 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %17, i32 0, i32 0
  store ptr %132, ptr %133, align 8
  %134 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPKN6Assimp11SpatialSort5EntryESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br i1 %134, label %135, label %136

135:                                              ; preds = %129
  br label %137

136:                                              ; preds = %129
  br label %111, !llvm.loop !27

137:                                              ; preds = %135, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN12_GLOBAL__N_18ToBinaryERKf(ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #7 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, !17, i64 48}
!10 = !{!"_ZTSN6Assimp11SpatialSortE", !11, i64 0, !11, i64 12, !13, i64 24, !17, i64 48}
!11 = !{!"_ZTS10aiVector3tIfE", !12, i64 0, !12, i64 4, !12, i64 8}
!12 = !{!"float", !7, i64 0}
!13 = !{!"_ZTSSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIN6Assimp11SpatialSort5EntryESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN6Assimp11SpatialSort5EntryESaIS2_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN6Assimp11SpatialSort5EntryESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"bool", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!12, !12, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"int", !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = distinct !{!26, !24}
!27 = distinct !{!27, !24}


; 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.3 = external hidden unnamed_addr constant [102 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 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

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

13:                                               ; preds = %3
  tail call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 242)
  br label %14

14:                                               ; preds = %13, %3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  %15 = tail call noundef float @_ZNK6Assimp11SpatialSort17CalculateDistanceERK10aiVector3tIfE(ptr noundef nonnull align 8 dereferenceable(49) %0, ptr noundef nonnull align 4 dereferenceable(12) %1)
  store float %15, ptr %4, align 4, !tbaa !19
  %16 = call noundef i32 @_ZN12_GLOBAL__N_18ToBinaryERKf(ptr noundef nonnull align 4 dereferenceable(4) %4)
  %17 = add nsw i32 %16, -5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  %18 = add nsw i32 %16, 5
  call void @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0)
  %19 = getelementptr inbounds i8, ptr %0, i64 24
  %20 = call noundef i64 @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  %21 = trunc i64 %20 to i32
  %22 = lshr i32 %21, 1
  %23 = call noundef i64 @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  %24 = trunc i64 %23 to i32
  %25 = icmp ugt i32 %24, 7
  br i1 %25, label %.lr.ph.preheader, label %.preheader

.lr.ph.preheader:                                 ; preds = %14
  %26 = lshr i32 %24, 2
  br label %.lr.ph

.preheader:                                       ; preds = %.lr.ph, %14
  %.0.lcssa = phi i32 [ %22, %14 ], [ %.1, %.lr.ph ]
  %.not29 = icmp eq i32 %.0.lcssa, 0
  br i1 %.not29, label %.critedge, label %.lr.ph31.preheader

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

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.028 = phi i32 [ %.1, %.lr.ph ], [ %22, %.lr.ph.preheader ]
  %.02527 = phi i32 [ %34, %.lr.ph ], [ %26, %.lr.ph.preheader ]
  %28 = zext i32 %.028 to i64
  %29 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %28) #7
  %30 = getelementptr inbounds i8, ptr %29, i64 16
  %31 = call noundef i32 @_ZN12_GLOBAL__N_18ToBinaryERKf(ptr noundef nonnull align 4 dereferenceable(4) %30)
  %32 = icmp sgt i32 %17, %31
  %33 = sub nsw i32 0, %.02527
  %.1.p = select i1 %32, i32 %.02527, i32 %33
  %.1 = add i32 %.1.p, %.028
  %34 = lshr i32 %.02527, 1
  %35 = icmp ugt i32 %.02527, 3
  br i1 %35, label %.lr.ph, label %.preheader, !llvm.loop !20

.lr.ph31:                                         ; preds = %.lr.ph31.preheader, %40
  %indvars.iv = phi i64 [ %27, %.lr.ph31.preheader ], [ %indvars.iv.next, %40 ]
  %36 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %indvars.iv) #7
  %37 = getelementptr inbounds i8, ptr %36, i64 16
  %38 = call noundef i32 @_ZN12_GLOBAL__N_18ToBinaryERKf(ptr noundef nonnull align 4 dereferenceable(4) %37)
  %39 = icmp slt i32 %17, %38
  br i1 %39, label %40, label %.critedge.loopexit.split.loop.exit41

40:                                               ; preds = %.lr.ph31
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %41 = and i64 %indvars.iv.next, 4294967295
  %.not = icmp eq i64 %41, 0
  br i1 %.not, label %.critedge, label %.lr.ph31, !llvm.loop !22

.critedge.loopexit.split.loop.exit41:             ; preds = %.lr.ph31
  %42 = trunc nuw i64 %indvars.iv to i32
  br label %.critedge

.critedge:                                        ; preds = %40, %.critedge.loopexit.split.loop.exit41, %.preheader
  %.2.lcssa = phi i32 [ 0, %.preheader ], [ %42, %.critedge.loopexit.split.loop.exit41 ], [ 0, %40 ]
  %43 = zext i32 %.2.lcssa to i64
  %44 = call noundef i64 @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  %45 = add i64 %44, -1
  %46 = icmp ugt i64 %45, %43
  br i1 %46, label %.lr.ph36, label %.critedge2

47:                                               ; preds = %.lr.ph36
  %48 = add i32 %.335, 1
  %49 = zext i32 %48 to i64
  %50 = call noundef i64 @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  %51 = add i64 %50, -1
  %52 = icmp ugt i64 %51, %49
  br i1 %52, label %.lr.ph36, label %.critedge2, !llvm.loop !23

.lr.ph36:                                         ; preds = %.critedge, %47
  %53 = phi i64 [ %49, %47 ], [ %43, %.critedge ]
  %.335 = phi i32 [ %48, %47 ], [ %.2.lcssa, %.critedge ]
  %54 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %53) #7
  %55 = getelementptr inbounds i8, ptr %54, i64 16
  %56 = call noundef i32 @_ZN12_GLOBAL__N_18ToBinaryERKf(ptr noundef nonnull align 4 dereferenceable(4) %55)
  %57 = icmp sgt i32 %17, %56
  br i1 %57, label %47, label %.critedge2

.critedge2:                                       ; preds = %.lr.ph36, %47, %.critedge
  %.lcssa = phi i64 [ %43, %.critedge ], [ %49, %47 ], [ %53, %.lr.ph36 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %58 = call ptr @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  store ptr %58, ptr %6, align 8
  %59 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN6Assimp11SpatialSort5EntryESt6vectorIS3_SaIS3_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef %.lcssa) #7
  store ptr %59, ptr %5, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  br label %60

60:                                               ; preds = %74, %.critedge2
  %61 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN6Assimp11SpatialSort5EntryESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %62 = getelementptr inbounds i8, ptr %61, i64 16
  %63 = call noundef i32 @_ZN12_GLOBAL__N_18ToBinaryERKf(ptr noundef nonnull align 4 dereferenceable(4) %62)
  %64 = icmp slt i32 %63, %18
  br i1 %64, label %65, label %78

65:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #7
  %66 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN6Assimp11SpatialSort5EntryESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %67 = getelementptr inbounds i8, ptr %66, i64 4
  %68 = call { <2 x float>, float } @_ZmiIfE10aiVector3tIT_ERKS2_S4_(ptr noundef nonnull align 4 dereferenceable(12) %67, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %.fca.0.extract = extractvalue { <2 x float>, float } %68, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %68, 1
  store <2 x float> %.fca.0.extract, ptr %8, align 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  %69 = call noundef float @_ZNK10aiVector3tIfE12SquareLengthEv(ptr noundef nonnull align 4 dereferenceable(12) %8)
  store float %69, ptr %7, align 4, !tbaa !19
  %70 = call noundef i32 @_ZN12_GLOBAL__N_18ToBinaryERKf(ptr noundef nonnull align 4 dereferenceable(4) %7)
  %71 = icmp slt i32 %70, 7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  br i1 %71, label %72, label %74

72:                                               ; preds = %65
  %73 = 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) %2, ptr noundef nonnull align 4 dereferenceable(4) %73)
  br label %74

74:                                               ; preds = %72, %65
  %75 = 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 %9) #7
  %76 = call ptr @_ZNKSt6vectorIN6Assimp11SpatialSort5EntryESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  store ptr %76, ptr %9, align 8
  %77 = 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) %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br i1 %77, label %78, label %60, !llvm.loop !24

78:                                               ; preds = %74, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN12_GLOBAL__N_18ToBinaryERKf(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIjSaIjEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #6 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 = !{!8, !8, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !21}


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