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

; 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::ConvexMeshEdge" = type { i16, i16 }
%"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 @_ZNK7Riemann10ConvexMesh17ValidateStructureEv(ptr noundef nonnull align 8 dereferenceable(88) %0) #1 align 2 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca i16, align 2
  %5 = alloca i32, align 4
  %6 = alloca i16, align 2
  %7 = alloca i8, align 1
  %8 = alloca i16, align 2
  store ptr %0, ptr %3, align 8, !tbaa !5
  %9 = load ptr, ptr %3, align 8
  %10 = call noundef i32 @_ZNK7Riemann10ConvexMesh11EulerNumberEv(ptr noundef nonnull align 8 dereferenceable(88) %9)
  %11 = icmp ne i32 %10, 2
  br i1 %11, label %12, label %13

12:                                               ; preds = %1
  store i1 false, ptr %2, align 1
  br label %137

13:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 2, ptr %4) #3
  store i16 0, ptr %4, align 2, !tbaa !9
  br label %14

14:                                               ; preds = %51, %13
  %15 = load i16, ptr %4, align 2, !tbaa !9
  %16 = zext i16 %15 to i32
  %17 = getelementptr inbounds %"class.Riemann::ConvexMesh", ptr %9, i32 0, i32 5
  %18 = load i16, ptr %17, align 2, !tbaa !11
  %19 = zext i16 %18 to i32
  %20 = icmp slt i32 %16, %19
  br i1 %20, label %22, label %21

21:                                               ; preds = %14
  store i32 2, ptr %5, align 4
  br label %54

22:                                               ; preds = %14
  %23 = getelementptr inbounds %"class.Riemann::ConvexMesh", ptr %9, i32 0, i32 1
  %24 = load ptr, ptr %23, align 8, !tbaa !20
  %25 = load i16, ptr %4, align 2, !tbaa !9
  %26 = zext i16 %25 to i64
  %27 = getelementptr inbounds %"struct.Riemann::ConvexMeshEdge", ptr %24, i64 %26
  %28 = getelementptr inbounds %"struct.Riemann::ConvexMeshEdge", ptr %27, i32 0, i32 0
  %29 = load i16, ptr %28, align 2, !tbaa !21
  %30 = zext i16 %29 to i32
  %31 = getelementptr inbounds %"class.Riemann::ConvexMesh", ptr %9, i32 0, i32 4
  %32 = load i16, ptr %31, align 8, !tbaa !23
  %33 = zext i16 %32 to i32
  %34 = icmp sge i32 %30, %33
  br i1 %34, label %35, label %36

35:                                               ; preds = %22
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %54

36:                                               ; preds = %22
  %37 = getelementptr inbounds %"class.Riemann::ConvexMesh", ptr %9, i32 0, i32 1
  %38 = load ptr, ptr %37, align 8, !tbaa !20
  %39 = load i16, ptr %4, align 2, !tbaa !9
  %40 = zext i16 %39 to i64
  %41 = getelementptr inbounds %"struct.Riemann::ConvexMeshEdge", ptr %38, i64 %40
  %42 = getelementptr inbounds %"struct.Riemann::ConvexMeshEdge", ptr %41, i32 0, i32 1
  %43 = load i16, ptr %42, align 2, !tbaa !24
  %44 = zext i16 %43 to i32
  %45 = getelementptr inbounds %"class.Riemann::ConvexMesh", ptr %9, i32 0, i32 4
  %46 = load i16, ptr %45, align 8, !tbaa !23
  %47 = zext i16 %46 to i32
  %48 = icmp sge i32 %44, %47
  br i1 %48, label %49, label %50

49:                                               ; preds = %36
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %54

50:                                               ; preds = %36
  br label %51

51:                                               ; preds = %50
  %52 = load i16, ptr %4, align 2, !tbaa !9
  %53 = add i16 %52, 1
  store i16 %53, ptr %4, align 2, !tbaa !9
  br label %14, !llvm.loop !25

54:                                               ; preds = %49, %35, %21
  call void @llvm.lifetime.end.p0(i64 2, ptr %4) #3
  %55 = load i32, ptr %5, align 4
  switch i32 %55, label %139 [
    i32 2, label %56
    i32 1, label %137
  ]

56:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 2, ptr %6) #3
  store i16 0, ptr %6, align 2, !tbaa !9
  br label %57

57:                                               ; preds = %103, %56
  %58 = load i16, ptr %6, align 2, !tbaa !9
  %59 = zext i16 %58 to i32
  %60 = getelementptr inbounds %"class.Riemann::ConvexMesh", ptr %9, i32 0, i32 6
  %61 = load i16, ptr %60, align 4, !tbaa !27
  %62 = zext i16 %61 to i32
  %63 = icmp slt i32 %59, %62
  br i1 %63, label %65, label %64

64:                                               ; preds = %57
  store i32 5, ptr %5, align 4
  br label %106

65:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #3
  store i8 0, ptr %7, align 1, !tbaa !28
  br label %66

66:                                               ; preds = %97, %65
  %67 = load i8, ptr %7, align 1, !tbaa !28
  %68 = zext i8 %67 to i32
  %69 = getelementptr inbounds %"class.Riemann::ConvexMesh", ptr %9, i32 0, i32 2
  %70 = load ptr, ptr %69, align 8, !tbaa !29
  %71 = load i16, ptr %6, align 2, !tbaa !9
  %72 = zext i16 %71 to i64
  %73 = getelementptr inbounds %"struct.Riemann::ConvexMeshFace", ptr %70, i64 %72
  %74 = getelementptr inbounds %"struct.Riemann::ConvexMeshFace", ptr %73, i32 0, i32 2
  %75 = load i8, ptr %74, align 2, !tbaa !30
  %76 = zext i8 %75 to i32
  %77 = icmp slt i32 %68, %76
  br i1 %77, label %79, label %78

78:                                               ; preds = %66
  store i32 8, ptr %5, align 4
  br label %100

79:                                               ; preds = %66
  %80 = getelementptr inbounds %"class.Riemann::ConvexMesh", ptr %9, i32 0, i32 2
  %81 = load ptr, ptr %80, align 8, !tbaa !29
  %82 = load i16, ptr %6, align 2, !tbaa !9
  %83 = zext i16 %82 to i64
  %84 = getelementptr inbounds %"struct.Riemann::ConvexMeshFace", ptr %81, i64 %83
  %85 = getelementptr inbounds %"struct.Riemann::ConvexMeshFace", ptr %84, i32 0, i32 1
  %86 = load i16, ptr %85, align 4, !tbaa !33
  %87 = zext i16 %86 to i32
  %88 = load i8, ptr %7, align 1, !tbaa !28
  %89 = zext i8 %88 to i32
  %90 = add nsw i32 %87, %89
  %91 = getelementptr inbounds %"class.Riemann::ConvexMesh", ptr %9, i32 0, i32 7
  %92 = load i16, ptr %91, align 2, !tbaa !34
  %93 = zext i16 %92 to i32
  %94 = icmp sge i32 %90, %93
  br i1 %94, label %95, label %96

95:                                               ; preds = %79
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %100

96:                                               ; preds = %79
  br label %97

97:                                               ; preds = %96
  %98 = load i8, ptr %7, align 1, !tbaa !28
  %99 = add i8 %98, 1
  store i8 %99, ptr %7, align 1, !tbaa !28
  br label %66, !llvm.loop !35

100:                                              ; preds = %95, %78
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #3
  %101 = load i32, ptr %5, align 4
  switch i32 %101, label %106 [
    i32 8, label %102
  ]

102:                                              ; preds = %100
  br label %103

103:                                              ; preds = %102
  %104 = load i16, ptr %6, align 2, !tbaa !9
  %105 = add i16 %104, 1
  store i16 %105, ptr %6, align 2, !tbaa !9
  br label %57, !llvm.loop !36

106:                                              ; preds = %100, %64
  call void @llvm.lifetime.end.p0(i64 2, ptr %6) #3
  %107 = load i32, ptr %5, align 4
  switch i32 %107, label %139 [
    i32 5, label %108
    i32 1, label %137
  ]

108:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 2, ptr %8) #3
  store i16 0, ptr %8, align 2, !tbaa !9
  br label %109

109:                                              ; preds = %131, %108
  %110 = load i16, ptr %8, align 2, !tbaa !9
  %111 = zext i16 %110 to i32
  %112 = getelementptr inbounds %"class.Riemann::ConvexMesh", ptr %9, i32 0, i32 7
  %113 = load i16, ptr %112, align 2, !tbaa !34
  %114 = zext i16 %113 to i32
  %115 = icmp slt i32 %111, %114
  br i1 %115, label %117, label %116

116:                                              ; preds = %109
  store i32 11, ptr %5, align 4
  br label %134

117:                                              ; preds = %109
  %118 = getelementptr inbounds %"class.Riemann::ConvexMesh", ptr %9, i32 0, i32 3
  %119 = load ptr, ptr %118, align 8, !tbaa !37
  %120 = load i16, ptr %8, align 2, !tbaa !9
  %121 = zext i16 %120 to i64
  %122 = getelementptr inbounds i8, ptr %119, i64 %121
  %123 = load i8, ptr %122, align 1, !tbaa !28
  %124 = zext i8 %123 to i32
  %125 = getelementptr inbounds %"class.Riemann::ConvexMesh", ptr %9, i32 0, i32 4
  %126 = load i16, ptr %125, align 8, !tbaa !23
  %127 = zext i16 %126 to i32
  %128 = icmp sge i32 %124, %127
  br i1 %128, label %129, label %130

129:                                              ; preds = %117
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %134

130:                                              ; preds = %117
  br label %131

131:                                              ; preds = %130
  %132 = load i16, ptr %8, align 2, !tbaa !9
  %133 = add i16 %132, 1
  store i16 %133, ptr %8, align 2, !tbaa !9
  br label %109, !llvm.loop !38

134:                                              ; preds = %129, %116
  call void @llvm.lifetime.end.p0(i64 2, ptr %8) #3
  %135 = load i32, ptr %5, align 4
  switch i32 %135, label %139 [
    i32 11, label %136
    i32 1, label %137
  ]

136:                                              ; preds = %134
  store i1 true, ptr %2, align 1
  br label %137

137:                                              ; preds = %136, %134, %106, %54, %12
  %138 = load i1, ptr %2, align 1
  ret i1 %138

139:                                              ; preds = %134, %106, %54
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7Riemann10ConvexMesh11EulerNumberEv(ptr noundef nonnull align 8 dereferenceable(88)) #2 align 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 = { 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 = !{!"short", !7, i64 0}
!11 = !{!12, !10, i64 34}
!12 = !{!"_ZTSN7Riemann10ConvexMeshE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 34, !10, i64 36, !10, i64 38, !13, i64 40, !17, i64 64}
!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", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSN5Maths6TAABB3IfEE", !18, i64 0, !18, i64 12}
!18 = !{!"_ZTSN5Maths8TVector3IfEE", !19, i64 0, !19, i64 4, !19, i64 8}
!19 = !{!"float", !7, i64 0}
!20 = !{!12, !6, i64 8}
!21 = !{!22, !10, i64 0}
!22 = !{!"_ZTSN7Riemann14ConvexMeshEdgeE", !10, i64 0, !10, i64 2}
!23 = !{!12, !10, i64 32}
!24 = !{!22, !10, i64 2}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!12, !10, i64 36}
!28 = !{!7, !7, i64 0}
!29 = !{!12, !6, i64 16}
!30 = !{!31, !7, i64 18}
!31 = !{!"_ZTSN7Riemann14ConvexMeshFaceE", !32, i64 0, !10, i64 16, !7, i64 18, !7, i64 19}
!32 = !{!"_ZTSN7Riemann6Plane3E", !18, i64 0, !19, i64 12}
!33 = !{!31, !10, i64 16}
!34 = !{!12, !10, i64 38}
!35 = distinct !{!35, !26}
!36 = distinct !{!36, !26}
!37 = !{!12, !6, i64 24}
!38 = distinct !{!38, !26}


; 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::ConvexMeshEdge" = type { i16, i16 }
%"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 nounwind uwtable
define dso_local noundef zeroext i1 @_ZNK7Riemann10ConvexMesh17ValidateStructureEv(ptr noundef nonnull align 8 dereferenceable(88) %0) local_unnamed_addr #0 align 2 {
  %2 = tail call noundef i32 @_ZNK7Riemann10ConvexMesh11EulerNumberEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  %.not = icmp eq i32 %2, 2
  br i1 %.not, label %.preheader50, label %.thread

.preheader50:                                     ; preds = %1
  %3 = getelementptr inbounds i8, ptr %0, i64 34
  %4 = load i16, ptr %3, align 2, !tbaa !5
  %.not61 = icmp eq i16 %4, 0
  br i1 %.not61, label %.preheader49, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader50
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  %6 = load ptr, ptr %5, align 8, !tbaa !18
  %7 = getelementptr inbounds i8, ptr %0, i64 32
  %8 = load i16, ptr %7, align 8, !tbaa !19
  %wide.trip.count = zext i16 %4 to i64
  br label %16

9:                                                ; preds = %19
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader49, label %16, !llvm.loop !20

.preheader49:                                     ; preds = %9, %.preheader50
  %10 = getelementptr inbounds i8, ptr %0, i64 36
  %11 = load i16, ptr %10, align 4, !tbaa !22
  %.not62 = icmp eq i16 %11, 0
  br i1 %.not62, label %.preheader49..preheader_crit_edge, label %.preheader47.lr.ph

.preheader49..preheader_crit_edge:                ; preds = %.preheader49
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 38
  %.pre = load i16, ptr %.phi.trans.insert, align 2, !tbaa !23
  br label %.preheader

.preheader47.lr.ph:                               ; preds = %.preheader49
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  %13 = load ptr, ptr %12, align 8, !tbaa !24
  %14 = getelementptr inbounds i8, ptr %0, i64 38
  %15 = load i16, ptr %14, align 2
  %wide.trip.count72 = zext i16 %11 to i64
  br label %.preheader47

16:                                               ; preds = %.lr.ph, %9
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %9 ]
  %17 = getelementptr inbounds %"struct.Riemann::ConvexMeshEdge", ptr %6, i64 %indvars.iv
  %18 = load i16, ptr %17, align 2, !tbaa !25
  %.not29 = icmp ult i16 %18, %8
  br i1 %.not29, label %19, label %.thread

19:                                               ; preds = %16
  %20 = getelementptr inbounds i8, ptr %17, i64 2
  %21 = load i16, ptr %20, align 2, !tbaa !27
  %.not30 = icmp ult i16 %21, %8
  br i1 %.not30, label %9, label %.thread

.preheader47:                                     ; preds = %.preheader47.lr.ph, %._crit_edge
  %indvars.iv69 = phi i64 [ 0, %.preheader47.lr.ph ], [ %indvars.iv.next70, %._crit_edge ]
  %22 = getelementptr inbounds %"struct.Riemann::ConvexMeshFace", ptr %13, i64 %indvars.iv69
  %23 = getelementptr inbounds i8, ptr %22, i64 18
  %24 = load i8, ptr %23, align 2, !tbaa !28
  %.not3253.not = icmp eq i8 %24, 0
  br i1 %.not3253.not, label %._crit_edge, label %.lr.ph55

.lr.ph55:                                         ; preds = %.preheader47
  %25 = getelementptr inbounds i8, ptr %22, i64 16
  %26 = load i16, ptr %25, align 4, !tbaa !31
  %27 = zext i16 %26 to i32
  %28 = tail call i16 @llvm.umax.i16(i16 %26, i16 %15)
  %umax = zext i16 %28 to i32
  %29 = sub nsw i32 %umax, %27
  %30 = add i8 %24, -1
  %31 = zext i8 %30 to i32
  %.not79.not = icmp ugt i32 %29, %31
  br i1 %.not79.not, label %._crit_edge, label %.thread

.preheader:                                       ; preds = %._crit_edge, %.preheader49..preheader_crit_edge
  %32 = phi i16 [ %.pre, %.preheader49..preheader_crit_edge ], [ %15, %._crit_edge ]
  %33 = icmp eq i16 %32, 0
  br i1 %33, label %.thread, label %.lr.ph58

.lr.ph58:                                         ; preds = %.preheader
  %34 = getelementptr inbounds i8, ptr %0, i64 24
  %35 = load ptr, ptr %34, align 8, !tbaa !32
  %36 = getelementptr inbounds i8, ptr %0, i64 32
  %37 = load i16, ptr %36, align 8, !tbaa !19
  %38 = zext i16 %32 to i64
  br label %39

._crit_edge:                                      ; preds = %.lr.ph55, %.preheader47
  %indvars.iv.next70 = add nuw nsw i64 %indvars.iv69, 1
  %exitcond73.not = icmp eq i64 %indvars.iv.next70, %wide.trip.count72
  br i1 %exitcond73.not, label %.preheader, label %.preheader47, !llvm.loop !33

39:                                               ; preds = %39, %.lr.ph58
  %indvars.iv74 = phi i64 [ 0, %.lr.ph58 ], [ %indvars.iv.next75, %39 ]
  %40 = getelementptr inbounds i8, ptr %35, i64 %indvars.iv74
  %41 = load i8, ptr %40, align 1, !tbaa !34
  %42 = zext i8 %41 to i16
  %.not33 = icmp ugt i16 %37, %42
  %.not33.not = xor i1 %.not33, true
  %indvars.iv.next75 = add nuw nsw i64 %indvars.iv74, 1
  %exitcond78 = icmp eq i64 %indvars.iv.next75, %38
  %or.cond = select i1 %.not33.not, i1 true, i1 %exitcond78
  br i1 %or.cond, label %.thread, label %39, !llvm.loop !35

.thread:                                          ; preds = %19, %16, %.lr.ph55, %39, %.preheader, %1
  %.5 = phi i1 [ false, %1 ], [ true, %.preheader ], [ %.not33, %39 ], [ false, %.lr.ph55 ], [ false, %16 ], [ false, %19 ]
  ret i1 %.5
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7Riemann10ConvexMesh11EulerNumberEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #0 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i16 @llvm.umax.i16(i16, i16) #1

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

!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, !10, i64 34}
!6 = !{!"_ZTSN7Riemann10ConvexMeshE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 34, !10, i64 36, !10, i64 38, !11, i64 40, !15, i64 64}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!"_ZTSSt6vectorIcSaIcEE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!15 = !{!"_ZTSN5Maths6TAABB3IfEE", !16, i64 0, !16, i64 12}
!16 = !{!"_ZTSN5Maths8TVector3IfEE", !17, i64 0, !17, i64 4, !17, i64 8}
!17 = !{!"float", !8, i64 0}
!18 = !{!6, !7, i64 8}
!19 = !{!6, !10, i64 32}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!6, !10, i64 36}
!23 = !{!6, !10, i64 38}
!24 = !{!6, !7, i64 16}
!25 = !{!26, !10, i64 0}
!26 = !{!"_ZTSN7Riemann14ConvexMeshEdgeE", !10, i64 0, !10, i64 2}
!27 = !{!26, !10, i64 2}
!28 = !{!29, !8, i64 18}
!29 = !{!"_ZTSN7Riemann14ConvexMeshFaceE", !30, i64 0, !10, i64 16, !8, i64 18, !8, i64 19}
!30 = !{!"_ZTSN7Riemann6Plane3E", !16, i64 0, !17, i64 12}
!31 = !{!29, !10, i64 16}
!32 = !{!6, !7, i64 24}
!33 = distinct !{!33, !21}
!34 = !{!8, !8, i64 0}
!35 = distinct !{!35, !21}


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