; LLVM IR from atlantis13579/Riemann :: Src/CollisionPrimitive (ConvexMesh)

; 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.Riemann::ConvexMesh" = type { ptr, ptr, ptr, ptr, i16, i16, i16, i16, %"class.std::vector", %"class.Maths::TAABB3" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Maths::TAABB3" = type { %"class.Maths::TVector3", %"class.Maths::TVector3" }
%"class.Maths::TVector3" = type { float, float, float }
%"struct.Riemann::ConvexMeshFace" = type { %"class.Riemann::Plane3", i16, i8, i8 }
%"class.Riemann::Plane3" = type { %"class.Maths::TVector3", float }

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

; 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 @_ZNK7Riemann10ConvexMesh12IntersectRayERKN5Maths8TVector3IfEES5_Pf(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef %3) #1 align 2 {
  %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 i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca i16, align 2
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca float, align 4
  %18 = alloca i8, align 1
  %19 = alloca float, align 4
  %20 = alloca float, 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
  %21 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #3
  store i8 1, ptr %11, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  store float 0.000000e+00, ptr %12, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  store float 1.000000e+00, ptr %13, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 2, ptr %14) #3
  store i16 0, ptr %14, align 2, !tbaa !15
  br label %22

22:                                               ; preds = %86, %4
  %23 = load i16, ptr %14, align 2, !tbaa !15
  %24 = zext i16 %23 to i32
  %25 = getelementptr inbounds %"class.Riemann::ConvexMesh", ptr %21, i32 0, i32 6
  %26 = load i16, ptr %25, align 4, !tbaa !17
  %27 = zext i16 %26 to i32
  %28 = icmp slt i32 %24, %27
  br i1 %28, label %30, label %29

29:                                               ; preds = %22
  store i32 2, ptr %15, align 4
  br label %89

30:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %31 = getelementptr inbounds %"class.Riemann::ConvexMesh", ptr %21, i32 0, i32 2
  %32 = load ptr, ptr %31, align 8, !tbaa !25
  %33 = load i16, ptr %14, align 2, !tbaa !15
  %34 = zext i16 %33 to i64
  %35 = getelementptr inbounds %"struct.Riemann::ConvexMeshFace", ptr %32, i64 %34
  %36 = getelementptr inbounds %"struct.Riemann::ConvexMeshFace", ptr %35, i32 0, i32 0
  store ptr %36, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = load ptr, ptr %16, align 8, !tbaa !5
  %39 = getelementptr inbounds %"class.Riemann::Plane3", ptr %38, i32 0, i32 0
  %40 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %37, ptr noundef nonnull align 4 dereferenceable(12) %39)
  %41 = load ptr, ptr %16, align 8, !tbaa !5
  %42 = getelementptr inbounds %"class.Riemann::Plane3", ptr %41, i32 0, i32 1
  %43 = load float, ptr %42, align 4, !tbaa !26
  %44 = fadd float %40, %43
  store float %44, ptr %17, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #3
  %45 = load float, ptr %17, align 4, !tbaa !13
  %46 = fcmp ogt float %45, 0.000000e+00
  %47 = zext i1 %46 to i8
  store i8 %47, ptr %18, align 1, !tbaa !11
  %48 = load i8, ptr %18, align 1, !tbaa !11, !range !28, !noundef !29
  %49 = trunc i8 %48 to i1
  br i1 %49, label %50, label %51

50:                                               ; preds = %30
  store i8 0, ptr %11, align 1, !tbaa !11
  br label %51

51:                                               ; preds = %50, %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = load ptr, ptr %16, align 8, !tbaa !5
  %54 = getelementptr inbounds %"class.Riemann::Plane3", ptr %53, i32 0, i32 0
  %55 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %52, ptr noundef nonnull align 4 dereferenceable(12) %54)
  store float %55, ptr %19, align 4, !tbaa !13
  %56 = load float, ptr %19, align 4, !tbaa !13
  %57 = call noundef float @_ZSt3absf(float noundef %56)
  %58 = fcmp oge float %57, 0x3EB0C6F7A0000000
  br i1 %58, label %59, label %77

59:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  %60 = load float, ptr %17, align 4, !tbaa !13
  %61 = fneg float %60
  %62 = load float, ptr %19, align 4, !tbaa !13
  %63 = fdiv float %61, %62
  store float %63, ptr %20, align 4, !tbaa !13
  %64 = load float, ptr %19, align 4, !tbaa !13
  %65 = fcmp olt float %64, 0.000000e+00
  br i1 %65, label %66, label %71

66:                                               ; preds = %59
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %68 = load float, ptr %67, align 4, !tbaa !13
  store float %68, ptr %12, align 4, !tbaa !13
  %69 = load i32, ptr %10, align 4, !tbaa !9
  %70 = or i32 %69, 1
  store i32 %70, ptr %10, align 4, !tbaa !9
  br label %76

71:                                               ; preds = %59
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %73 = load float, ptr %72, align 4, !tbaa !13
  store float %73, ptr %13, align 4, !tbaa !13
  %74 = load i32, ptr %10, align 4, !tbaa !9
  %75 = or i32 %74, 2
  store i32 %75, ptr %10, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %71, %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  br label %82

77:                                               ; preds = %51
  %78 = load i8, ptr %18, align 1, !tbaa !11, !range !28, !noundef !29
  %79 = trunc i8 %78 to i1
  br i1 %79, label %80, label %81

80:                                               ; preds = %77
  store i1 false, ptr %5, align 1
  store i32 1, ptr %15, align 4
  br label %83

81:                                               ; preds = %77
  br label %82

82:                                               ; preds = %81, %76
  store i32 0, ptr %15, align 4
  br label %83

83:                                               ; preds = %82, %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  %84 = load i32, ptr %15, align 4
  switch i32 %84, label %89 [
    i32 0, label %85
  ]

85:                                               ; preds = %83
  br label %86

86:                                               ; preds = %85
  %87 = load i16, ptr %14, align 2, !tbaa !15
  %88 = add i16 %87, 1
  store i16 %88, ptr %14, align 2, !tbaa !15
  br label %22, !llvm.loop !30

89:                                               ; preds = %83, %29
  call void @llvm.lifetime.end.p0(i64 2, ptr %14) #3
  %90 = load i32, ptr %15, align 4
  switch i32 %90, label %106 [
    i32 2, label %91
  ]

91:                                               ; preds = %89
  %92 = load i32, ptr %10, align 4, !tbaa !9
  %93 = icmp eq i32 %92, 3
  br i1 %93, label %94, label %105

94:                                               ; preds = %91
  %95 = load float, ptr %12, align 4, !tbaa !13
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  store float %95, ptr %96, align 4, !tbaa !13
  %97 = load float, ptr %12, align 4, !tbaa !13
  %98 = load float, ptr %13, align 4, !tbaa !13
  %99 = fcmp ole float %97, %98
  br i1 %99, label %100, label %103

100:                                              ; preds = %94
  %101 = load float, ptr %13, align 4, !tbaa !13
  %102 = fcmp oge float %101, 0.000000e+00
  br label %103

103:                                              ; preds = %100, %94
  %104 = phi i1 [ false, %94 ], [ %102, %100 ]
  store i1 %104, ptr %5, align 1
  store i32 1, ptr %15, align 4
  br label %106

105:                                              ; preds = %91
  store i1 false, ptr %5, align 1
  store i32 1, ptr %15, align 4
  br label %106

106:                                              ; preds = %105, %103, %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  %107 = load i1, ptr %5, align 1
  ret i1 %107
}

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!18, !16, i64 36}
!18 = !{!"_ZTSN7Riemann10ConvexMeshE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !16, i64 32, !16, i64 34, !16, i64 36, !16, i64 38, !19, i64 40, !23, i64 64}
!19 = !{!"_ZTSSt6vectorIcSaIcEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSN5Maths6TAABB3IfEE", !24, i64 0, !24, i64 12}
!24 = !{!"_ZTSN5Maths8TVector3IfEE", !14, i64 0, !14, i64 4, !14, i64 8}
!25 = !{!18, !6, i64 16}
!26 = !{!27, !14, i64 12}
!27 = !{!"_ZTSN7Riemann6Plane3E", !24, i64 0, !14, i64 12}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}


; 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::ConvexMeshFace" = type { %"class.Riemann::Plane3", i16, i8, i8 }
%"class.Riemann::Plane3" = type { %"class.Maths::TVector3", float }
%"class.Maths::TVector3" = type { float, 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZNK7Riemann10ConvexMesh12IntersectRayERKN5Maths8TVector3IfEES5_Pf(ptr nocapture noundef nonnull readonly align 8 dereferenceable(88) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #1 align 2 {
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  store float 0.000000e+00, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
  store float 1.000000e+00, ptr %6, align 4, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 36
  %9 = load i16, ptr %8, align 4, !tbaa !9
  %.not38.not = icmp eq i16 %9, 0
  br i1 %.not38.not, label %.thread33, label %.lr.ph

.lr.ph:                                           ; preds = %4
  %10 = getelementptr inbounds i8, ptr %0, i64 16
  br label %11

11:                                               ; preds = %.lr.ph, %35
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %35 ]
  %.02340 = phi i32 [ 0, %.lr.ph ], [ %.326.ph, %35 ]
  %12 = load ptr, ptr %10, align 8, !tbaa !19
  %13 = getelementptr inbounds %"struct.Riemann::ConvexMeshFace", ptr %12, i64 %indvars.iv
  %14 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) %13)
  %15 = getelementptr inbounds i8, ptr %13, i64 12
  %16 = load float, ptr %15, align 4, !tbaa !20
  %17 = fadd float %14, %16
  %18 = call noundef float @_ZNK5Maths8TVector3IfE3DotERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %13)
  %19 = call noundef float @_ZSt3absf(float noundef %18)
  %20 = fcmp ult float %19, 0x3EB0C6F7A0000000
  br i1 %20, label %33, label %21

21:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #3
  %22 = fneg float %17
  %23 = fdiv float %22, %18
  store float %23, ptr %7, align 4, !tbaa !5
  %24 = fcmp olt float %18, 0.000000e+00
  br i1 %24, label %25, label %28

25:                                               ; preds = %21
  %26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %27 = load float, ptr %26, align 4, !tbaa !5
  store float %27, ptr %5, align 4, !tbaa !5
  br label %31

28:                                               ; preds = %21
  %29 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %30 = load float, ptr %29, align 4, !tbaa !5
  store float %30, ptr %6, align 4, !tbaa !5
  br label %31

31:                                               ; preds = %28, %25
  %.sink = phi i32 [ 2, %28 ], [ 1, %25 ]
  %32 = or i32 %.02340, %.sink
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #3
  br label %35

33:                                               ; preds = %11
  %34 = fcmp ogt float %17, 0.000000e+00
  br i1 %34, label %.thread33, label %35

35:                                               ; preds = %33, %31
  %.326.ph = phi i32 [ %32, %31 ], [ %.02340, %33 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %36 = load i16, ptr %8, align 4, !tbaa !9
  %37 = zext i16 %36 to i64
  %.not = icmp ult i64 %indvars.iv.next, %37
  br i1 %.not, label %11, label %._crit_edge, !llvm.loop !22

._crit_edge:                                      ; preds = %35
  %38 = icmp eq i32 %.326.ph, 3
  br i1 %38, label %39, label %.thread33

39:                                               ; preds = %._crit_edge
  %40 = load float, ptr %5, align 4, !tbaa !5
  store float %40, ptr %3, align 4, !tbaa !5
  %41 = load float, ptr %6, align 4
  %42 = fcmp ole float %40, %41
  %43 = fcmp oge float %41, 0.000000e+00
  %44 = and i1 %42, %43
  br label %.thread33

.thread33:                                        ; preds = %33, %4, %._crit_edge, %39
  %.3 = phi i1 [ %44, %39 ], [ false, %._crit_edge ], [ false, %4 ], [ false, %33 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  ret i1 %.3
}

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIfERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #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 = { 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 = { 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"}
!9 = !{!10, !12, i64 36}
!10 = !{!"_ZTSN7Riemann10ConvexMeshE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !12, i64 32, !12, i64 34, !12, i64 36, !12, i64 38, !13, i64 40, !17, i64 64}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!"_ZTSSt6vectorIcSaIcEE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!17 = !{!"_ZTSN5Maths6TAABB3IfEE", !18, i64 0, !18, i64 12}
!18 = !{!"_ZTSN5Maths8TVector3IfEE", !6, i64 0, !6, i64 4, !6, i64 8}
!19 = !{!10, !11, i64 16}
!20 = !{!21, !6, i64 12}
!21 = !{!"_ZTSN7Riemann6Plane3E", !18, i64 0, !6, i64 12}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass