; LLVM IR from SourangshuGhosh/Fluid-Simulation-for-Computer-Graphics :: src/aabb.ll (ZN4AABB21isOverlappingTriangleE8TriangleRSt6vectorIN5vmath4vec3ESaIS3_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"

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

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 zeroext i1 @_ZN4AABB13isPointInsideEN5vmath4vec3E(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4AABB18isLineIntersectingEN5vmath4vec3ES1_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef) #5 align 2

declare void @_ZN5vmathplERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #0

declare void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4fabsf(float noundef) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4AABB11_findminmaxEdddPdS0_(ptr noundef nonnull align 8 dereferenceable(40), double noundef, double noundef, double noundef, ptr noundef, ptr noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4AABB16_planeBoxOverlapEN5vmath4vec3ES1_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4AABB12_axisTestX01EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef, double noundef, double noundef, double noundef, double noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4AABB11_axisTestX2EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef, double noundef, double noundef, double noundef, double noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4AABB12_axisTestY02EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef, double noundef, double noundef, double noundef, double noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4AABB11_axisTestY1EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef, double noundef, double noundef, double noundef, double noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4AABB12_axisTestZ12EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef, double noundef, double noundef, double noundef, double noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4AABB11_axisTestZ0EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef, double noundef, double noundef, double noundef, double noundef) #4 align 2

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

88:                                               ; preds = %4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %11, i64 12, i1 false), !tbaa.struct !11
  store i1 true, ptr %15, align 1
  %89 = call noundef zeroext i1 @_ZN4AABB13isPointInsideEN5vmath4vec3E(ptr noundef nonnull align 8 dereferenceable(40) %68, ptr noundef %14)
  br i1 %89, label %92, label %90

90:                                               ; preds = %88
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %12, i64 12, i1 false), !tbaa.struct !11
  store i1 true, ptr %17, align 1
  %91 = call noundef zeroext i1 @_ZN4AABB13isPointInsideEN5vmath4vec3E(ptr noundef nonnull align 8 dereferenceable(40) %68, ptr noundef %16)
  br label %92

92:                                               ; preds = %90, %88, %4
  %93 = phi i1 [ true, %88 ], [ true, %4 ], [ %91, %90 ]
  %94 = load i1, ptr %17, align 1
  br i1 %94, label %95, label %96

95:                                               ; preds = %92
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %16) #8
  br label %96

96:                                               ; preds = %95, %92
  %97 = load i1, ptr %15, align 1
  br i1 %97, label %98, label %99

98:                                               ; preds = %96
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %14) #8
  br label %99

99:                                               ; preds = %98, %96
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %13) #8
  br i1 %93, label %100, label %101

100:                                              ; preds = %99
  store i1 true, ptr %5, align 1
  store i32 1, ptr %18, align 4
  br label %468

101:                                              ; preds = %99
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %10, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %11, i64 12, i1 false), !tbaa.struct !11
  store i1 false, ptr %24, align 1
  store i1 false, ptr %26, align 1
  store i1 false, ptr %28, align 1
  store i1 false, ptr %30, align 1
  %102 = invoke noundef zeroext i1 @_ZN4AABB18isLineIntersectingEN5vmath4vec3ES1_(ptr noundef nonnull align 8 dereferenceable(40) %68, ptr noundef %19, ptr noundef %20)
          to label %103 unwind label %125

103:                                              ; preds = %101
  br i1 %102, label %110, label %104

104:                                              ; preds = %103
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %11, i64 12, i1 false), !tbaa.struct !11
  store i1 true, ptr %24, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %12, i64 12, i1 false), !tbaa.struct !11
  store i1 true, ptr %26, align 1
  %105 = invoke noundef zeroext i1 @_ZN4AABB18isLineIntersectingEN5vmath4vec3ES1_(ptr noundef nonnull align 8 dereferenceable(40) %68, ptr noundef %23, ptr noundef %25)
          to label %106 unwind label %129

106:                                              ; preds = %104
  br i1 %105, label %110, label %107

107:                                              ; preds = %106
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %12, i64 12, i1 false), !tbaa.struct !11
  store i1 true, ptr %28, align 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %10, i64 12, i1 false), !tbaa.struct !11
  store i1 true, ptr %30, align 1
  %108 = invoke noundef zeroext i1 @_ZN4AABB18isLineIntersectingEN5vmath4vec3ES1_(ptr noundef nonnull align 8 dereferenceable(40) %68, ptr noundef %27, ptr noundef %29)
          to label %109 unwind label %133

109:                                              ; preds = %107
  br label %110

110:                                              ; preds = %109, %106, %103
  %111 = phi i1 [ true, %106 ], [ true, %103 ], [ %108, %109 ]
  %112 = load i1, ptr %30, align 1
  br i1 %112, label %113, label %114

113:                                              ; preds = %110
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %29) #8
  br label %114

114:                                              ; preds = %113, %110
  %115 = load i1, ptr %28, align 1
  br i1 %115, label %116, label %117

116:                                              ; preds = %114
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %27) #8
  br label %117

117:                                              ; preds = %116, %114
  %118 = load i1, ptr %26, align 1
  br i1 %118, label %119, label %120

119:                                              ; preds = %117
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %25) #8
  br label %120

120:                                              ; preds = %119, %117
  %121 = load i1, ptr %24, align 1
  br i1 %121, label %122, label %123

122:                                              ; preds = %120
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %23) #8
  br label %123

123:                                              ; preds = %122, %120
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %20) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %19) #8
  br i1 %111, label %124, label %151

124:                                              ; preds = %123
  store i1 true, ptr %5, align 1
  store i32 1, ptr %18, align 4
  br label %468

125:                                              ; preds = %101
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %21, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %22, align 4
  br label %150

129:                                              ; preds = %104
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %21, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %22, align 4
  br label %143

133:                                              ; preds = %107
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %21, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %22, align 4
  %137 = load i1, ptr %30, align 1
  br i1 %137, label %138, label %139

138:                                              ; preds = %133
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %29) #8
  br label %139

139:                                              ; preds = %138, %133
  %140 = load i1, ptr %28, align 1
  br i1 %140, label %141, label %142

141:                                              ; preds = %139
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %27) #8
  br label %142

142:                                              ; preds = %141, %139
  br label %143

143:                                              ; preds = %142, %129
  %144 = load i1, ptr %26, align 1
  br i1 %144, label %145, label %146

145:                                              ; preds = %143
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %25) #8
  br label %146

146:                                              ; preds = %145, %143
  %147 = load i1, ptr %24, align 1
  br i1 %147, label %148, label %149

148:                                              ; preds = %146
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %23) #8
  br label %149

149:                                              ; preds = %148, %146
  br label %150

150:                                              ; preds = %149, %125
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %20) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %19) #8
  br label %470

151:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 12, ptr %31) #8
  %152 = getelementptr inbounds %class.AABB, ptr %68, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 12, ptr %32) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %33) #8
  %153 = getelementptr inbounds %class.AABB, ptr %68, i32 0, i32 1
  %154 = load double, ptr %153, align 8, !tbaa !14
  %155 = fptrunc double %154 to float
  %156 = getelementptr inbounds %class.AABB, ptr %68, i32 0, i32 2
  %157 = load double, ptr %156, align 8, !tbaa !18
  %158 = fptrunc double %157 to float
  %159 = getelementptr inbounds %class.AABB, ptr %68, i32 0, i32 3
  %160 = load double, ptr %159, align 8, !tbaa !19
  %161 = fptrunc double %160 to float
  invoke void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12) %33, float noundef %155, float noundef %158, float noundef %161)
          to label %162 unwind label %197

162:                                              ; preds = %151
  invoke void @_ZN5vmathmlEfRKNS_4vec3E(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %32, float noundef 5.000000e-01, ptr noundef nonnull align 4 dereferenceable(12) %33)
          to label %163 unwind label %201

