; LLVM IR from atlantis13579/Riemann :: Src/Collision (GeometryQuery)

; 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.Riemann::IntersectResult" = type <{ i8, [7 x i8], %"class.std::vector", i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Riemann::Geometry *, std::allocator<Riemann::Geometry *>>::_Vector_impl" }
%"struct.std::_Vector_base<Riemann::Geometry *, std::allocator<Riemann::Geometry *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Riemann::Geometry *, std::allocator<Riemann::Geometry *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Riemann::Geometry *, std::allocator<Riemann::Geometry *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Riemann::GeometryQuery" = type { %"class.std::vector", ptr, ptr }
%"struct.Riemann::IntersectOption" = type { i32, %"struct.Riemann::CollisionData", ptr }
%"struct.Riemann::CollisionData" = type { i32, i32, i32, i32 }

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIPN7Riemann8GeometryESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNSt6vectorIPN7Riemann8GeometryESaIS2_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7Riemann13GeometryQuery18IntersectTest_ImplEPKNS_8GeometryERKNS_15IntersectOptionEPNS_15IntersectResultE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %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 i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"struct.Riemann::IntersectResult", align 8
  %14 = alloca i8, align 1
  %15 = alloca ptr, align 8
  %16 = alloca i32, 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
  %17 = load ptr, ptr %6, align 8
  %18 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN7Riemann15IntersectResult5ResetEv(ptr noundef nonnull align 8 dereferenceable(36) %18)
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #5
  store i8 0, ptr %10, align 1, !tbaa !9
  %19 = getelementptr inbounds %"class.Riemann::GeometryQuery", ptr %17, i32 0, i32 1
  %20 = load ptr, ptr %19, align 8, !tbaa !11
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %54

22:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %23 = getelementptr inbounds %"class.Riemann::GeometryQuery", ptr %17, i32 0, i32 0
  %24 = call noundef ptr @_ZNSt6vectorIPN7Riemann8GeometryESaIS2_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  store ptr %24, ptr %11, align 8, !tbaa !5
  %25 = load ptr, ptr %11, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %35

27:                                               ; preds = %22
  %28 = getelementptr inbounds %"class.Riemann::GeometryQuery", ptr %17, i32 0, i32 1
  %29 = load ptr, ptr %28, align 8, !tbaa !11
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = load ptr, ptr %11, align 8, !tbaa !5
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = call noundef zeroext i1 @_ZNK7Riemann8AABBTree9IntersectEPKNS_8GeometryEPPS1_PKNS_15IntersectOptionEPNS_15IntersectResultE(ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef %30, ptr noundef %31, ptr noundef %32, ptr noundef %33)
  br label %35

35:                                               ; preds = %27, %22
  %36 = phi i1 [ false, %22 ], [ %34, %27 ]
  %37 = zext i1 %36 to i8
  store i8 %37, ptr %10, align 1, !tbaa !9
  %38 = load i8, ptr %10, align 1, !tbaa !9, !range !17, !noundef !18
  %39 = trunc i8 %38 to i1
  br i1 %39, label %40, label %50

40:                                               ; preds = %35
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.Riemann::IntersectResult", ptr %41, i32 0, i32 2
  %43 = call noundef i64 @_ZNKSt6vectorIPN7Riemann8GeometryESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #5
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.Riemann::IntersectOption", ptr %44, i32 0, i32 0
  %46 = load i32, ptr %45, align 8, !tbaa !19
  %47 = zext i32 %46 to i64
  %48 = icmp uge i64 %43, %47
  br i1 %48, label %49, label %50

49:                                               ; preds = %40
  store i1 true, ptr %5, align 1
  store i32 1, ptr %12, align 4
  br label %51

50:                                               ; preds = %40, %35
  store i32 0, ptr %12, align 4
  br label %51

51:                                               ; preds = %50, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  %52 = load i32, ptr %12, align 4
  switch i32 %52, label %82 [
    i32 0, label %53
  ]

53:                                               ; preds = %51
  br label %54

54:                                               ; preds = %53, %4
  %55 = getelementptr inbounds %"class.Riemann::GeometryQuery", ptr %17, i32 0, i32 2
  %56 = load ptr, ptr %55, align 8, !tbaa !23
  %57 = icmp ne ptr %56, null
  br i1 %57, label %58, label %79

58:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 40, ptr %13) #5
  call void @_ZN7Riemann15IntersectResultC2Ev(ptr noundef nonnull align 8 dereferenceable(36) %13)
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #5
  %59 = getelementptr inbounds %"class.Riemann::GeometryQuery", ptr %17, i32 0, i32 2
  %60 = load ptr, ptr %59, align 8, !tbaa !23
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = invoke noundef zeroext i1 @_ZNK7Riemann15DynamicAABBTree9IntersectEPKNS_8GeometryEPKNS_15IntersectOptionEPNS_15IntersectResultE(ptr noundef nonnull align 8 dereferenceable(44) %60, ptr noundef %61, ptr noundef %62, ptr noundef %13)
          to label %64 unwind label %71

64:                                               ; preds = %58
  %65 = zext i1 %63 to i8
  store i8 %65, ptr %14, align 1, !tbaa !9
  %66 = load i8, ptr %14, align 1, !tbaa !9, !range !17, !noundef !18
  %67 = trunc i8 %66 to i1
  br i1 %67, label %68, label %75

68:                                               ; preds = %64
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN7Riemann15IntersectResult5MergeERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %69, ptr noundef nonnull align 8 dereferenceable(36) %13)
          to label %70 unwind label %71

70:                                               ; preds = %68
  store i1 true, ptr %5, align 1
  store i32 1, ptr %12, align 4
  br label %76

71:                                               ; preds = %68, %58
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %15, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  call void @_ZN7Riemann15IntersectResultD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %13) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  br label %84

75:                                               ; preds = %64
  store i32 0, ptr %12, align 4
  br label %76

76:                                               ; preds = %75, %70
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  call void @_ZN7Riemann15IntersectResultD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %13) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #5
  %77 = load i32, ptr %12, align 4
  switch i32 %77, label %82 [
    i32 0, label %78
  ]

78:                                               ; preds = %76
  br label %79

79:                                               ; preds = %78, %54
  %80 = load i8, ptr %10, align 1, !tbaa !9, !range !17, !noundef !18
  %81 = trunc i8 %80 to i1
  store i1 %81, ptr %5, align 1
  store i32 1, ptr %12, align 4
  br label %82

82:                                               ; preds = %79, %76, %51
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  %83 = load i1, ptr %5, align 1
  ret i1 %83

84:                                               ; preds = %71
  %85 = load ptr, ptr %15, align 8
  %86 = load i32, ptr %16, align 4
  %87 = insertvalue { ptr, i32 } poison, ptr %85, 0
  %88 = insertvalue { ptr, i32 } %87, i32 %86, 1
  resume { ptr, i32 } %88
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7Riemann15IntersectResult5ResetEv(ptr noundef nonnull align 8 dereferenceable(36)) #1 align 2

declare noundef zeroext i1 @_ZNK7Riemann8AABBTree9IntersectEPKNS_8GeometryEPPS1_PKNS_15IntersectOptionEPNS_15IntersectResultE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7Riemann15IntersectResultC2Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #1 align 2

declare noundef zeroext i1 @_ZNK7Riemann15DynamicAABBTree9IntersectEPKNS_8GeometryEPKNS_15IntersectOptionEPNS_15IntersectResultE(ptr noundef nonnull align 8 dereferenceable(44), ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Riemann15IntersectResult5MergeERKS0_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7Riemann15IntersectResultD2Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = { "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 = { 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 #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 = !{!"bool", !7, i64 0}
!11 = !{!12, !6, i64 24}
!12 = !{!"_ZTSN7Riemann13GeometryQueryE", !13, i64 0, !6, i64 24, !6, i64 32}
!13 = !{!"_ZTSSt6vectorIPN7Riemann8GeometryESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIPN7Riemann8GeometryESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIPN7Riemann8GeometryESaIS2_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIPN7Riemann8GeometryESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!20, !21, i64 0}
!20 = !{!"_ZTSN7Riemann15IntersectOptionE", !21, i64 0, !22, i64 4, !6, i64 24}
!21 = !{!"int", !7, i64 0}
!22 = !{!"_ZTSN7Riemann13CollisionDataE", !21, i64 0, !21, i64 4, !21, i64 8, !21, i64 12}
!23 = !{!12, !6, i64 32}


; 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.Riemann::IntersectResult" = type <{ i8, [7 x i8], %"class.std::vector", i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Riemann::Geometry *, std::allocator<Riemann::Geometry *>>::_Vector_impl" }
%"struct.std::_Vector_base<Riemann::Geometry *, std::allocator<Riemann::Geometry *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Riemann::Geometry *, std::allocator<Riemann::Geometry *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Riemann::Geometry *, std::allocator<Riemann::Geometry *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIPN7Riemann8GeometryESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNSt6vectorIPN7Riemann8GeometryESaIS2_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7Riemann13GeometryQuery18IntersectTest_ImplEPKNS_8GeometryERKNS_15IntersectOptionEPNS_15IntersectResultE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"struct.Riemann::IntersectResult", align 8
  tail call void @_ZN7Riemann15IntersectResult5ResetEv(ptr noundef nonnull align 8 dereferenceable(36) %3)
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %.not = icmp eq ptr %7, null
  br i1 %.not, label %.critedge, label %8

8:                                                ; preds = %4
  %9 = tail call noundef ptr @_ZNSt6vectorIPN7Riemann8GeometryESaIS2_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %.not23 = icmp eq ptr %9, null
  br i1 %.not23, label %.critedge, label %10

10:                                               ; preds = %8
  %11 = load ptr, ptr %6, align 8, !tbaa !5
  %12 = tail call noundef zeroext i1 @_ZNK7Riemann8AABBTree9IntersectEPKNS_8GeometryEPPS1_PKNS_15IntersectOptionEPNS_15IntersectResultE(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef %1, ptr noundef nonnull %9, ptr noundef nonnull %2, ptr noundef nonnull %3)
  br i1 %12, label %13, label %.critedge

13:                                               ; preds = %10
  %14 = getelementptr inbounds i8, ptr %3, i64 8
  %15 = tail call noundef i64 @_ZNKSt6vectorIPN7Riemann8GeometryESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  %16 = load i32, ptr %2, align 8, !tbaa !14
  %17 = zext i32 %16 to i64
  %.not24 = icmp ult i64 %15, %17
  br i1 %.not24, label %.critedge, label %28

.critedge:                                        ; preds = %8, %10, %13, %4
  %.020 = phi i1 [ false, %4 ], [ true, %13 ], [ false, %10 ], [ false, %8 ]
  %18 = getelementptr inbounds i8, ptr %0, i64 32
  %19 = load ptr, ptr %18, align 8, !tbaa !18
  %.not25 = icmp eq ptr %19, null
  br i1 %.not25, label %28, label %20

20:                                               ; preds = %.critedge
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #5
  call void @_ZN7Riemann15IntersectResultC2Ev(ptr noundef nonnull align 8 dereferenceable(36) %5)
  %21 = load ptr, ptr %18, align 8, !tbaa !18
  %22 = invoke noundef zeroext i1 @_ZNK7Riemann15DynamicAABBTree9IntersectEPKNS_8GeometryEPKNS_15IntersectOptionEPNS_15IntersectResultE(ptr noundef nonnull align 8 dereferenceable(44) %21, ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %5)
          to label %23 unwind label %25

23:                                               ; preds = %20
  br i1 %22, label %24, label %.critedge27

24:                                               ; preds = %23
  invoke void @_ZN7Riemann15IntersectResult5MergeERKS0_(ptr noundef nonnull align 8 dereferenceable(36) %3, ptr noundef nonnull align 8 dereferenceable(36) %5)
          to label %27 unwind label %25

25:                                               ; preds = %24, %20
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7Riemann15IntersectResultD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %5) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #5
  resume { ptr, i32 } %26

27:                                               ; preds = %24
  call void @_ZN7Riemann15IntersectResultD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %5) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #5
  br label %28

.critedge27:                                      ; preds = %23
  call void @_ZN7Riemann15IntersectResultD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %5) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #5
  br label %28

28:                                               ; preds = %.critedge, %.critedge27, %27, %13
  %.3 = phi i1 [ true, %27 ], [ true, %13 ], [ %.020, %.critedge27 ], [ %.020, %.critedge ]
  ret i1 %.3
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7Riemann15IntersectResult5ResetEv(ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #1 align 2

declare noundef zeroext i1 @_ZNK7Riemann8AABBTree9IntersectEPKNS_8GeometryEPPS1_PKNS_15IntersectOptionEPNS_15IntersectResultE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7Riemann15IntersectResultC2Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #1 align 2

declare noundef zeroext i1 @_ZNK7Riemann15DynamicAABBTree9IntersectEPKNS_8GeometryEPKNS_15IntersectOptionEPNS_15IntersectResultE(ptr noundef nonnull align 8 dereferenceable(44), ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Riemann15IntersectResult5MergeERKS0_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7Riemann15IntersectResultD2Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #4 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = { "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 = { 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 #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, !11, i64 24}
!6 = !{!"_ZTSN7Riemann13GeometryQueryE", !7, i64 0, !11, i64 24, !11, i64 32}
!7 = !{!"_ZTSSt6vectorIPN7Riemann8GeometryESaIS2_EE", !8, i64 0}
!8 = !{!"_ZTSSt12_Vector_baseIPN7Riemann8GeometryESaIS2_EE", !9, i64 0}
!9 = !{!"_ZTSNSt12_Vector_baseIPN7Riemann8GeometryESaIS2_EE12_Vector_implE", !10, i64 0}
!10 = !{!"_ZTSNSt12_Vector_baseIPN7Riemann8GeometryESaIS2_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!15, !16, i64 0}
!15 = !{!"_ZTSN7Riemann15IntersectOptionE", !16, i64 0, !17, i64 4, !11, i64 24}
!16 = !{!"int", !12, i64 0}
!17 = !{!"_ZTSN7Riemann13CollisionDataE", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12}
!18 = !{!6, !11, i64 32}


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