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

; 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.R3Point = type { [3 x double] }
%class.R2Point = type { [2 x double] }
%class.RNRgb = type { [3 x double] }
%class.R3MeshEdge = type { ptr, [2 x ptr], [2 x ptr], double, i32, %class.RNFlags, double, i32, ptr }
%class.RNFlags = type { i64 }

@.str = external hidden unnamed_addr constant [41 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [88 x i8], align 1
@RN_EPSILON = external global double, align 8
@R3null_point = external global %class.R3Point, align 8
@.str.22 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [55 x i8], align 1

declare void @_Z7RNAbortPKcz(ptr noundef, ...) #0

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh11VertexColorEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef) #2 align 2

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

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

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

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

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

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

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

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

declare noundef double @_Z10R3DistanceRK7R3PointS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z12RNIsPositivedd(double noundef, double noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6R3Mesh17SetVertexPositionEP12R3MeshVertexRK7R3Point(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6R3Mesh16EdgeAcrossVertexEPK12R3MeshVertexPK10R3MeshEdgePK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef, ptr noundef, ptr noundef) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6R3Mesh14SetVertexColorEP12R3MeshVertexRK5RNRgb(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6R3Mesh22SetVertexTextureCoordsEP12R3MeshVertexRK7R2Point(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef, ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

declare void @_ZplRK7R2PointS1_(ptr dead_on_unwind writable sret(%class.R2Point) align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZmldRK7R2Point(ptr dead_on_unwind noalias writable sret(%class.R2Point) align 8, double noundef, ptr noundef nonnull align 8 dereferenceable(16)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZplRK5RNRgbS1_(ptr dead_on_unwind noalias writable sret(%class.RNRgb) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZmldRK5RNRgb(ptr dead_on_unwind noalias writable sret(%class.RNRgb) align 8, double noundef, ptr noundef nonnull align 8 dereferenceable(24)) #4

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN6R3Mesh9SplitEdgeEP10R3MeshEdgeRK7R3PointPS1_S5_(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %3, ptr noundef %4) unnamed_addr #5 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca [2 x ptr], align 16
  %13 = alloca [2 x ptr], align 16
  %14 = alloca [2 x [2 x ptr]], align 16
  %15 = alloca [2 x ptr], align 16
  %16 = alloca [2 x i32], align 4
  %17 = alloca [2 x i32], align 4
  %18 = alloca [2 x i32], align 4
  %19 = alloca [2 x ptr], align 16
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca %class.R2Point, align 8
  %30 = alloca %class.R2Point, align 8
  %31 = alloca %class.R2Point, align 8
  %32 = alloca %class.RNRgb, align 8
  %33 = alloca %class.RNRgb, align 8
  %34 = alloca %class.RNRgb, align 8
  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
  store ptr %4, ptr %10, align 8, !tbaa !5
  %35 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %36 = load ptr, ptr %35, align 8, !tbaa !9
  %37 = getelementptr inbounds ptr, ptr %36, i64 4
  %38 = load ptr, ptr %37, align 8
  %39 = call noundef ptr %38(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef nonnull align 8 dereferenceable(24) @R3null_point, ptr noundef null)
  store ptr %39, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds %class.R3MeshEdge, ptr %40, i32 0, i32 1
  %42 = getelementptr inbounds [2 x ptr], ptr %41, i64 0, i64 0
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  %44 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 0
  store ptr %43, ptr %44, align 16, !tbaa !5
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds %class.R3MeshEdge, ptr %45, i32 0, i32 1
  %47 = getelementptr inbounds [2 x ptr], ptr %46, i64 0, i64 1
  %48 = load ptr, ptr %47, align 8, !tbaa !5
  %49 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 1
  store ptr %48, ptr %49, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #7
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds %class.R3MeshEdge, ptr %50, i32 0, i32 2
  %52 = getelementptr inbounds [2 x ptr], ptr %51, i64 0, i64 0
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  %54 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 0
  store ptr %53, ptr %54, align 16, !tbaa !5
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = getelementptr inbounds %class.R3MeshEdge, ptr %55, i32 0, i32 2
  %57 = getelementptr inbounds [2 x ptr], ptr %56, i64 0, i64 1
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  %59 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 1
  store ptr %58, ptr %59, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #7
  call void @llvm.memset.p0.i64(ptr align 16 %14, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  call void @llvm.memset.p0.i64(ptr align 16 %15, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  call void @llvm.memset.p0.i64(ptr align 4 %16, i8 0, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  call void @llvm.memset.p0.i64(ptr align 4 %17, i8 0, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  call void @llvm.memset.p0.i64(ptr align 4 %18, i8 0, i64 8, i1 false)
  %60 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 0
  %61 = load ptr, ptr %60, align 16, !tbaa !5
  %62 = icmp ne ptr %61, null
  br i1 %62, label %63, label %110

63:                                               ; preds = %5
  %64 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 0
  %65 = load ptr, ptr %64, align 16, !tbaa !5
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 0
  %68 = load ptr, ptr %67, align 16, !tbaa !5
  %69 = call noundef ptr @_ZNK6R3Mesh16EdgeAcrossVertexEPK12R3MeshVertexPK10R3MeshEdgePK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %65, ptr noundef %66, ptr noundef %68)
  %70 = getelementptr inbounds [2 x [2 x ptr]], ptr %14, i64 0, i64 0
  %71 = getelementptr inbounds [2 x ptr], ptr %70, i64 0, i64 0
  store ptr %69, ptr %71, align 16, !tbaa !5
  %72 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 1
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 0
  %76 = load ptr, ptr %75, align 16, !tbaa !5
  %77 = call noundef ptr @_ZNK6R3Mesh16EdgeAcrossVertexEPK12R3MeshVertexPK10R3MeshEdgePK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %73, ptr noundef %74, ptr noundef %76)
  %78 = getelementptr inbounds [2 x [2 x ptr]], ptr %14, i64 0, i64 0
  %79 = getelementptr inbounds [2 x ptr], ptr %78, i64 0, i64 1
  store ptr %77, ptr %79, align 8, !tbaa !5
  %80 = getelementptr inbounds [2 x [2 x ptr]], ptr %14, i64 0, i64 0
  %81 = getelementptr inbounds [2 x ptr], ptr %80, i64 0, i64 1
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  %83 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 1
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  %85 = call noundef ptr @_ZNK6R3Mesh16VertexAcrossEdgeEPK10R3MeshEdgePK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %82, ptr noundef %84)
  %86 = getelementptr inbounds [2 x ptr], ptr %15, i64 0, i64 0
  store ptr %85, ptr %86, align 16, !tbaa !5
  %87 = getelementptr inbounds [2 x ptr], ptr %15, i64 0, i64 0
  %88 = load ptr, ptr %87, align 16, !tbaa !5
  %89 = getelementptr inbounds [2 x [2 x ptr]], ptr %14, i64 0, i64 0
  %90 = getelementptr inbounds [2 x ptr], ptr %89, i64 0, i64 0
  %91 = load ptr, ptr %90, align 16, !tbaa !5
  %92 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 0
  %93 = load ptr, ptr %92, align 16, !tbaa !5
  %94 = call noundef ptr @_ZNK6R3Mesh16VertexAcrossEdgeEPK10R3MeshEdgePK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %91, ptr noundef %93)
  %95 = icmp eq ptr %88, %94
  br i1 %95, label %97, label %96

96:                                               ; preds = %63
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.22, i32 noundef 1892, ptr noundef @.str.2)
  br label %97

97:                                               ; preds = %96, %63
  %98 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 0
  %99 = load ptr, ptr %98, align 16, !tbaa !5
  %100 = call noundef i32 @_ZNK6R3Mesh12FaceMaterialEPK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %99)
  %101 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 0
  store i32 %100, ptr %101, align 4, !tbaa !11
  %102 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 0
  %103 = load ptr, ptr %102, align 16, !tbaa !5
  %104 = call noundef i32 @_ZNK6R3Mesh11FaceSegmentEPK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %103)
  %105 = getelementptr inbounds [2 x i32], ptr %17, i64 0, i64 0
  store i32 %104, ptr %105, align 4, !tbaa !11
  %106 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 0
  %107 = load ptr, ptr %106, align 16, !tbaa !5
  %108 = call noundef i32 @_ZNK6R3Mesh12FaceCategoryEPK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %107)
  %109 = getelementptr inbounds [2 x i32], ptr %18, i64 0, i64 0
  store i32 %108, ptr %109, align 4, !tbaa !11
  br label %110

110:                                              ; preds = %97, %5
  %111 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 1
  %112 = load ptr, ptr %111, align 8, !tbaa !5
  %113 = icmp ne ptr %112, null
  br i1 %113, label %114, label %161

114:                                              ; preds = %110
  %115 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 0
  %116 = load ptr, ptr %115, align 16, !tbaa !5
  %117 = load ptr, ptr %7, align 8, !tbaa !5
  %118 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 1
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = call noundef ptr @_ZNK6R3Mesh16EdgeAcrossVertexEPK12R3MeshVertexPK10R3MeshEdgePK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %116, ptr noundef %117, ptr noundef %119)
  %121 = getelementptr inbounds [2 x [2 x ptr]], ptr %14, i64 0, i64 1
  %122 = getelementptr inbounds [2 x ptr], ptr %121, i64 0, i64 0
  store ptr %120, ptr %122, align 16, !tbaa !5
  %123 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 1
  %124 = load ptr, ptr %123, align 8, !tbaa !5
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 1
  %127 = load ptr, ptr %126, align 8, !tbaa !5
  %128 = call noundef ptr @_ZNK6R3Mesh16EdgeAcrossVertexEPK12R3MeshVertexPK10R3MeshEdgePK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %124, ptr noundef %125, ptr noundef %127)
  %129 = getelementptr inbounds [2 x [2 x ptr]], ptr %14, i64 0, i64 1
  %130 = getelementptr inbounds [2 x ptr], ptr %129, i64 0, i64 1
  store ptr %128, ptr %130, align 8, !tbaa !5
  %131 = getelementptr inbounds [2 x [2 x ptr]], ptr %14, i64 0, i64 1
  %132 = getelementptr inbounds [2 x ptr], ptr %131, i64 0, i64 1
  %133 = load ptr, ptr %132, align 8, !tbaa !5
  %134 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 1
  %135 = load ptr, ptr %134, align 8, !tbaa !5
  %136 = call noundef ptr @_ZNK6R3Mesh16VertexAcrossEdgeEPK10R3MeshEdgePK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %133, ptr noundef %135)
  %137 = getelementptr inbounds [2 x ptr], ptr %15, i64 0, i64 1
  store ptr %136, ptr %137, align 8, !tbaa !5
  %138 = getelementptr inbounds [2 x ptr], ptr %15, i64 0, i64 1
  %139 = load ptr, ptr %138, align 8, !tbaa !5
  %140 = getelementptr inbounds [2 x [2 x ptr]], ptr %14, i64 0, i64 1
  %141 = getelementptr inbounds [2 x ptr], ptr %140, i64 0, i64 0
  %142 = load ptr, ptr %141, align 16, !tbaa !5
  %143 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 0
  %144 = load ptr, ptr %143, align 16, !tbaa !5
  %145 = call noundef ptr @_ZNK6R3Mesh16VertexAcrossEdgeEPK10R3MeshEdgePK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %142, ptr noundef %144)
  %146 = icmp eq ptr %139, %145
  br i1 %146, label %148, label %147

147:                                              ; preds = %114
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.23, i32 noundef 1901, ptr noundef @.str.2)
  br label %148

148:                                              ; preds = %147, %114
  %149 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 1
  %150 = load ptr, ptr %149, align 8, !tbaa !5
  %151 = call noundef i32 @_ZNK6R3Mesh12FaceMaterialEPK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %150)
  %152 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 1
  store i32 %151, ptr %152, align 4, !tbaa !11
  %153 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 1
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  %155 = call noundef i32 @_ZNK6R3Mesh11FaceSegmentEPK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %154)
  %156 = getelementptr inbounds [2 x i32], ptr %17, i64 0, i64 1
  store i32 %155, ptr %156, align 4, !tbaa !11
  %157 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 1
  %158 = load ptr, ptr %157, align 8, !tbaa !5
  %159 = call noundef i32 @_ZNK6R3Mesh12FaceCategoryEPK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %158)
  %160 = getelementptr inbounds [2 x i32], ptr %18, i64 0, i64 1
  store i32 %159, ptr %160, align 4, !tbaa !11
  br label %161

161:                                              ; preds = %148, %110
  %162 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 0
  %163 = load ptr, ptr %162, align 16, !tbaa !5
  %164 = icmp ne ptr %163, null
  br i1 %164, label %165, label %171

165:                                              ; preds = %161
  %166 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 0
  %167 = load ptr, ptr %166, align 16, !tbaa !5
  %168 = load ptr, ptr %35, align 8, !tbaa !9
  %169 = getelementptr inbounds ptr, ptr %168, i64 14
  %170 = load ptr, ptr %169, align 8
  call void %170(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %167)
  br label %171

171:                                              ; preds = %165, %161
  %172 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 1
  %173 = load ptr, ptr %172, align 8, !tbaa !5
  %174 = icmp ne ptr %173, null
  br i1 %174, label %175, label %181

175:                                              ; preds = %171
  %176 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 1
  %177 = load ptr, ptr %176, align 8, !tbaa !5
  %178 = load ptr, ptr %35, align 8, !tbaa !9
  %179 = getelementptr inbounds ptr, ptr %178, i64 14
  %180 = load ptr, ptr %179, align 8
  call void %180(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %177)
  br label %181

181:                                              ; preds = %175, %171
  %182 = load ptr, ptr %7, align 8, !tbaa !5
  %183 = load ptr, ptr %35, align 8, !tbaa !9
  %184 = getelementptr inbounds ptr, ptr %183, i64 13
  %185 = load ptr, ptr %184, align 8
  call void %185(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %182)
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #7
  %186 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 0
  %187 = load ptr, ptr %186, align 16, !tbaa !5
  %188 = load ptr, ptr %11, align 8, !tbaa !5
  %189 = load ptr, ptr %35, align 8, !tbaa !9
  %190 = getelementptr inbounds ptr, ptr %189, i64 8
  %191 = load ptr, ptr %190, align 8
  %192 = call noundef ptr %191(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %187, ptr noundef %188, ptr noundef null)
  %193 = getelementptr inbounds [2 x ptr], ptr %19, i64 0, i64 0
  store ptr %192, ptr %193, align 16, !tbaa !5
  %194 = load ptr, ptr %11, align 8, !tbaa !5
  %195 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 1
  %196 = load ptr, ptr %195, align 8, !tbaa !5
  %197 = load ptr, ptr %35, align 8, !tbaa !9
  %198 = getelementptr inbounds ptr, ptr %197, i64 8
  %199 = load ptr, ptr %198, align 8
  %200 = call noundef ptr %199(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %194, ptr noundef %196, ptr noundef null)
  %201 = getelementptr inbounds [2 x ptr], ptr %19, i64 0, i64 1
  store ptr %200, ptr %201, align 8, !tbaa !5
  %202 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 0
  %203 = load ptr, ptr %202, align 16, !tbaa !5
  %204 = icmp ne ptr %203, null
  br i1 %204, label %205, label %316

205:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %206 = load ptr, ptr %11, align 8, !tbaa !5
  %207 = getelementptr inbounds [2 x ptr], ptr %15, i64 0, i64 0
  %208 = load ptr, ptr %207, align 16, !tbaa !5
  %209 = load ptr, ptr %35, align 8, !tbaa !9
  %210 = getelementptr inbounds ptr, ptr %209, i64 8
  %211 = load ptr, ptr %210, align 8
  %212 = call noundef ptr %211(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %206, ptr noundef %208, ptr noundef null)
  store ptr %212, ptr %20, align 8, !tbaa !5
  %213 = getelementptr inbounds [2 x ptr], ptr %15, i64 0, i64 0
  %214 = load ptr, ptr %213, align 16, !tbaa !5
  %215 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 0
  %216 = load ptr, ptr %215, align 16, !tbaa !5
  %217 = icmp ne ptr %214, %216
  br i1 %217, label %218, label %228

218:                                              ; preds = %205
  %219 = getelementptr inbounds [2 x ptr], ptr %15, i64 0, i64 0
  %220 = load ptr, ptr %219, align 16, !tbaa !5
  %221 = load ptr, ptr %11, align 8, !tbaa !5
  %222 = icmp ne ptr %220, %221
  br i1 %222, label %223, label %228

223:                                              ; preds = %218
  %224 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 0
  %225 = load ptr, ptr %224, align 16, !tbaa !5
  %226 = load ptr, ptr %11, align 8, !tbaa !5
  %227 = icmp ne ptr %225, %226
  br i1 %227, label %229, label %228

228:                                              ; preds = %223, %218, %205
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.28, i32 noundef 1923, ptr noundef @.str.2)
  br label %229

229:                                              ; preds = %228, %223
  %230 = getelementptr inbounds [2 x [2 x ptr]], ptr %14, i64 0, i64 0
  %231 = getelementptr inbounds [2 x ptr], ptr %230, i64 0, i64 0
  %232 = load ptr, ptr %231, align 16, !tbaa !5
  %233 = getelementptr inbounds [2 x ptr], ptr %19, i64 0, i64 0
  %234 = load ptr, ptr %233, align 16, !tbaa !5
  %235 = icmp ne ptr %232, %234
  br i1 %235, label %236, label %247

236:                                              ; preds = %229
  %237 = getelementptr inbounds [2 x [2 x ptr]], ptr %14, i64 0, i64 0
  %238 = getelementptr inbounds [2 x ptr], ptr %237, i64 0, i64 0
  %239 = load ptr, ptr %238, align 16, !tbaa !5
  %240 = load ptr, ptr %20, align 8, !tbaa !5
  %241 = icmp ne ptr %239, %240
  br i1 %241, label %242, label %247

242:                                              ; preds = %236
  %243 = getelementptr inbounds [2 x ptr], ptr %19, i64 0, i64 0
  %244 = load ptr, ptr %243, align 16, !tbaa !5
  %245 = load ptr, ptr %20, align 8, !tbaa !5
  %246 = icmp ne ptr %244, %245
  br i1 %246, label %248, label %247

247:                                              ; preds = %242, %236, %229
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.29, i32 noundef 1924, ptr noundef @.str.2)
  br label %248

248:                                              ; preds = %247, %242
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %249 = getelementptr inbounds [2 x ptr], ptr %15, i64 0, i64 0
  %250 = load ptr, ptr %249, align 16, !tbaa !5
  %251 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 0
  %252 = load ptr, ptr %251, align 16, !tbaa !5
  %253 = load ptr, ptr %11, align 8, !tbaa !5
  %254 = getelementptr inbounds [2 x [2 x ptr]], ptr %14, i64 0, i64 0
  %255 = getelementptr inbounds [2 x ptr], ptr %254, i64 0, i64 0
  %256 = load ptr, ptr %255, align 16, !tbaa !5
  %257 = getelementptr inbounds [2 x ptr], ptr %19, i64 0, i64 0
  %258 = load ptr, ptr %257, align 16, !tbaa !5
  %259 = load ptr, ptr %20, align 8, !tbaa !5
  %260 = load ptr, ptr %35, align 8, !tbaa !9
  %261 = getelementptr inbounds ptr, ptr %260, i64 11
  %262 = load ptr, ptr %261, align 8
  %263 = call noundef ptr %262(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %250, ptr noundef %252, ptr noundef %253, ptr noundef %256, ptr noundef %258, ptr noundef %259, ptr noundef null)
  store ptr %263, ptr %21, align 8, !tbaa !5
  %264 = load ptr, ptr %21, align 8, !tbaa !5
  %265 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 0
  %266 = load i32, ptr %265, align 4, !tbaa !11
  call void @_ZN6R3Mesh15SetFaceMaterialEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %264, i32 noundef %266)
  %267 = load ptr, ptr %21, align 8, !tbaa !5
  %268 = getelementptr inbounds [2 x i32], ptr %17, i64 0, i64 0
  %269 = load i32, ptr %268, align 4, !tbaa !11
  call void @_ZN6R3Mesh14SetFaceSegmentEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %267, i32 noundef %269)
  %270 = load ptr, ptr %21, align 8, !tbaa !5
  %271 = getelementptr inbounds [2 x i32], ptr %18, i64 0, i64 0
  %272 = load i32, ptr %271, align 4, !tbaa !11
  call void @_ZN6R3Mesh15SetFaceCategoryEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %270, i32 noundef %272)
  %273 = load ptr, ptr %20, align 8, !tbaa !5
  %274 = getelementptr inbounds [2 x ptr], ptr %19, i64 0, i64 1
  %275 = load ptr, ptr %274, align 8, !tbaa !5
  %276 = icmp ne ptr %273, %275
  br i1 %276, label %277, label %290

277:                                              ; preds = %248
  %278 = load ptr, ptr %20, align 8, !tbaa !5
  %279 = getelementptr inbounds [2 x [2 x ptr]], ptr %14, i64 0, i64 0
  %280 = getelementptr inbounds [2 x ptr], ptr %279, i64 0, i64 1
  %281 = load ptr, ptr %280, align 8, !tbaa !5
  %282 = icmp ne ptr %278, %281
  br i1 %282, label %283, label %290

