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

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

@_ZTV6R3Mesh = external dso_local unnamed_addr constant { [82 x ptr] }, align 8
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNArrayIP12R3MeshVertexEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNArrayIP10R3MeshEdgeEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNArrayIP10R3MeshFaceEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

declare void @_ZN5R3BoxC1ERKS_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6R3MeshC2ERKS_(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull align 8 dereferenceable(272) %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %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 i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %35 = load ptr, ptr %3, align 8
  store ptr getelementptr inbounds inrange(-16, 640) ({ [82 x ptr] }, ptr @_ZTV6R3Mesh, i32 0, i32 0, i32 2), ptr %35, align 8, !tbaa !9
  %36 = getelementptr inbounds %class.R3Mesh, ptr %35, i32 0, i32 1
  call void @_ZN7RNArrayIP12R3MeshVertexEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %36)
  %37 = getelementptr inbounds %class.R3Mesh, ptr %35, i32 0, i32 2
  invoke void @_ZN7RNArrayIP10R3MeshEdgeEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %37)
          to label %38 unwind label %81

38:                                               ; preds = %2
  %39 = getelementptr inbounds %class.R3Mesh, ptr %35, i32 0, i32 3
  invoke void @_ZN7RNArrayIP10R3MeshFaceEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %39)
          to label %40 unwind label %85

40:                                               ; preds = %38
  %41 = getelementptr inbounds %class.R3Mesh, ptr %35, i32 0, i32 4
  store ptr null, ptr %41, align 8, !tbaa !11
  %42 = getelementptr inbounds %class.R3Mesh, ptr %35, i32 0, i32 5
  store ptr null, ptr %42, align 8, !tbaa !22
  %43 = getelementptr inbounds %class.R3Mesh, ptr %35, i32 0, i32 6
  store ptr null, ptr %43, align 8, !tbaa !23
  %44 = getelementptr inbounds %class.R3Mesh, ptr %35, i32 0, i32 8
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %class.R3Mesh, ptr %45, i32 0, i32 8
  invoke void @_ZN5R3BoxC1ERKS_(ptr noundef nonnull align 8 dereferenceable(56) %44, ptr noundef nonnull align 8 dereferenceable(56) %46)
          to label %47 unwind label %89

47:                                               ; preds = %40
  %48 = getelementptr inbounds %class.R3Mesh, ptr %35, i32 0, i32 9
  store ptr null, ptr %48, align 8, !tbaa !24
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = invoke noundef i32 @_ZNK6R3Mesh9NVerticesEv(ptr noundef nonnull align 8 dereferenceable(272) %49)
          to label %51 unwind label %93

51:                                               ; preds = %47
  %52 = sext i32 %50 to i64
  %53 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %52, i64 160)
  %54 = extractvalue { i64, i1 } %53, 1
  %55 = extractvalue { i64, i1 } %53, 0
  %56 = call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %55, i64 8)
  %57 = extractvalue { i64, i1 } %56, 1
  %58 = or i1 %54, %57
  %59 = extractvalue { i64, i1 } %56, 0
  %60 = select i1 %58, i64 -1, i64 %59
  %61 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %60) #9
          to label %62 unwind label %93

62:                                               ; preds = %51
  store i64 %52, ptr %61, align 16
  %63 = getelementptr inbounds i8, ptr %61, i64 8
  %64 = icmp eq i64 %52, 0
  br i1 %64, label %72, label %65

65:                                               ; preds = %62
  %66 = getelementptr inbounds %class.R3MeshVertex, ptr %63, i64 %52
  br label %67

67:                                               ; preds = %69, %65
  %68 = phi ptr [ %63, %65 ], [ %70, %69 ]
  invoke void @_ZN12R3MeshVertexC1Ev(ptr noundef nonnull align 8 dereferenceable(160) %68)
          to label %69 unwind label %97

69:                                               ; preds = %67
  %70 = getelementptr inbounds %class.R3MeshVertex, ptr %68, i64 1
  %71 = icmp eq ptr %70, %66
  br i1 %71, label %72, label %67

72:                                               ; preds = %69, %62
  %73 = getelementptr inbounds %class.R3Mesh, ptr %35, i32 0, i32 4
  store ptr %63, ptr %73, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #10
  store i32 0, ptr %7, align 4, !tbaa !25
  br label %74

74:                                               ; preds = %178, %72
  %75 = load i32, ptr %7, align 4, !tbaa !25
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = invoke noundef i32 @_ZNK6R3Mesh9NVerticesEv(ptr noundef nonnull align 8 dereferenceable(272) %76)
          to label %78 unwind label %107

78:                                               ; preds = %74
  %79 = icmp slt i32 %75, %77
  br i1 %79, label %111, label %80

80:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  br label %187

81:                                               ; preds = %2
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %5, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %6, align 4
  br label %510

85:                                               ; preds = %38
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %5, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %6, align 4
  br label %509

89:                                               ; preds = %40
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %5, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %6, align 4
  br label %508

93:                                               ; preds = %327, %324, %190, %187, %51, %47
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %5, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %6, align 4
  br label %507

97:                                               ; preds = %67
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %5, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %6, align 4
  %101 = icmp eq ptr %63, %68
  br i1 %101, label %106, label %102

102:                                              ; preds = %102, %97
  %103 = phi ptr [ %68, %97 ], [ %104, %102 ]
  %104 = getelementptr inbounds %class.R3MeshVertex, ptr %103, i64 -1
  call void @_ZN12R3MeshVertexD1Ev(ptr noundef nonnull align 8 dereferenceable(160) %104) #10
  %105 = icmp eq ptr %104, %63
  br i1 %105, label %106, label %102

106:                                              ; preds = %102, %97
  call void @_ZdaPvm(ptr noundef %61, i64 noundef %60) #11
  br label %507

107:                                              ; preds = %74
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %5, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %6, align 4
  br label %186

111:                                              ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #10
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = load i32, ptr %7, align 4, !tbaa !25
  %114 = invoke noundef ptr @_ZNK6R3Mesh6VertexEi(ptr noundef nonnull align 8 dereferenceable(272) %112, i32 noundef %113)
          to label %115 unwind label %153

115:                                              ; preds = %111
  store ptr %114, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #10
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  %118 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %116, ptr noundef %117)
          to label %119 unwind label %157

119:                                              ; preds = %115
  store ptr %118, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #10
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  %122 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh12VertexNormalEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %120, ptr noundef %121)
          to label %123 unwind label %161

123:                                              ; preds = %119
  store ptr %122, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #10
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh11VertexColorEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %124, ptr noundef %125)
          to label %127 unwind label %165

127:                                              ; preds = %123
  store ptr %126, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #10
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  %130 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6R3Mesh19VertexTextureCoordsEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %128, ptr noundef %129)
          to label %131 unwind label %169

131:                                              ; preds = %127
  store ptr %130, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #10
  %132 = load ptr, ptr %9, align 8, !tbaa !5
  %133 = load ptr, ptr %10, align 8, !tbaa !5
  %134 = load ptr, ptr %11, align 8, !tbaa !5
  %135 = load ptr, ptr %12, align 8, !tbaa !5
  %136 = getelementptr inbounds %class.R3Mesh, ptr %35, i32 0, i32 4
  %137 = load ptr, ptr %136, align 8, !tbaa !11
  %138 = load i32, ptr %7, align 4, !tbaa !25
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds %class.R3MeshVertex, ptr %137, i64 %139
  %141 = load ptr, ptr %35, align 8, !tbaa !9
  %142 = getelementptr inbounds ptr, ptr %141, i64 7
  %143 = load ptr, ptr %142, align 8
  %144 = invoke noundef ptr %143(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef nonnull align 8 dereferenceable(24) %132, ptr noundef nonnull align 8 dereferenceable(24) %133, ptr noundef nonnull align 8 dereferenceable(24) %134, ptr noundef nonnull align 8 dereferenceable(16) %135, ptr noundef %140)
          to label %145 unwind label %173

145:                                              ; preds = %131
  store ptr %144, ptr %13, align 8, !tbaa !5
  %146 = load ptr, ptr %13, align 8, !tbaa !5
  %147 = invoke noundef i32 @_ZNK6R3Mesh8VertexIDEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %146)
          to label %148 unwind label %173

148:                                              ; preds = %145
  %149 = load i32, ptr %7, align 4, !tbaa !25
  %150 = icmp ne i32 %147, %149
  br i1 %150, label %151, label %177

151:                                              ; preds = %148
  invoke void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str.3)
          to label %152 unwind label %173

152:                                              ; preds = %151
  br label %177

153:                                              ; preds = %111
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %5, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %6, align 4
  br label %185

157:                                              ; preds = %115
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %5, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %6, align 4
  br label %184

161:                                              ; preds = %119
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %5, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %6, align 4
  br label %183

165:                                              ; preds = %123
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %5, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %6, align 4
  br label %182

169:                                              ; preds = %127
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %5, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %6, align 4
  br label %181

173:                                              ; preds = %151, %145, %131
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %5, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  br label %181

177:                                              ; preds = %152, %148
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #10
  br label %178

178:                                              ; preds = %177
  %179 = load i32, ptr %7, align 4, !tbaa !25
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr %7, align 4, !tbaa !25
  br label %74, !llvm.loop !26

181:                                              ; preds = %173, %169
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #10
  br label %182

182:                                              ; preds = %181, %165
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  br label %183

183:                                              ; preds = %182, %161
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #10
  br label %184

184:                                              ; preds = %183, %157
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #10
  br label %185

185:                                              ; preds = %184, %153
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #10
  br label %186

186:                                              ; preds = %185, %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  br label %507

187:                                              ; preds = %80
  %188 = load ptr, ptr %4, align 8, !tbaa !5
  %189 = invoke noundef i32 @_ZNK6R3Mesh6NEdgesEv(ptr noundef nonnull align 8 dereferenceable(272) %188)
          to label %190 unwind label %93

190:                                              ; preds = %187
  %191 = sext i32 %189 to i64
  %192 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %191, i64 88)
  %193 = extractvalue { i64, i1 } %192, 1
  %194 = extractvalue { i64, i1 } %192, 0
  %195 = call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %194, i64 8)
  %196 = extractvalue { i64, i1 } %195, 1
  %197 = or i1 %193, %196
  %198 = extractvalue { i64, i1 } %195, 0
  %199 = select i1 %197, i64 -1, i64 %198
  %200 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %199) #9
          to label %201 unwind label %93

201:                                              ; preds = %190
  store i64 %191, ptr %200, align 16
  %202 = getelementptr inbounds i8, ptr %200, i64 8
  %203 = icmp eq i64 %191, 0
  br i1 %203, label %211, label %204

204:                                              ; preds = %201
  %205 = getelementptr inbounds %class.R3MeshEdge, ptr %202, i64 %191
  br label %206

206:                                              ; preds = %208, %204
  %207 = phi ptr [ %202, %204 ], [ %209, %208 ]
  invoke void @_ZN10R3MeshEdgeC1Ev(ptr noundef nonnull align 8 dereferenceable(88) %207)
          to label %208 unwind label %220

208:                                              ; preds = %206
  %209 = getelementptr inbounds %class.R3MeshEdge, ptr %207, i64 1
  %210 = icmp eq ptr %209, %205
  br i1 %210, label %211, label %206

211:                                              ; preds = %208, %201
  %212 = getelementptr inbounds %class.R3Mesh, ptr %35, i32 0, i32 5
  store ptr %202, ptr %212, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #10
  store i32 0, ptr %14, align 4, !tbaa !25
  br label %213

213:                                              ; preds = %313, %211
  %214 = load i32, ptr %14, align 4, !tbaa !25
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = invoke noundef i32 @_ZNK6R3Mesh6NEdgesEv(ptr noundef nonnull align 8 dereferenceable(272) %215)
          to label %217 unwind label %230

217:                                              ; preds = %213
  %218 = icmp slt i32 %214, %216
  br i1 %218, label %234, label %219

219:                                              ; preds = %217
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  br label %324

220:                                              ; preds = %206
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %5, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %6, align 4
  %224 = icmp eq ptr %202, %207
  br i1 %224, label %229, label %225

225:                                              ; preds = %225, %220
  %226 = phi ptr [ %207, %220 ], [ %227, %225 ]
  %227 = getelementptr inbounds %class.R3MeshEdge, ptr %226, i64 -1
  call void @_ZN10R3MeshEdgeD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %227) #10
  %228 = icmp eq ptr %227, %202
  br i1 %228, label %229, label %225

229:                                              ; preds = %225, %220
  call void @_ZdaPvm(ptr noundef %200, i64 noundef %199) #11
  br label %507

230:                                              ; preds = %213
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %5, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %6, align 4
  br label %323

234:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  %235 = load ptr, ptr %4, align 8, !tbaa !5
  %236 = load i32, ptr %14, align 4, !tbaa !25
  %237 = invoke noundef ptr @_ZNK6R3Mesh4EdgeEi(ptr noundef nonnull align 8 dereferenceable(272) %235, i32 noundef %236)
          to label %238 unwind label %280

238:                                              ; preds = %234
  store ptr %237, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  %239 = load ptr, ptr %4, align 8, !tbaa !5
  %240 = load ptr, ptr %15, align 8, !tbaa !5
  %241 = invoke noundef ptr @_ZNK6R3Mesh12VertexOnEdgeEPK10R3MeshEdgei(ptr noundef nonnull align 8 dereferenceable(272) %239, ptr noundef %240, i32 noundef 0)
          to label %242 unwind label %284

242:                                              ; preds = %238
  store ptr %241, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  %243 = load ptr, ptr %4, align 8, !tbaa !5
  %244 = load ptr, ptr %15, align 8, !tbaa !5
  %245 = invoke noundef ptr @_ZNK6R3Mesh12VertexOnEdgeEPK10R3MeshEdgei(ptr noundef nonnull align 8 dereferenceable(272) %243, ptr noundef %244, i32 noundef 1)
          to label %246 unwind label %288

246:                                              ; preds = %242
  store ptr %245, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #10
  %247 = load ptr, ptr %4, align 8, !tbaa !5
  %248 = load ptr, ptr %16, align 8, !tbaa !5
  %249 = invoke noundef i32 @_ZNK6R3Mesh8VertexIDEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %247, ptr noundef %248)
          to label %250 unwind label %292

250:                                              ; preds = %246
  store i32 %249, ptr %18, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #10
  %251 = load ptr, ptr %4, align 8, !tbaa !5
  %252 = load ptr, ptr %17, align 8, !tbaa !5
  %253 = invoke noundef i32 @_ZNK6R3Mesh8VertexIDEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %251, ptr noundef %252)
          to label %254 unwind label %296

254:                                              ; preds = %250
  store i32 %253, ptr %19, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #10
  %255 = load i32, ptr %18, align 4, !tbaa !25
  %256 = invoke noundef ptr @_ZNK6R3Mesh6VertexEi(ptr noundef nonnull align 8 dereferenceable(272) %35, i32 noundef %255)
          to label %257 unwind label %300

257:                                              ; preds = %254
  store ptr %256, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #10
  %258 = load i32, ptr %19, align 4, !tbaa !25
  %259 = invoke noundef ptr @_ZNK6R3Mesh6VertexEi(ptr noundef nonnull align 8 dereferenceable(272) %35, i32 noundef %258)
          to label %260 unwind label %304

260:                                              ; preds = %257
  store ptr %259, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #10
  %261 = load ptr, ptr %20, align 8, !tbaa !5
  %262 = load ptr, ptr %21, align 8, !tbaa !5
  %263 = getelementptr inbounds %class.R3Mesh, ptr %35, i32 0, i32 5
  %264 = load ptr, ptr %263, align 8, !tbaa !22
  %265 = load i32, ptr %14, align 4, !tbaa !25
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds %class.R3MeshEdge, ptr %264, i64 %266
  %268 = load ptr, ptr %35, align 8, !tbaa !9
  %269 = getelementptr inbounds ptr, ptr %268, i64 8
  %270 = load ptr, ptr %269, align 8
  %271 = invoke noundef ptr %270(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %261, ptr noundef %262, ptr noundef %267)
          to label %272 unwind label %308

272:                                              ; preds = %260
  store ptr %271, ptr %22, align 8, !tbaa !5
  %273 = load ptr, ptr %22, align 8, !tbaa !5
  %274 = invoke noundef i32 @_ZNK6R3Mesh6EdgeIDEPK10R3MeshEdge(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %273)
          to label %275 unwind label %308

275:                                              ; preds = %272
  %276 = load i32, ptr %14, align 4, !tbaa !25
  %277 = icmp ne i32 %274, %276
  br i1 %277, label %278, label %312

278:                                              ; preds = %275
  invoke void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str.4)
          to label %279 unwind label %308

279:                                              ; preds = %278
  br label %312

280:                                              ; preds = %234
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %5, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %6, align 4
  br label %322

284:                                              ; preds = %238
  %285 = landingpad { ptr, i32 }
          cleanup
  %286 = extractvalue { ptr, i32 } %285, 0
  store ptr %286, ptr %5, align 8
  %287 = extractvalue { ptr, i32 } %285, 1
  store i32 %287, ptr %6, align 4
  br label %321

288:                                              ; preds = %242
  %289 = landingpad { ptr, i32 }
          cleanup
  %290 = extractvalue { ptr, i32 } %289, 0
  store ptr %290, ptr %5, align 8
  %291 = extractvalue { ptr, i32 } %289, 1
  store i32 %291, ptr %6, align 4
  br label %320

292:                                              ; preds = %246
  %293 = landingpad { ptr, i32 }
          cleanup
  %294 = extractvalue { ptr, i32 } %293, 0
  store ptr %294, ptr %5, align 8
  %295 = extractvalue { ptr, i32 } %293, 1
  store i32 %295, ptr %6, align 4
  br label %319

296:                                              ; preds = %250
  %297 = landingpad { ptr, i32 }
          cleanup
  %298 = extractvalue { ptr, i32 } %297, 0
  store ptr %298, ptr %5, align 8
  %299 = extractvalue { ptr, i32 } %297, 1
  store i32 %299, ptr %6, align 4
  br label %318

300:                                              ; preds = %254
  %301 = landingpad { ptr, i32 }
          cleanup
  %302 = extractvalue { ptr, i32 } %301, 0
  store ptr %302, ptr %5, align 8
  %303 = extractvalue { ptr, i32 } %301, 1
  store i32 %303, ptr %6, align 4
  br label %317

304:                                              ; preds = %257
  %305 = landingpad { ptr, i32 }
          cleanup
  %306 = extractvalue { ptr, i32 } %305, 0
  store ptr %306, ptr %5, align 8
  %307 = extractvalue { ptr, i32 } %305, 1
  store i32 %307, ptr %6, align 4
  br label %316

308:                                              ; preds = %278, %272, %260
  %309 = landingpad { ptr, i32 }
          cleanup
  %310 = extractvalue { ptr, i32 } %309, 0
  store ptr %310, ptr %5, align 8
  %311 = extractvalue { ptr, i32 } %309, 1
  store i32 %311, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  br label %316

312:                                              ; preds = %279, %275
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  br label %313

313:                                              ; preds = %312
  %314 = load i32, ptr %14, align 4, !tbaa !25
  %315 = add nsw i32 %314, 1
  store i32 %315, ptr %14, align 4, !tbaa !25
  br label %213, !llvm.loop !28

316:                                              ; preds = %308, %304
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #10
  br label %317

317:                                              ; preds = %316, %300
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #10
  br label %318

318:                                              ; preds = %317, %296
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #10
  br label %319

319:                                              ; preds = %318, %292
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  br label %320

320:                                              ; preds = %319, %288
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  br label %321

321:                                              ; preds = %320, %284
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  br label %322

322:                                              ; preds = %321, %280
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  br label %323

323:                                              ; preds = %322, %230
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  br label %507

324:                                              ; preds = %219
  %325 = load ptr, ptr %4, align 8, !tbaa !5
  %326 = invoke noundef i32 @_ZNK6R3Mesh6NFacesEv(ptr noundef nonnull align 8 dereferenceable(272) %325)
          to label %327 unwind label %93

327:                                              ; preds = %324
  %328 = sext i32 %326 to i64
  %329 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %328, i64 200)
  %330 = extractvalue { i64, i1 } %329, 1
  %331 = extractvalue { i64, i1 } %329, 0
  %332 = call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %331, i64 8)
  %333 = extractvalue { i64, i1 } %332, 1
  %334 = or i1 %330, %333
  %335 = extractvalue { i64, i1 } %332, 0
  %336 = select i1 %334, i64 -1, i64 %335
  %337 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %336) #9
          to label %338 unwind label %93

338:                                              ; preds = %327
  store i64 %328, ptr %337, align 16
  %339 = getelementptr inbounds i8, ptr %337, i64 8
  %340 = icmp eq i64 %328, 0
  br i1 %340, label %348, label %341

341:                                              ; preds = %338
  %342 = getelementptr inbounds %class.R3MeshFace, ptr %339, i64 %328
  br label %343

343:                                              ; preds = %345, %341
  %344 = phi ptr [ %339, %341 ], [ %346, %345 ]
  invoke void @_ZN10R3MeshFaceC1Ev(ptr noundef nonnull align 8 dereferenceable(200) %344)
          to label %345 unwind label %357

345:                                              ; preds = %343
  %346 = getelementptr inbounds %class.R3MeshFace, ptr %344, i64 1
  %347 = icmp eq ptr %346, %342
  br i1 %347, label %348, label %343

348:                                              ; preds = %345, %338
  %349 = getelementptr inbounds %class.R3Mesh, ptr %35, i32 0, i32 6
  store ptr %339, ptr %349, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #10
  store i32 0, ptr %23, align 4, !tbaa !25
  br label %350

350:                                              ; preds = %492, %348
  %351 = load i32, ptr %23, align 4, !tbaa !25
  %352 = load ptr, ptr %4, align 8, !tbaa !5
  %353 = invoke noundef i32 @_ZNK6R3Mesh6NFacesEv(ptr noundef nonnull align 8 dereferenceable(272) %352)
          to label %354 unwind label %367

354:                                              ; preds = %350
  %355 = icmp slt i32 %351, %353
  br i1 %355, label %371, label %356

356:                                              ; preds = %354
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #10
  br label %506

357:                                              ; preds = %343
  %358 = landingpad { ptr, i32 }
          cleanup
  %359 = extractvalue { ptr, i32 } %358, 0
  store ptr %359, ptr %5, align 8
  %360 = extractvalue { ptr, i32 } %358, 1
  store i32 %360, ptr %6, align 4
  %361 = icmp eq ptr %339, %344
  br i1 %361, label %366, label %362

362:                                              ; preds = %362, %357
  %363 = phi ptr [ %344, %357 ], [ %364, %362 ]
  %364 = getelementptr inbounds %class.R3MeshFace, ptr %363, i64 -1
  call void @_ZN10R3MeshFaceD1Ev(ptr noundef nonnull align 8 dereferenceable(200) %364) #10
  %365 = icmp eq ptr %364, %339
  br i1 %365, label %366, label %362

366:                                              ; preds = %362, %357
  call void @_ZdaPvm(ptr noundef %337, i64 noundef %336) #11
  br label %507

367:                                              ; preds = %350
  %368 = landingpad { ptr, i32 }
          cleanup
  %369 = extractvalue { ptr, i32 } %368, 0
  store ptr %369, ptr %5, align 8
  %370 = extractvalue { ptr, i32 } %368, 1
  store i32 %370, ptr %6, align 4
  br label %505

371:                                              ; preds = %354
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #10
  %372 = load ptr, ptr %4, align 8, !tbaa !5
  %373 = load i32, ptr %23, align 4, !tbaa !25
  %374 = invoke noundef ptr @_ZNK6R3Mesh4FaceEi(ptr noundef nonnull align 8 dereferenceable(272) %372, i32 noundef %373)
          to label %375 unwind label %429

375:                                              ; preds = %371
  store ptr %374, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #10
  %376 = load ptr, ptr %4, align 8, !tbaa !5
  %377 = load ptr, ptr %24, align 8, !tbaa !5
  %378 = invoke noundef ptr @_ZNK6R3Mesh12VertexOnFaceEPK10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %376, ptr noundef %377, i32 noundef 0)
          to label %379 unwind label %433

379:                                              ; preds = %375
  store ptr %378, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #10
  %380 = load ptr, ptr %4, align 8, !tbaa !5
  %381 = load ptr, ptr %24, align 8, !tbaa !5
  %382 = invoke noundef ptr @_ZNK6R3Mesh12VertexOnFaceEPK10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %380, ptr noundef %381, i32 noundef 1)
          to label %383 unwind label %437

383:                                              ; preds = %379
  store ptr %382, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #10
  %384 = load ptr, ptr %4, align 8, !tbaa !5
  %385 = load ptr, ptr %24, align 8, !tbaa !5
  %386 = invoke noundef ptr @_ZNK6R3Mesh12VertexOnFaceEPK10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %384, ptr noundef %385, i32 noundef 2)
          to label %387 unwind label %441

387:                                              ; preds = %383
  store ptr %386, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #10
  %388 = load ptr, ptr %4, align 8, !tbaa !5
  %389 = load ptr, ptr %25, align 8, !tbaa !5
  %390 = invoke noundef i32 @_ZNK6R3Mesh8VertexIDEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %388, ptr noundef %389)
          to label %391 unwind label %445

391:                                              ; preds = %387
  store i32 %390, ptr %28, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #10
  %392 = load ptr, ptr %4, align 8, !tbaa !5
  %393 = load ptr, ptr %26, align 8, !tbaa !5
  %394 = invoke noundef i32 @_ZNK6R3Mesh8VertexIDEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %392, ptr noundef %393)
          to label %395 unwind label %449

395:                                              ; preds = %391
  store i32 %394, ptr %29, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #10
  %396 = load ptr, ptr %4, align 8, !tbaa !5
  %397 = load ptr, ptr %27, align 8, !tbaa !5
  %398 = invoke noundef i32 @_ZNK6R3Mesh8VertexIDEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %396, ptr noundef %397)
          to label %399 unwind label %453

399:                                              ; preds = %395
  store i32 %398, ptr %30, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #10
  %400 = load i32, ptr %28, align 4, !tbaa !25
  %401 = invoke noundef ptr @_ZNK6R3Mesh6VertexEi(ptr noundef nonnull align 8 dereferenceable(272) %35, i32 noundef %400)
          to label %402 unwind label %457

402:                                              ; preds = %399
  store ptr %401, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #10
  %403 = load i32, ptr %29, align 4, !tbaa !25
  %404 = invoke noundef ptr @_ZNK6R3Mesh6VertexEi(ptr noundef nonnull align 8 dereferenceable(272) %35, i32 noundef %403)
          to label %405 unwind label %461

405:                                              ; preds = %402
  store ptr %404, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #10
  %406 = load i32, ptr %30, align 4, !tbaa !25
  %407 = invoke noundef ptr @_ZNK6R3Mesh6VertexEi(ptr noundef nonnull align 8 dereferenceable(272) %35, i32 noundef %406)
          to label %408 unwind label %465

408:                                              ; preds = %405
  store ptr %407, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #10
  %409 = load ptr, ptr %31, align 8, !tbaa !5
  %410 = load ptr, ptr %32, align 8, !tbaa !5
  %411 = load ptr, ptr %33, align 8, !tbaa !5
  %412 = getelementptr inbounds %class.R3Mesh, ptr %35, i32 0, i32 6
  %413 = load ptr, ptr %412, align 8, !tbaa !23
  %414 = load i32, ptr %23, align 4, !tbaa !25
  %415 = sext i32 %414 to i64
  %416 = getelementptr inbounds %class.R3MeshFace, ptr %413, i64 %415
  %417 = load ptr, ptr %35, align 8, !tbaa !9
  %418 = getelementptr inbounds ptr, ptr %417, i64 9
  %419 = load ptr, ptr %418, align 8
  %420 = invoke noundef ptr %419(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %409, ptr noundef %410, ptr noundef %411, ptr noundef %416)
          to label %421 unwind label %469

421:                                              ; preds = %408
  store ptr %420, ptr %34, align 8, !tbaa !5
  %422 = load ptr, ptr %34, align 8, !tbaa !5
  %423 = invoke noundef i32 @_ZNK6R3Mesh6FaceIDEPK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %422)
          to label %424 unwind label %469

424:                                              ; preds = %421
  %425 = load i32, ptr %23, align 4, !tbaa !25
  %426 = icmp ne i32 %423, %425
  br i1 %426, label %427, label %473

427:                                              ; preds = %424
  invoke void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str.5)
          to label %428 unwind label %469

428:                                              ; preds = %427
  br label %473

429:                                              ; preds = %371
  %430 = landingpad { ptr, i32 }
          cleanup
  %431 = extractvalue { ptr, i32 } %430, 0
  store ptr %431, ptr %5, align 8
  %432 = extractvalue { ptr, i32 } %430, 1
  store i32 %432, ptr %6, align 4
  br label %504

433:                                              ; preds = %375
  %434 = landingpad { ptr, i32 }
          cleanup
  %435 = extractvalue { ptr, i32 } %434, 0
  store ptr %435, ptr %5, align 8
  %436 = extractvalue { ptr, i32 } %434, 1
  store i32 %436, ptr %6, align 4
  br label %503

437:                                              ; preds = %379
  %438 = landingpad { ptr, i32 }
          cleanup
  %439 = extractvalue { ptr, i32 } %438, 0
  store ptr %439, ptr %5, align 8
  %440 = extractvalue { ptr, i32 } %438, 1
  store i32 %440, ptr %6, align 4
  br label %502

441:                                              ; preds = %383
  %442 = landingpad { ptr, i32 }
          cleanup
  %443 = extractvalue { ptr, i32 } %442, 0
  store ptr %443, ptr %5, align 8
  %444 = extractvalue { ptr, i32 } %442, 1
  store i32 %444, ptr %6, align 4
  br label %501

445:                                              ; preds = %387
  %446 = landingpad { ptr, i32 }
          cleanup
  %447 = extractvalue { ptr, i32 } %446, 0
  store ptr %447, ptr %5, align 8
  %448 = extractvalue { ptr, i32 } %446, 1
  store i32 %448, ptr %6, align 4
  br label %500

449:                                              ; preds = %391
  %450 = landingpad { ptr, i32 }
          cleanup
  %451 = extractvalue { ptr, i32 } %450, 0
  store ptr %451, ptr %5, align 8
  %452 = extractvalue { ptr, i32 } %450, 1
  store i32 %452, ptr %6, align 4
  br label %499

453:                                              ; preds = %395
  %454 = landingpad { ptr, i32 }
          cleanup
  %455 = extractvalue { ptr, i32 } %454, 0
  store ptr %455, ptr %5, align 8
  %456 = extractvalue { ptr, i32 } %454, 1
  store i32 %456, ptr %6, align 4
  br label %498

457:                                              ; preds = %399
  %458 = landingpad { ptr, i32 }
          cleanup
  %459 = extractvalue { ptr, i32 } %458, 0
  store ptr %459, ptr %5, align 8
  %460 = extractvalue { ptr, i32 } %458, 1
  store i32 %460, ptr %6, align 4
  br label %497

461:                                              ; preds = %402
  %462 = landingpad { ptr, i32 }
          cleanup
  %463 = extractvalue { ptr, i32 } %462, 0
  store ptr %463, ptr %5, align 8
  %464 = extractvalue { ptr, i32 } %462, 1
  store i32 %464, ptr %6, align 4
  br label %496

465:                                              ; preds = %405
  %466 = landingpad { ptr, i32 }
          cleanup
  %467 = extractvalue { ptr, i32 } %466, 0
  store ptr %467, ptr %5, align 8
  %468 = extractvalue { ptr, i32 } %466, 1
  store i32 %468, ptr %6, align 4
  br label %495

469:                                              ; preds = %490, %485, %484, %479, %478, %473, %427, %421, %408
  %470 = landingpad { ptr, i32 }
          cleanup
  %471 = extractvalue { ptr, i32 } %470, 0
  store ptr %471, ptr %5, align 8
  %472 = extractvalue { ptr, i32 } %470, 1
  store i32 %472, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #10
  br label %495

473:                                              ; preds = %428, %424
  %474 = load ptr, ptr %34, align 8, !tbaa !5
  %475 = load ptr, ptr %4, align 8, !tbaa !5
  %476 = load ptr, ptr %24, align 8, !tbaa !5
  %477 = invoke noundef i32 @_ZNK6R3Mesh12FaceMaterialEPK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %475, ptr noundef %476)
          to label %478 unwind label %469

478:                                              ; preds = %473
  invoke void @_ZN6R3Mesh15SetFaceMaterialEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %474, i32 noundef %477)
          to label %479 unwind label %469

479:                                              ; preds = %478
  %480 = load ptr, ptr %34, align 8, !tbaa !5
  %481 = load ptr, ptr %4, align 8, !tbaa !5
  %482 = load ptr, ptr %24, align 8, !tbaa !5
  %483 = invoke noundef i32 @_ZNK6R3Mesh11FaceSegmentEPK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %481, ptr noundef %482)
          to label %484 unwind label %469

484:                                              ; preds = %479
  invoke void @_ZN6R3Mesh14SetFaceSegmentEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %480, i32 noundef %483)
          to label %485 unwind label %469

485:                                              ; preds = %484
  %486 = load ptr, ptr %34, align 8, !tbaa !5
  %487 = load ptr, ptr %4, align 8, !tbaa !5
  %488 = load ptr, ptr %24, align 8, !tbaa !5
  %489 = invoke noundef i32 @_ZNK6R3Mesh12FaceCategoryEPK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %487, ptr noundef %488)
          to label %490 unwind label %469

490:                                              ; preds = %485
  invoke void @_ZN6R3Mesh15SetFaceCategoryEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %35, ptr noundef %486, i32 noundef %489)
          to label %491 unwind label %469

491:                                              ; preds = %490
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  br label %492

492:                                              ; preds = %491
  %493 = load i32, ptr %23, align 4, !tbaa !25
  %494 = add nsw i32 %493, 1
  store i32 %494, ptr %23, align 4, !tbaa !25
  br label %350, !llvm.loop !29

495:                                              ; preds = %469, %465
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #10
  br label %496

496:                                              ; preds = %495, %461
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #10
  br label %497

497:                                              ; preds = %496, %457
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #10
  br label %498

498:                                              ; preds = %497, %453
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #10
  br label %499

499:                                              ; preds = %498, %449
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #10
  br label %500

500:                                              ; preds = %499, %445
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #10
  br label %501

501:                                              ; preds = %500, %441
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #10
  br label %502

502:                                              ; preds = %501, %437
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  br label %503

503:                                              ; preds = %502, %433
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  br label %504

504:                                              ; preds = %503, %429
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #10
  br label %505

505:                                              ; preds = %504, %367
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #10
  br label %507

506:                                              ; preds = %356
  ret void

507:                                              ; preds = %505, %366, %323, %229, %186, %106, %93
  call void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %44) #10
  br label %508

508:                                              ; preds = %507, %89
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %39) #10
  br label %509

509:                                              ; preds = %508, %85
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %37) #10
  br label %510

510:                                              ; preds = %509, %81
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %36) #10
  br label %511

511:                                              ; preds = %510
  %512 = load ptr, ptr %5, align 8
  %513 = load i32, ptr %6, align 4
  %514 = insertvalue { ptr, i32 } poison, ptr %512, 0
  %515 = insertvalue { ptr, i32 } %514, i32 %513, 1
  resume { ptr, i32 } %515
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.uadd.with.overflow.i64(i64, i64) #3

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

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

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

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

; 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) #7 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh12VertexNormalEPK12R3MeshVertex(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) #7 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) #7 align 2

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZNK6R3Mesh12VertexOnEdgeEPK10R3MeshEdgei(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 @_ZNK6R3Mesh6EdgeIDEPK10R3MeshEdge(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef) #7 align 2

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind
declare void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #8

; Function Attrs: nounwind
declare void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #8

declare void @_ZN12R3MeshVertexC1Ev(ptr)

declare void @_ZN12R3MeshVertexD1Ev(ptr)

declare void @_ZN10R3MeshEdgeC1Ev(ptr)

declare void @_ZN10R3MeshEdgeD1Ev(ptr)

declare void @_ZN10R3MeshFaceC1Ev(ptr)

declare void @_ZN10R3MeshFaceD1Ev(ptr)

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress 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 nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { 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 #6 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #8 = { 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 #9 = { builtin allocsize(0) }
attributes #10 = { nounwind }
attributes #11 = { 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, !6, i64 56}
!12 = !{!"_ZTS6R3Mesh", !13, i64 8, !16, i64 24, !17, i64 40, !6, i64 56, !6, i64 64, !6, i64 72, !7, i64 80, !18, i64 208, !6, i64 264}
!13 = !{!"_ZTS7RNArrayIP12R3MeshVertexE", !14, i64 0}
!14 = !{!"_ZTS8RNVArray", !6, i64 0, !15, i64 8, !15, i64 12}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTS7RNArrayIP10R3MeshEdgeE", !14, i64 0}
!17 = !{!"_ZTS7RNArrayIP10R3MeshFaceE", !14, i64 0}
!18 = !{!"_ZTS5R3Box", !19, i64 0, !21, i64 8, !21, i64 32}
!19 = !{!"_ZTS7R3Solid", !20, i64 0}
!20 = !{!"_ZTS7R3Shape"}
!21 = !{!"_ZTS7R3Point", !7, i64 0}
!22 = !{!12, !6, i64 64}
!23 = !{!12, !6, i64 72}
!24 = !{!12, !6, i64 264}
!25 = !{!15, !15, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = distinct !{!29, !27}


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

@_ZTV6R3Mesh = external dso_local unnamed_addr constant { [82 x ptr] }, align 8
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNArrayIP12R3MeshVertexEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNArrayIP10R3MeshEdgeEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7RNArrayIP10R3MeshFaceEC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

declare void @_ZN5R3BoxC1ERKS_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6R3MeshC2ERKS_(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull align 8 dereferenceable(272) %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  store ptr getelementptr inbounds inrange(-16, 640) (i8, ptr @_ZTV6R3Mesh, i64 16), ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @_ZN7RNArrayIP12R3MeshVertexEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3)
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  invoke void @_ZN7RNArrayIP10R3MeshEdgeEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %5 unwind label %38

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  invoke void @_ZN7RNArrayIP10R3MeshFaceEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %7 unwind label %40

7:                                                ; preds = %5
  %8 = getelementptr inbounds i8, ptr %0, i64 56
  %9 = getelementptr inbounds i8, ptr %0, i64 64
  %10 = getelementptr inbounds i8, ptr %0, i64 72
  %11 = getelementptr inbounds i8, ptr %0, i64 208
  %12 = getelementptr inbounds i8, ptr %1, i64 208
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %8, i8 0, i64 24, i1 false)
  invoke void @_ZN5R3BoxC1ERKS_(ptr noundef nonnull align 8 dereferenceable(56) %11, ptr noundef nonnull align 8 dereferenceable(56) %12)
          to label %13 unwind label %42

13:                                               ; preds = %7
  %14 = getelementptr inbounds i8, ptr %0, i64 264
  store ptr null, ptr %14, align 8, !tbaa !8
  %15 = invoke noundef i32 @_ZNK6R3Mesh9NVerticesEv(ptr noundef nonnull align 8 dereferenceable(272) %1)
          to label %16 unwind label %44

16:                                               ; preds = %13
  %17 = sext i32 %15 to i64
  %18 = tail call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %17, i64 160)
  %19 = extractvalue { i64, i1 } %18, 1
  %20 = extractvalue { i64, i1 } %18, 0
  %21 = or disjoint i64 %20, 8
  %22 = select i1 %19, i64 -1, i64 %21
  %23 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %22) #9
          to label %24 unwind label %44

24:                                               ; preds = %16
  store i64 %17, ptr %23, align 16
  %.ptr112 = getelementptr inbounds i8, ptr %23, i64 8
  %25 = icmp eq i32 %15, 0
  br i1 %25, label %.loopexit163, label %26

26:                                               ; preds = %24
  %27 = getelementptr inbounds %class.R3MeshVertex, ptr %.ptr112, i64 %17
  br label %28

28:                                               ; preds = %29, %26
  %.idx = phi i64 [ 8, %26 ], [ %.add, %29 ]
  %.ptr.ptr = getelementptr inbounds i8, ptr %23, i64 %.idx
  invoke void @_ZN12R3MeshVertexC1Ev(ptr noundef nonnull align 8 dereferenceable(160) %.ptr.ptr)
          to label %29 unwind label %46

29:                                               ; preds = %28
  %.add = add nuw nsw i64 %.idx, 160
  %.ptr111 = getelementptr inbounds i8, ptr %23, i64 %.add
  %30 = icmp eq ptr %.ptr111, %27
  br i1 %30, label %.loopexit163, label %28

.loopexit163:                                     ; preds = %29, %24
  store ptr %.ptr112, ptr %8, align 8, !tbaa !21
  br label %31

31:                                               ; preds = %77, %.loopexit163
  %indvars.iv = phi i64 [ %indvars.iv.next, %77 ], [ 0, %.loopexit163 ]
  %32 = invoke noundef i32 @_ZNK6R3Mesh9NVerticesEv(ptr noundef nonnull align 8 dereferenceable(272) %1)
          to label %33 unwind label %50

33:                                               ; preds = %31
  %34 = sext i32 %32 to i64
  %35 = icmp slt i64 %indvars.iv, %34
  br i1 %35, label %52, label %36

36:                                               ; preds = %33
  %37 = invoke noundef i32 @_ZNK6R3Mesh6NEdgesEv(ptr noundef nonnull align 8 dereferenceable(272) %1)
          to label %78 unwind label %44

38:                                               ; preds = %2
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %219

40:                                               ; preds = %5
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %218

42:                                               ; preds = %7
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %217

44:                                               ; preds = %146, %101, %78, %36, %16, %13
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %216

46:                                               ; preds = %28
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = icmp eq i64 %.idx, 8
  br i1 %48, label %.loopexit162, label %.preheader161

.preheader161:                                    ; preds = %46, %.preheader161
  %.idx113 = phi i64 [ %.add114, %.preheader161 ], [ %.idx, %46 ]
  %.add114 = add nsw i64 %.idx113, -160
  %.ptr116 = getelementptr inbounds i8, ptr %23, i64 %.add114
  tail call void @_ZN12R3MeshVertexD1Ev(ptr noundef nonnull align 8 dereferenceable(160) %.ptr116) #10
  %49 = icmp eq i64 %.add114, 8
  br i1 %49, label %.loopexit162, label %.preheader161

.loopexit162:                                     ; preds = %.preheader161, %46
  tail call void @_ZdaPvm(ptr noundef nonnull %23, i64 noundef %22) #11
  br label %216

50:                                               ; preds = %31
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %216

52:                                               ; preds = %33
  %53 = trunc nuw nsw i64 %indvars.iv to i32
  %54 = invoke noundef ptr @_ZNK6R3Mesh6VertexEi(ptr noundef nonnull align 8 dereferenceable(272) %1, i32 noundef %53)
          to label %55 unwind label %71

55:                                               ; preds = %52
  %56 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef %54)
  %57 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh12VertexNormalEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef %54)
          to label %58 unwind label %73

58:                                               ; preds = %55
  %59 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh11VertexColorEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef %54)
  %60 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6R3Mesh19VertexTextureCoordsEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef %54)
  %61 = load ptr, ptr %8, align 8, !tbaa !21
  %62 = getelementptr inbounds %class.R3MeshVertex, ptr %61, i64 %indvars.iv
  %63 = load ptr, ptr %0, align 8, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %63, i64 56
  %65 = load ptr, ptr %64, align 8
  %66 = invoke noundef ptr %65(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull align 8 dereferenceable(24) %56, ptr noundef nonnull align 8 dereferenceable(24) %57, ptr noundef nonnull align 8 dereferenceable(24) %59, ptr noundef nonnull align 8 dereferenceable(16) %60, ptr noundef %62)
          to label %67 unwind label %75

67:                                               ; preds = %58
  %68 = tail call noundef i32 @_ZNK6R3Mesh8VertexIDEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %66)
  %69 = zext i32 %68 to i64
  %.not148 = icmp eq i64 %indvars.iv, %69
  br i1 %.not148, label %77, label %70

70:                                               ; preds = %67
  invoke void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str.3)
          to label %77 unwind label %75

71:                                               ; preds = %52
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %216

73:                                               ; preds = %55
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %216

75:                                               ; preds = %70, %58
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %216

77:                                               ; preds = %70, %67
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  br label %31, !llvm.loop !22

78:                                               ; preds = %36
  %79 = sext i32 %37 to i64
  %80 = tail call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %79, i64 88)
  %81 = extractvalue { i64, i1 } %80, 1
  %82 = extractvalue { i64, i1 } %80, 0
  %83 = tail call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %82, i64 8)
  %84 = extractvalue { i64, i1 } %83, 1
  %85 = or i1 %81, %84
  %86 = extractvalue { i64, i1 } %83, 0
  %87 = select i1 %85, i64 -1, i64 %86
  %88 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %87) #9
          to label %89 unwind label %44

89:                                               ; preds = %78
  store i64 %79, ptr %88, align 16
  %.ptr120 = getelementptr inbounds i8, ptr %88, i64 8
  %90 = icmp eq i32 %37, 0
  br i1 %90, label %.loopexit160, label %91

91:                                               ; preds = %89
  %92 = getelementptr inbounds %class.R3MeshEdge, ptr %.ptr120, i64 %79
  br label %93

93:                                               ; preds = %94, %91
  %.idx117 = phi i64 [ 8, %91 ], [ %.add118, %94 ]
  %.ptr.ptr125 = getelementptr inbounds i8, ptr %88, i64 %.idx117
  invoke void @_ZN10R3MeshEdgeC1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr.ptr125)
          to label %94 unwind label %103

94:                                               ; preds = %93
  %.add118 = add nuw nsw i64 %.idx117, 88
  %.ptr119 = getelementptr inbounds i8, ptr %88, i64 %.add118
  %95 = icmp eq ptr %.ptr119, %92
  br i1 %95, label %.loopexit160, label %93

.loopexit160:                                     ; preds = %94, %89
  store ptr %.ptr120, ptr %9, align 8, !tbaa !24
  br label %96

96:                                               ; preds = %145, %.loopexit160
  %indvars.iv171 = phi i64 [ %indvars.iv.next172, %145 ], [ 0, %.loopexit160 ]
  %97 = invoke noundef i32 @_ZNK6R3Mesh6NEdgesEv(ptr noundef nonnull align 8 dereferenceable(272) %1)
          to label %98 unwind label %107

98:                                               ; preds = %96
  %99 = sext i32 %97 to i64
  %100 = icmp slt i64 %indvars.iv171, %99
  br i1 %100, label %109, label %101

101:                                              ; preds = %98
  %102 = invoke noundef i32 @_ZNK6R3Mesh6NFacesEv(ptr noundef nonnull align 8 dereferenceable(272) %1)
          to label %146 unwind label %44

103:                                              ; preds = %93
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = icmp eq i64 %.idx117, 8
  br i1 %105, label %.loopexit159, label %.preheader158

.preheader158:                                    ; preds = %103, %.preheader158
  %.idx121 = phi i64 [ %.add122, %.preheader158 ], [ %.idx117, %103 ]
  %.add122 = add nsw i64 %.idx121, -88
  %.ptr124 = getelementptr inbounds i8, ptr %88, i64 %.add122
  tail call void @_ZN10R3MeshEdgeD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %.ptr124) #10
  %106 = icmp eq i64 %.add122, 8
  br i1 %106, label %.loopexit159, label %.preheader158

.loopexit159:                                     ; preds = %.preheader158, %103
  tail call void @_ZdaPvm(ptr noundef nonnull %88, i64 noundef %87) #11
  br label %216

107:                                              ; preds = %96
  %108 = landingpad { ptr, i32 }
          cleanup
  br label %216

109:                                              ; preds = %98
  %110 = trunc nuw nsw i64 %indvars.iv171 to i32
  %111 = invoke noundef ptr @_ZNK6R3Mesh4EdgeEi(ptr noundef nonnull align 8 dereferenceable(272) %1, i32 noundef %110)
          to label %112 unwind label %133

112:                                              ; preds = %109
  %113 = invoke noundef ptr @_ZNK6R3Mesh12VertexOnEdgeEPK10R3MeshEdgei(ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef %111, i32 noundef 0)
          to label %114 unwind label %135

114:                                              ; preds = %112
  %115 = invoke noundef ptr @_ZNK6R3Mesh12VertexOnEdgeEPK10R3MeshEdgei(ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef %111, i32 noundef 1)
          to label %116 unwind label %137

116:                                              ; preds = %114
  %117 = tail call noundef i32 @_ZNK6R3Mesh8VertexIDEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef %113)
  %118 = tail call noundef i32 @_ZNK6R3Mesh8VertexIDEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef %115)
  %119 = invoke noundef ptr @_ZNK6R3Mesh6VertexEi(ptr noundef nonnull align 8 dereferenceable(272) %0, i32 noundef %117)
          to label %120 unwind label %139

120:                                              ; preds = %116
  %121 = invoke noundef ptr @_ZNK6R3Mesh6VertexEi(ptr noundef nonnull align 8 dereferenceable(272) %0, i32 noundef %118)
          to label %122 unwind label %141

122:                                              ; preds = %120
  %123 = load ptr, ptr %9, align 8, !tbaa !24
  %124 = getelementptr inbounds %class.R3MeshEdge, ptr %123, i64 %indvars.iv171
  %125 = load ptr, ptr %0, align 8, !tbaa !5
  %126 = getelementptr inbounds i8, ptr %125, i64 64
  %127 = load ptr, ptr %126, align 8
  %128 = invoke noundef ptr %127(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %119, ptr noundef %121, ptr noundef %124)
          to label %129 unwind label %143

129:                                              ; preds = %122
  %130 = tail call noundef i32 @_ZNK6R3Mesh6EdgeIDEPK10R3MeshEdge(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %128)
  %131 = zext i32 %130 to i64
  %.not140 = icmp eq i64 %indvars.iv171, %131
  br i1 %.not140, label %145, label %132

132:                                              ; preds = %129
  invoke void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str.4)
          to label %145 unwind label %143

133:                                              ; preds = %109
  %134 = landingpad { ptr, i32 }
          cleanup
  br label %216

135:                                              ; preds = %112
  %136 = landingpad { ptr, i32 }
          cleanup
  br label %216

137:                                              ; preds = %114
  %138 = landingpad { ptr, i32 }
          cleanup
  br label %216

139:                                              ; preds = %116
  %140 = landingpad { ptr, i32 }
          cleanup
  br label %216

141:                                              ; preds = %120
  %142 = landingpad { ptr, i32 }
          cleanup
  br label %216

143:                                              ; preds = %132, %122
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %216

145:                                              ; preds = %132, %129
  %indvars.iv.next172 = add nuw nsw i64 %indvars.iv171, 1
  br label %96, !llvm.loop !25

146:                                              ; preds = %101
  %147 = sext i32 %102 to i64
  %148 = tail call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %147, i64 200)
  %149 = extractvalue { i64, i1 } %148, 1
  %150 = extractvalue { i64, i1 } %148, 0
  %151 = tail call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %150, i64 8)
  %152 = extractvalue { i64, i1 } %151, 1
  %153 = or i1 %149, %152
  %154 = extractvalue { i64, i1 } %151, 0
  %155 = select i1 %153, i64 -1, i64 %154
  %156 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %155) #9
          to label %157 unwind label %44

157:                                              ; preds = %146
  store i64 %147, ptr %156, align 16
  %.ptr129 = getelementptr inbounds i8, ptr %156, i64 8
  %158 = icmp eq i32 %102, 0
  br i1 %158, label %.loopexit157, label %159

159:                                              ; preds = %157
  %160 = getelementptr inbounds %class.R3MeshFace, ptr %.ptr129, i64 %147
  br label %161

161:                                              ; preds = %162, %159
  %.idx126 = phi i64 [ 8, %159 ], [ %.add127, %162 ]
  %.ptr.ptr134 = getelementptr inbounds i8, ptr %156, i64 %.idx126
  invoke void @_ZN10R3MeshFaceC1Ev(ptr noundef nonnull align 8 dereferenceable(200) %.ptr.ptr134)
          to label %162 unwind label %170

162:                                              ; preds = %161
  %.add127 = add nuw nsw i64 %.idx126, 200
  %.ptr128 = getelementptr inbounds i8, ptr %156, i64 %.add127
  %163 = icmp eq ptr %.ptr128, %160
  br i1 %163, label %.loopexit157, label %161

.loopexit157:                                     ; preds = %162, %157
  store ptr %.ptr129, ptr %10, align 8, !tbaa !26
  br label %164

164:                                              ; preds = %212, %.loopexit157
  %indvars.iv174 = phi i64 [ %indvars.iv.next175, %212 ], [ 0, %.loopexit157 ]
  %165 = invoke noundef i32 @_ZNK6R3Mesh6NFacesEv(ptr noundef nonnull align 8 dereferenceable(272) %1)
          to label %166 unwind label %174

166:                                              ; preds = %164
  %167 = sext i32 %165 to i64
  %168 = icmp slt i64 %indvars.iv174, %167
  br i1 %168, label %176, label %169

169:                                              ; preds = %166
  ret void

170:                                              ; preds = %161
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = icmp eq i64 %.idx126, 8
  br i1 %172, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %170, %.preheader
  %.idx130 = phi i64 [ %.add131, %.preheader ], [ %.idx126, %170 ]
  %.add131 = add nsw i64 %.idx130, -200
  %.ptr133 = getelementptr inbounds i8, ptr %156, i64 %.add131
  tail call void @_ZN10R3MeshFaceD1Ev(ptr noundef nonnull align 8 dereferenceable(200) %.ptr133) #10
  %173 = icmp eq i64 %.add131, 8
  br i1 %173, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %170
  tail call void @_ZdaPvm(ptr noundef nonnull %156, i64 noundef %155) #11
  br label %216

174:                                              ; preds = %164
  %175 = landingpad { ptr, i32 }
          cleanup
  br label %216

176:                                              ; preds = %166
  %177 = trunc nuw nsw i64 %indvars.iv174 to i32
  %178 = invoke noundef ptr @_ZNK6R3Mesh4FaceEi(ptr noundef nonnull align 8 dereferenceable(272) %1, i32 noundef %177)
          to label %179 unwind label %202

179:                                              ; preds = %176
  %180 = tail call noundef ptr @_ZNK6R3Mesh12VertexOnFaceEPK10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef %178, i32 noundef 0)
  %181 = tail call noundef ptr @_ZNK6R3Mesh12VertexOnFaceEPK10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef %178, i32 noundef 1)
  %182 = tail call noundef ptr @_ZNK6R3Mesh12VertexOnFaceEPK10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef %178, i32 noundef 2)
  %183 = tail call noundef i32 @_ZNK6R3Mesh8VertexIDEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef %180)
  %184 = tail call noundef i32 @_ZNK6R3Mesh8VertexIDEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef %181)
  %185 = tail call noundef i32 @_ZNK6R3Mesh8VertexIDEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef %182)
  %186 = invoke noundef ptr @_ZNK6R3Mesh6VertexEi(ptr noundef nonnull align 8 dereferenceable(272) %0, i32 noundef %183)
          to label %187 unwind label %204

187:                                              ; preds = %179
  %188 = invoke noundef ptr @_ZNK6R3Mesh6VertexEi(ptr noundef nonnull align 8 dereferenceable(272) %0, i32 noundef %184)
          to label %189 unwind label %206

189:                                              ; preds = %187
  %190 = invoke noundef ptr @_ZNK6R3Mesh6VertexEi(ptr noundef nonnull align 8 dereferenceable(272) %0, i32 noundef %185)
          to label %191 unwind label %208

191:                                              ; preds = %189
  %192 = load ptr, ptr %10, align 8, !tbaa !26
  %193 = getelementptr inbounds %class.R3MeshFace, ptr %192, i64 %indvars.iv174
  %194 = load ptr, ptr %0, align 8, !tbaa !5
  %195 = getelementptr inbounds i8, ptr %194, i64 72
  %196 = load ptr, ptr %195, align 8
  %197 = invoke noundef ptr %196(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %186, ptr noundef %188, ptr noundef %190, ptr noundef %193)
          to label %198 unwind label %210

198:                                              ; preds = %191
  %199 = tail call noundef i32 @_ZNK6R3Mesh6FaceIDEPK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %197)
  %200 = zext i32 %199 to i64
  %.not = icmp eq i64 %indvars.iv174, %200
  br i1 %.not, label %212, label %201

201:                                              ; preds = %198
  invoke void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str.5)
          to label %212 unwind label %210

202:                                              ; preds = %176
  %203 = landingpad { ptr, i32 }
          cleanup
  br label %216

204:                                              ; preds = %179
  %205 = landingpad { ptr, i32 }
          cleanup
  br label %216

206:                                              ; preds = %187
  %207 = landingpad { ptr, i32 }
          cleanup
  br label %216

208:                                              ; preds = %189
  %209 = landingpad { ptr, i32 }
          cleanup
  br label %216

210:                                              ; preds = %201, %191
  %211 = landingpad { ptr, i32 }
          cleanup
  br label %216

212:                                              ; preds = %201, %198
  %213 = tail call noundef i32 @_ZNK6R3Mesh12FaceMaterialEPK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef %178)
  tail call void @_ZN6R3Mesh15SetFaceMaterialEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %197, i32 noundef %213)
  %214 = tail call noundef i32 @_ZNK6R3Mesh11FaceSegmentEPK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef %178)
  tail call void @_ZN6R3Mesh14SetFaceSegmentEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %197, i32 noundef %214)
  %215 = tail call noundef i32 @_ZNK6R3Mesh12FaceCategoryEPK10R3MeshFace(ptr noundef nonnull align 8 dereferenceable(272) %1, ptr noundef %178)
  tail call void @_ZN6R3Mesh15SetFaceCategoryEP10R3MeshFacei(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %197, i32 noundef %215)
  %indvars.iv.next175 = add nuw nsw i64 %indvars.iv174, 1
  br label %164, !llvm.loop !27

216:                                              ; preds = %174, %204, %208, %210, %206, %202, %107, %135, %139, %143, %141, %137, %133, %50, %73, %75, %71, %.loopexit, %.loopexit159, %.loopexit162, %44
  %.pn149.pn.pn.pn = phi { ptr, i32 } [ %171, %.loopexit ], [ %45, %44 ], [ %104, %.loopexit159 ], [ %47, %.loopexit162 ], [ %51, %50 ], [ %72, %71 ], [ %76, %75 ], [ %74, %73 ], [ %108, %107 ], [ %134, %133 ], [ %136, %135 ], [ %138, %137 ], [ %140, %139 ], [ %144, %143 ], [ %142, %141 ], [ %175, %174 ], [ %203, %202 ], [ %205, %204 ], [ %207, %206 ], [ %211, %210 ], [ %209, %208 ]
  tail call void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %11) #10
  br label %217

217:                                              ; preds = %216, %42
  %.pn149.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn149.pn.pn.pn, %216 ], [ %43, %42 ]
  tail call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #10
  br label %218

218:                                              ; preds = %217, %40
  %.pn149.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn149.pn.pn.pn.pn, %217 ], [ %41, %40 ]
  tail call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #10
  br label %219

219:                                              ; preds = %218, %38
  %.pn149.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn149.pn.pn.pn.pn.pn, %218 ], [ %39, %38 ]
  tail call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #10
  resume { ptr, i32 } %.pn149.pn.pn.pn.pn.pn.pn
}

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.uadd.with.overflow.i64(i64, i64) #3

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

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

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

; 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 #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh12VertexNormalEPK12R3MeshVertex(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 #6 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 #6 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZNK6R3Mesh12VertexOnEdgeEPK10R3MeshEdgei(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 @_ZNK6R3Mesh6EdgeIDEPK10R3MeshEdge(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef) local_unnamed_addr #6 align 2

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

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

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

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

; 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 #6 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 #6 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 #6 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 #6 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 #6 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 #6 align 2

; Function Attrs: nounwind
declare void @_ZN7R3SolidD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #7

; Function Attrs: nounwind
declare void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #7

declare void @_ZN12R3MeshVertexC1Ev(ptr) local_unnamed_addr

declare void @_ZN12R3MeshVertexD1Ev(ptr) local_unnamed_addr

declare void @_ZN10R3MeshEdgeC1Ev(ptr) local_unnamed_addr

declare void @_ZN10R3MeshEdgeD1Ev(ptr) local_unnamed_addr

declare void @_ZN10R3MeshFaceC1Ev(ptr) local_unnamed_addr

declare void @_ZN10R3MeshFaceD1Ev(ptr) local_unnamed_addr

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { 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 #6 = { 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 #7 = { 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 #8 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { nounwind }
attributes #11 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !12, i64 264}
!9 = !{!"_ZTS6R3Mesh", !10, i64 8, !15, i64 24, !16, i64 40, !12, i64 56, !12, i64 64, !12, i64 72, !13, i64 80, !17, i64 208, !12, i64 264}
!10 = !{!"_ZTS7RNArrayIP12R3MeshVertexE", !11, i64 0}
!11 = !{!"_ZTS8RNVArray", !12, i64 0, !14, i64 8, !14, i64 12}
!12 = !{!"any pointer", !13, i64 0}
!13 = !{!"omnipotent char", !7, i64 0}
!14 = !{!"int", !13, i64 0}
!15 = !{!"_ZTS7RNArrayIP10R3MeshEdgeE", !11, i64 0}
!16 = !{!"_ZTS7RNArrayIP10R3MeshFaceE", !11, i64 0}
!17 = !{!"_ZTS5R3Box", !18, i64 0, !20, i64 8, !20, i64 32}
!18 = !{!"_ZTS7R3Solid", !19, i64 0}
!19 = !{!"_ZTS7R3Shape"}
!20 = !{!"_ZTS7R3Point", !13, i64 0}
!21 = !{!9, !12, i64 56}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!9, !12, i64 64}
!25 = distinct !{!25, !23}
!26 = !{!9, !12, i64 72}
!27 = distinct !{!27, !23}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass