; LLVM IR from SourangshuGhosh/Fluid-Simulation-for-Computer-Graphics :: src/aabb.ll (ZN4AABBC2E8TriangleRSt6vectorIN5vmath4vec3ESaIS3_EE)

; 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"

%struct.Triangle = type { [3 x i32] }
%"class.vmath::vec3" = type { float, float, float }
%class.AABB = type { %"class.vmath::vec3", double, double, double }

declare void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #0

declare void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #0

; 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) #1

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #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 nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5vmath4vec3ESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4fminIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef, double noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4fmaxIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef, double noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4AABBC2E8TriangleRSt6vectorIN5vmath4vec3ESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(40) %0, i64 %1, i32 %2, ptr noundef nonnull align 8 dereferenceable(24) %3) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %struct.Triangle, align 4
  %6 = alloca { i64, i32 }, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca [3 x %"class.vmath::vec3"], align 16
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca %"class.vmath::vec3", align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca %"class.vmath::vec3", align 4
  %22 = getelementptr inbounds { i64, i32 }, ptr %6, i32 0, i32 0
  store i64 %1, ptr %22, align 4
  %23 = getelementptr inbounds { i64, i32 }, ptr %6, i32 0, i32 1
  store i32 %2, ptr %23, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 %6, i64 12, i1 false)
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %24 = load ptr, ptr %7, align 8
  %25 = getelementptr inbounds %class.AABB, ptr %24, i32 0, i32 0
  call void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12) %25)
  %26 = getelementptr inbounds %class.AABB, ptr %24, i32 0, i32 1
  store double 0.000000e+00, ptr %26, align 8, !tbaa !9
  %27 = getelementptr inbounds %class.AABB, ptr %24, i32 0, i32 2
  store double 0.000000e+00, ptr %27, align 8, !tbaa !14
  %28 = getelementptr inbounds %class.AABB, ptr %24, i32 0, i32 3
  store double 0.000000e+00, ptr %28, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 36, ptr %9) #6
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.Triangle, ptr %5, i32 0, i32 0
  %31 = getelementptr inbounds [3 x i32], ptr %30, i64 0, i64 0
  %32 = load i32, ptr %31, align 4, !tbaa !16
  %33 = sext i32 %32 to i64
  %34 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5vmath4vec3ESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %33) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %34, i64 12, i1 false), !tbaa.struct !18
  %35 = getelementptr inbounds %"class.vmath::vec3", ptr %9, i64 1
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.Triangle, ptr %5, i32 0, i32 0
  %38 = getelementptr inbounds [3 x i32], ptr %37, i64 0, i64 1
  %39 = load i32, ptr %38, align 4, !tbaa !16
  %40 = sext i32 %39 to i64
  %41 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5vmath4vec3ESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %40) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %41, i64 12, i1 false), !tbaa.struct !18
  %42 = getelementptr inbounds %"class.vmath::vec3", ptr %9, i64 2
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.Triangle, ptr %5, i32 0, i32 0
  %45 = getelementptr inbounds [3 x i32], ptr %44, i64 0, i64 2
  %46 = load i32, ptr %45, align 4, !tbaa !16
  %47 = sext i32 %46 to i64
  %48 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5vmath4vec3ESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %47) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %48, i64 12, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %49 = getelementptr inbounds [3 x %"class.vmath::vec3"], ptr %9, i64 0, i64 0
  %50 = getelementptr inbounds %"class.vmath::vec3", ptr %49, i32 0, i32 0
  %51 = load float, ptr %50, align 16, !tbaa !20
  %52 = fpext float %51 to double
  store double %52, ptr %10, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %53 = getelementptr inbounds [3 x %"class.vmath::vec3"], ptr %9, i64 0, i64 0
  %54 = getelementptr inbounds %"class.vmath::vec3", ptr %53, i32 0, i32 1
  %55 = load float, ptr %54, align 4, !tbaa !22
  %56 = fpext float %55 to double
  store double %56, ptr %11, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %57 = getelementptr inbounds [3 x %"class.vmath::vec3"], ptr %9, i64 0, i64 0
  %58 = getelementptr inbounds %"class.vmath::vec3", ptr %57, i32 0, i32 2
  %59 = load float, ptr %58, align 8, !tbaa !23
  %60 = fpext float %59 to double
  store double %60, ptr %12, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %61 = getelementptr inbounds [3 x %"class.vmath::vec3"], ptr %9, i64 0, i64 0
  %62 = getelementptr inbounds %"class.vmath::vec3", ptr %61, i32 0, i32 0
  %63 = load float, ptr %62, align 16, !tbaa !20
  %64 = fpext float %63 to double
  store double %64, ptr %13, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %65 = getelementptr inbounds [3 x %"class.vmath::vec3"], ptr %9, i64 0, i64 0
  %66 = getelementptr inbounds %"class.vmath::vec3", ptr %65, i32 0, i32 1
  %67 = load float, ptr %66, align 4, !tbaa !22
  %68 = fpext float %67 to double
  store double %68, ptr %14, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %69 = getelementptr inbounds [3 x %"class.vmath::vec3"], ptr %9, i64 0, i64 0
  %70 = getelementptr inbounds %"class.vmath::vec3", ptr %69, i32 0, i32 2
  %71 = load float, ptr %70, align 8, !tbaa !23
  %72 = fpext float %71 to double
  store double %72, ptr %15, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #6
  invoke void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12) %16)
          to label %73 unwind label %78

73:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !16
  br label %74

74:                                               ; preds = %116, %73
  %75 = load i32, ptr %19, align 4, !tbaa !16
  %76 = icmp slt i32 %75, 3
  br i1 %76, label %82, label %77

77:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %123

78:                                               ; preds = %4
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %17, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %18, align 4
  br label %162

82:                                               ; preds = %74
  %83 = load i32, ptr %19, align 4, !tbaa !16
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [3 x %"class.vmath::vec3"], ptr %9, i64 0, i64 %84
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %85, i64 12, i1 false), !tbaa.struct !18
  %86 = getelementptr inbounds %"class.vmath::vec3", ptr %16, i32 0, i32 0
  %87 = load float, ptr %86, align 4, !tbaa !20
  %88 = load double, ptr %10, align 8, !tbaa !21
  %89 = invoke noundef double @_ZSt4fminIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %87, double noundef %88)
          to label %90 unwind label %119

90:                                               ; preds = %82
  store double %89, ptr %10, align 8, !tbaa !21
  %91 = getelementptr inbounds %"class.vmath::vec3", ptr %16, i32 0, i32 1
  %92 = load float, ptr %91, align 4, !tbaa !22
  %93 = load double, ptr %11, align 8, !tbaa !21
  %94 = invoke noundef double @_ZSt4fminIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %92, double noundef %93)
          to label %95 unwind label %119

95:                                               ; preds = %90
  store double %94, ptr %11, align 8, !tbaa !21
  %96 = getelementptr inbounds %"class.vmath::vec3", ptr %16, i32 0, i32 2
  %97 = load float, ptr %96, align 4, !tbaa !23
  %98 = load double, ptr %12, align 8, !tbaa !21
  %99 = invoke noundef double @_ZSt4fminIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %97, double noundef %98)
          to label %100 unwind label %119

100:                                              ; preds = %95
  store double %99, ptr %12, align 8, !tbaa !21
  %101 = getelementptr inbounds %"class.vmath::vec3", ptr %16, i32 0, i32 0
  %102 = load float, ptr %101, align 4, !tbaa !20
  %103 = load double, ptr %13, align 8, !tbaa !21
  %104 = invoke noundef double @_ZSt4fmaxIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %102, double noundef %103)
          to label %105 unwind label %119

105:                                              ; preds = %100
  store double %104, ptr %13, align 8, !tbaa !21
  %106 = getelementptr inbounds %"class.vmath::vec3", ptr %16, i32 0, i32 1
  %107 = load float, ptr %106, align 4, !tbaa !22
  %108 = load double, ptr %14, align 8, !tbaa !21
  %109 = invoke noundef double @_ZSt4fmaxIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %107, double noundef %108)
          to label %110 unwind label %119

110:                                              ; preds = %105
  store double %109, ptr %14, align 8, !tbaa !21
  %111 = getelementptr inbounds %"class.vmath::vec3", ptr %16, i32 0, i32 2
  %112 = load float, ptr %111, align 4, !tbaa !23
  %113 = load double, ptr %15, align 8, !tbaa !21
  %114 = invoke noundef double @_ZSt4fmaxIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %112, double noundef %113)
          to label %115 unwind label %119

115:                                              ; preds = %110
  store double %114, ptr %15, align 8, !tbaa !21
  br label %116

116:                                              ; preds = %115
  %117 = load i32, ptr %19, align 4, !tbaa !16
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %19, align 4, !tbaa !16
  br label %74, !llvm.loop !24

119:                                              ; preds = %110, %105, %100, %95, %90, %82
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %17, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %161

123:                                              ; preds = %77
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  store double 1.000000e-09, ptr %20, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #6
  %124 = load double, ptr %10, align 8, !tbaa !21
  %125 = fptrunc double %124 to float
  %126 = load double, ptr %11, align 8, !tbaa !21
  %127 = fptrunc double %126 to float
  %128 = load double, ptr %12, align 8, !tbaa !21
  %129 = fptrunc double %128 to float
  invoke void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12) %21, float noundef %125, float noundef %127, float noundef %129)
          to label %130 unwind label %157

130:                                              ; preds = %123
  %131 = getelementptr inbounds %class.AABB, ptr %24, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %131, ptr align 4 %21, i64 12, i1 false), !tbaa.struct !18
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %21) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #6
  %132 = load double, ptr %13, align 8, !tbaa !21
  %133 = load double, ptr %10, align 8, !tbaa !21
  %134 = fsub double %132, %133
  %135 = load double, ptr %20, align 8, !tbaa !21
  %136 = fadd double %134, %135
  %137 = getelementptr inbounds %class.AABB, ptr %24, i32 0, i32 1
  store double %136, ptr %137, align 8, !tbaa !9
  %138 = load double, ptr %14, align 8, !tbaa !21
  %139 = load double, ptr %11, align 8, !tbaa !21
  %140 = fsub double %138, %139
  %141 = load double, ptr %20, align 8, !tbaa !21
  %142 = fadd double %140, %141
  %143 = getelementptr inbounds %class.AABB, ptr %24, i32 0, i32 2
  store double %142, ptr %143, align 8, !tbaa !14
  %144 = load double, ptr %15, align 8, !tbaa !21
  %145 = load double, ptr %12, align 8, !tbaa !21
  %146 = fsub double %144, %145
  %147 = load double, ptr %20, align 8, !tbaa !21
  %148 = fadd double %146, %147
  %149 = getelementptr inbounds %class.AABB, ptr %24, i32 0, i32 3
  store double %148, ptr %149, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %16) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, 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
  %150 = getelementptr inbounds [3 x %"class.vmath::vec3"], ptr %9, i32 0, i32 0
  %151 = getelementptr inbounds %"class.vmath::vec3", ptr %150, i64 3
  br label %152

152:                                              ; preds = %152, %130
  %153 = phi ptr [ %151, %130 ], [ %154, %152 ]
  %154 = getelementptr inbounds %"class.vmath::vec3", ptr %153, i64 -1
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %154) #6
  %155 = icmp eq ptr %154, %150
  br i1 %155, label %156, label %152

156:                                              ; preds = %152
  call void @llvm.lifetime.end.p0(i64 36, ptr %9) #6
  ret void

157:                                              ; preds = %123
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %17, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %161

161:                                              ; preds = %157, %119
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %16) #6
  br label %162

162:                                              ; preds = %161, %78
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, 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
  %163 = getelementptr inbounds [3 x %"class.vmath::vec3"], ptr %9, i32 0, i32 0
  %164 = getelementptr inbounds %"class.vmath::vec3", ptr %163, i64 3
  br label %165

165:                                              ; preds = %165, %162
  %166 = phi ptr [ %164, %162 ], [ %167, %165 ]
  %167 = getelementptr inbounds %"class.vmath::vec3", ptr %166, i64 -1
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %167) #6
  %168 = icmp eq ptr %167, %163
  br i1 %168, label %169, label %165

169:                                              ; preds = %165
  call void @llvm.lifetime.end.p0(i64 36, ptr %9) #6
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %25) #6
  br label %170

170:                                              ; preds = %169
  %171 = load ptr, ptr %17, align 8
  %172 = load i32, ptr %18, align 4
  %173 = insertvalue { ptr, i32 } poison, ptr %171, 0
  %174 = insertvalue { ptr, i32 } %173, i32 %172, 1
  resume { ptr, i32 } %174
}

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

!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, !13, i64 16}
!10 = !{!"_ZTS4AABB", !11, i64 0, !13, i64 16, !13, i64 24, !13, i64 32}
!11 = !{!"_ZTSN5vmath4vec3E", !12, i64 0, !12, i64 4, !12, i64 8}
!12 = !{!"float", !7, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!10, !13, i64 24}
!15 = !{!10, !13, i64 32}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{i64 0, i64 4, !19, i64 4, i64 4, !19, i64 8, i64 4, !19}
!19 = !{!12, !12, i64 0}
!20 = !{!11, !12, i64 0}
!21 = !{!13, !13, i64 0}
!22 = !{!11, !12, i64 4}
!23 = !{!11, !12, i64 8}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


; 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.vmath::vec3" = type { float, float, float }

declare void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #0

declare void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #0

; Function Attrs: mustprogress 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) #1

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #3

; Function Attrs: mustprogress 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 nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5vmath4vec3ESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4fminIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef, double noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4fmaxIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef, double noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4AABBC2E8TriangleRSt6vectorIN5vmath4vec3ESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(40) %0, i64 %1, i32 %2, ptr noundef nonnull align 8 dereferenceable(24) %3) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca [3 x %"class.vmath::vec3"], align 16
  %6 = alloca %"class.vmath::vec3", align 4
  %7 = alloca %"class.vmath::vec3", align 4
  tail call void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12) %0)
  %8 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %8, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %5) #7
  %sext = shl i64 %1, 32
  %9 = ashr exact i64 %sext, 32
  %10 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5vmath4vec3ESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %9) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %10, i64 12, i1 false), !tbaa.struct !5
  %11 = getelementptr inbounds i8, ptr %5, i64 12
  %12 = ashr i64 %1, 32
  %13 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5vmath4vec3ESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %12) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %13, i64 12, i1 false), !tbaa.struct !5
  %14 = getelementptr inbounds i8, ptr %5, i64 24
  %15 = sext i32 %2 to i64
  %16 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5vmath4vec3ESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %15) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) %16, i64 12, i1 false), !tbaa.struct !5
  %17 = load float, ptr %5, align 16, !tbaa !10
  %18 = getelementptr inbounds i8, ptr %5, i64 4
  %19 = load float, ptr %18, align 4, !tbaa !12
  %20 = getelementptr inbounds i8, ptr %5, i64 8
  %21 = load float, ptr %20, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #7
  invoke void @_ZN5vmath4vec3C1Ev(ptr noundef nonnull align 4 dereferenceable(12) %6)
          to label %22 unwind label %67