283:                                              ; preds = %277
  %284 = getelementptr inbounds [2 x ptr], ptr %19, i64 0, i64 1
  %285 = load ptr, ptr %284, align 8, !tbaa !5
  %286 = getelementptr inbounds [2 x [2 x ptr]], ptr %14, i64 0, i64 0
  %287 = getelementptr inbounds [2 x ptr], ptr %286, i64 0, i64 1
  %288 = load ptr, ptr %287, align 8, !tbaa !5
  %289 = icmp ne ptr %285, %288
  br i1 %289, label %291, label %290

290:                                              ; preds = %283, %277, %248
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.30, i32 noundef 1931, ptr noundef @.str.2)
  br label %291

291:                                              ; preds = %290, %283
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %292 = getelementptr inbounds [2 x ptr], ptr %15, i64 0, i64 0
  %293 = load ptr, ptr %292, align 16, !tbaa !5
  %294 = load ptr, ptr %11, align 8, !tbaa !5
  %295 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 1
  %296 = load ptr, ptr %295, align 8, !tbaa !5
  %297 = load ptr, ptr %20, align 8, !tbaa !5
  %298 = getelementptr inbounds [2 x ptr], ptr %19, i64 0, i64 1
  %299 = load ptr, ptr %298, align 8, !tbaa !5
  %300 = getelementptr inbounds [2 x [2 x ptr]], ptr %14, i64 0, i64 0
  %301 = getelementptr inbounds [2 x ptr], ptr %300, i64 0, i64 1
  %302 = load ptr, ptr %301, align 8, !tbaa !5
  %303 = load ptr, ptr %35, align 8, !tbaa !9
  %304 = getelementptr inbounds ptr, ptr %303, i64 11
  %305 = load ptr, ptr %304, align 8
  %306 = call noundef ptr %305(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %293, ptr noundef %294, ptr noundef %296, ptr noundef %297, ptr noundef %299, ptr noundef %302, ptr noundef null)
  store ptr %306, ptr %22, align 8, !tbaa !5
  %307 = load ptr, ptr %22, align 8, !tbaa !5
  %308 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 0
  %309 = load i32, ptr %308, align 4, !tbaa !11
  call void @_ZN6R3Mesh15SetFaceMaterialEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %307, i32 noundef %309)
  %310 = load ptr, ptr %22, align 8, !tbaa !5
  %311 = getelementptr inbounds [2 x i32], ptr %17, i64 0, i64 0
  %312 = load i32, ptr %311, align 4, !tbaa !11
  call void @_ZN6R3Mesh14SetFaceSegmentEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %310, i32 noundef %312)
  %313 = load ptr, ptr %22, align 8, !tbaa !5
  %314 = getelementptr inbounds [2 x i32], ptr %18, i64 0, i64 0
  %315 = load i32, ptr %314, align 4, !tbaa !11
  call void @_ZN6R3Mesh15SetFaceCategoryEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %313, i32 noundef %315)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %316

316:                                              ; preds = %291, %181
  %317 = getelementptr inbounds [2 x ptr], ptr %13, i64 0, i64 1
  %318 = load ptr, ptr %317, align 8, !tbaa !5
  %319 = icmp ne ptr %318, null
  br i1 %319, label %320, label %431

320:                                              ; preds = %316
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %321 = load ptr, ptr %11, align 8, !tbaa !5
  %322 = getelementptr inbounds [2 x ptr], ptr %15, i64 0, i64 1
  %323 = load ptr, ptr %322, align 8, !tbaa !5
  %324 = load ptr, ptr %35, align 8, !tbaa !9
  %325 = getelementptr inbounds ptr, ptr %324, i64 8
  %326 = load ptr, ptr %325, align 8
  %327 = call noundef ptr %326(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %321, ptr noundef %323, ptr noundef null)
  store ptr %327, ptr %23, align 8, !tbaa !5
  %328 = getelementptr inbounds [2 x ptr], ptr %15, i64 0, i64 1
  %329 = load ptr, ptr %328, align 8, !tbaa !5
  %330 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 1
  %331 = load ptr, ptr %330, align 8, !tbaa !5
  %332 = icmp ne ptr %329, %331
  br i1 %332, label %333, label %343

333:                                              ; preds = %320
  %334 = getelementptr inbounds [2 x ptr], ptr %15, i64 0, i64 1
  %335 = load ptr, ptr %334, align 8, !tbaa !5
  %336 = load ptr, ptr %11, align 8, !tbaa !5
  %337 = icmp ne ptr %335, %336
  br i1 %337, label %338, label %343

338:                                              ; preds = %333
  %339 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 1
  %340 = load ptr, ptr %339, align 8, !tbaa !5
  %341 = load ptr, ptr %11, align 8, !tbaa !5
  %342 = icmp ne ptr %340, %341
  br i1 %342, label %344, label %343

343:                                              ; preds = %338, %333, %320
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.31, i32 noundef 1944, ptr noundef @.str.2)
  br label %344

344:                                              ; preds = %343, %338
  %345 = getelementptr inbounds [2 x [2 x ptr]], ptr %14, i64 0, i64 1
  %346 = getelementptr inbounds [2 x ptr], ptr %345, i64 0, i64 1
  %347 = load ptr, ptr %346, align 8, !tbaa !5
  %348 = getelementptr inbounds [2 x ptr], ptr %19, i64 0, i64 1
  %349 = load ptr, ptr %348, align 8, !tbaa !5
  %350 = icmp ne ptr %347, %349
  br i1 %350, label %351, label %362

351:                                              ; preds = %344
  %352 = getelementptr inbounds [2 x [2 x ptr]], ptr %14, i64 0, i64 1
  %353 = getelementptr inbounds [2 x ptr], ptr %352, i64 0, i64 1
  %354 = load ptr, ptr %353, align 8, !tbaa !5
  %355 = load ptr, ptr %23, align 8, !tbaa !5
  %356 = icmp ne ptr %354, %355
  br i1 %356, label %357, label %362

357:                                              ; preds = %351
  %358 = getelementptr inbounds [2 x ptr], ptr %19, i64 0, i64 1
  %359 = load ptr, ptr %358, align 8, !tbaa !5
  %360 = load ptr, ptr %23, align 8, !tbaa !5
  %361 = icmp ne ptr %359, %360
  br i1 %361, label %363, label %362

362:                                              ; preds = %357, %351, %344
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.32, i32 noundef 1945, ptr noundef @.str.2)
  br label %363

363:                                              ; preds = %362, %357
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %364 = getelementptr inbounds [2 x ptr], ptr %15, i64 0, i64 1
  %365 = load ptr, ptr %364, align 8, !tbaa !5
  %366 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 1
  %367 = load ptr, ptr %366, align 8, !tbaa !5
  %368 = load ptr, ptr %11, align 8, !tbaa !5
  %369 = getelementptr inbounds [2 x [2 x ptr]], ptr %14, i64 0, i64 1
  %370 = getelementptr inbounds [2 x ptr], ptr %369, i64 0, i64 1
  %371 = load ptr, ptr %370, align 8, !tbaa !5
  %372 = getelementptr inbounds [2 x ptr], ptr %19, i64 0, i64 1
  %373 = load ptr, ptr %372, align 8, !tbaa !5
  %374 = load ptr, ptr %23, align 8, !tbaa !5
  %375 = load ptr, ptr %35, align 8, !tbaa !9
  %376 = getelementptr inbounds ptr, ptr %375, i64 11
  %377 = load ptr, ptr %376, align 8
  %378 = call noundef ptr %377(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %365, ptr noundef %367, ptr noundef %368, ptr noundef %371, ptr noundef %373, ptr noundef %374, ptr noundef null)
  store ptr %378, ptr %24, align 8, !tbaa !5
  %379 = load ptr, ptr %24, align 8, !tbaa !5
  %380 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 1
  %381 = load i32, ptr %380, align 4, !tbaa !11
  call void @_ZN6R3Mesh15SetFaceMaterialEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %379, i32 noundef %381)
  %382 = load ptr, ptr %24, align 8, !tbaa !5
  %383 = getelementptr inbounds [2 x i32], ptr %17, i64 0, i64 1
  %384 = load i32, ptr %383, align 4, !tbaa !11
  call void @_ZN6R3Mesh14SetFaceSegmentEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %382, i32 noundef %384)
  %385 = load ptr, ptr %24, align 8, !tbaa !5
  %386 = getelementptr inbounds [2 x i32], ptr %18, i64 0, i64 1
  %387 = load i32, ptr %386, align 4, !tbaa !11
  call void @_ZN6R3Mesh15SetFaceCategoryEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %385, i32 noundef %387)
  %388 = load ptr, ptr %23, align 8, !tbaa !5
  %389 = getelementptr inbounds [2 x ptr], ptr %19, i64 0, i64 0
  %390 = load ptr, ptr %389, align 16, !tbaa !5
  %391 = icmp ne ptr %388, %390
  br i1 %391, label %392, label %405

392:                                              ; preds = %363
  %393 = load ptr, ptr %23, align 8, !tbaa !5
  %394 = getelementptr inbounds [2 x [2 x ptr]], ptr %14, i64 0, i64 1
  %395 = getelementptr inbounds [2 x ptr], ptr %394, i64 0, i64 0
  %396 = load ptr, ptr %395, align 16, !tbaa !5
  %397 = icmp ne ptr %393, %396
  br i1 %397, label %398, label %405

398:                                              ; preds = %392
  %399 = getelementptr inbounds [2 x ptr], ptr %19, i64 0, i64 0
  %400 = load ptr, ptr %399, align 16, !tbaa !5
  %401 = getelementptr inbounds [2 x [2 x ptr]], ptr %14, i64 0, i64 1
  %402 = getelementptr inbounds [2 x ptr], ptr %401, i64 0, i64 0
  %403 = load ptr, ptr %402, align 16, !tbaa !5
  %404 = icmp ne ptr %400, %403
  br i1 %404, label %406, label %405

405:                                              ; preds = %398, %392, %363
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.33, i32 noundef 1952, ptr noundef @.str.2)
  br label %406

406:                                              ; preds = %405, %398
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %407 = getelementptr inbounds [2 x ptr], ptr %15, i64 0, i64 1
  %408 = load ptr, ptr %407, align 8, !tbaa !5
  %409 = load ptr, ptr %11, align 8, !tbaa !5
  %410 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 0
  %411 = load ptr, ptr %410, align 16, !tbaa !5
  %412 = load ptr, ptr %23, align 8, !tbaa !5
  %413 = getelementptr inbounds [2 x ptr], ptr %19, i64 0, i64 0
  %414 = load ptr, ptr %413, align 16, !tbaa !5
  %415 = getelementptr inbounds [2 x [2 x ptr]], ptr %14, i64 0, i64 1
  %416 = getelementptr inbounds [2 x ptr], ptr %415, i64 0, i64 0
  %417 = load ptr, ptr %416, align 16, !tbaa !5
  %418 = load ptr, ptr %35, align 8, !tbaa !9
  %419 = getelementptr inbounds ptr, ptr %418, i64 11
  %420 = load ptr, ptr %419, align 8
  %421 = call noundef ptr %420(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %408, ptr noundef %409, ptr noundef %411, ptr noundef %412, ptr noundef %414, ptr noundef %417, ptr noundef null)
  store ptr %421, ptr %25, align 8, !tbaa !5
  %422 = load ptr, ptr %25, align 8, !tbaa !5
  %423 = getelementptr inbounds [2 x i32], ptr %16, i64 0, i64 1
  %424 = load i32, ptr %423, align 4, !tbaa !11
  call void @_ZN6R3Mesh15SetFaceMaterialEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %422, i32 noundef %424)
  %425 = load ptr, ptr %25, align 8, !tbaa !5
  %426 = getelementptr inbounds [2 x i32], ptr %17, i64 0, i64 1
  %427 = load i32, ptr %426, align 4, !tbaa !11
  call void @_ZN6R3Mesh14SetFaceSegmentEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %425, i32 noundef %427)
  %428 = load ptr, ptr %25, align 8, !tbaa !5
  %429 = getelementptr inbounds [2 x i32], ptr %18, i64 0, i64 1
  %430 = load i32, ptr %429, align 4, !tbaa !11
  call void @_ZN6R3Mesh15SetFaceCategoryEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %428, i32 noundef %430)
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %431

431:                                              ; preds = %406, %316
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %432 = load ptr, ptr %8, align 8, !tbaa !5
  %433 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 0
  %434 = load ptr, ptr %433, align 16, !tbaa !5
  %435 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %434)
  %436 = call noundef double @_Z10R3DistanceRK7R3PointS1_(ptr noundef nonnull align 8 dereferenceable(24) %432, ptr noundef nonnull align 8 dereferenceable(24) %435)
  store double %436, ptr %26, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %437 = load ptr, ptr %8, align 8, !tbaa !5
  %438 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 1
  %439 = load ptr, ptr %438, align 8, !tbaa !5
  %440 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %439)
  %441 = call noundef double @_Z10R3DistanceRK7R3PointS1_(ptr noundef nonnull align 8 dereferenceable(24) %437, ptr noundef nonnull align 8 dereferenceable(24) %440)
  store double %441, ptr %27, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %442 = load double, ptr %26, align 8, !tbaa !13
  %443 = load double, ptr %27, align 8, !tbaa !13
  %444 = fadd double %442, %443
  store double %444, ptr %28, align 8, !tbaa !13
  %445 = load double, ptr %28, align 8, !tbaa !13
  %446 = load double, ptr @RN_EPSILON, align 8, !tbaa !13
  %447 = call noundef i32 @_Z12RNIsPositivedd(double noundef %445, double noundef %446)
  %448 = icmp ne i32 %447, 0
  br i1 %448, label %449, label %474

449:                                              ; preds = %431
  %450 = load double, ptr %28, align 8, !tbaa !13
  %451 = load double, ptr %26, align 8, !tbaa !13
  %452 = fdiv double %451, %450
  store double %452, ptr %26, align 8, !tbaa !13
  %453 = load double, ptr %28, align 8, !tbaa !13
  %454 = load double, ptr %27, align 8, !tbaa !13
  %455 = fdiv double %454, %453
  store double %455, ptr %27, align 8, !tbaa !13
  %456 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #7
  %457 = load double, ptr %27, align 8, !tbaa !13
  %458 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 0
  %459 = load ptr, ptr %458, align 16, !tbaa !5
  %460 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6R3Mesh19VertexTextureCoordsEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %459)
  call void @_ZmldRK7R2Point(ptr dead_on_unwind writable sret(%class.R2Point) align 8 %30, double noundef %457, ptr noundef nonnull align 8 dereferenceable(16) %460)
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #7
  %461 = load double, ptr %26, align 8, !tbaa !13
  %462 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 1
  %463 = load ptr, ptr %462, align 8, !tbaa !5
  %464 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6R3Mesh19VertexTextureCoordsEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %463)
  call void @_ZmldRK7R2Point(ptr dead_on_unwind writable sret(%class.R2Point) align 8 %31, double noundef %461, ptr noundef nonnull align 8 dereferenceable(16) %464)
  call void @_ZplRK7R2PointS1_(ptr dead_on_unwind writable sret(%class.R2Point) align 8 %29, ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(16) %31)
  call void @_ZN6R3Mesh22SetVertexTextureCoordsEP12R3MeshVertexRK7R2Point(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %456, ptr noundef nonnull align 8 dereferenceable(16) %29)
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #7
  %465 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #7
  %466 = load double, ptr %27, align 8, !tbaa !13
  %467 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 0
  %468 = load ptr, ptr %467, align 16, !tbaa !5
  %469 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh11VertexColorEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %468)
  call void @_ZmldRK5RNRgb(ptr dead_on_unwind writable sret(%class.RNRgb) align 8 %33, double noundef %466, ptr noundef nonnull align 8 dereferenceable(24) %469)
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #7
  %470 = load double, ptr %26, align 8, !tbaa !13
  %471 = getelementptr inbounds [2 x ptr], ptr %12, i64 0, i64 1
  %472 = load ptr, ptr %471, align 8, !tbaa !5
  %473 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh11VertexColorEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %472)
  call void @_ZmldRK5RNRgb(ptr dead_on_unwind writable sret(%class.RNRgb) align 8 %34, double noundef %470, ptr noundef nonnull align 8 dereferenceable(24) %473)
  call void @_ZplRK5RNRgbS1_(ptr dead_on_unwind writable sret(%class.RNRgb) align 8 %32, ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 8 dereferenceable(24) %34)
  call void @_ZN6R3Mesh14SetVertexColorEP12R3MeshVertexRK5RNRgb(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %465, ptr noundef nonnull align 8 dereferenceable(24) %32)
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #7
  br label %474

474:                                              ; preds = %449, %431
  %475 = load ptr, ptr %11, align 8, !tbaa !5
  %476 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN6R3Mesh17SetVertexPositionEP12R3MeshVertexRK7R3Point(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %475, ptr noundef nonnull align 8 dereferenceable(24) %476)
  %477 = load ptr, ptr %9, align 8, !tbaa !5
  %478 = icmp ne ptr %477, null
  br i1 %478, label %479, label %483

479:                                              ; preds = %474
  %480 = getelementptr inbounds [2 x ptr], ptr %19, i64 0, i64 0
  %481 = load ptr, ptr %480, align 16, !tbaa !5
  %482 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %481, ptr %482, align 8, !tbaa !5
  br label %483

483:                                              ; preds = %479, %474
  %484 = load ptr, ptr %10, align 8, !tbaa !5
  %485 = icmp ne ptr %484, null
  br i1 %485, label %486, label %490

486:                                              ; preds = %483
  %487 = getelementptr inbounds [2 x ptr], ptr %19, i64 0, i64 1
  %488 = load ptr, ptr %487, align 8, !tbaa !5
  %489 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %488, ptr %489, align 8, !tbaa !5
  br label %490

490:                                              ; preds = %486, %483
  %491 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  ret ptr %491
}

attributes #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 willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #5 = { 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 #6 = { 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 #7 = { 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, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !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.R3Point = type { [3 x double] }
%class.R2Point = type { [2 x double] }
%class.RNRgb = type { [3 x double] }

@.str = external hidden unnamed_addr constant [41 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [88 x i8], align 1
@RN_EPSILON = external local_unnamed_addr global double, align 8
@R3null_point = external global %class.R3Point, align 8
@.str.22 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [55 x i8], align 1

declare void @_Z7RNAbortPKcz(ptr noundef, ...) local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh11VertexColorEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef) local_unnamed_addr #2 align 2

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

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

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

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

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

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

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

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

declare noundef double @_Z10R3DistanceRK7R3PointS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z12RNIsPositivedd(double noundef, double noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6R3Mesh17SetVertexPositionEP12R3MeshVertexRK7R3Point(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6R3Mesh16EdgeAcrossVertexEPK12R3MeshVertexPK10R3MeshEdgePK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6R3Mesh14SetVertexColorEP12R3MeshVertexRK5RNRgb(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6R3Mesh22SetVertexTextureCoordsEP12R3MeshVertexRK7R2Point(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

declare void @_ZplRK7R2PointS1_(ptr dead_on_unwind writable sret(%class.R2Point) align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZmldRK7R2Point(ptr dead_on_unwind noalias writable sret(%class.R2Point) align 8, double noundef, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZplRK5RNRgbS1_(ptr dead_on_unwind noalias writable sret(%class.RNRgb) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZmldRK5RNRgb(ptr dead_on_unwind noalias writable sret(%class.RNRgb) align 8, double noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN6R3Mesh9SplitEdgeEP10R3MeshEdgeRK7R3PointPS1_S5_(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef writeonly %3, ptr noundef writeonly %4) unnamed_addr #4 align 2 {
  %6 = alloca %class.R2Point, align 8
  %7 = alloca %class.R2Point, align 8
  %8 = alloca %class.R2Point, align 8
  %9 = alloca %class.RNRgb, align 8
  %10 = alloca %class.RNRgb, align 8
  %11 = alloca %class.RNRgb, align 8
  %12 = load ptr, ptr %0, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %12, i64 32
  %14 = load ptr, ptr %13, align 8
  %15 = tail call noundef ptr %14(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull align 8 dereferenceable(24) @R3null_point, ptr noundef null)
  %16 = getelementptr inbounds i8, ptr %1, i64 8
  %17 = load ptr, ptr %16, align 8, !tbaa !8
  %18 = getelementptr inbounds i8, ptr %1, i64 16
  %19 = load ptr, ptr %18, align 8, !tbaa !8
  %20 = getelementptr inbounds i8, ptr %1, i64 24
  %21 = load ptr, ptr %20, align 8, !tbaa !8
  %22 = getelementptr inbounds i8, ptr %1, i64 32
  %23 = load ptr, ptr %22, align 8, !tbaa !8
  %.not = icmp eq ptr %21, null
  br i1 %.not, label %35, label %24

24:                                               ; preds = %5
  %25 = tail call noundef ptr @_ZNK6R3Mesh16EdgeAcrossVertexEPK12R3MeshVertexPK10R3MeshEdgePK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %17, ptr noundef nonnull %1, ptr noundef nonnull %21)
  %26 = tail call noundef ptr @_ZNK6R3Mesh16EdgeAcrossVertexEPK12R3MeshVertexPK10R3MeshEdgePK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %19, ptr noundef nonnull %1, ptr noundef nonnull %21)
  %27 = tail call noundef ptr @_ZNK6R3Mesh16VertexAcrossEdgeEPK10R3MeshEdgePK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %26, ptr noundef %19)
  %28 = tail call noundef ptr @_ZNK6R3Mesh16VertexAcrossEdgeEPK10R3MeshEdgePK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %25, ptr noundef %17)
  %29 = icmp eq ptr %27, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %24
  tail call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.22, i32 noundef 1892, ptr noundef nonnull @.str.2)
  br label %31

31:                                               ; preds = %30, %24
  %32 = tail call noundef i32 @_ZNK6R3Mesh12FaceMaterialEPK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull %21)
  %33 = tail call noundef i32 @_ZNK6R3Mesh11FaceSegmentEPK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull %21)
  %34 = tail call noundef i32 @_ZNK6R3Mesh12FaceCategoryEPK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull %21)
  br label %35

35:                                               ; preds = %31, %5
  %.sroa.047.0 = phi i32 [ %34, %31 ], [ 0, %5 ]
  %.sroa.051.0 = phi i32 [ %33, %31 ], [ 0, %5 ]
  %.sroa.056.0 = phi i32 [ %32, %31 ], [ 0, %5 ]
  %.sroa.061.0 = phi ptr [ %27, %31 ], [ null, %5 ]
  %.sroa.8.0 = phi ptr [ %26, %31 ], [ null, %5 ]
  %.sroa.073.0 = phi ptr [ %25, %31 ], [ null, %5 ]
  %.not175 = icmp eq ptr %23, null
  br i1 %.not175, label %47, label %36

36:                                               ; preds = %35
  %37 = tail call noundef ptr @_ZNK6R3Mesh16EdgeAcrossVertexEPK12R3MeshVertexPK10R3MeshEdgePK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %17, ptr noundef nonnull %1, ptr noundef nonnull %23)
  %38 = tail call noundef ptr @_ZNK6R3Mesh16EdgeAcrossVertexEPK12R3MeshVertexPK10R3MeshEdgePK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %19, ptr noundef nonnull %1, ptr noundef nonnull %23)
  %39 = tail call noundef ptr @_ZNK6R3Mesh16VertexAcrossEdgeEPK10R3MeshEdgePK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %38, ptr noundef %19)
  %40 = tail call noundef ptr @_ZNK6R3Mesh16VertexAcrossEdgeEPK10R3MeshEdgePK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %37, ptr noundef %17)
  %41 = icmp eq ptr %39, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %36
  tail call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.23, i32 noundef 1901, ptr noundef nonnull @.str.2)
  br label %43

43:                                               ; preds = %42, %36
  %44 = tail call noundef i32 @_ZNK6R3Mesh12FaceMaterialEPK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull %23)
  %45 = tail call noundef i32 @_ZNK6R3Mesh11FaceSegmentEPK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull %23)
  %46 = tail call noundef i32 @_ZNK6R3Mesh12FaceCategoryEPK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull %23)
  br label %47

47:                                               ; preds = %43, %35
  %.sroa.653.0 = phi i32 [ %45, %43 ], [ 0, %35 ]
  %.sroa.6.0 = phi i32 [ %46, %43 ], [ 0, %35 ]
  %.sroa.658.0 = phi i32 [ %44, %43 ], [ 0, %35 ]
  %.sroa.1067.0 = phi ptr [ %39, %43 ], [ null, %35 ]
  %.sroa.18.0 = phi ptr [ %38, %43 ], [ null, %35 ]
  %.sroa.13.0 = phi ptr [ %37, %43 ], [ null, %35 ]
  br i1 %.not, label %52, label %48

48:                                               ; preds = %47
  %49 = load ptr, ptr %0, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %49, i64 112
  %51 = load ptr, ptr %50, align 8
  tail call void %51(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull %21)
  br label %52

52:                                               ; preds = %48, %47
  br i1 %.not175, label %57, label %53

53:                                               ; preds = %52
  %54 = load ptr, ptr %0, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 112
  %56 = load ptr, ptr %55, align 8
  tail call void %56(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull %23)
  br label %57

57:                                               ; preds = %53, %52
  %58 = load ptr, ptr %0, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %58, i64 104
  %60 = load ptr, ptr %59, align 8
  tail call void %60(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull %1)
  %61 = load ptr, ptr %0, align 8, !tbaa !5
  %62 = getelementptr inbounds i8, ptr %61, i64 64
  %63 = load ptr, ptr %62, align 8
  %64 = tail call noundef ptr %63(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %17, ptr noundef %15, ptr noundef null)
  %65 = load ptr, ptr %0, align 8, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %65, i64 64
  %67 = load ptr, ptr %66, align 8
  %68 = tail call noundef ptr %67(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %15, ptr noundef %19, ptr noundef null)
  br i1 %.not, label %88, label %69

69:                                               ; preds = %57
  %70 = load ptr, ptr %0, align 8, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %70, i64 64
  %72 = load ptr, ptr %71, align 8
  %73 = tail call noundef ptr %72(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %15, ptr noundef %.sroa.061.0, ptr noundef null)
  %.not176 = icmp eq ptr %.sroa.061.0, %17
  %.not177 = icmp eq ptr %.sroa.061.0, %15
  %or.cond = or i1 %.not176, %.not177
  %.not178 = icmp eq ptr %17, %15
  %or.cond197 = or i1 %.not178, %or.cond
  br i1 %or.cond197, label %74, label %75

74:                                               ; preds = %69
  tail call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.28, i32 noundef 1923, ptr noundef nonnull @.str.2)
  br label %75

75:                                               ; preds = %69, %74
  %.not179 = icmp eq ptr %.sroa.073.0, %64
  %.not180 = icmp eq ptr %.sroa.073.0, %73
  %or.cond198 = or i1 %.not179, %.not180
  %.not181 = icmp eq ptr %64, %73
  %or.cond199 = or i1 %.not181, %or.cond198
  br i1 %or.cond199, label %76, label %77

76:                                               ; preds = %75
  tail call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.29, i32 noundef 1924, ptr noundef nonnull @.str.2)
  br label %77

77:                                               ; preds = %75, %76
  %78 = load ptr, ptr %0, align 8, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %78, i64 88
  %80 = load ptr, ptr %79, align 8
  %81 = tail call noundef ptr %80(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %.sroa.061.0, ptr noundef %17, ptr noundef %15, ptr noundef %.sroa.073.0, ptr noundef %64, ptr noundef %73, ptr noundef null)
  tail call void @_ZN6R3Mesh15SetFaceMaterialEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %81, i32 noundef %.sroa.056.0)
  tail call void @_ZN6R3Mesh14SetFaceSegmentEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %81, i32 noundef %.sroa.051.0)
  tail call void @_ZN6R3Mesh15SetFaceCategoryEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %81, i32 noundef %.sroa.047.0)
  %.not182 = icmp eq ptr %73, %68
  %.not183 = icmp eq ptr %73, %.sroa.8.0
  %or.cond200 = or i1 %.not182, %.not183
  %.not184 = icmp eq ptr %68, %.sroa.8.0
  %or.cond201 = or i1 %.not184, %or.cond200
  br i1 %or.cond201, label %82, label %83

82:                                               ; preds = %77
  tail call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.30, i32 noundef 1931, ptr noundef nonnull @.str.2)
  br label %83

83:                                               ; preds = %77, %82
  %84 = load ptr, ptr %0, align 8, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %84, i64 88
  %86 = load ptr, ptr %85, align 8
  %87 = tail call noundef ptr %86(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %.sroa.061.0, ptr noundef %15, ptr noundef %19, ptr noundef %73, ptr noundef %68, ptr noundef %.sroa.8.0, ptr noundef null)
  tail call void @_ZN6R3Mesh15SetFaceMaterialEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %87, i32 noundef %.sroa.056.0)
  tail call void @_ZN6R3Mesh14SetFaceSegmentEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %87, i32 noundef %.sroa.051.0)
  tail call void @_ZN6R3Mesh15SetFaceCategoryEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %87, i32 noundef %.sroa.047.0)
  br label %88

88:                                               ; preds = %83, %57
  br i1 %.not175, label %108, label %89

89:                                               ; preds = %88
  %90 = load ptr, ptr %0, align 8, !tbaa !5
  %91 = getelementptr inbounds i8, ptr %90, i64 64
  %92 = load ptr, ptr %91, align 8
  %93 = tail call noundef ptr %92(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %15, ptr noundef %.sroa.1067.0, ptr noundef null)
  %.not185 = icmp eq ptr %.sroa.1067.0, %19
  %.not186 = icmp eq ptr %.sroa.1067.0, %15
  %or.cond202 = or i1 %.not185, %.not186
  %.not187 = icmp eq ptr %19, %15
  %or.cond203 = or i1 %.not187, %or.cond202
  br i1 %or.cond203, label %94, label %95

94:                                               ; preds = %89
  tail call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.31, i32 noundef 1944, ptr noundef nonnull @.str.2)
  br label %95

95:                                               ; preds = %89, %94
  %.not188 = icmp eq ptr %.sroa.18.0, %68
  %.not189 = icmp eq ptr %.sroa.18.0, %93
  %or.cond204 = or i1 %.not188, %.not189
  %.not190 = icmp eq ptr %68, %93
  %or.cond205 = or i1 %.not190, %or.cond204
  br i1 %or.cond205, label %96, label %97

96:                                               ; preds = %95
  tail call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.32, i32 noundef 1945, ptr noundef nonnull @.str.2)
  br label %97

97:                                               ; preds = %95, %96
  %98 = load ptr, ptr %0, align 8, !tbaa !5
  %99 = getelementptr inbounds i8, ptr %98, i64 88
  %100 = load ptr, ptr %99, align 8
  %101 = tail call noundef ptr %100(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %.sroa.1067.0, ptr noundef %19, ptr noundef %15, ptr noundef %.sroa.18.0, ptr noundef %68, ptr noundef %93, ptr noundef null)
  tail call void @_ZN6R3Mesh15SetFaceMaterialEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %101, i32 noundef %.sroa.658.0)
  tail call void @_ZN6R3Mesh14SetFaceSegmentEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %101, i32 noundef %.sroa.653.0)
  tail call void @_ZN6R3Mesh15SetFaceCategoryEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %101, i32 noundef %.sroa.6.0)
  %.not191 = icmp eq ptr %93, %64
  %.not192 = icmp eq ptr %93, %.sroa.13.0
  %or.cond206 = or i1 %.not191, %.not192
  %.not193 = icmp eq ptr %64, %.sroa.13.0
  %or.cond207 = or i1 %.not193, %or.cond206
  br i1 %or.cond207, label %102, label %103

102:                                              ; preds = %97
  tail call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.33, i32 noundef 1952, ptr noundef nonnull @.str.2)
  br label %103

103:                                              ; preds = %97, %102
  %104 = load ptr, ptr %0, align 8, !tbaa !5
  %105 = getelementptr inbounds i8, ptr %104, i64 88
  %106 = load ptr, ptr %105, align 8
  %107 = tail call noundef ptr %106(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %.sroa.1067.0, ptr noundef %15, ptr noundef %17, ptr noundef %93, ptr noundef %64, ptr noundef %.sroa.13.0, ptr noundef null)
  tail call void @_ZN6R3Mesh15SetFaceMaterialEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %107, i32 noundef %.sroa.658.0)
  tail call void @_ZN6R3Mesh14SetFaceSegmentEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %107, i32 noundef %.sroa.653.0)
  tail call void @_ZN6R3Mesh15SetFaceCategoryEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %107, i32 noundef %.sroa.6.0)
  br label %108

108:                                              ; preds = %103, %88
  %109 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %17)
  %110 = tail call noundef double @_Z10R3DistanceRK7R3PointS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %109)
  %111 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %19)
  %112 = tail call noundef double @_Z10R3DistanceRK7R3PointS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %111)
  %113 = fadd double %110, %112
  %114 = load double, ptr @RN_EPSILON, align 8, !tbaa !11
  %115 = tail call noundef i32 @_Z12RNIsPositivedd(double noundef %113, double noundef %114)
  %.not194 = icmp eq i32 %115, 0
  br i1 %.not194, label %123, label %116

116:                                              ; preds = %108
  %117 = fdiv double %110, %113
  %118 = fdiv double %112, %113
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  %119 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6R3Mesh19VertexTextureCoordsEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %17)
  call void @_ZmldRK7R2Point(ptr dead_on_unwind nonnull writable sret(%class.R2Point) align 8 %7, double noundef %118, ptr noundef nonnull align 8 dereferenceable(16) %119)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  %120 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6R3Mesh19VertexTextureCoordsEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %19)
  call void @_ZmldRK7R2Point(ptr dead_on_unwind nonnull writable sret(%class.R2Point) align 8 %8, double noundef %117, ptr noundef nonnull align 8 dereferenceable(16) %120)
  call void @_ZplRK7R2PointS1_(ptr dead_on_unwind nonnull writable sret(%class.R2Point) align 8 %6, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %8)
  call void @_ZN6R3Mesh22SetVertexTextureCoordsEP12R3MeshVertexRK7R2Point(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %15, ptr noundef nonnull align 8 dereferenceable(16) %6)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  %121 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh11VertexColorEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %17)
  call void @_ZmldRK5RNRgb(ptr dead_on_unwind nonnull writable sret(%class.RNRgb) align 8 %10, double noundef %118, ptr noundef nonnull align 8 dereferenceable(24) %121)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #6
  %122 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh11VertexColorEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %19)
  call void @_ZmldRK5RNRgb(ptr dead_on_unwind nonnull writable sret(%class.RNRgb) align 8 %11, double noundef %117, ptr noundef nonnull align 8 dereferenceable(24) %122)
  call void @_ZplRK5RNRgbS1_(ptr dead_on_unwind nonnull writable sret(%class.RNRgb) align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11)
  call void @_ZN6R3Mesh14SetVertexColorEP12R3MeshVertexRK5RNRgb(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %15, ptr noundef nonnull align 8 dereferenceable(24) %9)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  br label %123

123:                                              ; preds = %116, %108
  call void @_ZN6R3Mesh17SetVertexPositionEP12R3MeshVertexRK7R3Point(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %15, ptr noundef nonnull align 8 dereferenceable(24) %2)
  %.not195 = icmp eq ptr %3, null
  br i1 %.not195, label %125, label %124

124:                                              ; preds = %123
  store ptr %64, ptr %3, align 8, !tbaa !8
  br label %125

125:                                              ; preds = %124, %123
  %.not196 = icmp eq ptr %4, null
  br i1 %.not196, label %127, label %126

126:                                              ; preds = %125
  store ptr %68, ptr %4, align 8, !tbaa !8
  br label %127

127:                                              ; preds = %126, %125
  ret ptr %15
}

attributes #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { 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 #5 = { 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 #6 = { 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 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !10, i64 0}


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