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

; 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.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 }
%class.R3Vector = type { [3 x double] }
%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 }

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7RNFlags3AddES_(ptr noundef nonnull align 8 dereferenceable(8), i64) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN6R3Mesh10CreateFaceEP12R3MeshVertexS1_S1_P10R3MeshEdgeS3_S3_P10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca %class.RNFlags, align 8
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store ptr %3, ptr %13, align 8, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  %21 = load ptr, ptr %10, align 8
  %22 = load ptr, ptr %14, align 8, !tbaa !5
  %23 = getelementptr inbounds %class.R3MeshEdge, ptr %22, i32 0, i32 1
  %24 = getelementptr inbounds [2 x ptr], ptr %23, i64 0, i64 0
  %25 = load ptr, ptr %24, align 8, !tbaa !5
  %26 = load ptr, ptr %11, align 8, !tbaa !5
  %27 = icmp eq ptr %25, %26
  br i1 %27, label %28, label %35

28:                                               ; preds = %8
  %29 = load ptr, ptr %14, align 8, !tbaa !5
  %30 = getelementptr inbounds %class.R3MeshEdge, ptr %29, i32 0, i32 2
  %31 = getelementptr inbounds [2 x ptr], ptr %30, i64 0, i64 0
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %35

34:                                               ; preds = %28
  store ptr null, ptr %9, align 8
  br label %138

35:                                               ; preds = %28, %8
  %36 = load ptr, ptr %14, align 8, !tbaa !5
  %37 = getelementptr inbounds %class.R3MeshEdge, ptr %36, i32 0, i32 1
  %38 = getelementptr inbounds [2 x ptr], ptr %37, i64 0, i64 0
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  %40 = load ptr, ptr %12, align 8, !tbaa !5
  %41 = icmp eq ptr %39, %40
  br i1 %41, label %42, label %49

42:                                               ; preds = %35
  %43 = load ptr, ptr %14, align 8, !tbaa !5
  %44 = getelementptr inbounds %class.R3MeshEdge, ptr %43, i32 0, i32 2
  %45 = getelementptr inbounds [2 x ptr], ptr %44, i64 0, i64 1
  %46 = load ptr, ptr %45, align 8, !tbaa !5
  %47 = icmp ne ptr %46, null
  br i1 %47, label %48, label %49

48:                                               ; preds = %42
  store ptr null, ptr %9, align 8
  br label %138

49:                                               ; preds = %42, %35
  %50 = load ptr, ptr %15, align 8, !tbaa !5
  %51 = getelementptr inbounds %class.R3MeshEdge, ptr %50, i32 0, i32 1
  %52 = getelementptr inbounds [2 x ptr], ptr %51, i64 0, i64 0
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  %54 = load ptr, ptr %12, align 8, !tbaa !5
  %55 = icmp eq ptr %53, %54
  br i1 %55, label %56, label %63

56:                                               ; preds = %49
  %57 = load ptr, ptr %15, align 8, !tbaa !5
  %58 = getelementptr inbounds %class.R3MeshEdge, ptr %57, i32 0, i32 2
  %59 = getelementptr inbounds [2 x ptr], ptr %58, i64 0, i64 0
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  %61 = icmp ne ptr %60, null
  br i1 %61, label %62, label %63

62:                                               ; preds = %56
  store ptr null, ptr %9, align 8
  br label %138

63:                                               ; preds = %56, %49
  %64 = load ptr, ptr %15, align 8, !tbaa !5
  %65 = getelementptr inbounds %class.R3MeshEdge, ptr %64, i32 0, i32 1
  %66 = getelementptr inbounds [2 x ptr], ptr %65, i64 0, i64 0
  %67 = load ptr, ptr %66, align 8, !tbaa !5
  %68 = load ptr, ptr %13, align 8, !tbaa !5
  %69 = icmp eq ptr %67, %68
  br i1 %69, label %70, label %77

70:                                               ; preds = %63
  %71 = load ptr, ptr %15, align 8, !tbaa !5
  %72 = getelementptr inbounds %class.R3MeshEdge, ptr %71, i32 0, i32 2
  %73 = getelementptr inbounds [2 x ptr], ptr %72, i64 0, i64 1
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = icmp ne ptr %74, null
  br i1 %75, label %76, label %77

76:                                               ; preds = %70
  store ptr null, ptr %9, align 8
  br label %138

77:                                               ; preds = %70, %63
  %78 = load ptr, ptr %16, align 8, !tbaa !5
  %79 = getelementptr inbounds %class.R3MeshEdge, ptr %78, i32 0, i32 1
  %80 = getelementptr inbounds [2 x ptr], ptr %79, i64 0, i64 0
  %81 = load ptr, ptr %80, align 8, !tbaa !5
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = icmp eq ptr %81, %82
  br i1 %83, label %84, label %91

84:                                               ; preds = %77
  %85 = load ptr, ptr %16, align 8, !tbaa !5
  %86 = getelementptr inbounds %class.R3MeshEdge, ptr %85, i32 0, i32 2
  %87 = getelementptr inbounds [2 x ptr], ptr %86, i64 0, i64 0
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  %89 = icmp ne ptr %88, null
  br i1 %89, label %90, label %91

90:                                               ; preds = %84
  store ptr null, ptr %9, align 8
  br label %138

91:                                               ; preds = %84, %77
  %92 = load ptr, ptr %16, align 8, !tbaa !5
  %93 = getelementptr inbounds %class.R3MeshEdge, ptr %92, i32 0, i32 1
  %94 = getelementptr inbounds [2 x ptr], ptr %93, i64 0, i64 0
  %95 = load ptr, ptr %94, align 8, !tbaa !5
  %96 = load ptr, ptr %11, align 8, !tbaa !5
  %97 = icmp eq ptr %95, %96
  br i1 %97, label %98, label %105

98:                                               ; preds = %91
  %99 = load ptr, ptr %16, align 8, !tbaa !5
  %100 = getelementptr inbounds %class.R3MeshEdge, ptr %99, i32 0, i32 2
  %101 = getelementptr inbounds [2 x ptr], ptr %100, i64 0, i64 1
  %102 = load ptr, ptr %101, align 8, !tbaa !5
  %103 = icmp ne ptr %102, null
  br i1 %103, label %104, label %105

104:                                              ; preds = %98
  store ptr null, ptr %9, align 8
  br label %138

105:                                              ; preds = %98, %91
  %106 = load ptr, ptr %17, align 8, !tbaa !5
  %107 = icmp ne ptr %106, null
  br i1 %107, label %119, label %108

108:                                              ; preds = %105
  %109 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 200) #4
  invoke void @_ZN10R3MeshFaceC1Ev(ptr noundef nonnull align 8 dereferenceable(200) %109)
          to label %110 unwind label %115

110:                                              ; preds = %108
  store ptr %109, ptr %17, align 8, !tbaa !5
  %111 = load ptr, ptr %17, align 8, !tbaa !5
  %112 = getelementptr inbounds %class.R3MeshFace, ptr %111, i32 0, i32 10
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %20, i64 noundef 1)
  %113 = getelementptr inbounds %class.RNFlags, ptr %20, i32 0, i32 0
  %114 = load i64, ptr %113, align 8
  call void @_ZN7RNFlags3AddES_(ptr noundef nonnull align 8 dereferenceable(8) %112, i64 %114)
  br label %119

115:                                              ; preds = %108
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %18, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %19, align 4
  call void @_ZdlPvm(ptr noundef %109, i64 noundef 200) #5
  br label %140

119:                                              ; preds = %110, %105
  %120 = load ptr, ptr %17, align 8, !tbaa !5
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  %123 = load ptr, ptr %13, align 8, !tbaa !5
  %124 = load ptr, ptr %14, align 8, !tbaa !5
  %125 = load ptr, ptr %15, align 8, !tbaa !5
  %126 = load ptr, ptr %16, align 8, !tbaa !5
  %127 = load ptr, ptr %21, align 8, !tbaa !9
  %128 = getelementptr inbounds ptr, ptr %127, i64 79
  %129 = load ptr, ptr %128, align 8
  call void %129(ptr noundef nonnull align 8 dereferenceable(272) %21, ptr noundef %120, ptr noundef %121, ptr noundef %122, ptr noundef %123, ptr noundef %124, ptr noundef %125, ptr noundef %126)
  %130 = getelementptr inbounds %class.R3Mesh, ptr %21, i32 0, i32 3
  %131 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %130)
  %132 = load ptr, ptr %17, align 8, !tbaa !5
  %133 = getelementptr inbounds %class.R3MeshFace, ptr %132, i32 0, i32 9
  store i32 %131, ptr %133, align 4, !tbaa !11
  %134 = getelementptr inbounds %class.R3Mesh, ptr %21, i32 0, i32 3
  %135 = load ptr, ptr %17, align 8, !tbaa !5
  %136 = call noundef ptr @_ZN7RNArrayIP10R3MeshFaceE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %134, ptr noundef %135)
  %137 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %137, ptr %9, align 8
  br label %138

138:                                              ; preds = %119, %104, %90, %76, %62, %48, %34
  %139 = load ptr, ptr %9, align 8
  ret ptr %139

140:                                              ; preds = %115
  %141 = load ptr, ptr %18, align 8
  %142 = load i32, ptr %19, align 4
  %143 = insertvalue { ptr, i32 } poison, ptr %141, 0
  %144 = insertvalue { ptr, i32 } %143, i32 %142, 1
  resume { ptr, i32 } %144
}

declare void @_ZN10R3MeshFaceC1Ev(ptr)

attributes #0 = { 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 #1 = { 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 #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 = { nobuiltin allocsize(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 #4 = { builtin allocsize(0) }
attributes #5 = { 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 = !{!12, !20, i64 164}
!12 = !{!"_ZTS10R3MeshFace", !7, i64 8, !7, i64 32, !13, i64 56, !16, i64 88, !15, i64 144, !20, i64 152, !20, i64 156, !20, i64 160, !20, i64 164, !21, i64 168, !15, i64 176, !20, i64 184, !6, i64 192}
!13 = !{!"_ZTS7R3Plane", !14, i64 0, !15, i64 24}
!14 = !{!"_ZTS8R3Vector", !7, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{!"_ZTS5R3Box", !17, i64 0, !19, i64 8, !19, i64 32}
!17 = !{!"_ZTS7R3Solid", !18, i64 0}
!18 = !{!"_ZTS7R3Shape"}
!19 = !{!"_ZTS7R3Point", !7, i64 0}
!20 = !{!"int", !7, i64 0}
!21 = !{!"_ZTS7RNFlags", !22, i64 0}
!22 = !{!"long", !7, i64 0}


; 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.RNFlags = type { i64 }

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7RNFlags3AddES_(ptr noundef nonnull align 8 dereferenceable(8), i64) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN6R3Mesh10CreateFaceEP12R3MeshVertexS1_S1_P10R3MeshEdgeS3_S3_P10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %9 = alloca %class.RNFlags, align 8
  %10 = getelementptr inbounds i8, ptr %4, i64 8
  %11 = load ptr, ptr %10, align 8, !tbaa !5
  %12 = icmp eq ptr %11, %1
  br i1 %12, label %13, label %16

13:                                               ; preds = %8
  %14 = getelementptr inbounds i8, ptr %4, i64 24
  %15 = load ptr, ptr %14, align 8, !tbaa !5
  %.not = icmp eq ptr %15, null
  br i1 %.not, label %16, label %61

16:                                               ; preds = %13, %8
  %17 = icmp eq ptr %11, %2
  br i1 %17, label %18, label %21

18:                                               ; preds = %16
  %19 = getelementptr inbounds i8, ptr %4, i64 32
  %20 = load ptr, ptr %19, align 8, !tbaa !5
  %.not35 = icmp eq ptr %20, null
  br i1 %.not35, label %21, label %61

21:                                               ; preds = %18, %16
  %22 = getelementptr inbounds i8, ptr %5, i64 8
  %23 = load ptr, ptr %22, align 8, !tbaa !5
  %24 = icmp eq ptr %23, %2
  br i1 %24, label %25, label %28

25:                                               ; preds = %21
  %26 = getelementptr inbounds i8, ptr %5, i64 24
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %.not36 = icmp eq ptr %27, null
  br i1 %.not36, label %28, label %61

28:                                               ; preds = %25, %21
  %29 = icmp eq ptr %23, %3
  br i1 %29, label %30, label %33

30:                                               ; preds = %28
  %31 = getelementptr inbounds i8, ptr %5, i64 32
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  %.not37 = icmp eq ptr %32, null
  br i1 %.not37, label %33, label %61

33:                                               ; preds = %30, %28
  %34 = getelementptr inbounds i8, ptr %6, i64 8
  %35 = load ptr, ptr %34, align 8, !tbaa !5
  %36 = icmp eq ptr %35, %3
  br i1 %36, label %37, label %40

37:                                               ; preds = %33
  %38 = getelementptr inbounds i8, ptr %6, i64 24
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  %.not38 = icmp eq ptr %39, null
  br i1 %.not38, label %40, label %61

40:                                               ; preds = %37, %33
  %41 = icmp eq ptr %35, %1
  br i1 %41, label %42, label %45

42:                                               ; preds = %40
  %43 = getelementptr inbounds i8, ptr %6, i64 32
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  %.not39 = icmp eq ptr %44, null
  br i1 %.not39, label %45, label %61

45:                                               ; preds = %42, %40
  %.not40 = icmp eq ptr %7, null
  br i1 %.not40, label %46, label %53

46:                                               ; preds = %45
  %47 = tail call noalias noundef nonnull dereferenceable(200) ptr @_Znwm(i64 noundef 200) #4
  invoke void @_ZN10R3MeshFaceC1Ev(ptr noundef nonnull align 8 dereferenceable(200) %47)
          to label %48 unwind label %51

48:                                               ; preds = %46
  %49 = getelementptr inbounds i8, ptr %47, i64 168
  call void @_ZN7RNFlagsC2Em(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef 1)
  %50 = load i64, ptr %9, align 8
  call void @_ZN7RNFlags3AddES_(ptr noundef nonnull align 8 dereferenceable(8) %49, i64 %50)
  br label %53

51:                                               ; preds = %46
  %52 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %47, i64 noundef 200) #5
  resume { ptr, i32 } %52

53:                                               ; preds = %48, %45
  %.033 = phi ptr [ %7, %45 ], [ %47, %48 ]
  %54 = load ptr, ptr %0, align 8, !tbaa !9
  %55 = getelementptr inbounds i8, ptr %54, i64 632
  %56 = load ptr, ptr %55, align 8
  call void %56(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull %.033, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6)
  %57 = getelementptr inbounds i8, ptr %0, i64 40
  %58 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %57)
  %59 = getelementptr inbounds i8, ptr %.033, i64 164
  store i32 %58, ptr %59, align 4, !tbaa !11
  %60 = call noundef ptr @_ZN7RNArrayIP10R3MeshFaceE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %57, ptr noundef nonnull %.033)
  br label %61

61:                                               ; preds = %42, %37, %30, %25, %18, %13, %53
  %.0 = phi ptr [ %.033, %53 ], [ null, %13 ], [ null, %18 ], [ null, %25 ], [ null, %30 ], [ null, %37 ], [ null, %42 ]
  ret ptr %.0
}

declare void @_ZN10R3MeshFaceC1Ev(ptr) local_unnamed_addr

attributes #0 = { 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 #1 = { 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 #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 = { nobuiltin allocsize(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 #4 = { builtin allocsize(0) }
attributes #5 = { 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 = !{!12, !20, i64 164}
!12 = !{!"_ZTS10R3MeshFace", !7, i64 8, !7, i64 32, !13, i64 56, !16, i64 88, !15, i64 144, !20, i64 152, !20, i64 156, !20, i64 160, !20, i64 164, !21, i64 168, !15, i64 176, !20, i64 184, !6, i64 192}
!13 = !{!"_ZTS7R3Plane", !14, i64 0, !15, i64 24}
!14 = !{!"_ZTS8R3Vector", !7, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{!"_ZTS5R3Box", !17, i64 0, !19, i64 8, !19, i64 32}
!17 = !{!"_ZTS7R3Solid", !18, i64 0}
!18 = !{!"_ZTS7R3Shape"}
!19 = !{!"_ZTS7R3Point", !7, i64 0}
!20 = !{!"int", !7, i64 0}
!21 = !{!"_ZTS7RNFlags", !22, i64 0}
!22 = !{!"long", !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass