; LLVM IR from niessner/Matterport :: code/gaps/pkgs/R3Shapes/R3Mesh.ll (ZN6R3Mesh5EmptyEv)

; 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.R3Box = type { %class.R3Solid, %class.R3Point, %class.R3Point }
%class.R3Solid = type { %class.R3Shape }
%class.R3Shape = type { ptr }
%class.R3Point = type { [3 x double] }
%class.R3Mesh = type { ptr, %class.RNArray, %class.RNArray.0, %class.RNArray.1, ptr, ptr, ptr, [128 x i8], %class.R3Box, ptr }
%class.RNArray = type { %class.RNVArray }
%class.RNVArray = type { ptr, i32, i32 }
%class.RNArray.0 = type { %class.RNVArray }
%class.RNArray.1 = type { %class.RNVArray }
%class.R3MeshVertex = type { ptr, %class.RNArray.0, %class.R3Point, %class.R3Vector, %class.R2Point, %class.RNRgb, double, i32, %class.RNFlags, double, i32, ptr }
%class.R3Vector = type { [3 x double] }
%class.R2Point = type { [2 x double] }
%class.RNRgb = type { [3 x double] }
%class.RNFlags = type { i64 }
%class.R3MeshEdge = type { ptr, [2 x ptr], [2 x ptr], double, i32, %class.RNFlags, double, i32, ptr }
%class.R3MeshFace = type { ptr, [3 x ptr], [3 x ptr], %class.R3Plane, %class.R3Box, double, i32, i32, i32, i32, %class.RNFlags, double, i32, ptr }
%class.R3Plane = type { %class.R3Vector, double }

@R3null_box = external global %class.R3Box, align 8

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK6R3Mesh9NVerticesEv(ptr noundef nonnull align 8 dereferenceable(272)) #0 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPvm(ptr noundef, i64 noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZNK6R3Mesh6VertexEi(ptr noundef nonnull align 8 dereferenceable(272), i32 noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK6R3Mesh6NEdgesEv(ptr noundef nonnull align 8 dereferenceable(272)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZNK6R3Mesh4EdgeEi(ptr noundef nonnull align 8 dereferenceable(272), i32 noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK6R3Mesh6NFacesEv(ptr noundef nonnull align 8 dereferenceable(272)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZNK6R3Mesh4FaceEi(ptr noundef nonnull align 8 dereferenceable(272), i32 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6R3Mesh5EmptyEv(ptr noundef nonnull align 8 dereferenceable(272) %0) unnamed_addr #2 align 2 {
  %2 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %3 = load ptr, ptr %2, align 8
  br label %4

4:                                                ; preds = %7, %1
  %5 = call noundef i32 @_ZNK6R3Mesh6NFacesEv(ptr noundef nonnull align 8 dereferenceable(272) %3)
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %7, label %12

7:                                                ; preds = %4
  %8 = call noundef ptr @_ZNK6R3Mesh4FaceEi(ptr noundef nonnull align 8 dereferenceable(272) %3, i32 noundef 0)
  %9 = load ptr, ptr %3, align 8, !tbaa !9
  %10 = getelementptr inbounds ptr, ptr %9, i64 14
  %11 = load ptr, ptr %10, align 8
  call void %11(ptr noundef nonnull align 8 dereferenceable(272) %3, ptr noundef %8)
  br label %4, !llvm.loop !11

12:                                               ; preds = %4
  br label %13

13:                                               ; preds = %16, %12
  %14 = call noundef i32 @_ZNK6R3Mesh6NEdgesEv(ptr noundef nonnull align 8 dereferenceable(272) %3)
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %16, label %21

16:                                               ; preds = %13
  %17 = call noundef ptr @_ZNK6R3Mesh4EdgeEi(ptr noundef nonnull align 8 dereferenceable(272) %3, i32 noundef 0)
  %18 = load ptr, ptr %3, align 8, !tbaa !9
  %19 = getelementptr inbounds ptr, ptr %18, i64 13
  %20 = load ptr, ptr %19, align 8
  call void %20(ptr noundef nonnull align 8 dereferenceable(272) %3, ptr noundef %17)
  br label %13, !llvm.loop !13

21:                                               ; preds = %13
  br label %22

22:                                               ; preds = %25, %21
  %23 = call noundef i32 @_ZNK6R3Mesh9NVerticesEv(ptr noundef nonnull align 8 dereferenceable(272) %3)
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %25, label %30

25:                                               ; preds = %22
  %26 = call noundef ptr @_ZNK6R3Mesh6VertexEi(ptr noundef nonnull align 8 dereferenceable(272) %3, i32 noundef 0)
  %27 = load ptr, ptr %3, align 8, !tbaa !9
  %28 = getelementptr inbounds ptr, ptr %27, i64 12
  %29 = load ptr, ptr %28, align 8
  call void %29(ptr noundef nonnull align 8 dereferenceable(272) %3, ptr noundef %26)
  br label %22, !llvm.loop !14

30:                                               ; preds = %22
  %31 = getelementptr inbounds %class.R3Mesh, ptr %3, i32 0, i32 4
  %32 = load ptr, ptr %31, align 8, !tbaa !15
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %52

34:                                               ; preds = %30
  %35 = getelementptr inbounds %class.R3Mesh, ptr %3, i32 0, i32 4
  %36 = load ptr, ptr %35, align 8, !tbaa !15
  %37 = icmp eq ptr %36, null
  br i1 %37, label %50, label %38

38:                                               ; preds = %34
  %39 = getelementptr inbounds i8, ptr %36, i64 -8
  %40 = load i64, ptr %39, align 8
  %41 = getelementptr inbounds %class.R3MeshVertex, ptr %36, i64 %40
  %42 = icmp eq ptr %36, %41
  br i1 %42, label %47, label %43

43:                                               ; preds = %43, %38
  %44 = phi ptr [ %41, %38 ], [ %45, %43 ]
  %45 = getelementptr inbounds %class.R3MeshVertex, ptr %44, i64 -1
  call void @_ZN12R3MeshVertexD1Ev(ptr noundef nonnull align 8 dereferenceable(160) %45) #3
  %46 = icmp eq ptr %45, %36
  br i1 %46, label %47, label %43

47:                                               ; preds = %43, %38
  %48 = mul i64 160, %40
  %49 = add i64 %48, 8
  call void @_ZdaPvm(ptr noundef %39, i64 noundef %49) #4
  br label %50

50:                                               ; preds = %47, %34
  %51 = getelementptr inbounds %class.R3Mesh, ptr %3, i32 0, i32 4
  store ptr null, ptr %51, align 8, !tbaa !15
  br label %52

52:                                               ; preds = %50, %30
  %53 = getelementptr inbounds %class.R3Mesh, ptr %3, i32 0, i32 5
  %54 = load ptr, ptr %53, align 8, !tbaa !26
  %55 = icmp ne ptr %54, null
  br i1 %55, label %56, label %74

56:                                               ; preds = %52
  %57 = getelementptr inbounds %class.R3Mesh, ptr %3, i32 0, i32 5
  %58 = load ptr, ptr %57, align 8, !tbaa !26
  %59 = icmp eq ptr %58, null
  br i1 %59, label %72, label %60

60:                                               ; preds = %56
  %61 = getelementptr inbounds i8, ptr %58, i64 -8
  %62 = load i64, ptr %61, align 8
  %63 = getelementptr inbounds %class.R3MeshEdge, ptr %58, i64 %62
  %64 = icmp eq ptr %58, %63
  br i1 %64, label %69, label %65

65:                                               ; preds = %65, %60
  %66 = phi ptr [ %63, %60 ], [ %67, %65 ]
  %67 = getelementptr inbounds %class.R3MeshEdge, ptr %66, i64 -1
  call void @_ZN10R3MeshEdgeD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %67) #3
  %68 = icmp eq ptr %67, %58
  br i1 %68, label %69, label %65

69:                                               ; preds = %65, %60
  %70 = mul i64 88, %62
  %71 = add i64 %70, 8
  call void @_ZdaPvm(ptr noundef %61, i64 noundef %71) #4
  br label %72

72:                                               ; preds = %69, %56
  %73 = getelementptr inbounds %class.R3Mesh, ptr %3, i32 0, i32 5
  store ptr null, ptr %73, align 8, !tbaa !26
  br label %74

74:                                               ; preds = %72, %52
  %75 = getelementptr inbounds %class.R3Mesh, ptr %3, i32 0, i32 6
  %76 = load ptr, ptr %75, align 8, !tbaa !27
  %77 = icmp ne ptr %76, null
  br i1 %77, label %78, label %96

78:                                               ; preds = %74
  %79 = getelementptr inbounds %class.R3Mesh, ptr %3, i32 0, i32 6
  %80 = load ptr, ptr %79, align 8, !tbaa !27
  %81 = icmp eq ptr %80, null
  br i1 %81, label %94, label %82

82:                                               ; preds = %78
  %83 = getelementptr inbounds i8, ptr %80, i64 -8
  %84 = load i64, ptr %83, align 8
  %85 = getelementptr inbounds %class.R3MeshFace, ptr %80, i64 %84
  %86 = icmp eq ptr %80, %85
  br i1 %86, label %91, label %87

87:                                               ; preds = %87, %82
  %88 = phi ptr [ %85, %82 ], [ %89, %87 ]
  %89 = getelementptr inbounds %class.R3MeshFace, ptr %88, i64 -1
  call void @_ZN10R3MeshFaceD1Ev(ptr noundef nonnull align 8 dereferenceable(200) %89) #3
  %90 = icmp eq ptr %89, %80
  br i1 %90, label %91, label %87

91:                                               ; preds = %87, %82
  %92 = mul i64 200, %84
  %93 = add i64 %92, 8
  call void @_ZdaPvm(ptr noundef %83, i64 noundef %93) #4
  br label %94

94:                                               ; preds = %91, %78
  %95 = getelementptr inbounds %class.R3Mesh, ptr %3, i32 0, i32 6
  store ptr null, ptr %95, align 8, !tbaa !27
  br label %96

96:                                               ; preds = %94, %74
  %97 = getelementptr inbounds %class.R3Mesh, ptr %3, i32 0, i32 8
  %98 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZN5R3BoxaSERKS_(ptr noundef nonnull align 8 dereferenceable(56) %97, ptr noundef nonnull align 8 dereferenceable(56) @R3null_box)
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN5R3BoxaSERKS_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) #0 align 2

declare void @_ZN12R3MeshVertexD1Ev(ptr)

declare void @_ZN10R3MeshEdgeD1Ev(ptr)

declare void @_ZN10R3MeshFaceD1Ev(ptr)

attributes #0 = { 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 #1 = { nobuiltin nounwind "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 = { nounwind }
attributes #4 = { builtin 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 = !{!"vtable pointer", !8, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = !{!16, !6, i64 56}
!16 = !{!"_ZTS6R3Mesh", !17, i64 8, !20, i64 24, !21, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !7, i64 80, !22, i64 208, !6, i64 264}
!17 = !{!"_ZTS7RNArrayIP12R3MeshVertexE", !18, i64 0}
!18 = !{!"_ZTS8RNVArray", !6, i64 0, !19, i64 8, !19, i64 12}
!19 = !{!"int", !7, i64 0}
!20 = !{!"_ZTS7RNArrayIP10R3MeshEdgeE", !18, i64 0}
!21 = !{!"_ZTS7RNArrayIP10R3MeshFaceE", !18, i64 0}
!22 = !{!"_ZTS5R3Box", !23, i64 0, !25, i64 8, !25, i64 32}
!23 = !{!"_ZTS7R3Solid", !24, i64 0}
!24 = !{!"_ZTS7R3Shape"}
!25 = !{!"_ZTS7R3Point", !7, i64 0}
!26 = !{!16, !6, i64 64}
!27 = !{!16, !6, i64 72}


; 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.R3Box = type { %class.R3Solid, %class.R3Point, %class.R3Point }
%class.R3Solid = type { %class.R3Shape }
%class.R3Shape = type { ptr }
%class.R3Point = type { [3 x double] }
%class.R3MeshVertex = type { ptr, %class.RNArray.0, %class.R3Point, %class.R3Vector, %class.R2Point, %class.RNRgb, double, i32, %class.RNFlags, double, i32, ptr }
%class.RNArray.0 = type { %class.RNVArray }
%class.RNVArray = type { ptr, i32, i32 }
%class.R3Vector = type { [3 x double] }
%class.R2Point = type { [2 x double] }
%class.RNRgb = type { [3 x double] }
%class.RNFlags = type { i64 }
%class.R3MeshEdge = type { ptr, [2 x ptr], [2 x ptr], double, i32, %class.RNFlags, double, i32, ptr }
%class.R3MeshFace = type { ptr, [3 x ptr], [3 x ptr], %class.R3Plane, %class.R3Box, double, i32, i32, i32, i32, %class.RNFlags, double, i32, ptr }
%class.R3Plane = type { %class.R3Vector, double }

@R3null_box = external global %class.R3Box, align 8

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK6R3Mesh9NVerticesEv(ptr noundef nonnull align 8 dereferenceable(272)) local_unnamed_addr #0 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPvm(ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZNK6R3Mesh6VertexEi(ptr noundef nonnull align 8 dereferenceable(272), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK6R3Mesh6NEdgesEv(ptr noundef nonnull align 8 dereferenceable(272)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZNK6R3Mesh4EdgeEi(ptr noundef nonnull align 8 dereferenceable(272), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK6R3Mesh6NFacesEv(ptr noundef nonnull align 8 dereferenceable(272)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZNK6R3Mesh4FaceEi(ptr noundef nonnull align 8 dereferenceable(272), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6R3Mesh5EmptyEv(ptr noundef nonnull align 8 dereferenceable(272) %0) unnamed_addr #2 align 2 {
  %2 = tail call noundef i32 @_ZNK6R3Mesh6NFacesEv(ptr noundef nonnull align 8 dereferenceable(272) %0)
  %3 = icmp sgt i32 %2, 0
  br i1 %3, label %.lr.ph, label %.preheader13

.preheader13:                                     ; preds = %.lr.ph, %1
  %4 = tail call noundef i32 @_ZNK6R3Mesh6NEdgesEv(ptr noundef nonnull align 8 dereferenceable(272) %0)
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %.lr.ph14, label %.preheader12

.lr.ph:                                           ; preds = %1, %.lr.ph
  %6 = tail call noundef ptr @_ZNK6R3Mesh4FaceEi(ptr noundef nonnull align 8 dereferenceable(272) %0, i32 noundef 0)
  %7 = load ptr, ptr %0, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 112
  %9 = load ptr, ptr %8, align 8
  tail call void %9(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %6)
  %10 = tail call noundef i32 @_ZNK6R3Mesh6NFacesEv(ptr noundef nonnull align 8 dereferenceable(272) %0)
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %.lr.ph, label %.preheader13, !llvm.loop !8

.preheader12:                                     ; preds = %.lr.ph14, %.preheader13
  %12 = tail call noundef i32 @_ZNK6R3Mesh9NVerticesEv(ptr noundef nonnull align 8 dereferenceable(272) %0)
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph15, label %._crit_edge

.lr.ph14:                                         ; preds = %.preheader13, %.lr.ph14
  %14 = tail call noundef ptr @_ZNK6R3Mesh4EdgeEi(ptr noundef nonnull align 8 dereferenceable(272) %0, i32 noundef 0)
  %15 = load ptr, ptr %0, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %15, i64 104
  %17 = load ptr, ptr %16, align 8
  tail call void %17(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %14)
  %18 = tail call noundef i32 @_ZNK6R3Mesh6NEdgesEv(ptr noundef nonnull align 8 dereferenceable(272) %0)
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.lr.ph14, label %.preheader12, !llvm.loop !10

.lr.ph15:                                         ; preds = %.preheader12, %.lr.ph15
  %20 = tail call noundef ptr @_ZNK6R3Mesh6VertexEi(ptr noundef nonnull align 8 dereferenceable(272) %0, i32 noundef 0)
  %21 = load ptr, ptr %0, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %21, i64 96
  %23 = load ptr, ptr %22, align 8
  tail call void %23(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %20)
  %24 = tail call noundef i32 @_ZNK6R3Mesh9NVerticesEv(ptr noundef nonnull align 8 dereferenceable(272) %0)
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %.lr.ph15, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph15, %.preheader12
  %26 = getelementptr inbounds i8, ptr %0, i64 56
  %27 = load ptr, ptr %26, align 8, !tbaa !12
  %.not = icmp eq ptr %27, null
  br i1 %.not, label %38, label %28

28:                                               ; preds = %._crit_edge
  %29 = getelementptr inbounds i8, ptr %27, i64 -8
  %30 = load i64, ptr %29, align 8
  %31 = icmp eq i64 %30, 0
  br i1 %31, label %.loopexit11, label %.preheader10.preheader

.preheader10.preheader:                           ; preds = %28
  %32 = getelementptr inbounds %class.R3MeshVertex, ptr %27, i64 %30
  br label %.preheader10

.preheader10:                                     ; preds = %.preheader10.preheader, %.preheader10
  %33 = phi ptr [ %34, %.preheader10 ], [ %32, %.preheader10.preheader ]
  %34 = getelementptr inbounds i8, ptr %33, i64 -160
  tail call void @_ZN12R3MeshVertexD1Ev(ptr noundef nonnull align 8 dereferenceable(160) %34) #3
  %35 = icmp eq ptr %34, %27
  br i1 %35, label %.loopexit11, label %.preheader10

.loopexit11:                                      ; preds = %.preheader10, %28
  %36 = mul i64 %30, 160
  %37 = or disjoint i64 %36, 8
  tail call void @_ZdaPvm(ptr noundef nonnull %29, i64 noundef %37) #4
  store ptr null, ptr %26, align 8, !tbaa !12
  br label %38

38:                                               ; preds = %.loopexit11, %._crit_edge
  %39 = getelementptr inbounds i8, ptr %0, i64 64
  %40 = load ptr, ptr %39, align 8, !tbaa !25
  %.not6 = icmp eq ptr %40, null
  br i1 %.not6, label %51, label %41

41:                                               ; preds = %38
  %42 = getelementptr inbounds i8, ptr %40, i64 -8
  %43 = load i64, ptr %42, align 8
  %44 = icmp eq i64 %43, 0
  br i1 %44, label %.loopexit9, label %.preheader8.preheader

.preheader8.preheader:                            ; preds = %41
  %45 = getelementptr inbounds %class.R3MeshEdge, ptr %40, i64 %43
  br label %.preheader8

.preheader8:                                      ; preds = %.preheader8.preheader, %.preheader8
  %46 = phi ptr [ %47, %.preheader8 ], [ %45, %.preheader8.preheader ]
  %47 = getelementptr inbounds i8, ptr %46, i64 -88
  tail call void @_ZN10R3MeshEdgeD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %47) #3
  %48 = icmp eq ptr %47, %40
  br i1 %48, label %.loopexit9, label %.preheader8

.loopexit9:                                       ; preds = %.preheader8, %41
  %49 = mul i64 %43, 88
  %50 = add i64 %49, 8
  tail call void @_ZdaPvm(ptr noundef nonnull %42, i64 noundef %50) #4
  store ptr null, ptr %39, align 8, !tbaa !25
  br label %51

51:                                               ; preds = %.loopexit9, %38
  %52 = getelementptr inbounds i8, ptr %0, i64 72
  %53 = load ptr, ptr %52, align 8, !tbaa !26
  %.not7 = icmp eq ptr %53, null
  br i1 %.not7, label %64, label %54

54:                                               ; preds = %51
  %55 = getelementptr inbounds i8, ptr %53, i64 -8
  %56 = load i64, ptr %55, align 8
  %57 = icmp eq i64 %56, 0
  br i1 %57, label %.loopexit, label %.preheader.preheader

.preheader.preheader:                             ; preds = %54
  %58 = getelementptr inbounds %class.R3MeshFace, ptr %53, i64 %56
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %59 = phi ptr [ %60, %.preheader ], [ %58, %.preheader.preheader ]
  %60 = getelementptr inbounds i8, ptr %59, i64 -200
  tail call void @_ZN10R3MeshFaceD1Ev(ptr noundef nonnull align 8 dereferenceable(200) %60) #3
  %61 = icmp eq ptr %60, %53
  br i1 %61, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %54
  %62 = mul i64 %56, 200
  %63 = add i64 %62, 8
  tail call void @_ZdaPvm(ptr noundef nonnull %55, i64 noundef %63) #4
  store ptr null, ptr %52, align 8, !tbaa !26
  br label %64

64:                                               ; preds = %.loopexit, %51
  %65 = getelementptr inbounds i8, ptr %0, i64 208
  %66 = tail call noundef nonnull align 8 dereferenceable(56) ptr @_ZN5R3BoxaSERKS_(ptr noundef nonnull align 8 dereferenceable(56) %65, ptr noundef nonnull align 8 dereferenceable(56) @R3null_box)
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN5R3BoxaSERKS_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #0 align 2

declare void @_ZN12R3MeshVertexD1Ev(ptr) local_unnamed_addr

declare void @_ZN10R3MeshEdgeD1Ev(ptr) local_unnamed_addr

declare void @_ZN10R3MeshFaceD1Ev(ptr) local_unnamed_addr

attributes #0 = { 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 #1 = { nobuiltin nounwind "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 = { nounwind }
attributes #4 = { builtin 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}
!11 = distinct !{!11, !9}
!12 = !{!13, !16, i64 56}
!13 = !{!"_ZTS6R3Mesh", !14, i64 8, !19, i64 24, !20, i64 40, !16, i64 56, !16, i64 64, !16, i64 72, !17, i64 80, !21, i64 208, !16, i64 264}
!14 = !{!"_ZTS7RNArrayIP12R3MeshVertexE", !15, i64 0}
!15 = !{!"_ZTS8RNVArray", !16, i64 0, !18, i64 8, !18, i64 12}
!16 = !{!"any pointer", !17, i64 0}
!17 = !{!"omnipotent char", !7, i64 0}
!18 = !{!"int", !17, i64 0}
!19 = !{!"_ZTS7RNArrayIP10R3MeshEdgeE", !15, i64 0}
!20 = !{!"_ZTS7RNArrayIP10R3MeshFaceE", !15, i64 0}
!21 = !{!"_ZTS5R3Box", !22, i64 0, !24, i64 8, !24, i64 32}
!22 = !{!"_ZTS7R3Solid", !23, i64 0}
!23 = !{!"_ZTS7R3Shape"}
!24 = !{!"_ZTS7R3Point", !17, i64 0}
!25 = !{!13, !16, i64 64}
!26 = !{!13, !16, i64 72}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass