; LLVM IR from Sopiro/Muli :: src/geometry (raycast)

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

%"struct.muli::Vec2" = type { float, float }
%"struct.muli::RayCastInput" = type { %"struct.muli::Vec2", %"struct.muli::Vec2", float, float }
%"struct.muli::RayCastOutput" = type { %"struct.muli::Vec2", float }

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZN4muliplERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4muli18RayCastLineSegmentERKNS_4Vec2ES2_RKNS_12RayCastInputEPNS_13RayCastOutputE(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef nonnull align 4 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(24) %2, ptr noundef %3) #4 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"struct.muli::Vec2", align 4
  %11 = alloca %"struct.muli::Vec2", align 4
  %12 = alloca %"struct.muli::Vec2", align 4
  %13 = alloca float, align 4
  %14 = alloca i32, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca %"struct.muli::Vec2", align 4
  %18 = alloca float, align 4
  %19 = alloca %"struct.muli::Vec2", align 4
  %20 = alloca %"struct.muli::Vec2", align 4
  %21 = alloca float, align 4
  %22 = alloca %"struct.muli::Vec2", align 4
  %23 = alloca %"struct.muli::Vec2", align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.muli::RayCastInput", ptr %24, i32 0, i32 1
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.muli::RayCastInput", ptr %26, i32 0, i32 0
  %28 = call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %25, ptr noundef nonnull align 4 dereferenceable(8) %27)
  store <2 x float> %28, ptr %10, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %29, ptr noundef nonnull align 4 dereferenceable(8) %30)
  store <2 x float> %31, ptr %11, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %32 = call <2 x float> @_ZN4muli5CrossERKNS_4Vec2Ef(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef 1.000000e+00)
  store <2 x float> %32, ptr %12, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %33 = call noundef float @_ZN4muli4Vec213NormalizeSafeEv(ptr noundef nonnull align 4 dereferenceable(8) %12)
  store float %33, ptr %13, align 4, !tbaa !9
  %34 = load float, ptr %13, align 4, !tbaa !9
  %35 = fcmp oeq float %34, 0.000000e+00
  br i1 %35, label %36, label %37

36:                                               ; preds = %4
  store i1 false, ptr %5, align 1
  store i32 1, ptr %14, align 4
  br label %108

37:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %38 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store float %38, ptr %15, align 4, !tbaa !9
  %39 = load float, ptr %15, align 4, !tbaa !9
  %40 = fcmp oeq float %39, 0.000000e+00
  br i1 %40, label %41, label %42

41:                                               ; preds = %37
  store i1 false, ptr %5, align 1
  store i32 1, ptr %14, align 4
  br label %107

42:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.muli::RayCastInput", ptr %44, i32 0, i32 0
  %46 = call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %43, ptr noundef nonnull align 4 dereferenceable(8) %45)
  store <2 x float> %46, ptr %17, align 4
  %47 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %17)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  store float %47, ptr %16, align 4, !tbaa !9
  %48 = load float, ptr %15, align 4, !tbaa !9
  %49 = fcmp olt float %48, 0.000000e+00
  br i1 %49, label %50, label %56

50:                                               ; preds = %42
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.muli::RayCastInput", ptr %51, i32 0, i32 3
  %53 = load float, ptr %52, align 4, !tbaa !11
  %54 = load float, ptr %16, align 4, !tbaa !9
  %55 = fadd float %54, %53
  store float %55, ptr %16, align 4, !tbaa !9
  br label %62

56:                                               ; preds = %42
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.muli::RayCastInput", ptr %57, i32 0, i32 3
  %59 = load float, ptr %58, align 4, !tbaa !11
  %60 = load float, ptr %16, align 4, !tbaa !9
  %61 = fsub float %60, %59
  store float %61, ptr %16, align 4, !tbaa !9
  br label %62

62:                                               ; preds = %56, %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %63 = load float, ptr %16, align 4, !tbaa !9
  %64 = load float, ptr %15, align 4, !tbaa !9
  %65 = fdiv float %63, %64
  store float %65, ptr %18, align 4, !tbaa !9
  %66 = load float, ptr %18, align 4, !tbaa !9
  %67 = fcmp olt float %66, 0.000000e+00
  br i1 %67, label %74, label %68

68:                                               ; preds = %62
  %69 = load float, ptr %18, align 4, !tbaa !9
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.muli::RayCastInput", ptr %70, i32 0, i32 2
  %72 = load float, ptr %71, align 4, !tbaa !14
  %73 = fcmp ogt float %69, %72
  br i1 %73, label %74, label %75

74:                                               ; preds = %68, %62
  store i1 false, ptr %5, align 1
  store i32 1, ptr %14, align 4
  br label %106

75:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.muli::RayCastInput", ptr %76, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %78 = load float, ptr %18, align 4, !tbaa !9
  %79 = call <2 x float> @_ZN4mulimlEfRKNS_4Vec2E(float noundef %78, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store <2 x float> %79, ptr %20, align 4
  %80 = call <2 x float> @_ZN4muliplERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %77, ptr noundef nonnull align 4 dereferenceable(8) %20)
  store <2 x float> %80, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(8) %81)
  store <2 x float> %82, ptr %22, align 4
  %83 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %22, ptr noundef nonnull align 4 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  store float %83, ptr %21, align 4, !tbaa !9
  %84 = load float, ptr %21, align 4, !tbaa !9
  %85 = fcmp olt float %84, 0.000000e+00
  br i1 %85, label %90, label %86

86:                                               ; preds = %75
  %87 = load float, ptr %21, align 4, !tbaa !9
  %88 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %11)
  %89 = fcmp ogt float %87, %88
  br i1 %89, label %90, label %91

90:                                               ; preds = %86, %75
  store i1 false, ptr %5, align 1
  store i32 1, ptr %14, align 4
  br label %105

91:                                               ; preds = %86
  %92 = load float, ptr %18, align 4, !tbaa !9
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.muli::RayCastOutput", ptr %93, i32 0, i32 1
  store float %92, ptr %94, align 4, !tbaa !15
  %95 = load float, ptr %15, align 4, !tbaa !9
  %96 = fcmp ogt float %95, 0.000000e+00
  br i1 %96, label %97, label %101

97:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %98 = call <2 x float> @_ZNK4muli4Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %12)
  store <2 x float> %98, ptr %23, align 4
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.muli::RayCastOutput", ptr %99, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %100, ptr align 4 %23, i64 8, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %104

101:                                              ; preds = %91
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.muli::RayCastOutput", ptr %102, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %103, ptr align 4 %12, i64 8, i1 false), !tbaa.struct !17
  br label %104

104:                                              ; preds = %101, %97
  store i1 true, ptr %5, align 1
  store i32 1, ptr %14, align 4
  br label %105

105:                                              ; preds = %104, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %106

106:                                              ; preds = %105, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %107

107:                                              ; preds = %106, %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %108

108:                                              ; preds = %107, %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  %109 = load i1, ptr %5, align 1
  ret i1 %109
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZN4muli5CrossERKNS_4Vec2Ef(ptr noundef nonnull align 4 dereferenceable(8), float noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN4muli4Vec213NormalizeSafeEv(ptr noundef nonnull align 4 dereferenceable(8)) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZN4mulimlEfRKNS_4Vec2E(float noundef, ptr noundef nonnull align 4 dereferenceable(8)) #1

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZNK4muli4Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8)) #4 align 2

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

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

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


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

%"struct.muli::Vec2" = type { float, float }

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZN4muliplERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4muli18RayCastLineSegmentERKNS_4Vec2ES2_RKNS_12RayCastInputEPNS_13RayCastOutputE(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef nonnull align 4 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(24) %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #3 {
  %5 = alloca %"struct.muli::Vec2", align 8
  %6 = alloca %"struct.muli::Vec2", align 8
  %7 = alloca %"struct.muli::Vec2", align 8
  %8 = alloca %"struct.muli::Vec2", align 8
  %9 = alloca %"struct.muli::Vec2", align 8
  %10 = alloca %"struct.muli::Vec2", align 8
  %11 = alloca %"struct.muli::Vec2", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %12 = getelementptr inbounds i8, ptr %2, i64 8
  %13 = tail call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 4 dereferenceable(8) %2)
  store <2 x float> %13, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %14 = tail call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %1, ptr noundef nonnull align 4 dereferenceable(8) %0)
  store <2 x float> %14, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %15 = call <2 x float> @_ZN4muli5CrossERKNS_4Vec2Ef(ptr noundef nonnull align 4 dereferenceable(8) %6, float noundef 1.000000e+00)
  store <2 x float> %15, ptr %7, align 8
  %16 = call noundef float @_ZN4muli4Vec213NormalizeSafeEv(ptr noundef nonnull align 4 dereferenceable(8) %7)
  %17 = fcmp oeq float %16, 0.000000e+00
  br i1 %17, label %52, label %18

18:                                               ; preds = %4
  %19 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %5)
  %20 = fcmp oeq float %19, 0.000000e+00
  br i1 %20, label %52, label %21

21:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %22 = call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %0, ptr noundef nonnull align 4 dereferenceable(8) %2)
  store <2 x float> %22, ptr %8, align 8
  %23 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  %24 = fcmp olt float %19, 0.000000e+00
  %25 = getelementptr inbounds i8, ptr %2, i64 20
  %26 = load float, ptr %25, align 4
  %27 = fneg float %26
  %.029.p = select i1 %24, float %26, float %27
  %.029 = fadd float %23, %.029.p
  %28 = fdiv float %.029, %19
  %29 = fcmp olt float %28, 0.000000e+00
  %30 = getelementptr inbounds i8, ptr %2, i64 16
  %31 = load float, ptr %30, align 4
  %32 = fcmp ogt float %28, %31
  %or.cond = select i1 %29, i1 true, i1 %32
  br i1 %or.cond, label %52, label %33

33:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %34 = call <2 x float> @_ZN4mulimlEfRKNS_4Vec2E(float noundef %28, ptr noundef nonnull align 4 dereferenceable(8) %5)
  store <2 x float> %34, ptr %10, align 8
  %35 = call <2 x float> @_ZN4muliplERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(8) %10)
  store <2 x float> %35, ptr %9, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %36 = call <2 x float> @_ZN4mulimiERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(8) %0)
  store <2 x float> %36, ptr %11, align 8
  %37 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  %38 = fcmp olt float %37, 0.000000e+00
  br i1 %38, label %51, label %39

39:                                               ; preds = %33
  %40 = call noundef float @_ZN4muli3DotERKNS_4Vec2ES2_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %6)
  %41 = fcmp ogt float %37, %40
  br i1 %41, label %51, label %42

42:                                               ; preds = %39
  %43 = getelementptr inbounds i8, ptr %3, i64 8
  store float %28, ptr %43, align 4, !tbaa !5
  %44 = fcmp ogt float %19, 0.000000e+00
  br i1 %44, label %45, label %48

45:                                               ; preds = %42
  %46 = call <2 x float> @_ZNK4muli4Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8) %7)
  %47 = bitcast <2 x float> %46 to i64
  br label %50

48:                                               ; preds = %42
  %49 = load i64, ptr %7, align 8
  br label %50

50:                                               ; preds = %48, %45
  %storemerge = phi i64 [ %49, %48 ], [ %47, %45 ]
  store i64 %storemerge, ptr %3, align 4
  br label %51

51:                                               ; preds = %33, %39, %50
  %.0 = phi i1 [ true, %50 ], [ false, %39 ], [ false, %33 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %52

52:                                               ; preds = %18, %21, %51, %4
  %.3 = phi i1 [ false, %4 ], [ false, %18 ], [ %.0, %51 ], [ false, %21 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  ret i1 %.3
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZN4muli5CrossERKNS_4Vec2Ef(ptr noundef nonnull align 4 dereferenceable(8), float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN4muli4Vec213NormalizeSafeEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZN4mulimlEfRKNS_4Vec2E(float noundef, ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZNK4muli4Vec2ngEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2

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


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