163:                                              ; preds = %162
  invoke void @_ZN5vmathplERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %31, ptr noundef nonnull align 4 dereferenceable(12) %152, ptr noundef nonnull align 4 dereferenceable(12) %32)
          to label %164 unwind label %205

164:                                              ; preds = %163
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %32) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %33) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %34) #8
  invoke void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %34, ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %31)
          to label %165 unwind label %211

165:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 12, ptr %35) #8
  invoke void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %35, ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %31)
          to label %166 unwind label %215

166:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 12, ptr %36) #8
  invoke void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %36, ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %31)
          to label %167 unwind label %219

167:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 12, ptr %37) #8
  invoke void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %37, ptr noundef nonnull align 4 dereferenceable(12) %35, ptr noundef nonnull align 4 dereferenceable(12) %34)
          to label %168 unwind label %223

168:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 12, ptr %38) #8
  invoke void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %38, ptr noundef nonnull align 4 dereferenceable(12) %36, ptr noundef nonnull align 4 dereferenceable(12) %35)
          to label %169 unwind label %227

169:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 12, ptr %39) #8
  invoke void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %39, ptr noundef nonnull align 4 dereferenceable(12) %34, ptr noundef nonnull align 4 dereferenceable(12) %36)
          to label %170 unwind label %231

170:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  %171 = getelementptr inbounds %"class.vmath::vec3", ptr %37, i32 0, i32 0
  %172 = load float, ptr %171, align 4, !tbaa !20
  %173 = invoke noundef float @_ZSt4fabsf(float noundef %172)
          to label %174 unwind label %235

174:                                              ; preds = %170
  %175 = fpext float %173 to double
  store double %175, ptr %40, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #8
  %176 = getelementptr inbounds %"class.vmath::vec3", ptr %37, i32 0, i32 1
  %177 = load float, ptr %176, align 4, !tbaa !22
  %178 = invoke noundef float @_ZSt4fabsf(float noundef %177)
          to label %179 unwind label %239

179:                                              ; preds = %174
  %180 = fpext float %178 to double
  store double %180, ptr %41, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #8
  %181 = getelementptr inbounds %"class.vmath::vec3", ptr %37, i32 0, i32 2
  %182 = load float, ptr %181, align 4, !tbaa !23
  %183 = invoke noundef float @_ZSt4fabsf(float noundef %182)
          to label %184 unwind label %243

184:                                              ; preds = %179
  %185 = fpext float %183 to double
  store double %185, ptr %42, align 8, !tbaa !21
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %34, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 4 %36, i64 12, i1 false), !tbaa.struct !11
  %186 = getelementptr inbounds %"class.vmath::vec3", ptr %37, i32 0, i32 2
  %187 = load float, ptr %186, align 4, !tbaa !23
  %188 = fpext float %187 to double
  %189 = getelementptr inbounds %"class.vmath::vec3", ptr %37, i32 0, i32 1
  %190 = load float, ptr %189, align 4, !tbaa !22
  %191 = fpext float %190 to double
  %192 = load double, ptr %42, align 8, !tbaa !21
  %193 = load double, ptr %41, align 8, !tbaa !21
  %194 = call noundef zeroext i1 @_ZN4AABB12_axisTestX01EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40) %68, ptr noundef %43, ptr noundef %44, double noundef %188, double noundef %191, double noundef %192, double noundef %193)
  %195 = xor i1 %194, true
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %44) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %43) #8
  br i1 %195, label %196, label %247

196:                                              ; preds = %184
  store i1 false, ptr %5, align 1
  store i32 1, ptr %18, align 4
  br label %457

197:                                              ; preds = %151
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %21, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %22, align 4
  br label %210

201:                                              ; preds = %162
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %21, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %22, align 4
  br label %209

205:                                              ; preds = %163
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %21, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %22, align 4
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %32) #8
  br label %209

209:                                              ; preds = %205, %201
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %33) #8
  br label %210

210:                                              ; preds = %209, %197
  call void @llvm.lifetime.end.p0(i64 12, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #8
  br label %467

211:                                              ; preds = %164
  %212 = landingpad { ptr, i32 }
          cleanup
  %213 = extractvalue { ptr, i32 } %212, 0
  store ptr %213, ptr %21, align 8
  %214 = extractvalue { ptr, i32 } %212, 1
  store i32 %214, ptr %22, align 4
  br label %466

215:                                              ; preds = %165
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %21, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %22, align 4
  br label %465

219:                                              ; preds = %166
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %21, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %22, align 4
  br label %464

223:                                              ; preds = %167
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %21, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %22, align 4
  br label %463

227:                                              ; preds = %168
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %21, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %22, align 4
  br label %462

231:                                              ; preds = %169
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %21, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %22, align 4
  br label %461

235:                                              ; preds = %170
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %21, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %22, align 4
  br label %460

239:                                              ; preds = %174
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %21, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %22, align 4
  br label %459

243:                                              ; preds = %331, %326, %322, %280, %275, %271, %179
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %21, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %22, align 4
  br label %458

247:                                              ; preds = %184
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 %34, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 %36, i64 12, i1 false), !tbaa.struct !11
  %248 = getelementptr inbounds %"class.vmath::vec3", ptr %37, i32 0, i32 2
  %249 = load float, ptr %248, align 4, !tbaa !23
  %250 = fpext float %249 to double
  %251 = getelementptr inbounds %"class.vmath::vec3", ptr %37, i32 0, i32 0
  %252 = load float, ptr %251, align 4, !tbaa !20
  %253 = fpext float %252 to double
  %254 = load double, ptr %42, align 8, !tbaa !21
  %255 = load double, ptr %40, align 8, !tbaa !21
  %256 = call noundef zeroext i1 @_ZN4AABB12_axisTestY02EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40) %68, ptr noundef %45, ptr noundef %46, double noundef %250, double noundef %253, double noundef %254, double noundef %255)
  %257 = xor i1 %256, true
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %46) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %45) #8
  br i1 %257, label %258, label %259

258:                                              ; preds = %247
  store i1 false, ptr %5, align 1
  store i32 1, ptr %18, align 4
  br label %457

259:                                              ; preds = %247
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 4 %35, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 4 %36, i64 12, i1 false), !tbaa.struct !11
  %260 = getelementptr inbounds %"class.vmath::vec3", ptr %37, i32 0, i32 1
  %261 = load float, ptr %260, align 4, !tbaa !22
  %262 = fpext float %261 to double
  %263 = getelementptr inbounds %"class.vmath::vec3", ptr %37, i32 0, i32 0
  %264 = load float, ptr %263, align 4, !tbaa !20
  %265 = fpext float %264 to double
  %266 = load double, ptr %41, align 8, !tbaa !21
  %267 = load double, ptr %40, align 8, !tbaa !21
  %268 = call noundef zeroext i1 @_ZN4AABB12_axisTestZ12EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40) %68, ptr noundef %47, ptr noundef %48, double noundef %262, double noundef %265, double noundef %266, double noundef %267)
  %269 = xor i1 %268, true
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %48) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %47) #8
  br i1 %269, label %270, label %271

270:                                              ; preds = %259
  store i1 false, ptr %5, align 1
  store i32 1, ptr %18, align 4
  br label %457

271:                                              ; preds = %259
  %272 = getelementptr inbounds %"class.vmath::vec3", ptr %38, i32 0, i32 0
  %273 = load float, ptr %272, align 4, !tbaa !20
  %274 = invoke noundef float @_ZSt4fabsf(float noundef %273)
          to label %275 unwind label %243

275:                                              ; preds = %271
  %276 = fpext float %274 to double
  store double %276, ptr %40, align 8, !tbaa !21
  %277 = getelementptr inbounds %"class.vmath::vec3", ptr %38, i32 0, i32 1
  %278 = load float, ptr %277, align 4, !tbaa !22
  %279 = invoke noundef float @_ZSt4fabsf(float noundef %278)
          to label %280 unwind label %243

280:                                              ; preds = %275
  %281 = fpext float %279 to double
  store double %281, ptr %41, align 8, !tbaa !21
  %282 = getelementptr inbounds %"class.vmath::vec3", ptr %38, i32 0, i32 2
  %283 = load float, ptr %282, align 4, !tbaa !23
  %284 = invoke noundef float @_ZSt4fabsf(float noundef %283)
          to label %285 unwind label %243

285:                                              ; preds = %280
  %286 = fpext float %284 to double
  store double %286, ptr %42, align 8, !tbaa !21
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %49, ptr align 4 %34, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %50, ptr align 4 %36, i64 12, i1 false), !tbaa.struct !11
  %287 = getelementptr inbounds %"class.vmath::vec3", ptr %38, i32 0, i32 2
  %288 = load float, ptr %287, align 4, !tbaa !23
  %289 = fpext float %288 to double
  %290 = getelementptr inbounds %"class.vmath::vec3", ptr %38, i32 0, i32 1
  %291 = load float, ptr %290, align 4, !tbaa !22
  %292 = fpext float %291 to double
  %293 = load double, ptr %42, align 8, !tbaa !21
  %294 = load double, ptr %41, align 8, !tbaa !21
  %295 = call noundef zeroext i1 @_ZN4AABB12_axisTestX01EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40) %68, ptr noundef %49, ptr noundef %50, double noundef %289, double noundef %292, double noundef %293, double noundef %294)
  %296 = xor i1 %295, true
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %50) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %49) #8
  br i1 %296, label %297, label %298

297:                                              ; preds = %285
  store i1 false, ptr %5, align 1
  store i32 1, ptr %18, align 4
  br label %457

298:                                              ; preds = %285
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %51, ptr align 4 %34, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %52, ptr align 4 %36, i64 12, i1 false), !tbaa.struct !11
  %299 = getelementptr inbounds %"class.vmath::vec3", ptr %38, i32 0, i32 2
  %300 = load float, ptr %299, align 4, !tbaa !23
  %301 = fpext float %300 to double
  %302 = getelementptr inbounds %"class.vmath::vec3", ptr %38, i32 0, i32 0
  %303 = load float, ptr %302, align 4, !tbaa !20
  %304 = fpext float %303 to double
  %305 = load double, ptr %42, align 8, !tbaa !21
  %306 = load double, ptr %40, align 8, !tbaa !21
  %307 = call noundef zeroext i1 @_ZN4AABB12_axisTestY02EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40) %68, ptr noundef %51, ptr noundef %52, double noundef %301, double noundef %304, double noundef %305, double noundef %306)
  %308 = xor i1 %307, true
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %52) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %51) #8
  br i1 %308, label %309, label %310

309:                                              ; preds = %298
  store i1 false, ptr %5, align 1
  store i32 1, ptr %18, align 4
  br label %457

310:                                              ; preds = %298
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %53, ptr align 4 %34, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %54, ptr align 4 %35, i64 12, i1 false), !tbaa.struct !11
  %311 = getelementptr inbounds %"class.vmath::vec3", ptr %38, i32 0, i32 1
  %312 = load float, ptr %311, align 4, !tbaa !22
  %313 = fpext float %312 to double
  %314 = getelementptr inbounds %"class.vmath::vec3", ptr %38, i32 0, i32 0
  %315 = load float, ptr %314, align 4, !tbaa !20
  %316 = fpext float %315 to double
  %317 = load double, ptr %41, align 8, !tbaa !21
  %318 = load double, ptr %40, align 8, !tbaa !21
  %319 = call noundef zeroext i1 @_ZN4AABB11_axisTestZ0EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40) %68, ptr noundef %53, ptr noundef %54, double noundef %313, double noundef %316, double noundef %317, double noundef %318)
  %320 = xor i1 %319, true
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %54) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %53) #8
  br i1 %320, label %321, label %322

321:                                              ; preds = %310
  store i1 false, ptr %5, align 1
  store i32 1, ptr %18, align 4
  br label %457

322:                                              ; preds = %310
  %323 = getelementptr inbounds %"class.vmath::vec3", ptr %39, i32 0, i32 0
  %324 = load float, ptr %323, align 4, !tbaa !20
  %325 = invoke noundef float @_ZSt4fabsf(float noundef %324)
          to label %326 unwind label %243

326:                                              ; preds = %322
  %327 = fpext float %325 to double
  store double %327, ptr %40, align 8, !tbaa !21
  %328 = getelementptr inbounds %"class.vmath::vec3", ptr %39, i32 0, i32 1
  %329 = load float, ptr %328, align 4, !tbaa !22
  %330 = invoke noundef float @_ZSt4fabsf(float noundef %329)
          to label %331 unwind label %243

331:                                              ; preds = %326
  %332 = fpext float %330 to double
  store double %332, ptr %41, align 8, !tbaa !21
  %333 = getelementptr inbounds %"class.vmath::vec3", ptr %39, i32 0, i32 2
  %334 = load float, ptr %333, align 4, !tbaa !23
  %335 = invoke noundef float @_ZSt4fabsf(float noundef %334)
          to label %336 unwind label %243

336:                                              ; preds = %331
  %337 = fpext float %335 to double
  store double %337, ptr %42, align 8, !tbaa !21
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %55, ptr align 4 %34, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %56, ptr align 4 %35, i64 12, i1 false), !tbaa.struct !11
  %338 = getelementptr inbounds %"class.vmath::vec3", ptr %39, i32 0, i32 2
  %339 = load float, ptr %338, align 4, !tbaa !23
  %340 = fpext float %339 to double
  %341 = getelementptr inbounds %"class.vmath::vec3", ptr %39, i32 0, i32 1
  %342 = load float, ptr %341, align 4, !tbaa !22
  %343 = fpext float %342 to double
  %344 = load double, ptr %42, align 8, !tbaa !21
  %345 = load double, ptr %41, align 8, !tbaa !21
  %346 = call noundef zeroext i1 @_ZN4AABB11_axisTestX2EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40) %68, ptr noundef %55, ptr noundef %56, double noundef %340, double noundef %343, double noundef %344, double noundef %345)
  %347 = xor i1 %346, true
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %56) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %55) #8
  br i1 %347, label %348, label %349

348:                                              ; preds = %336
  store i1 false, ptr %5, align 1
  store i32 1, ptr %18, align 4
  br label %457

349:                                              ; preds = %336
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %57, ptr align 4 %34, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %58, ptr align 4 %35, i64 12, i1 false), !tbaa.struct !11
  %350 = getelementptr inbounds %"class.vmath::vec3", ptr %39, i32 0, i32 2
  %351 = load float, ptr %350, align 4, !tbaa !23
  %352 = fpext float %351 to double
  %353 = getelementptr inbounds %"class.vmath::vec3", ptr %39, i32 0, i32 0
  %354 = load float, ptr %353, align 4, !tbaa !20
  %355 = fpext float %354 to double
  %356 = load double, ptr %42, align 8, !tbaa !21
  %357 = load double, ptr %40, align 8, !tbaa !21
  %358 = call noundef zeroext i1 @_ZN4AABB11_axisTestY1EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40) %68, ptr noundef %57, ptr noundef %58, double noundef %352, double noundef %355, double noundef %356, double noundef %357)
  %359 = xor i1 %358, true
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %58) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %57) #8
  br i1 %359, label %360, label %361

360:                                              ; preds = %349
  store i1 false, ptr %5, align 1
  store i32 1, ptr %18, align 4
  br label %457

361:                                              ; preds = %349
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %59, ptr align 4 %35, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %60, ptr align 4 %36, i64 12, i1 false), !tbaa.struct !11
  %362 = getelementptr inbounds %"class.vmath::vec3", ptr %39, i32 0, i32 1
  %363 = load float, ptr %362, align 4, !tbaa !22
  %364 = fpext float %363 to double
  %365 = getelementptr inbounds %"class.vmath::vec3", ptr %39, i32 0, i32 0
  %366 = load float, ptr %365, align 4, !tbaa !20
  %367 = fpext float %366 to double
  %368 = load double, ptr %41, align 8, !tbaa !21
  %369 = load double, ptr %40, align 8, !tbaa !21
  %370 = call noundef zeroext i1 @_ZN4AABB12_axisTestZ12EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40) %68, ptr noundef %59, ptr noundef %60, double noundef %364, double noundef %367, double noundef %368, double noundef %369)
  %371 = xor i1 %370, true
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %60) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %59) #8
  br i1 %371, label %372, label %373

372:                                              ; preds = %361
  store i1 false, ptr %5, align 1
  store i32 1, ptr %18, align 4
  br label %457

373:                                              ; preds = %361
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #8
  %374 = getelementptr inbounds %"class.vmath::vec3", ptr %34, i32 0, i32 0
  %375 = load float, ptr %374, align 4, !tbaa !20
  %376 = fpext float %375 to double
  %377 = getelementptr inbounds %"class.vmath::vec3", ptr %35, i32 0, i32 0
  %378 = load float, ptr %377, align 4, !tbaa !20
  %379 = fpext float %378 to double
  %380 = getelementptr inbounds %"class.vmath::vec3", ptr %36, i32 0, i32 0
  %381 = load float, ptr %380, align 4, !tbaa !20
  %382 = fpext float %381 to double
  call void @_ZN4AABB11_findminmaxEdddPdS0_(ptr noundef nonnull align 8 dereferenceable(40) %68, double noundef %376, double noundef %379, double noundef %382, ptr noundef %61, ptr noundef %62)
  %383 = load double, ptr %61, align 8, !tbaa !21
  %384 = getelementptr inbounds %class.AABB, ptr %68, i32 0, i32 1
  %385 = load double, ptr %384, align 8, !tbaa !14
  %386 = fmul double 5.000000e-01, %385
  %387 = fcmp ogt double %383, %386
  br i1 %387, label %394, label %388

388:                                              ; preds = %373
  %389 = load double, ptr %62, align 8, !tbaa !21
  %390 = getelementptr inbounds %class.AABB, ptr %68, i32 0, i32 1
  %391 = load double, ptr %390, align 8, !tbaa !14
  %392 = fmul double -5.000000e-01, %391
  %393 = fcmp olt double %389, %392
  br i1 %393, label %394, label %395

394:                                              ; preds = %388, %373
  store i1 false, ptr %5, align 1
  store i32 1, ptr %18, align 4
  br label %456

395:                                              ; preds = %388
  %396 = getelementptr inbounds %"class.vmath::vec3", ptr %34, i32 0, i32 1
  %397 = load float, ptr %396, align 4, !tbaa !22
  %398 = fpext float %397 to double
  %399 = getelementptr inbounds %"class.vmath::vec3", ptr %35, i32 0, i32 1
  %400 = load float, ptr %399, align 4, !tbaa !22
  %401 = fpext float %400 to double
  %402 = getelementptr inbounds %"class.vmath::vec3", ptr %36, i32 0, i32 1
  %403 = load float, ptr %402, align 4, !tbaa !22
  %404 = fpext float %403 to double
  call void @_ZN4AABB11_findminmaxEdddPdS0_(ptr noundef nonnull align 8 dereferenceable(40) %68, double noundef %398, double noundef %401, double noundef %404, ptr noundef %61, ptr noundef %62)
  %405 = load double, ptr %61, align 8, !tbaa !21
  %406 = getelementptr inbounds %class.AABB, ptr %68, i32 0, i32 2
  %407 = load double, ptr %406, align 8, !tbaa !18
  %408 = fmul double 5.000000e-01, %407
  %409 = fcmp ogt double %405, %408
  br i1 %409, label %416, label %410

410:                                              ; preds = %395
  %411 = load double, ptr %62, align 8, !tbaa !21
  %412 = getelementptr inbounds %class.AABB, ptr %68, i32 0, i32 2
  %413 = load double, ptr %412, align 8, !tbaa !18
  %414 = fmul double -5.000000e-01, %413
  %415 = fcmp olt double %411, %414
  br i1 %415, label %416, label %417

416:                                              ; preds = %410, %395
  store i1 false, ptr %5, align 1
  store i32 1, ptr %18, align 4
  br label %456

417:                                              ; preds = %410
  %418 = getelementptr inbounds %"class.vmath::vec3", ptr %34, i32 0, i32 2
  %419 = load float, ptr %418, align 4, !tbaa !23
  %420 = fpext float %419 to double
  %421 = getelementptr inbounds %"class.vmath::vec3", ptr %35, i32 0, i32 2
  %422 = load float, ptr %421, align 4, !tbaa !23
  %423 = fpext float %422 to double
  %424 = getelementptr inbounds %"class.vmath::vec3", ptr %36, i32 0, i32 2
  %425 = load float, ptr %424, align 4, !tbaa !23
  %426 = fpext float %425 to double
  call void @_ZN4AABB11_findminmaxEdddPdS0_(ptr noundef nonnull align 8 dereferenceable(40) %68, double noundef %420, double noundef %423, double noundef %426, ptr noundef %61, ptr noundef %62)
  %427 = load double, ptr %61, align 8, !tbaa !21
  %428 = getelementptr inbounds %class.AABB, ptr %68, i32 0, i32 3
  %429 = load double, ptr %428, align 8, !tbaa !19
  %430 = fmul double 5.000000e-01, %429
  %431 = fcmp ogt double %427, %430
  br i1 %431, label %438, label %432

432:                                              ; preds = %417
  %433 = load double, ptr %62, align 8, !tbaa !21
  %434 = getelementptr inbounds %class.AABB, ptr %68, i32 0, i32 3
  %435 = load double, ptr %434, align 8, !tbaa !19
  %436 = fmul double -5.000000e-01, %435
  %437 = fcmp olt double %433, %436
  br i1 %437, label %438, label %439

438:                                              ; preds = %432, %417
  store i1 false, ptr %5, align 1
  store i32 1, ptr %18, align 4
  br label %456

439:                                              ; preds = %432
  call void @llvm.lifetime.start.p0(i64 12, ptr %63) #8
  invoke void @_ZN5vmath5crossERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %63, ptr noundef nonnull align 4 dereferenceable(12) %37, ptr noundef nonnull align 4 dereferenceable(12) %38)
          to label %440 unwind label %445

440:                                              ; preds = %439
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %64, ptr align 4 %63, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %65, ptr align 4 %34, i64 12, i1 false), !tbaa.struct !11
  %441 = invoke noundef zeroext i1 @_ZN4AABB16_planeBoxOverlapEN5vmath4vec3ES1_(ptr noundef nonnull align 8 dereferenceable(40) %68, ptr noundef %64, ptr noundef %65)
          to label %442 unwind label %449

442:                                              ; preds = %440
  %443 = xor i1 %441, true
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %65) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %64) #8
  br i1 %443, label %444, label %453

444:                                              ; preds = %442
  store i1 false, ptr %5, align 1
  store i32 1, ptr %18, align 4
  br label %454

445:                                              ; preds = %439
  %446 = landingpad { ptr, i32 }
          cleanup
  %447 = extractvalue { ptr, i32 } %446, 0
  store ptr %447, ptr %21, align 8
  %448 = extractvalue { ptr, i32 } %446, 1
  store i32 %448, ptr %22, align 4
  br label %455

449:                                              ; preds = %440
  %450 = landingpad { ptr, i32 }
          cleanup
  %451 = extractvalue { ptr, i32 } %450, 0
  store ptr %451, ptr %21, align 8
  %452 = extractvalue { ptr, i32 } %450, 1
  store i32 %452, ptr %22, align 4
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %65) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %64) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %63) #8
  br label %455

453:                                              ; preds = %442
  store i1 true, ptr %5, align 1
  store i32 1, ptr %18, align 4
  br label %454

454:                                              ; preds = %453, %444
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %63) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %63) #8
  br label %456

455:                                              ; preds = %449, %445
  call void @llvm.lifetime.end.p0(i64 12, ptr %63) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #8
  br label %458

456:                                              ; preds = %454, %438, %416, %394
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #8
  br label %457

457:                                              ; preds = %456, %372, %360, %348, %321, %309, %297, %270, %258, %196
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %39) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %39) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %38) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %38) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %37) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %36) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %35) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %34) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %31) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #8
  br label %468

458:                                              ; preds = %455, %243
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #8
  br label %459

459:                                              ; preds = %458, %239
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  br label %460

460:                                              ; preds = %459, %235
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %39) #8
  br label %461

461:                                              ; preds = %460, %231
  call void @llvm.lifetime.end.p0(i64 12, ptr %39) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %38) #8
  br label %462

462:                                              ; preds = %461, %227
  call void @llvm.lifetime.end.p0(i64 12, ptr %38) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %37) #8
  br label %463

463:                                              ; preds = %462, %223
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %36) #8
  br label %464

464:                                              ; preds = %463, %219
  call void @llvm.lifetime.end.p0(i64 12, ptr %36) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %35) #8
  br label %465

465:                                              ; preds = %464, %215
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %34) #8
  br label %466

466:                                              ; preds = %465, %211
  call void @llvm.lifetime.end.p0(i64 12, ptr %34) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %31) #8
  br label %467

467:                                              ; preds = %466, %210
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #8
  br label %470

468:                                              ; preds = %457, %124, %100
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %12) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %11) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %10) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #8
  %469 = load i1, ptr %5, align 1
  ret i1 %469

470:                                              ; preds = %467, %150
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %12) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %11) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %10) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #8
  br label %471

471:                                              ; preds = %470
  %472 = load ptr, ptr %21, align 8
  %473 = load i32, ptr %22, align 4
  %474 = insertvalue { ptr, i32 } poison, ptr %472, 0
  %475 = insertvalue { ptr, i32 } %474, i32 %473, 1
  resume { ptr, i32 } %475
}

declare void @_ZN5vmathmlEfRKNS_4vec3E(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4, float noundef, ptr noundef nonnull align 4 dereferenceable(12)) #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5vmath5crossERKNS_4vec3ES2_(ptr dead_on_unwind noalias writable sret(%"class.vmath::vec3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #7

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 = { 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 = { 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 #8 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{i64 0, i64 4, !12, i64 4, i64 4, !12, i64 8, i64 4, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !17, i64 16}
!15 = !{!"_ZTS4AABB", !16, i64 0, !17, i64 16, !17, i64 24, !17, i64 32}
!16 = !{!"_ZTSN5vmath4vec3E", !13, i64 0, !13, i64 4, !13, i64 8}
!17 = !{!"double", !7, i64 0}
!18 = !{!15, !17, i64 24}
!19 = !{!15, !17, i64 32}
!20 = !{!16, !13, i64 0}
!21 = !{!17, !17, i64 0}
!22 = !{!16, !13, i64 4}
!23 = !{!16, !13, i64 8}


; 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 @_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 zeroext i1 @_ZN4AABB13isPointInsideEN5vmath4vec3E(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4AABB18isLineIntersectingEN5vmath4vec3ES1_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef) local_unnamed_addr #5 align 2

declare void @_ZN5vmathplERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0

declare void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4fabsf(float noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4AABB11_findminmaxEdddPdS0_(ptr noundef nonnull align 8 dereferenceable(40), double noundef, double noundef, double noundef, ptr noundef, ptr noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4AABB16_planeBoxOverlapEN5vmath4vec3ES1_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4AABB12_axisTestX01EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4AABB11_axisTestX2EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4AABB12_axisTestY02EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4AABB11_axisTestY1EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4AABB12_axisTestZ12EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4AABB11_axisTestZ0EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4AABB21isOverlappingTriangleE8TriangleRSt6vectorIN5vmath4vec3ESaIS3_EE(ptr noundef nonnull align 8 dereferenceable(40) %0, i64 %1, i32 %2, ptr noundef nonnull align 8 dereferenceable(24) %3) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.vmath::vec3", align 4
  %6 = alloca %"class.vmath::vec3", align 4
  %7 = alloca %"class.vmath::vec3", align 4
  %8 = alloca %"class.vmath::vec3", align 4
  %9 = alloca %"class.vmath::vec3", align 4
  %10 = alloca %"class.vmath::vec3", align 4
  %11 = alloca %"class.vmath::vec3", align 4
  %12 = alloca %"class.vmath::vec3", align 4
  %13 = alloca %"class.vmath::vec3", align 4
  %14 = alloca %"class.vmath::vec3", align 4
  %15 = alloca %"class.vmath::vec3", align 4
  %16 = alloca %"class.vmath::vec3", align 4
  %17 = alloca %"class.vmath::vec3", align 4
  %18 = alloca %"class.vmath::vec3", align 4
  %19 = alloca %"class.vmath::vec3", align 4
  %20 = alloca %"class.vmath::vec3", align 4
  %21 = alloca %"class.vmath::vec3", align 4
  %22 = alloca %"class.vmath::vec3", align 4
  %23 = alloca %"class.vmath::vec3", align 4
  %24 = alloca %"class.vmath::vec3", align 4
  %25 = alloca %"class.vmath::vec3", align 4
  %26 = alloca %"class.vmath::vec3", align 4
  %27 = alloca %"class.vmath::vec3", align 4
  %28 = alloca %"class.vmath::vec3", align 4
  %29 = alloca %"class.vmath::vec3", align 4
  %30 = alloca %"class.vmath::vec3", align 4
  %31 = alloca %"class.vmath::vec3", align 4
  %32 = alloca %"class.vmath::vec3", align 4
  %33 = alloca %"class.vmath::vec3", align 4
  %34 = alloca %"class.vmath::vec3", align 4
  %35 = alloca %"class.vmath::vec3", align 4
  %36 = alloca %"class.vmath::vec3", align 4
  %37 = alloca %"class.vmath::vec3", align 4
  %38 = alloca %"class.vmath::vec3", align 4
  %39 = alloca %"class.vmath::vec3", align 4
  %40 = alloca %"class.vmath::vec3", align 4
  %41 = alloca %"class.vmath::vec3", align 4
  %42 = alloca %"class.vmath::vec3", align 4
  %43 = alloca %"class.vmath::vec3", align 4
  %44 = alloca double, align 8
  %45 = alloca double, align 8
  %46 = alloca %"class.vmath::vec3", align 4
  %47 = alloca %"class.vmath::vec3", align 4
  %48 = alloca %"class.vmath::vec3", align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #8
  %sext = shl i64 %1, 32
  %49 = ashr exact i64 %sext, 32
  %50 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5vmath4vec3ESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %49) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %50, i64 12, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #8
  %51 = ashr i64 %1, 32
  %52 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5vmath4vec3ESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %51) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %52, i64 12, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #8
  %53 = sext i32 %2 to i64
  %54 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5vmath4vec3ESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %53) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %54, i64 12, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %5, i64 12, i1 false), !tbaa.struct !5
  %55 = call noundef zeroext i1 @_ZN4AABB13isPointInsideEN5vmath4vec3E(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %8)
  br i1 %55, label %.thread80, label %56

.thread80:                                        ; preds = %4
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #8
  br label %269

56:                                               ; preds = %4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %6, i64 12, i1 false), !tbaa.struct !5
  %57 = call noundef zeroext i1 @_ZN4AABB13isPointInsideEN5vmath4vec3E(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %9)
  br i1 %57, label %.critedge86, label %.thread78

.thread78:                                        ; preds = %56
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %7, i64 12, i1 false), !tbaa.struct !5
  %58 = call noundef zeroext i1 @_ZN4AABB13isPointInsideEN5vmath4vec3E(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %10)
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %10) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #8
  br i1 %58, label %269, label %59

59:                                               ; preds = %.thread78
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %5, i64 12, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %6, i64 12, i1 false), !tbaa.struct !5
  %60 = invoke noundef zeroext i1 @_ZN4AABB18isLineIntersectingEN5vmath4vec3ES1_(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %11, ptr noundef nonnull %12)
          to label %61 unwind label %67

61:                                               ; preds = %59
  br i1 %60, label %.critedge87, label %62

62:                                               ; preds = %61
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %13, ptr noundef nonnull align 4 dereferenceable(12) %6, i64 12, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) %7, i64 12, i1 false), !tbaa.struct !5
  %63 = invoke noundef zeroext i1 @_ZN4AABB18isLineIntersectingEN5vmath4vec3ES1_(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %13, ptr noundef nonnull %14)
          to label %64 unwind label %69

64:                                               ; preds = %62
  br i1 %63, label %.critedge88, label %65

65:                                               ; preds = %64
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %15, ptr noundef nonnull align 4 dereferenceable(12) %7, i64 12, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %5, i64 12, i1 false), !tbaa.struct !5
  %66 = invoke noundef zeroext i1 @_ZN4AABB18isLineIntersectingEN5vmath4vec3ES1_(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %15, ptr noundef nonnull %16)
          to label %.critedge.thread unwind label %71

.critedge.thread:                                 ; preds = %65
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %16) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %15) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %14) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %13) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %12) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %11) #8
  br i1 %66, label %269, label %75

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

69:                                               ; preds = %62
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %73

71:                                               ; preds = %65
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %16) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %15) #8
  br label %73

73:                                               ; preds = %69, %71
  %.pn = phi { ptr, i32 } [ %72, %71 ], [ %70, %69 ]
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %14) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %13) #8
  br label %74

74:                                               ; preds = %73, %67
  %.pn.pn = phi { ptr, i32 } [ %.pn, %73 ], [ %68, %67 ]
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %12) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %11) #8
  br label %270

75:                                               ; preds = %.critedge.thread
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %18) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %19) #8
  %76 = getelementptr inbounds i8, ptr %0, i64 16
  %77 = load double, ptr %76, align 8, !tbaa !10
  %78 = fptrunc double %77 to float
  %79 = getelementptr inbounds i8, ptr %0, i64 24
  %80 = load double, ptr %79, align 8, !tbaa !14
  %81 = fptrunc double %80 to float
  %82 = getelementptr inbounds i8, ptr %0, i64 32
  %83 = load double, ptr %82, align 8, !tbaa !15
  %84 = fptrunc double %83 to float
  invoke void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12) %19, float noundef %78, float noundef %81, float noundef %84)
          to label %85 unwind label %110

85:                                               ; preds = %75
  invoke void @_ZN5vmathmlEfRKNS_4vec3E(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %18, float noundef 5.000000e-01, ptr noundef nonnull align 4 dereferenceable(12) %19)
          to label %86 unwind label %112

86:                                               ; preds = %85
  invoke void @_ZN5vmathplERKNS_4vec3ES2_(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %17, ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %18)
          to label %87 unwind label %114

87:                                               ; preds = %86
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %18) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %19) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %20) #8
  invoke void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %20, ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %17)
          to label %88 unwind label %118

88:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %21) #8
  invoke void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %21, ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %17)
          to label %89 unwind label %120

89:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %22) #8
  invoke void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %22, ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %17)
          to label %90 unwind label %122

90:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %23) #8
  invoke void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %23, ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %20)
          to label %91 unwind label %124

91:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %24) #8
  invoke void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %24, ptr noundef nonnull align 4 dereferenceable(12) %22, ptr noundef nonnull align 4 dereferenceable(12) %21)
          to label %92 unwind label %126

92:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %25) #8
  invoke void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %25, ptr noundef nonnull align 4 dereferenceable(12) %20, ptr noundef nonnull align 4 dereferenceable(12) %22)
          to label %93 unwind label %128

93:                                               ; preds = %92
  %94 = load float, ptr %23, align 4, !tbaa !16
  %95 = call noundef float @_ZSt4fabsf(float noundef %94)
  %96 = fpext float %95 to double
  %97 = getelementptr inbounds i8, ptr %23, i64 4
  %98 = load float, ptr %97, align 4, !tbaa !17
  %99 = call noundef float @_ZSt4fabsf(float noundef %98)
  %100 = fpext float %99 to double
  %101 = getelementptr inbounds i8, ptr %23, i64 8
  %102 = load float, ptr %101, align 4, !tbaa !18
  %103 = call noundef float @_ZSt4fabsf(float noundef %102)
  %104 = fpext float %103 to double
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %26, ptr noundef nonnull align 4 dereferenceable(12) %20, i64 12, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %27, ptr noundef nonnull align 4 dereferenceable(12) %22, i64 12, i1 false), !tbaa.struct !5
  %105 = load float, ptr %101, align 4, !tbaa !18
  %106 = fpext float %105 to double
  %107 = load float, ptr %97, align 4, !tbaa !17
  %108 = fpext float %107 to double
  %109 = call noundef zeroext i1 @_ZN4AABB12_axisTestX01EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %26, ptr noundef nonnull %27, double noundef %106, double noundef %108, double noundef %104, double noundef %100)
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %27) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %26) #8
  br i1 %109, label %130, label %261

110:                                              ; preds = %75
  %111 = landingpad { ptr, i32 }
          cleanup
  br label %117

112:                                              ; preds = %85
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %116

114:                                              ; preds = %86
  %115 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %18) #8
  br label %116

116:                                              ; preds = %114, %112
  %.pn62 = phi { ptr, i32 } [ %115, %114 ], [ %113, %112 ]
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %19) #8
  br label %117

117:                                              ; preds = %116, %110
  %.pn62.pn = phi { ptr, i32 } [ %.pn62, %116 ], [ %111, %110 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %18) #8
  br label %268

118:                                              ; preds = %87
  %119 = landingpad { ptr, i32 }
          cleanup
  br label %267

120:                                              ; preds = %88
  %121 = landingpad { ptr, i32 }
          cleanup
  br label %266

122:                                              ; preds = %89
  %123 = landingpad { ptr, i32 }
          cleanup
  br label %265

124:                                              ; preds = %90
  %125 = landingpad { ptr, i32 }
          cleanup
  br label %264

126:                                              ; preds = %91
  %127 = landingpad { ptr, i32 }
          cleanup
  br label %263

128:                                              ; preds = %92
  %129 = landingpad { ptr, i32 }
          cleanup
  br label %262

130:                                              ; preds = %93
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %28, ptr noundef nonnull align 4 dereferenceable(12) %20, i64 12, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %29, ptr noundef nonnull align 4 dereferenceable(12) %22, i64 12, i1 false), !tbaa.struct !5
  %131 = load float, ptr %101, align 4, !tbaa !18
  %132 = fpext float %131 to double
  %133 = load float, ptr %23, align 4, !tbaa !16
  %134 = fpext float %133 to double
  %135 = call noundef zeroext i1 @_ZN4AABB12_axisTestY02EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %28, ptr noundef nonnull %29, double noundef %132, double noundef %134, double noundef %104, double noundef %96)
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %29) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %28) #8
  br i1 %135, label %136, label %261

136:                                              ; preds = %130
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %30, ptr noundef nonnull align 4 dereferenceable(12) %21, i64 12, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %31, ptr noundef nonnull align 4 dereferenceable(12) %22, i64 12, i1 false), !tbaa.struct !5
  %137 = load float, ptr %97, align 4, !tbaa !17
  %138 = fpext float %137 to double
  %139 = load float, ptr %23, align 4, !tbaa !16
  %140 = fpext float %139 to double
  %141 = call noundef zeroext i1 @_ZN4AABB12_axisTestZ12EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %30, ptr noundef nonnull %31, double noundef %138, double noundef %140, double noundef %100, double noundef %96)
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %31) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %30) #8
  br i1 %141, label %142, label %261

142:                                              ; preds = %136
  %143 = load float, ptr %24, align 4, !tbaa !16
  %144 = call noundef float @_ZSt4fabsf(float noundef %143)
  %145 = fpext float %144 to double
  %146 = getelementptr inbounds i8, ptr %24, i64 4
  %147 = load float, ptr %146, align 4, !tbaa !17
  %148 = call noundef float @_ZSt4fabsf(float noundef %147)
  %149 = fpext float %148 to double
  %150 = getelementptr inbounds i8, ptr %24, i64 8
  %151 = load float, ptr %150, align 4, !tbaa !18
  %152 = call noundef float @_ZSt4fabsf(float noundef %151)
  %153 = fpext float %152 to double
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %32, ptr noundef nonnull align 4 dereferenceable(12) %20, i64 12, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %33, ptr noundef nonnull align 4 dereferenceable(12) %22, i64 12, i1 false), !tbaa.struct !5
  %154 = load float, ptr %150, align 4, !tbaa !18
  %155 = fpext float %154 to double
  %156 = load float, ptr %146, align 4, !tbaa !17
  %157 = fpext float %156 to double
  %158 = call noundef zeroext i1 @_ZN4AABB12_axisTestX01EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %32, ptr noundef nonnull %33, double noundef %155, double noundef %157, double noundef %153, double noundef %149)
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %33) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %32) #8
  br i1 %158, label %159, label %261

159:                                              ; preds = %142
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %34, ptr noundef nonnull align 4 dereferenceable(12) %20, i64 12, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %35, ptr noundef nonnull align 4 dereferenceable(12) %22, i64 12, i1 false), !tbaa.struct !5
  %160 = load float, ptr %150, align 4, !tbaa !18
  %161 = fpext float %160 to double
  %162 = load float, ptr %24, align 4, !tbaa !16
  %163 = fpext float %162 to double
  %164 = call noundef zeroext i1 @_ZN4AABB12_axisTestY02EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %34, ptr noundef nonnull %35, double noundef %161, double noundef %163, double noundef %153, double noundef %145)
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %35) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %34) #8
  br i1 %164, label %165, label %261

165:                                              ; preds = %159
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %36, ptr noundef nonnull align 4 dereferenceable(12) %20, i64 12, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %37, ptr noundef nonnull align 4 dereferenceable(12) %21, i64 12, i1 false), !tbaa.struct !5
  %166 = load float, ptr %146, align 4, !tbaa !17
  %167 = fpext float %166 to double
  %168 = load float, ptr %24, align 4, !tbaa !16
  %169 = fpext float %168 to double
  %170 = call noundef zeroext i1 @_ZN4AABB11_axisTestZ0EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %36, ptr noundef nonnull %37, double noundef %167, double noundef %169, double noundef %149, double noundef %145)
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %37) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %36) #8
  br i1 %170, label %171, label %261

171:                                              ; preds = %165
  %172 = load float, ptr %25, align 4, !tbaa !16
  %173 = call noundef float @_ZSt4fabsf(float noundef %172)
  %174 = fpext float %173 to double
  %175 = getelementptr inbounds i8, ptr %25, i64 4
  %176 = load float, ptr %175, align 4, !tbaa !17
  %177 = call noundef float @_ZSt4fabsf(float noundef %176)
  %178 = fpext float %177 to double
  %179 = getelementptr inbounds i8, ptr %25, i64 8
  %180 = load float, ptr %179, align 4, !tbaa !18
  %181 = call noundef float @_ZSt4fabsf(float noundef %180)
  %182 = fpext float %181 to double
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %38, ptr noundef nonnull align 4 dereferenceable(12) %20, i64 12, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %39, ptr noundef nonnull align 4 dereferenceable(12) %21, i64 12, i1 false), !tbaa.struct !5
  %183 = load float, ptr %179, align 4, !tbaa !18
  %184 = fpext float %183 to double
  %185 = load float, ptr %175, align 4, !tbaa !17
  %186 = fpext float %185 to double
  %187 = call noundef zeroext i1 @_ZN4AABB11_axisTestX2EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %38, ptr noundef nonnull %39, double noundef %184, double noundef %186, double noundef %182, double noundef %178)
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %39) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %38) #8
  br i1 %187, label %188, label %261

188:                                              ; preds = %171
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %40, ptr noundef nonnull align 4 dereferenceable(12) %20, i64 12, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %41, ptr noundef nonnull align 4 dereferenceable(12) %21, i64 12, i1 false), !tbaa.struct !5
  %189 = load float, ptr %179, align 4, !tbaa !18
  %190 = fpext float %189 to double
  %191 = load float, ptr %25, align 4, !tbaa !16
  %192 = fpext float %191 to double
  %193 = call noundef zeroext i1 @_ZN4AABB11_axisTestY1EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %40, ptr noundef nonnull %41, double noundef %190, double noundef %192, double noundef %182, double noundef %174)
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %41) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %40) #8
  br i1 %193, label %194, label %261

194:                                              ; preds = %188
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %42, ptr noundef nonnull align 4 dereferenceable(12) %21, i64 12, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %43, ptr noundef nonnull align 4 dereferenceable(12) %22, i64 12, i1 false), !tbaa.struct !5
  %195 = load float, ptr %175, align 4, !tbaa !17
  %196 = fpext float %195 to double
  %197 = load float, ptr %25, align 4, !tbaa !16
  %198 = fpext float %197 to double
  %199 = call noundef zeroext i1 @_ZN4AABB12_axisTestZ12EN5vmath4vec3ES1_dddd(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %42, ptr noundef nonnull %43, double noundef %196, double noundef %198, double noundef %178, double noundef %174)
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %43) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %42) #8
  br i1 %199, label %200, label %261

200:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %44) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %45) #8
  %201 = load float, ptr %20, align 4, !tbaa !16
  %202 = fpext float %201 to double
  %203 = load float, ptr %21, align 4, !tbaa !16
  %204 = fpext float %203 to double
  %205 = load float, ptr %22, align 4, !tbaa !16
  %206 = fpext float %205 to double
  call void @_ZN4AABB11_findminmaxEdddPdS0_(ptr noundef nonnull align 8 dereferenceable(40) %0, double noundef %202, double noundef %204, double noundef %206, ptr noundef nonnull %44, ptr noundef nonnull %45)
  %207 = load double, ptr %44, align 8, !tbaa !19
  %208 = load double, ptr %76, align 8, !tbaa !10
  %209 = fmul double %208, 5.000000e-01
  %210 = fcmp ogt double %207, %209
  br i1 %210, label %260, label %211

211:                                              ; preds = %200
  %212 = load double, ptr %45, align 8, !tbaa !19
  %213 = fmul double %208, -5.000000e-01
  %214 = fcmp olt double %212, %213
  br i1 %214, label %260, label %215

215:                                              ; preds = %211
  %216 = getelementptr inbounds i8, ptr %20, i64 4
  %217 = load float, ptr %216, align 4, !tbaa !17
  %218 = fpext float %217 to double
  %219 = getelementptr inbounds i8, ptr %21, i64 4
  %220 = load float, ptr %219, align 4, !tbaa !17
  %221 = fpext float %220 to double
  %222 = getelementptr inbounds i8, ptr %22, i64 4
  %223 = load float, ptr %222, align 4, !tbaa !17
  %224 = fpext float %223 to double
  call void @_ZN4AABB11_findminmaxEdddPdS0_(ptr noundef nonnull align 8 dereferenceable(40) %0, double noundef %218, double noundef %221, double noundef %224, ptr noundef nonnull %44, ptr noundef nonnull %45)
  %225 = load double, ptr %44, align 8, !tbaa !19
  %226 = load double, ptr %79, align 8, !tbaa !14
  %227 = fmul double %226, 5.000000e-01
  %228 = fcmp ogt double %225, %227
  br i1 %228, label %260, label %229

229:                                              ; preds = %215
  %230 = load double, ptr %45, align 8, !tbaa !19
  %231 = fmul double %226, -5.000000e-01
  %232 = fcmp olt double %230, %231
  br i1 %232, label %260, label %233

233:                                              ; preds = %229
  %234 = getelementptr inbounds i8, ptr %20, i64 8
  %235 = load float, ptr %234, align 4, !tbaa !18
  %236 = fpext float %235 to double
  %237 = getelementptr inbounds i8, ptr %21, i64 8
  %238 = load float, ptr %237, align 4, !tbaa !18
  %239 = fpext float %238 to double
  %240 = getelementptr inbounds i8, ptr %22, i64 8
  %241 = load float, ptr %240, align 4, !tbaa !18
  %242 = fpext float %241 to double
  call void @_ZN4AABB11_findminmaxEdddPdS0_(ptr noundef nonnull align 8 dereferenceable(40) %0, double noundef %236, double noundef %239, double noundef %242, ptr noundef nonnull %44, ptr noundef nonnull %45)
  %243 = load double, ptr %44, align 8, !tbaa !19
  %244 = load double, ptr %82, align 8, !tbaa !15
  %245 = fmul double %244, 5.000000e-01
  %246 = fcmp ogt double %243, %245
  br i1 %246, label %260, label %247

247:                                              ; preds = %233
  %248 = load double, ptr %45, align 8, !tbaa !19
  %249 = fmul double %244, -5.000000e-01
  %250 = fcmp olt double %248, %249
  br i1 %250, label %260, label %251

251:                                              ; preds = %247
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %46) #8
  invoke void @_ZN5vmath5crossERKNS_4vec3ES2_(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %46, ptr noundef nonnull align 4 dereferenceable(12) %23, ptr noundef nonnull align 4 dereferenceable(12) %24)
          to label %252 unwind label %255

252:                                              ; preds = %251
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %47, ptr noundef nonnull align 4 dereferenceable(12) %46, i64 12, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %48, ptr noundef nonnull align 4 dereferenceable(12) %20, i64 12, i1 false), !tbaa.struct !5
  %253 = invoke noundef zeroext i1 @_ZN4AABB16_planeBoxOverlapEN5vmath4vec3ES1_(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %47, ptr noundef nonnull %48)
          to label %254 unwind label %257

254:                                              ; preds = %252
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %48) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %47) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %46) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %46) #8
  br label %260

255:                                              ; preds = %251
  %256 = landingpad { ptr, i32 }
          cleanup
  br label %259

257:                                              ; preds = %252
  %258 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %48) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %47) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %46) #8
  br label %259

259:                                              ; preds = %257, %255
  %.pn65 = phi { ptr, i32 } [ %258, %257 ], [ %256, %255 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %46) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %45) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %44) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %25) #8
  br label %262

260:                                              ; preds = %233, %247, %215, %229, %200, %211, %254
  %.156 = phi i1 [ %253, %254 ], [ false, %211 ], [ false, %200 ], [ false, %229 ], [ false, %215 ], [ false, %247 ], [ false, %233 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %45) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %44) #8
  br label %261

261:                                              ; preds = %194, %188, %171, %165, %159, %142, %136, %130, %93, %260
  %.257 = phi i1 [ %.156, %260 ], [ false, %93 ], [ false, %130 ], [ false, %136 ], [ false, %142 ], [ false, %159 ], [ false, %165 ], [ false, %171 ], [ false, %188 ], [ false, %194 ]
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %25) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %25) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %24) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %24) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %23) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %23) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %22) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %21) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %20) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %17) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #8
  br label %269

262:                                              ; preds = %259, %128
  %.pn65.pn = phi { ptr, i32 } [ %.pn65, %259 ], [ %129, %128 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %25) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %24) #8
  br label %263

263:                                              ; preds = %262, %126
  %.pn65.pn.pn = phi { ptr, i32 } [ %.pn65.pn, %262 ], [ %127, %126 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %24) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %23) #8
  br label %264

264:                                              ; preds = %263, %124
  %.pn65.pn.pn.pn = phi { ptr, i32 } [ %.pn65.pn.pn, %263 ], [ %125, %124 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %23) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %22) #8
  br label %265

265:                                              ; preds = %264, %122
  %.pn65.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn65.pn.pn.pn, %264 ], [ %123, %122 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %22) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %21) #8
  br label %266

266:                                              ; preds = %265, %120
  %.pn65.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn65.pn.pn.pn.pn, %265 ], [ %121, %120 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %21) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %20) #8
  br label %267

267:                                              ; preds = %266, %118
  %.pn65.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn65.pn.pn.pn.pn.pn, %266 ], [ %119, %118 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %20) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %17) #8
  br label %268

268:                                              ; preds = %267, %117
  %.pn65.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn65.pn.pn.pn.pn.pn.pn, %267 ], [ %.pn62.pn, %117 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #8
  br label %270

.critedge86:                                      ; preds = %56
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #8
  br label %269

.critedge87:                                      ; preds = %61
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %12) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %11) #8
  br label %269

.critedge88:                                      ; preds = %64
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %14) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %13) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %12) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %11) #8
  br label %269

269:                                              ; preds = %.critedge88, %.critedge87, %.critedge86, %.thread80, %.critedge.thread, %.thread78, %261
  %.358 = phi i1 [ %.257, %261 ], [ true, %.thread78 ], [ true, %.critedge.thread ], [ true, %.thread80 ], [ true, %.critedge86 ], [ true, %.critedge87 ], [ true, %.critedge88 ]
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %7) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %6) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #8
  ret i1 %.358

270:                                              ; preds = %268, %74
  %.pn65.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn65.pn.pn.pn.pn.pn.pn.pn, %268 ], [ %.pn.pn, %74 ]
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %7) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %6) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #8
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #8
  resume { ptr, i32 } %.pn65.pn.pn.pn.pn.pn.pn.pn.pn
}

declare void @_ZN5vmathmlEfRKNS_4vec3E(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4, float noundef, ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5vmath5crossERKNS_4vec3ES2_(ptr dead_on_unwind noalias writable sret(%"class.vmath::vec3") align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #7

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 = { 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 = { 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 #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 = !{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, !13, i64 16}
!11 = !{!"_ZTS4AABB", !12, i64 0, !13, i64 16, !13, i64 24, !13, i64 32}
!12 = !{!"_ZTSN5vmath4vec3E", !7, i64 0, !7, i64 4, !7, i64 8}
!13 = !{!"double", !8, i64 0}
!14 = !{!11, !13, i64 24}
!15 = !{!11, !13, i64 32}
!16 = !{!12, !7, i64 0}
!17 = !{!12, !7, i64 4}
!18 = !{!12, !7, i64 8}
!19 = !{!13, !13, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass