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

; 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 }
%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 uwtable
define dso_local noundef zeroext i1 @_ZN4AABB18isLineIntersectingEN5vmath4vec3ES1_(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %1, ptr noundef %2) #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.vmath::vec3", align 4
  %9 = alloca %"class.vmath::vec3", align 4
  %10 = alloca %"class.vmath::vec3", align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, 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 i32, align 4
  %23 = alloca double, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %24 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #7
  %25 = getelementptr inbounds %class.AABB, ptr %24, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 8 %25, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #7
  %26 = getelementptr inbounds %class.AABB, ptr %24, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #7
  %27 = getelementptr inbounds %class.AABB, ptr %24, i32 0, i32 1
  %28 = load double, ptr %27, align 8, !tbaa !12
  %29 = fptrunc double %28 to float
  %30 = getelementptr inbounds %class.AABB, ptr %24, i32 0, i32 2
  %31 = load double, ptr %30, align 8, !tbaa !16
  %32 = fptrunc double %31 to float
  %33 = getelementptr inbounds %class.AABB, ptr %24, i32 0, i32 3
  %34 = load double, ptr %33, align 8, !tbaa !17
  %35 = fptrunc double %34 to float
  invoke void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12) %10, float noundef %29, float noundef %32, float noundef %35)
          to label %36 unwind label %70

36:                                               ; preds = %3
  invoke void @_ZN5vmathplERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %26, ptr noundef nonnull align 4 dereferenceable(12) %10)
          to label %37 unwind label %74

37:                                               ; preds = %36
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %10) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #7
  invoke void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %14, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %1)
          to label %38 unwind label %79

38:                                               ; preds = %37
  invoke void @_ZN5vmathmlERKNS_4vec3Ef(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %13, ptr noundef nonnull align 4 dereferenceable(12) %14, float noundef 5.000000e-01)
          to label %39 unwind label %83

39:                                               ; preds = %38
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %14) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #7
  invoke void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %16, ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %8)
          to label %40 unwind label %88

40:                                               ; preds = %39
  invoke void @_ZN5vmathmlERKNS_4vec3Ef(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %15, ptr noundef nonnull align 4 dereferenceable(12) %16, float noundef 5.000000e-01)
          to label %41 unwind label %92

41:                                               ; preds = %40
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %16) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #7
  invoke void @_ZN5vmathplERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %18, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %13)
          to label %42 unwind label %97

42:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #7
  invoke void @_ZN5vmathplERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %20, ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %9)
          to label %43 unwind label %101

43:                                               ; preds = %42
  invoke void @_ZN5vmathmlERKNS_4vec3Ef(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %19, ptr noundef nonnull align 4 dereferenceable(12) %20, float noundef 5.000000e-01)
          to label %44 unwind label %105

44:                                               ; preds = %43
  invoke void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4 %17, ptr noundef nonnull align 4 dereferenceable(12) %18, ptr noundef nonnull align 4 dereferenceable(12) %19)
          to label %45 unwind label %109

45:                                               ; preds = %44
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %19) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %20) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %18) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #7
  %46 = getelementptr inbounds %"class.vmath::vec3", ptr %13, i32 0, i32 0
  %47 = load float, ptr %46, align 4, !tbaa !18
  %48 = invoke noundef float @_ZSt4fabsf(float noundef %47)
          to label %49 unwind label %116

49:                                               ; preds = %45
  %50 = getelementptr inbounds %"class.vmath::vec3", ptr %13, i32 0, i32 1
  %51 = load float, ptr %50, align 4, !tbaa !19
  %52 = invoke noundef float @_ZSt4fabsf(float noundef %51)
          to label %53 unwind label %116

53:                                               ; preds = %49
  %54 = getelementptr inbounds %"class.vmath::vec3", ptr %13, i32 0, i32 2
  %55 = load float, ptr %54, align 4, !tbaa !20
  %56 = invoke noundef float @_ZSt4fabsf(float noundef %55)
          to label %57 unwind label %116

57:                                               ; preds = %53
  invoke void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12) %21, float noundef %48, float noundef %52, float noundef %56)
          to label %58 unwind label %116

58:                                               ; preds = %57
  %59 = getelementptr inbounds %"class.vmath::vec3", ptr %17, i32 0, i32 0
  %60 = load float, ptr %59, align 4, !tbaa !18
  %61 = invoke noundef float @_ZSt4fabsf(float noundef %60)
          to label %62 unwind label %120

62:                                               ; preds = %58
  %63 = getelementptr inbounds %"class.vmath::vec3", ptr %15, i32 0, i32 0
  %64 = load float, ptr %63, align 4, !tbaa !18
  %65 = getelementptr inbounds %"class.vmath::vec3", ptr %21, i32 0, i32 0
  %66 = load float, ptr %65, align 4, !tbaa !18
  %67 = fadd float %64, %66
  %68 = fcmp ogt float %61, %67
  br i1 %68, label %69, label %124

69:                                               ; preds = %62
  store i1 false, ptr %4, align 1
  store i32 1, ptr %22, align 4
  br label %244

70:                                               ; preds = %3
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %11, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %12, align 4
  br label %78

74:                                               ; preds = %36
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %11, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %12, align 4
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %10) #7
  br label %78

78:                                               ; preds = %74, %70
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #7
  br label %251

79:                                               ; preds = %37
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %11, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %12, align 4
  br label %87

83:                                               ; preds = %38
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %11, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %12, align 4
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %14) #7
  br label %87

87:                                               ; preds = %83, %79
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #7
  br label %250

88:                                               ; preds = %39
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %11, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %12, align 4
  br label %96

92:                                               ; preds = %40
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %11, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %12, align 4
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %16) #7
  br label %96

96:                                               ; preds = %92, %88
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #7
  br label %249

97:                                               ; preds = %41
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %11, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %12, align 4
  br label %115

101:                                              ; preds = %42
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %11, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %12, align 4
  br label %114

105:                                              ; preds = %43
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %11, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %12, align 4
  br label %113

109:                                              ; preds = %44
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %11, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %12, align 4
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %19) #7
  br label %113

113:                                              ; preds = %109, %105
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %20) #7
  br label %114

114:                                              ; preds = %113, %101
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %18) #7
  br label %115

115:                                              ; preds = %114, %97
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #7
  br label %248

116:                                              ; preds = %57, %53, %49, %45
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %11, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %12, align 4
  br label %247

120:                                              ; preds = %136, %124, %58
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %11, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %12, align 4
  br label %246

124:                                              ; preds = %62
  %125 = getelementptr inbounds %"class.vmath::vec3", ptr %17, i32 0, i32 1
  %126 = load float, ptr %125, align 4, !tbaa !19
  %127 = invoke noundef float @_ZSt4fabsf(float noundef %126)
          to label %128 unwind label %120

128:                                              ; preds = %124
  %129 = getelementptr inbounds %"class.vmath::vec3", ptr %15, i32 0, i32 1
  %130 = load float, ptr %129, align 4, !tbaa !19
  %131 = getelementptr inbounds %"class.vmath::vec3", ptr %21, i32 0, i32 1
  %132 = load float, ptr %131, align 4, !tbaa !19
  %133 = fadd float %130, %132
  %134 = fcmp ogt float %127, %133
  br i1 %134, label %135, label %136

135:                                              ; preds = %128
  store i1 false, ptr %4, align 1
  store i32 1, ptr %22, align 4
  br label %244

136:                                              ; preds = %128
  %137 = getelementptr inbounds %"class.vmath::vec3", ptr %17, i32 0, i32 2
  %138 = load float, ptr %137, align 4, !tbaa !20
  %139 = invoke noundef float @_ZSt4fabsf(float noundef %138)
          to label %140 unwind label %120

140:                                              ; preds = %136
  %141 = getelementptr inbounds %"class.vmath::vec3", ptr %15, i32 0, i32 2
  %142 = load float, ptr %141, align 4, !tbaa !20
  %143 = getelementptr inbounds %"class.vmath::vec3", ptr %21, i32 0, i32 2
  %144 = load float, ptr %143, align 4, !tbaa !20
  %145 = fadd float %142, %144
  %146 = fcmp ogt float %139, %145
  br i1 %146, label %147, label %148

147:                                              ; preds = %140
  store i1 false, ptr %4, align 1
  store i32 1, ptr %22, align 4
  br label %244

148:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  store double 1.000000e-08, ptr %23, align 8, !tbaa !21
  %149 = getelementptr inbounds %"class.vmath::vec3", ptr %13, i32 0, i32 1
  %150 = load float, ptr %149, align 4, !tbaa !19
  %151 = getelementptr inbounds %"class.vmath::vec3", ptr %17, i32 0, i32 2
  %152 = load float, ptr %151, align 4, !tbaa !20
  %153 = getelementptr inbounds %"class.vmath::vec3", ptr %13, i32 0, i32 2
  %154 = load float, ptr %153, align 4, !tbaa !20
  %155 = getelementptr inbounds %"class.vmath::vec3", ptr %17, i32 0, i32 1
  %156 = load float, ptr %155, align 4, !tbaa !19
  %157 = fmul float %154, %156
  %158 = fneg float %157
  %159 = call float @llvm.fmuladd.f32(float %150, float %152, float %158)
  %160 = invoke noundef float @_ZSt4fabsf(float noundef %159)
          to label %161 unwind label %178

161:                                              ; preds = %148
  %162 = fpext float %160 to double
  %163 = getelementptr inbounds %"class.vmath::vec3", ptr %15, i32 0, i32 1
  %164 = load float, ptr %163, align 4, !tbaa !19
  %165 = getelementptr inbounds %"class.vmath::vec3", ptr %21, i32 0, i32 2
  %166 = load float, ptr %165, align 4, !tbaa !20
  %167 = getelementptr inbounds %"class.vmath::vec3", ptr %15, i32 0, i32 2
  %168 = load float, ptr %167, align 4, !tbaa !20
  %169 = getelementptr inbounds %"class.vmath::vec3", ptr %21, i32 0, i32 1
  %170 = load float, ptr %169, align 4, !tbaa !19
  %171 = fmul float %168, %170
  %172 = call float @llvm.fmuladd.f32(float %164, float %166, float %171)
  %173 = fpext float %172 to double
  %174 = load double, ptr %23, align 8, !tbaa !21
  %175 = fadd double %173, %174
  %176 = fcmp ogt double %162, %175
  br i1 %176, label %177, label %182

177:                                              ; preds = %161
  store i1 false, ptr %4, align 1
  store i32 1, ptr %22, align 4
  br label %243

178:                                              ; preds = %212, %182, %148
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %11, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %246

182:                                              ; preds = %161
  %183 = getelementptr inbounds %"class.vmath::vec3", ptr %13, i32 0, i32 2
  %184 = load float, ptr %183, align 4, !tbaa !20
  %185 = getelementptr inbounds %"class.vmath::vec3", ptr %17, i32 0, i32 0
  %186 = load float, ptr %185, align 4, !tbaa !18
  %187 = getelementptr inbounds %"class.vmath::vec3", ptr %13, i32 0, i32 0
  %188 = load float, ptr %187, align 4, !tbaa !18
  %189 = getelementptr inbounds %"class.vmath::vec3", ptr %17, i32 0, i32 2
  %190 = load float, ptr %189, align 4, !tbaa !20
  %191 = fmul float %188, %190
  %192 = fneg float %191
  %193 = call float @llvm.fmuladd.f32(float %184, float %186, float %192)
  %194 = invoke noundef float @_ZSt4fabsf(float noundef %193)
          to label %195 unwind label %178

195:                                              ; preds = %182
  %196 = fpext float %194 to double
  %197 = getelementptr inbounds %"class.vmath::vec3", ptr %15, i32 0, i32 2
  %198 = load float, ptr %197, align 4, !tbaa !20
  %199 = getelementptr inbounds %"class.vmath::vec3", ptr %21, i32 0, i32 0
  %200 = load float, ptr %199, align 4, !tbaa !18
  %201 = getelementptr inbounds %"class.vmath::vec3", ptr %15, i32 0, i32 0
  %202 = load float, ptr %201, align 4, !tbaa !18
  %203 = getelementptr inbounds %"class.vmath::vec3", ptr %21, i32 0, i32 2
  %204 = load float, ptr %203, align 4, !tbaa !20
  %205 = fmul float %202, %204
  %206 = call float @llvm.fmuladd.f32(float %198, float %200, float %205)
  %207 = fpext float %206 to double
  %208 = load double, ptr %23, align 8, !tbaa !21
  %209 = fadd double %207, %208
  %210 = fcmp ogt double %196, %209
  br i1 %210, label %211, label %212

211:                                              ; preds = %195
  store i1 false, ptr %4, align 1
  store i32 1, ptr %22, align 4
  br label %243

212:                                              ; preds = %195
  %213 = getelementptr inbounds %"class.vmath::vec3", ptr %13, i32 0, i32 0
  %214 = load float, ptr %213, align 4, !tbaa !18
  %215 = getelementptr inbounds %"class.vmath::vec3", ptr %17, i32 0, i32 1
  %216 = load float, ptr %215, align 4, !tbaa !19
  %217 = getelementptr inbounds %"class.vmath::vec3", ptr %13, i32 0, i32 1
  %218 = load float, ptr %217, align 4, !tbaa !19
  %219 = getelementptr inbounds %"class.vmath::vec3", ptr %17, i32 0, i32 0
  %220 = load float, ptr %219, align 4, !tbaa !18
  %221 = fmul float %218, %220
  %222 = fneg float %221
  %223 = call float @llvm.fmuladd.f32(float %214, float %216, float %222)
  %224 = invoke noundef float @_ZSt4fabsf(float noundef %223)
          to label %225 unwind label %178

225:                                              ; preds = %212
  %226 = fpext float %224 to double
  %227 = getelementptr inbounds %"class.vmath::vec3", ptr %15, i32 0, i32 0
  %228 = load float, ptr %227, align 4, !tbaa !18
  %229 = getelementptr inbounds %"class.vmath::vec3", ptr %21, i32 0, i32 1
  %230 = load float, ptr %229, align 4, !tbaa !19
  %231 = getelementptr inbounds %"class.vmath::vec3", ptr %15, i32 0, i32 1
  %232 = load float, ptr %231, align 4, !tbaa !19
  %233 = getelementptr inbounds %"class.vmath::vec3", ptr %21, i32 0, i32 0
  %234 = load float, ptr %233, align 4, !tbaa !18
  %235 = fmul float %232, %234
  %236 = call float @llvm.fmuladd.f32(float %228, float %230, float %235)
  %237 = fpext float %236 to double
  %238 = load double, ptr %23, align 8, !tbaa !21
  %239 = fadd double %237, %238
  %240 = fcmp ogt double %226, %239
  br i1 %240, label %241, label %242

241:                                              ; preds = %225
  store i1 false, ptr %4, align 1
  store i32 1, ptr %22, align 4
  br label %243

242:                                              ; preds = %225
  store i1 true, ptr %4, align 1
  store i32 1, ptr %22, align 4
  br label %243

243:                                              ; preds = %242, %241, %211, %177
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %244

244:                                              ; preds = %243, %147, %135, %69
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %21) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %17) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %15) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %13) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #7
  %245 = load i1, ptr %4, align 1
  ret i1 %245

246:                                              ; preds = %178, %120
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %21) #7
  br label %247

247:                                              ; preds = %246, %116
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %17) #7
  br label %248

248:                                              ; preds = %247, %115
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %15) #7
  br label %249

249:                                              ; preds = %248, %96
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %13) #7
  br label %250

250:                                              ; preds = %249, %87
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #7
  br label %251

251:                                              ; preds = %250, %78
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #7
  br label %252

252:                                              ; preds = %251
  %253 = load ptr, ptr %11, align 8
  %254 = load i32, ptr %12, align 4
  %255 = insertvalue { ptr, i32 } poison, ptr %253, 0
  %256 = insertvalue { ptr, i32 } %255, i32 %254, 1
  resume { ptr, i32 } %256
}

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 @_ZN5vmathmlERKNS_4vec3Ef(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4, ptr noundef nonnull align 4 dereferenceable(12), float noundef) #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) #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #6

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

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

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


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

%"class.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 uwtable
define dso_local noundef zeroext i1 @_ZN4AABB18isLineIntersectingEN5vmath4vec3ES1_(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.vmath::vec3", align 4
  %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
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 8 dereferenceable(12) %0, i64 12, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #7
  %16 = getelementptr inbounds i8, ptr %0, i64 16
  %17 = load double, ptr %16, align 8, !tbaa !10
  %18 = fptrunc double %17 to float
  %19 = getelementptr inbounds i8, ptr %0, i64 24
  %20 = load double, ptr %19, align 8, !tbaa !14
  %21 = fptrunc double %20 to float
  %22 = getelementptr inbounds i8, ptr %0, i64 32
  %23 = load double, ptr %22, align 8, !tbaa !15
  %24 = fptrunc double %23 to float
  invoke void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12) %6, float noundef %18, float noundef %21, float noundef %24)
          to label %25 unwind label %50

25:                                               ; preds = %3
  invoke void @_ZN5vmathplERKNS_4vec3ES2_(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %5, ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %6)
          to label %26 unwind label %52

26:                                               ; preds = %25
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %6) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #7
  invoke void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %8, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %1)
          to label %27 unwind label %55

27:                                               ; preds = %26
  invoke void @_ZN5vmathmlERKNS_4vec3Ef(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %7, ptr noundef nonnull align 4 dereferenceable(12) %8, float noundef 5.000000e-01)
          to label %28 unwind label %57

28:                                               ; preds = %27
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #7
  invoke void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %10, ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %4)
          to label %29 unwind label %60

29:                                               ; preds = %28
  invoke void @_ZN5vmathmlERKNS_4vec3Ef(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %10, float noundef 5.000000e-01)
          to label %30 unwind label %62

30:                                               ; preds = %29
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %10) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #7
  invoke void @_ZN5vmathplERKNS_4vec3ES2_(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %12, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %7)
          to label %31 unwind label %65

31:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #7
  invoke void @_ZN5vmathplERKNS_4vec3ES2_(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %14, ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %5)
          to label %32 unwind label %67

32:                                               ; preds = %31
  invoke void @_ZN5vmathmlERKNS_4vec3Ef(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %13, ptr noundef nonnull align 4 dereferenceable(12) %14, float noundef 5.000000e-01)
          to label %33 unwind label %69

33:                                               ; preds = %32
  invoke void @_ZN5vmathmiERKNS_4vec3ES2_(ptr dead_on_unwind nonnull writable sret(%"class.vmath::vec3") align 4 %11, ptr noundef nonnull align 4 dereferenceable(12) %12, ptr noundef nonnull align 4 dereferenceable(12) %13)
          to label %34 unwind label %71

34:                                               ; preds = %33
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %13) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %14) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %12) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #7
  %35 = load float, ptr %7, align 4, !tbaa !16
  %36 = call noundef float @_ZSt4fabsf(float noundef %35)
  %37 = getelementptr inbounds i8, ptr %7, i64 4
  %38 = load float, ptr %37, align 4, !tbaa !17
  %39 = call noundef float @_ZSt4fabsf(float noundef %38)
  %40 = getelementptr inbounds i8, ptr %7, i64 8
  %41 = load float, ptr %40, align 4, !tbaa !18
  %42 = call noundef float @_ZSt4fabsf(float noundef %41)
  invoke void @_ZN5vmath4vec3C1Efff(ptr noundef nonnull align 4 dereferenceable(12) %15, float noundef %36, float noundef %39, float noundef %42)
          to label %43 unwind label %76

43:                                               ; preds = %34
  %44 = load float, ptr %11, align 4, !tbaa !16
  %45 = call noundef float @_ZSt4fabsf(float noundef %44)
  %46 = load float, ptr %9, align 4, !tbaa !16
  %47 = load float, ptr %15, align 4, !tbaa !16
  %48 = fadd float %46, %47
  %49 = fcmp ogt float %45, %48
  br i1 %49, label %155, label %78

50:                                               ; preds = %3
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %54

52:                                               ; preds = %25
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %6) #7
  br label %54

54:                                               ; preds = %52, %50
  %.pn = phi { ptr, i32 } [ %53, %52 ], [ %51, %50 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #7
  br label %159

55:                                               ; preds = %26
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %59

57:                                               ; preds = %27
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #7
  br label %59

59:                                               ; preds = %57, %55
  %.pn19 = phi { ptr, i32 } [ %58, %57 ], [ %56, %55 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #7
  br label %158

60:                                               ; preds = %28
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %64

62:                                               ; preds = %29
  %63 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %10) #7
  br label %64

64:                                               ; preds = %62, %60
  %.pn21 = phi { ptr, i32 } [ %63, %62 ], [ %61, %60 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #7
  br label %157

65:                                               ; preds = %30
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %75

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

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

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

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

74:                                               ; preds = %73, %67
  %.pn23.pn = phi { ptr, i32 } [ %.pn23, %73 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %12) #7
  br label %75

75:                                               ; preds = %74, %65
  %.pn23.pn.pn = phi { ptr, i32 } [ %.pn23.pn, %74 ], [ %66, %65 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #7
  br label %156

76:                                               ; preds = %34
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %11) #7
  br label %156

78:                                               ; preds = %43
  %79 = getelementptr inbounds i8, ptr %11, i64 4
  %80 = load float, ptr %79, align 4, !tbaa !17
  %81 = call noundef float @_ZSt4fabsf(float noundef %80)
  %82 = getelementptr inbounds i8, ptr %9, i64 4
  %83 = load float, ptr %82, align 4, !tbaa !17
  %84 = getelementptr inbounds i8, ptr %15, i64 4
  %85 = load float, ptr %84, align 4, !tbaa !17
  %86 = fadd float %83, %85
  %87 = fcmp ogt float %81, %86
  br i1 %87, label %155, label %88

88:                                               ; preds = %78
  %89 = getelementptr inbounds i8, ptr %11, i64 8
  %90 = load float, ptr %89, align 4, !tbaa !18
  %91 = call noundef float @_ZSt4fabsf(float noundef %90)
  %92 = getelementptr inbounds i8, ptr %9, i64 8
  %93 = load float, ptr %92, align 4, !tbaa !18
  %94 = getelementptr inbounds i8, ptr %15, i64 8
  %95 = load float, ptr %94, align 4, !tbaa !18
  %96 = fadd float %93, %95
  %97 = fcmp ogt float %91, %96
  br i1 %97, label %155, label %98

98:                                               ; preds = %88
  %99 = load float, ptr %37, align 4, !tbaa !17
  %100 = load float, ptr %89, align 4, !tbaa !18
  %101 = load float, ptr %40, align 4, !tbaa !18
  %102 = load float, ptr %79, align 4, !tbaa !17
  %103 = fneg float %101
  %104 = fmul float %102, %103
  %105 = call float @llvm.fmuladd.f32(float %99, float %100, float %104)
  %106 = call noundef float @_ZSt4fabsf(float noundef %105)
  %107 = fpext float %106 to double
  %108 = load float, ptr %82, align 4, !tbaa !17
  %109 = load float, ptr %94, align 4, !tbaa !18
  %110 = load float, ptr %92, align 4, !tbaa !18
  %111 = load float, ptr %84, align 4, !tbaa !17
  %112 = fmul float %110, %111
  %113 = call float @llvm.fmuladd.f32(float %108, float %109, float %112)
  %114 = fpext float %113 to double
  %115 = fadd double %114, 1.000000e-08
  %116 = fcmp olt double %115, %107
  br i1 %116, label %155, label %117

117:                                              ; preds = %98
  %118 = load float, ptr %40, align 4, !tbaa !18
  %119 = load float, ptr %11, align 4, !tbaa !16
  %120 = load float, ptr %7, align 4, !tbaa !16
  %121 = load float, ptr %89, align 4, !tbaa !18
  %122 = fneg float %120
  %123 = fmul float %121, %122
  %124 = call float @llvm.fmuladd.f32(float %118, float %119, float %123)
  %125 = call noundef float @_ZSt4fabsf(float noundef %124)
  %126 = fpext float %125 to double
  %127 = load float, ptr %92, align 4, !tbaa !18
  %128 = load float, ptr %15, align 4, !tbaa !16
  %129 = load float, ptr %9, align 4, !tbaa !16
  %130 = load float, ptr %94, align 4, !tbaa !18
  %131 = fmul float %129, %130
  %132 = call float @llvm.fmuladd.f32(float %127, float %128, float %131)
  %133 = fpext float %132 to double
  %134 = fadd double %133, 1.000000e-08
  %135 = fcmp olt double %134, %126
  br i1 %135, label %155, label %136

136:                                              ; preds = %117
  %137 = load float, ptr %7, align 4, !tbaa !16
  %138 = load float, ptr %79, align 4, !tbaa !17
  %139 = load float, ptr %37, align 4, !tbaa !17
  %140 = load float, ptr %11, align 4, !tbaa !16
  %141 = fneg float %139
  %142 = fmul float %140, %141
  %143 = call float @llvm.fmuladd.f32(float %137, float %138, float %142)
  %144 = call noundef float @_ZSt4fabsf(float noundef %143)
  %145 = fpext float %144 to double
  %146 = load float, ptr %9, align 4, !tbaa !16
  %147 = load float, ptr %84, align 4, !tbaa !17
  %148 = load float, ptr %82, align 4, !tbaa !17
  %149 = load float, ptr %15, align 4, !tbaa !16
  %150 = fmul float %148, %149
  %151 = call float @llvm.fmuladd.f32(float %146, float %147, float %150)
  %152 = fpext float %151 to double
  %153 = fadd double %152, 1.000000e-08
  %154 = fcmp uge double %153, %145
  br label %155

155:                                              ; preds = %98, %117, %136, %88, %78, %43
  %.1 = phi i1 [ false, %43 ], [ false, %78 ], [ false, %88 ], [ false, %98 ], [ false, %117 ], [ %154, %136 ]
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %15) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %11) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %7) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #7
  ret i1 %.1

156:                                              ; preds = %76, %75
  %.pn27 = phi { ptr, i32 } [ %77, %76 ], [ %.pn23.pn.pn, %75 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #7
  br label %157

157:                                              ; preds = %156, %64
  %.pn27.pn = phi { ptr, i32 } [ %.pn27, %156 ], [ %.pn21, %64 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %7) #7
  br label %158

158:                                              ; preds = %157, %59
  %.pn27.pn.pn = phi { ptr, i32 } [ %.pn27.pn, %157 ], [ %.pn19, %59 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %5) #7
  br label %159

159:                                              ; preds = %158, %54
  %.pn27.pn.pn.pn = phi { ptr, i32 } [ %.pn27.pn.pn, %158 ], [ %.pn, %54 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #7
  call void @_ZN5vmath4vec3D1Ev(ptr noundef nonnull align 4 dereferenceable(12) %4) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #7
  resume { ptr, i32 } %.pn27.pn.pn.pn
}

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 @_ZN5vmathmlERKNS_4vec3Ef(ptr dead_on_unwind writable sret(%"class.vmath::vec3") align 4, ptr noundef nonnull align 4 dereferenceable(12), float noundef) 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 #5

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #6

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{i64 0, i64 4, !6, i64 4, i64 4, !6, i64 8, i64 4, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !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}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass