; LLVM IR from thuhcsi/Crystal.TTVS :: Xface/XFace/src/XEngine (IndexedFaceSet)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<XMath::Vector3, std::allocator<XMath::Vector3>>::_Vector_impl" }
%"struct.std::_Vector_base<XMath::Vector3, std::allocator<XMath::Vector3>>::_Vector_impl" = type { %"struct.std::_Vector_base<XMath::Vector3, std::allocator<XMath::Vector3>>::_Vector_impl_data" }
%"struct.std::_Vector_base<XMath::Vector3, std::allocator<XMath::Vector3>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::back_insert_iterator" = type { ptr }
%"class.XMath::Vector3" = type { float, float, float }
%"class.XEngine::Geometry" = type { %"class.XEngine::NamedObj", %"class.std::vector", %"class.std::vector.3", %"class.std::vector" }
%"class.XEngine::NamedObj" = type { ptr, %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<XEngine::Vertex2D, std::allocator<XEngine::Vertex2D>>::_Vector_impl" }
%"struct.std::_Vector_base<XEngine::Vertex2D, std::allocator<XEngine::Vertex2D>>::_Vector_impl" = type { %"struct.std::_Vector_base<XEngine::Vertex2D, std::allocator<XEngine::Vertex2D>>::_Vector_impl_data" }
%"struct.std::_Vector_base<XEngine::Vertex2D, std::allocator<XEngine::Vertex2D>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.XEngine::IndexedFaceSet" = type { %"class.XEngine::Geometry", %"class.std::vector.8" }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned short, std::allocator<unsigned short>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7XEngine14IndexedFaceSet20computeVertexNormalsEv(ptr noundef nonnull align 8 dereferenceable(136) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"class.std::back_insert_iterator", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.XMath::Vector3", align 4
  %9 = alloca %"class.std::back_insert_iterator", align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca %"class.XMath::Vector3", align 4
  %13 = alloca %"class.XMath::Vector3", align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %14 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %15 = getelementptr inbounds %"class.XEngine::Geometry", ptr %14, i32 0, i32 1
  %16 = call noundef i64 @_ZNKSt6vectorIN5XMath7Vector3ESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  store i64 %16, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #6
  call void @_ZNSt6vectorIN5XMath7Vector3ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %17 = invoke ptr @_ZSt13back_inserterISt6vectorIN5XMath7Vector3ESaIS2_EEESt20back_insert_iteratorIT_ERS6_(ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %18 unwind label %92

18:                                               ; preds = %1
  %19 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %5, i32 0, i32 0
  store ptr %17, ptr %19, align 8
  %20 = load i64, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #6
  invoke void @_ZN5XMath7Vector3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %8, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %21 unwind label %96

21:                                               ; preds = %18
  %22 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %5, i32 0, i32 0
  %23 = load ptr, ptr %22, align 8
  %24 = invoke ptr @_ZSt6fill_nISt20back_insert_iteratorISt6vectorIN5XMath7Vector3ESaIS3_EEEmS3_ET_S7_T0_RKT1_(ptr %23, i64 noundef %20, ptr noundef nonnull align 4 dereferenceable(12) %8)
          to label %25 unwind label %100

25:                                               ; preds = %21
  %26 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %9, i32 0, i32 0
  store ptr %24, ptr %26, align 8
  call void @_ZN5XMath7Vector3D2Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store i64 3, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #6
  invoke void @_ZN5XMath7Vector3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %12)
          to label %27 unwind label %105

27:                                               ; preds = %25
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %28

28:                                               ; preds = %88, %27
  %29 = load i64, ptr %11, align 8, !tbaa !9
  %30 = getelementptr inbounds %"class.XEngine::IndexedFaceSet", ptr %14, i32 0, i32 1
  %31 = call noundef i64 @_ZNKSt6vectorItSaItEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  %32 = load i64, ptr %10, align 8, !tbaa !9
  %33 = sub i64 %31, %32
  %34 = icmp ult i64 %29, %33
  br i1 %34, label %35, label %122

35:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #6
  %36 = getelementptr inbounds %"class.XEngine::Geometry", ptr %14, i32 0, i32 1
  %37 = getelementptr inbounds %"class.XEngine::IndexedFaceSet", ptr %14, i32 0, i32 1
  %38 = load i64, ptr %11, align 8, !tbaa !9
  %39 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorItSaItEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %38) #6
  %40 = load i16, ptr %39, align 2, !tbaa !11
  %41 = zext i16 %40 to i64
  %42 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5XMath7Vector3ESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %41) #6
  %43 = getelementptr inbounds %"class.XEngine::Geometry", ptr %14, i32 0, i32 1
  %44 = getelementptr inbounds %"class.XEngine::IndexedFaceSet", ptr %14, i32 0, i32 1
  %45 = load i64, ptr %11, align 8, !tbaa !9
  %46 = add i64 %45, 1
  %47 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorItSaItEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %46) #6
  %48 = load i16, ptr %47, align 2, !tbaa !11
  %49 = zext i16 %48 to i64
  %50 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5XMath7Vector3ESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %49) #6
  %51 = getelementptr inbounds %"class.XEngine::Geometry", ptr %14, i32 0, i32 1
  %52 = getelementptr inbounds %"class.XEngine::IndexedFaceSet", ptr %14, i32 0, i32 1
  %53 = load i64, ptr %11, align 8, !tbaa !9
  %54 = add i64 %53, 2
  %55 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorItSaItEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %54) #6
  %56 = load i16, ptr %55, align 2, !tbaa !11
  %57 = zext i16 %56 to i64
  %58 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5XMath7Vector3ESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %51, i64 noundef %57) #6
  invoke void @_ZN7XEngine8Geometry17computeFaceNormalERKN5XMath7Vector3ES4_S4_(ptr dead_on_unwind writable sret(%"class.XMath::Vector3") align 4 %13, ptr noundef nonnull align 4 dereferenceable(12) %42, ptr noundef nonnull align 4 dereferenceable(12) %50, ptr noundef nonnull align 4 dereferenceable(12) %58)
          to label %59 unwind label %109

59:                                               ; preds = %35
  %60 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN5XMath7Vector3aSERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %13)
          to label %61 unwind label %113

61:                                               ; preds = %59
  call void @_ZN5XMath7Vector3D2Ev(ptr noundef nonnull align 4 dereferenceable(12) %13) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #6
  %62 = getelementptr inbounds %"class.XEngine::IndexedFaceSet", ptr %14, i32 0, i32 1
  %63 = load i64, ptr %11, align 8, !tbaa !9
  %64 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorItSaItEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %63) #6
  %65 = load i16, ptr %64, align 2, !tbaa !11
  %66 = zext i16 %65 to i64
  %67 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5XMath7Vector3ESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %66) #6
  %68 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN5XMath7Vector3pLERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %67, ptr noundef nonnull align 4 dereferenceable(12) %12)
          to label %69 unwind label %118

69:                                               ; preds = %61
  %70 = getelementptr inbounds %"class.XEngine::IndexedFaceSet", ptr %14, i32 0, i32 1
  %71 = load i64, ptr %11, align 8, !tbaa !9
  %72 = add i64 %71, 1
  %73 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorItSaItEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %72) #6
  %74 = load i16, ptr %73, align 2, !tbaa !11
  %75 = zext i16 %74 to i64
  %76 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5XMath7Vector3ESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %75) #6
  %77 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN5XMath7Vector3pLERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %76, ptr noundef nonnull align 4 dereferenceable(12) %12)
          to label %78 unwind label %118

78:                                               ; preds = %69
  %79 = getelementptr inbounds %"class.XEngine::IndexedFaceSet", ptr %14, i32 0, i32 1
  %80 = load i64, ptr %11, align 8, !tbaa !9
  %81 = add i64 %80, 2
  %82 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorItSaItEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %81) #6
  %83 = load i16, ptr %82, align 2, !tbaa !11
  %84 = zext i16 %83 to i64
  %85 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5XMath7Vector3ESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %84) #6
  %86 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN5XMath7Vector3pLERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %85, ptr noundef nonnull align 4 dereferenceable(12) %12)
          to label %87 unwind label %118

87:                                               ; preds = %78
  br label %88

88:                                               ; preds = %87
  %89 = load i64, ptr %10, align 8, !tbaa !9
  %90 = load i64, ptr %11, align 8, !tbaa !9
  %91 = add i64 %90, %89
  store i64 %91, ptr %11, align 8, !tbaa !9
  br label %28, !llvm.loop !13

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

96:                                               ; preds = %18
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %6, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %7, align 4
  br label %104

100:                                              ; preds = %21
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %6, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %7, align 4
  call void @_ZN5XMath7Vector3D2Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #6
  br label %104

104:                                              ; preds = %100, %96
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #6
  br label %142

105:                                              ; preds = %25
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %6, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %7, align 4
  br label %141

109:                                              ; preds = %35
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %6, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %7, align 4
  br label %117

113:                                              ; preds = %59
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %6, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %7, align 4
  call void @_ZN5XMath7Vector3D2Ev(ptr noundef nonnull align 4 dereferenceable(12) %13) #6
  br label %117

117:                                              ; preds = %113, %109
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #6
  br label %140

118:                                              ; preds = %135, %127, %78, %69, %61
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %6, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %7, align 4
  br label %140

122:                                              ; preds = %28
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %123

123:                                              ; preds = %132, %122
  %124 = load i64, ptr %11, align 8, !tbaa !9
  %125 = load i64, ptr %3, align 8, !tbaa !9
  %126 = icmp ult i64 %124, %125
  br i1 %126, label %127, label %135

127:                                              ; preds = %123
  %128 = load i64, ptr %11, align 8, !tbaa !9
  %129 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5XMath7Vector3ESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %128) #6
  %130 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN5XMath7Vector39normalizeEf(ptr noundef nonnull align 4 dereferenceable(12) %129, float noundef 0x3EB0C6F7A0000000)
          to label %131 unwind label %118

131:                                              ; preds = %127
  br label %132

132:                                              ; preds = %131
  %133 = load i64, ptr %11, align 8, !tbaa !9
  %134 = add i64 %133, 1
  store i64 %134, ptr %11, align 8, !tbaa !9
  br label %123, !llvm.loop !15

135:                                              ; preds = %123
  %136 = load ptr, ptr %14, align 8, !tbaa !16
  %137 = getelementptr inbounds ptr, ptr %136, i64 5
  %138 = load ptr, ptr %137, align 8
  invoke void %138(ptr noundef nonnull align 8 dereferenceable(112) %14, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %139 unwind label %118

139:                                              ; preds = %135
  call void @_ZN5XMath7Vector3D2Ev(ptr noundef nonnull align 4 dereferenceable(12) %12) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @_ZNSt6vectorIN5XMath7Vector3ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret void

140:                                              ; preds = %118, %117
  call void @_ZN5XMath7Vector3D2Ev(ptr noundef nonnull align 4 dereferenceable(12) %12) #6
  br label %141

141:                                              ; preds = %140, %105
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %142

142:                                              ; preds = %141, %104, %92
  call void @_ZNSt6vectorIN5XMath7Vector3ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %143

143:                                              ; preds = %142
  %144 = load ptr, ptr %6, align 8
  %145 = load i32, ptr %7, align 4
  %146 = insertvalue { ptr, i32 } poison, ptr %144, 0
  %147 = insertvalue { ptr, i32 } %146, i32 %145, 1
  resume { ptr, i32 } %147
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt6fill_nISt20back_insert_iteratorISt6vectorIN5XMath7Vector3ESaIS3_EEEmS3_ET_S7_T0_RKT1_(ptr, i64 noundef, ptr noundef nonnull align 4 dereferenceable(12)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt13back_inserterISt6vectorIN5XMath7Vector3ESaIS2_EEESt20back_insert_iteratorIT_ERS6_(ptr noundef nonnull align 8 dereferenceable(24)) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5XMath7Vector3C2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #4 align 2

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

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

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

declare void @_ZN7XEngine8Geometry17computeFaceNormalERKN5XMath7Vector3ES4_S4_(ptr dead_on_unwind writable sret(%"class.XMath::Vector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #5

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN5XMath7Vector39normalizeEf(ptr noundef nonnull align 4 dereferenceable(12), float noundef) #3 align 2

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

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

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !17, i64 0}
!17 = !{!"vtable pointer", !8, i64 0}


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<XMath::Vector3, std::allocator<XMath::Vector3>>::_Vector_impl" }
%"struct.std::_Vector_base<XMath::Vector3, std::allocator<XMath::Vector3>>::_Vector_impl" = type { %"struct.std::_Vector_base<XMath::Vector3, std::allocator<XMath::Vector3>>::_Vector_impl_data" }
%"struct.std::_Vector_base<XMath::Vector3, std::allocator<XMath::Vector3>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.XMath::Vector3" = type { float, float, float }

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7XEngine14IndexedFaceSet20computeVertexNormalsEv(ptr noundef nonnull align 8 dereferenceable(136) %0) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca %"class.XMath::Vector3", align 4
  %4 = alloca %"class.XMath::Vector3", align 4
  %5 = alloca %"class.XMath::Vector3", align 4
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  %7 = tail call noundef i64 @_ZNKSt6vectorIN5XMath7Vector3ESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
  call void @_ZNSt6vectorIN5XMath7Vector3ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %8 = invoke ptr @_ZSt13back_inserterISt6vectorIN5XMath7Vector3ESaIS2_EEESt20back_insert_iteratorIT_ERS6_(ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %9 unwind label %49

9:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #6
  call void @_ZN5XMath7Vector3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %3, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %10 = invoke ptr @_ZSt6fill_nISt20back_insert_iteratorISt6vectorIN5XMath7Vector3ESaIS3_EEEmS3_ET_S7_T0_RKT1_(ptr %8, i64 noundef %7, ptr noundef nonnull align 4 dereferenceable(12) %3)
          to label %11 unwind label %51

11:                                               ; preds = %9
  call void @_ZN5XMath7Vector3D2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #6
  call void @_ZN5XMath7Vector3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %4)
  %12 = getelementptr inbounds i8, ptr %0, i64 112
  %13 = call noundef i64 @_ZNKSt6vectorItSaItEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  %.not = icmp eq i64 %13, 3
  br i1 %.not, label %.preheader, label %.lr.ph

.preheader:                                       ; preds = %28, %11
  %.not27 = icmp eq i64 %7, 0
  br i1 %.not27, label %._crit_edge, label %.lr.ph26

.lr.ph:                                           ; preds = %11, %28
  %.024 = phi i64 [ %45, %28 ], [ 0, %11 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #6
  %14 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorItSaItEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.024) #6
  %15 = load i16, ptr %14, align 2, !tbaa !5
  %16 = zext i16 %15 to i64
  %17 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5XMath7Vector3ESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %16) #6
  %18 = add nuw i64 %.024, 1
  %19 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorItSaItEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %18) #6
  %20 = load i16, ptr %19, align 2, !tbaa !5
  %21 = zext i16 %20 to i64
  %22 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5XMath7Vector3ESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %21) #6
  %23 = add i64 %.024, 2
  %24 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorItSaItEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %23) #6
  %25 = load i16, ptr %24, align 2, !tbaa !5
  %26 = zext i16 %25 to i64
  %27 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5XMath7Vector3ESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %26) #6
  invoke void @_ZN7XEngine8Geometry17computeFaceNormalERKN5XMath7Vector3ES4_S4_(ptr dead_on_unwind nonnull writable sret(%"class.XMath::Vector3") align 4 %5, ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %27)
          to label %28 unwind label %53

28:                                               ; preds = %.lr.ph
  %29 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5XMath7Vector3aSERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %5)
  call void @_ZN5XMath7Vector3D2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #6
  %30 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorItSaItEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %.024) #6
  %31 = load i16, ptr %30, align 2, !tbaa !5
  %32 = zext i16 %31 to i64
  %33 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5XMath7Vector3ESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %32) #6
  %34 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5XMath7Vector3pLERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %33, ptr noundef nonnull align 4 dereferenceable(12) %4)
  %35 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorItSaItEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %18) #6
  %36 = load i16, ptr %35, align 2, !tbaa !5
  %37 = zext i16 %36 to i64
  %38 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5XMath7Vector3ESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %37) #6
  %39 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5XMath7Vector3pLERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %38, ptr noundef nonnull align 4 dereferenceable(12) %4)
  %40 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorItSaItEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %23) #6
  %41 = load i16, ptr %40, align 2, !tbaa !5
  %42 = zext i16 %41 to i64
  %43 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5XMath7Vector3ESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %42) #6
  %44 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5XMath7Vector3pLERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %43, ptr noundef nonnull align 4 dereferenceable(12) %4)
  %45 = add i64 %.024, 3
  %46 = call noundef i64 @_ZNKSt6vectorItSaItEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  %47 = add i64 %46, -3
  %48 = icmp ult i64 %45, %47
  br i1 %48, label %.lr.ph, label %.preheader, !llvm.loop !9

49:                                               ; preds = %1
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %64

51:                                               ; preds = %9
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5XMath7Vector3D2Ev(ptr noundef nonnull align 4 dereferenceable(12) %3) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #6
  br label %64

53:                                               ; preds = %.lr.ph
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #6
  br label %63

.loopexit:                                        ; preds = %.lr.ph26
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %63

.loopexit.split-lp:                               ; preds = %._crit_edge
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %63

.lr.ph26:                                         ; preds = %.preheader, %57
  %.125 = phi i64 [ %58, %57 ], [ 0, %.preheader ]
  %55 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5XMath7Vector3ESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.125) #6
  %56 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN5XMath7Vector39normalizeEf(ptr noundef nonnull align 4 dereferenceable(12) %55, float noundef 0x3EB0C6F7A0000000)
          to label %57 unwind label %.loopexit

57:                                               ; preds = %.lr.ph26
  %58 = add nuw i64 %.125, 1
  %exitcond.not = icmp eq i64 %58, %7
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph26, !llvm.loop !11

._crit_edge:                                      ; preds = %57, %.preheader
  %59 = load ptr, ptr %0, align 8, !tbaa !12
  %60 = getelementptr inbounds i8, ptr %59, i64 40
  %61 = load ptr, ptr %60, align 8
  invoke void %61(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %62 unwind label %.loopexit.split-lp

62:                                               ; preds = %._crit_edge
  call void @_ZN5XMath7Vector3D2Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  call void @_ZNSt6vectorIN5XMath7Vector3ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  ret void

63:                                               ; preds = %.loopexit, %.loopexit.split-lp, %53
  %.pn = phi { ptr, i32 } [ %54, %53 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN5XMath7Vector3D2Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  br label %64

64:                                               ; preds = %63, %51, %49
  %.pn.pn = phi { ptr, i32 } [ %.pn, %63 ], [ %52, %51 ], [ %50, %49 ]
  call void @_ZNSt6vectorIN5XMath7Vector3ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn.pn
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZSt6fill_nISt20back_insert_iteratorISt6vectorIN5XMath7Vector3ESaIS3_EEEmS3_ET_S7_T0_RKT1_(ptr, i64 noundef, ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5XMath7Vector3C2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #4 align 2

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

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

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

declare void @_ZN7XEngine8Geometry17computeFaceNormalERKN5XMath7Vector3ES4_S4_(ptr dead_on_unwind writable sret(%"class.XMath::Vector3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN5XMath7Vector39normalizeEf(ptr noundef nonnull align 4 dereferenceable(12), float noundef) local_unnamed_addr #3 align 2

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

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

!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 = !{!"short", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!13, !13, i64 0}
!13 = !{!"vtable pointer", !8, i64 0}


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