22:                                               ; preds = %4
  %23 = fpext float %21 to double
  %24 = fpext float %19 to double
  %25 = fpext float %17 to double
  %26 = getelementptr inbounds i8, ptr %6, i64 4
  %27 = getelementptr inbounds i8, ptr %6, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 16 dereferenceable(12) %5, i64 12, i1 false), !tbaa.struct !5
  %28 = load float, ptr %6, align 4, !tbaa !10
  %29 = call noundef double @_ZSt4fminIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %28, double noundef %25)
  %30 = load float, ptr %26, align 4, !tbaa !12
  %31 = call noundef double @_ZSt4fminIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %30, double noundef %24)
  %32 = load float, ptr %27, align 4, !tbaa !13
  %33 = call noundef double @_ZSt4fminIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %32, double noundef %23)
  %34 = load float, ptr %6, align 4, !tbaa !10
  %35 = call noundef double @_ZSt4fmaxIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %34, double noundef %25)
  %36 = load float, ptr %26, align 4, !tbaa !12
  %37 = call noundef double @_ZSt4fmaxIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %36, double noundef %24)
  %38 = load float, ptr %27, align 4, !tbaa !13
  %39 = call noundef double @_ZSt4fmaxIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %38, double noundef %23)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %11, i64 12, i1 false), !tbaa.struct !5
  %40 = load float, ptr %6, align 4, !tbaa !10
  %41 = call noundef double @_ZSt4fminIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %40, double noundef %29)
  %42 = load float, ptr %26, align 4, !tbaa !12
  %43 = call noundef double @_ZSt4fminIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %42, double noundef %31)
  %44 = load float, ptr %27, align 4, !tbaa !13
  %45 = call noundef double @_ZSt4fminIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %44, double noundef %33)
  %46 = load float, ptr %6, align 4, !tbaa !10
  %47 = call noundef double @_ZSt4fmaxIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %46, double noundef %35)
  %48 = load float, ptr %26, align 4, !tbaa !12
  %49 = call noundef double @_ZSt4fmaxIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %48, double noundef %37)
  %50 = load float, ptr %27, align 4, !tbaa !13
  %51 = call noundef double @_ZSt4fmaxIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %50, double noundef %39)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 8 dereferenceable(12) %14, i64 12, i1 false), !tbaa.struct !5
  %52 = load float, ptr %6, align 4, !tbaa !10
  %53 = call noundef double @_ZSt4fminIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %52, double noundef %41)
  %54 = load float, ptr %26, align 4, !tbaa !12
  %55 = call noundef double @_ZSt4fminIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %54, double noundef %43)
  %56 = load float, ptr %27, align 4, !tbaa !13
  %57 = call noundef double @_ZSt4fminIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %56, double noundef %45)
  %58 = load float, ptr %6, align 4, !tbaa !10
  %59 = call noundef double @_ZSt4fmaxIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %58, double noundef %47)
  %60 = load float, ptr %26, align 4, !tbaa !12
  %61 = call noundef double @_ZSt4fmaxIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %60, double noundef %49)
  %62 = load float, ptr %27, align 4, !tbaa !13
  %63 = call noundef double @_ZSt4fmaxIfdEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(float noundef %62, double noundef %51)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #7
  %64 = fptrunc double %53 to float
  %65 = fptrunc double %55 to float
  %66 = fptrunc double %57 to float
  invoke void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12) %7, float noundef %64, float noundef %65, float noundef %66)
          to label %69 unwind label %81

67:                                               ; preds = %4
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %83

69:                                               ; preds = %22
  %70 = getelementptr inbounds i8, ptr %0, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %7, i64 12, i1 false), !tbaa.struct !5
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %7) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  %71 = insertelement <2 x double> poison, double %59, i64 0
  %72 = insertelement <2 x double> %71, double %61, i64 1
  %73 = insertelement <2 x double> poison, double %53, i64 0
  %74 = insertelement <2 x double> %73, double %55, i64 1
  %75 = fsub <2 x double> %72, %74
  %76 = fadd <2 x double> %75, <double 1.000000e-09, double 1.000000e-09>
  store <2 x double> %76, ptr %8, align 8, !tbaa !14
  %77 = fsub double %63, %57
  %78 = fadd double %77, 1.000000e-09
  store double %78, ptr %70, align 8, !tbaa !16
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %6) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #7
  %79 = getelementptr inbounds i8, ptr %5, i64 24
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %79) #7
  %80 = getelementptr inbounds i8, ptr %5, i64 12
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %80) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %5) #7
  ret void

81:                                               ; preds = %22
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %6) #7
  br label %83

83:                                               ; preds = %81, %67
  %.pn = phi { ptr, i32 } [ %82, %81 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #7
  %84 = getelementptr inbounds i8, ptr %5, i64 24
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %84) #7
  %85 = getelementptr inbounds i8, ptr %5, i64 12
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %85) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #7
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %5) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %0) #7
  resume { ptr, i32 } %.pn
}

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{i64 0, i64 4, !6, i64 4, i64 4, !6, i64 8, i64 4, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"_ZTSN5vmath4vec3E", !7, i64 0, !7, i64 4, !7, i64 8}
!12 = !{!11, !7, i64 4}
!13 = !{!11, !7, i64 8}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !8, i64 0}
!16 = !{!17, !15, i64 32}
!17 = !{!"_ZTS4AABB", !11, i64 0, !15, i64 16, !15, i64 24, !15, i64 32}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LICMPass,LoopRotatePass,MemCpyOptPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass