; LLVM IR from nikitakaraevv/ray-tracing-engine :: source/Ray.ll (ZNK3Ray17triangleIntersectERK4Vec3IfES3_S3_RfS4_S4_)

; 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.Vec3 = type { [3 x float] }
%class.Ray = type { %class.Vec3, %class.Vec3 }

@_ZL7EPSILON = external hidden global float, align 4

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK3Ray17triangleIntersectERK4Vec3IfES3_S3_RfS4_S4_(ptr noundef nonnull align 4 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6) #0 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca i1, align 1
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %class.Vec3, align 4
  %17 = alloca %class.Vec3, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca %class.Vec3, align 4
  %21 = alloca float, align 4
  %22 = alloca i32, align 4
  %23 = alloca float, align 4
  %24 = alloca %class.Vec3, align 4
  %25 = alloca %class.Vec3, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  %26 = load ptr, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #5
  %27 = load ptr, ptr %11, align 8, !tbaa !5
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZNK4Vec3IfEmiERKS0_(ptr dead_on_unwind writable sret(%class.Vec3) align 4 %16, ptr noundef nonnull align 4 dereferenceable(12) %27, ptr noundef nonnull align 4 dereferenceable(12) %28)
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #5
  %29 = load ptr, ptr %12, align 8, !tbaa !5
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZNK4Vec3IfEmiERKS0_(ptr dead_on_unwind writable sret(%class.Vec3) align 4 %17, ptr noundef nonnull align 4 dereferenceable(12) %29, ptr noundef nonnull align 4 dereferenceable(12) %30)
          to label %31 unwind label %42

31:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #5
  %32 = getelementptr inbounds %class.Ray, ptr %26, i32 0, i32 1
  invoke void @_Z5crossIfE4Vec3IT_ERKS2_S4_(ptr dead_on_unwind writable sret(%class.Vec3) align 4 %20, ptr noundef nonnull align 4 dereferenceable(12) %32, ptr noundef nonnull align 4 dereferenceable(12) %17)
          to label %33 unwind label %46

33:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %34 = invoke noundef float @_Z3dotIfET_RK4Vec3IS0_ES4_(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %20)
          to label %35 unwind label %50

35:                                               ; preds = %33
  store float %34, ptr %21, align 4, !tbaa !9
  %36 = load float, ptr %21, align 4, !tbaa !9
  %37 = invoke noundef float @_ZSt4fabsf(float noundef %36)
          to label %38 unwind label %50

38:                                               ; preds = %35
  %39 = load float, ptr @_ZL7EPSILON, align 4, !tbaa !9
  %40 = fcmp olt float %37, %39
  br i1 %40, label %41, label %54

41:                                               ; preds = %38
  store i1 false, ptr %8, align 1
  store i32 1, ptr %22, align 4
  br label %118

42:                                               ; preds = %7
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %18, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %19, align 4
  br label %122

46:                                               ; preds = %31
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %18, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %19, align 4
  br label %121

50:                                               ; preds = %35, %33
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %18, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %19, align 4
  br label %120

54:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %55 = load float, ptr %21, align 4, !tbaa !9
  %56 = fdiv float 1.000000e+00, %55
  store float %56, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #5
  %57 = getelementptr inbounds %class.Ray, ptr %26, i32 0, i32 0
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZNK4Vec3IfEmiERKS0_(ptr dead_on_unwind writable sret(%class.Vec3) align 4 %24, ptr noundef nonnull align 4 dereferenceable(12) %57, ptr noundef nonnull align 4 dereferenceable(12) %58)
          to label %59 unwind label %85

59:                                               ; preds = %54
  %60 = invoke noundef float @_Z3dotIfET_RK4Vec3IS0_ES4_(ptr noundef nonnull align 4 dereferenceable(12) %24, ptr noundef nonnull align 4 dereferenceable(12) %20)
          to label %61 unwind label %89

61:                                               ; preds = %59
  %62 = load float, ptr %23, align 4, !tbaa !9
  %63 = fmul float %60, %62
  %64 = load ptr, ptr %13, align 8, !tbaa !5
  store float %63, ptr %64, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #5
  invoke void @_Z5crossIfE4Vec3IT_ERKS2_S4_(ptr dead_on_unwind writable sret(%class.Vec3) align 4 %25, ptr noundef nonnull align 4 dereferenceable(12) %24, ptr noundef nonnull align 4 dereferenceable(12) %16)
          to label %65 unwind label %93

65:                                               ; preds = %61
  %66 = getelementptr inbounds %class.Ray, ptr %26, i32 0, i32 1
  %67 = invoke noundef float @_Z3dotIfET_RK4Vec3IS0_ES4_(ptr noundef nonnull align 4 dereferenceable(12) %66, ptr noundef nonnull align 4 dereferenceable(12) %25)
          to label %68 unwind label %97

68:                                               ; preds = %65
  %69 = load float, ptr %23, align 4, !tbaa !9
  %70 = fmul float %67, %69
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  store float %70, ptr %71, align 4, !tbaa !9
  %72 = invoke noundef float @_Z3dotIfET_RK4Vec3IS0_ES4_(ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %25)
          to label %73 unwind label %97

73:                                               ; preds = %68
  %74 = load float, ptr %23, align 4, !tbaa !9
  %75 = fmul float %72, %74
  %76 = load ptr, ptr %15, align 8, !tbaa !5
  store float %75, ptr %76, align 4, !tbaa !9
  %77 = load ptr, ptr %13, align 8, !tbaa !5
  %78 = load float, ptr %77, align 4, !tbaa !9
  %79 = fcmp olt float %78, 0.000000e+00
  br i1 %79, label %84, label %80

80:                                               ; preds = %73
  %81 = load ptr, ptr %13, align 8, !tbaa !5
  %82 = load float, ptr %81, align 4, !tbaa !9
  %83 = fcmp ogt float %82, 1.000000e+00
  br i1 %83, label %84, label %101

84:                                               ; preds = %80, %73
  store i1 false, ptr %8, align 1
  store i32 1, ptr %22, align 4
  br label %114

85:                                               ; preds = %54
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %18, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %19, align 4
  br label %117

89:                                               ; preds = %59
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %18, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %19, align 4
  br label %116

93:                                               ; preds = %61
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %18, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %19, align 4
  br label %115

97:                                               ; preds = %68, %65
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %18, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %19, align 4
  call void @_ZN4Vec3IfED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %25) #5
  br label %115

101:                                              ; preds = %80
  %102 = load ptr, ptr %14, align 8, !tbaa !5
  %103 = load float, ptr %102, align 4, !tbaa !9
  %104 = fcmp oge float %103, 0.000000e+00
  br i1 %104, label %105, label %113

105:                                              ; preds = %101
  %106 = load ptr, ptr %13, align 8, !tbaa !5
  %107 = load float, ptr %106, align 4, !tbaa !9
  %108 = load ptr, ptr %14, align 8, !tbaa !5
  %109 = load float, ptr %108, align 4, !tbaa !9
  %110 = fadd float %107, %109
  %111 = fcmp ole float %110, 1.000000e+00
  br i1 %111, label %112, label %113

112:                                              ; preds = %105
  store i1 true, ptr %8, align 1
  store i32 1, ptr %22, align 4
  br label %114

113:                                              ; preds = %105, %101
  store i1 false, ptr %8, align 1
  store i32 1, ptr %22, align 4
  br label %114

114:                                              ; preds = %113, %112, %84
  call void @_ZN4Vec3IfED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %25) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #5
  call void @_ZN4Vec3IfED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %24) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %118

115:                                              ; preds = %97, %93
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #5
  br label %116

116:                                              ; preds = %115, %89
  call void @_ZN4Vec3IfED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %24) #5
  br label %117

117:                                              ; preds = %116, %85
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %120

118:                                              ; preds = %114, %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @_ZN4Vec3IfED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %20) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #5
  call void @_ZN4Vec3IfED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %17) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #5
  call void @_ZN4Vec3IfED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %16) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #5
  %119 = load i1, ptr %8, align 1
  ret i1 %119

120:                                              ; preds = %117, %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @_ZN4Vec3IfED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %20) #5
  br label %121

121:                                              ; preds = %120, %46
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #5
  call void @_ZN4Vec3IfED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %17) #5
  br label %122

122:                                              ; preds = %121, %42
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #5
  call void @_ZN4Vec3IfED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %16) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #5
  br label %123

123:                                              ; preds = %122
  %124 = load ptr, ptr %18, align 8
  %125 = load i32, ptr %19, align 4
  %126 = insertvalue { ptr, i32 } poison, ptr %124, 0
  %127 = insertvalue { ptr, i32 } %126, i32 %125, 1
  resume { ptr, i32 } %127
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK4Vec3IfEmiERKS0_(ptr dead_on_unwind noalias writable sret(%class.Vec3) align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z5crossIfE4Vec3IT_ERKS2_S4_(ptr dead_on_unwind noalias writable sret(%class.Vec3) align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #2

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

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

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

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

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

@_ZL7EPSILON = external hidden local_unnamed_addr global float, align 4

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK3Ray17triangleIntersectERK4Vec3IfES3_S3_RfS4_S4_(ptr noundef nonnull align 4 dereferenceable(24) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr nocapture noundef nonnull align 4 dereferenceable(4) %4, ptr nocapture noundef nonnull align 4 dereferenceable(4) %5, ptr nocapture noundef nonnull writeonly align 4 dereferenceable(4) %6) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %class.Vec3, align 4
  %9 = alloca %class.Vec3, align 4
  %10 = alloca %class.Vec3, align 4
  %11 = alloca %class.Vec3, align 4
  %12 = alloca %class.Vec3, align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #5
  call void @_ZNK4Vec3IfEmiERKS0_(ptr dead_on_unwind nonnull writable sret(%class.Vec3) align 4 %8, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %1)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #5
  invoke void @_ZNK4Vec3IfEmiERKS0_(ptr dead_on_unwind nonnull writable sret(%class.Vec3) align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %1)
          to label %13 unwind label %20

13:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #5
  %14 = getelementptr inbounds i8, ptr %0, i64 12
  invoke void @_Z5crossIfE4Vec3IT_ERKS2_S4_(ptr dead_on_unwind nonnull writable sret(%class.Vec3) align 4 %10, ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) %9)
          to label %15 unwind label %22

15:                                               ; preds = %13
  %16 = call noundef float @_Z3dotIfET_RK4Vec3IS0_ES4_(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %10)
  %17 = call noundef float @_ZSt4fabsf(float noundef %16)
  %18 = load float, ptr @_ZL7EPSILON, align 4, !tbaa !5
  %19 = fcmp olt float %17, %18
  br i1 %19, label %48, label %24

20:                                               ; preds = %7
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %50

22:                                               ; preds = %13
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %49

24:                                               ; preds = %15
  %25 = fdiv float 1.000000e+00, %16
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #5
  invoke void @_ZNK4Vec3IfEmiERKS0_(ptr dead_on_unwind nonnull writable sret(%class.Vec3) align 4 %11, ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1)
          to label %26 unwind label %37

26:                                               ; preds = %24
  %27 = call noundef float @_Z3dotIfET_RK4Vec3IS0_ES4_(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %10)
  %28 = fmul float %25, %27
  store float %28, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #5
  invoke void @_Z5crossIfE4Vec3IT_ERKS2_S4_(ptr dead_on_unwind nonnull writable sret(%class.Vec3) align 4 %12, ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %8)
          to label %29 unwind label %39

29:                                               ; preds = %26
  %30 = call noundef float @_Z3dotIfET_RK4Vec3IS0_ES4_(ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) %12)
  %31 = fmul float %25, %30
  store float %31, ptr %5, align 4, !tbaa !5
  %32 = call noundef float @_Z3dotIfET_RK4Vec3IS0_ES4_(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %12)
  %33 = fmul float %25, %32
  store float %33, ptr %6, align 4, !tbaa !5
  %34 = load float, ptr %4, align 4, !tbaa !5
  %35 = fcmp olt float %34, 0.000000e+00
  %36 = fcmp ogt float %34, 1.000000e+00
  %or.cond = or i1 %35, %36
  br i1 %or.cond, label %46, label %41

37:                                               ; preds = %24
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %47

39:                                               ; preds = %26
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #5
  call void @_ZN4Vec3IfED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %11) #5
  br label %47

41:                                               ; preds = %29
  %42 = load float, ptr %5, align 4, !tbaa !5
  %43 = fcmp oge float %42, 0.000000e+00
  %44 = fadd float %34, %42
  %45 = fcmp ole float %44, 1.000000e+00
  %or.cond32.not = and i1 %43, %45
  br label %46

46:                                               ; preds = %41, %29
  %.0 = phi i1 [ false, %29 ], [ %or.cond32.not, %41 ]
  call void @_ZN4Vec3IfED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %12) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #5
  call void @_ZN4Vec3IfED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %11) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #5
  br label %48

47:                                               ; preds = %39, %37
  %.pn = phi { ptr, i32 } [ %40, %39 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #5
  call void @_ZN4Vec3IfED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %10) #5
  br label %49

48:                                               ; preds = %15, %46
  %.1 = phi i1 [ %.0, %46 ], [ false, %15 ]
  call void @_ZN4Vec3IfED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %10) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #5
  call void @_ZN4Vec3IfED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #5
  call void @_ZN4Vec3IfED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #5
  ret i1 %.1

49:                                               ; preds = %47, %22
  %.pn.pn = phi { ptr, i32 } [ %.pn, %47 ], [ %23, %22 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #5
  call void @_ZN4Vec3IfED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %9) #5
  br label %50

50:                                               ; preds = %49, %20
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %49 ], [ %21, %20 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #5
  call void @_ZN4Vec3IfED2Ev(ptr noundef nonnull align 4 dereferenceable(12) %8) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #5
  resume { ptr, i32 } %.pn.pn.pn
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK4Vec3IfEmiERKS0_(ptr dead_on_unwind noalias writable sret(%class.Vec3) align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z5crossIfE4Vec3IT_ERKS2_S4_(ptr dead_on_unwind noalias writable sret(%class.Vec3) align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2

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

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

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

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

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


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