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

; 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.RNArray = type { %class.RNVArray }
%class.RNVArray = type { ptr, i32, i32 }
%class.R3Point = type { [3 x double] }

@.str = external hidden unnamed_addr constant [41 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [88 x i8], align 1
@stderr = external global ptr, align 8
@.str.57 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [40 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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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) #3 align 2

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

declare void @_ZN7R3PointC1Eddd(ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, double noundef) unnamed_addr #1

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

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

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #1

declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: nounwind willreturn memory(read)
declare i32 @isspace(i32 noundef) #5

; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #4

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #5

declare i32 @fclose(ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6R3Mesh13ReadHoppeFileEPKc(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca [1024 x i8], align 16
  %10 = alloca %class.RNArray, align 8
  %11 = alloca %class.RNArray, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca [1024 x i8], align 16
  %16 = alloca i32, align 4
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca ptr, align 8
  %21 = alloca %class.R3Point, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %36 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = call noalias ptr @fopen(ptr noundef %37, ptr noundef @.str.57)
  store ptr %38, ptr %6, align 8, !tbaa !5
  %39 = icmp ne ptr %38, null
  br i1 %39, label %44, label %40

40:                                               ; preds = %2
  %41 = load ptr, ptr @stderr, align 8, !tbaa !5
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef @.str.70, ptr noundef %42) #6
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %388

44:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1024, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  call void @_ZN7RNArrayIP12R3MeshVertexEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10)
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  invoke void @_ZN7RNArrayIP12R3MeshVertexEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %45 unwind label %65

45:                                               ; preds = %44
  br label %46

46:                                               ; preds = %267, %265, %45
  %47 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = invoke ptr @fgets(ptr noundef %47, i32 noundef 1023, ptr noundef %48)
          to label %50 unwind label %69

50:                                               ; preds = %46
  %51 = icmp ne ptr %49, null
  br i1 %51, label %52, label %269

52:                                               ; preds = %50
  %53 = load i32, ptr %8, align 4, !tbaa !9
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %55 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
  store ptr %55, ptr %14, align 8, !tbaa !5
  br label %56

56:                                               ; preds = %62, %52
  %57 = load ptr, ptr %14, align 8, !tbaa !5
  %58 = load i8, ptr %57, align 1, !tbaa !11
  %59 = sext i8 %58 to i32
  %60 = call i32 @isspace(i32 noundef %59) #7
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %73

62:                                               ; preds = %56
  %63 = load ptr, ptr %14, align 8, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %63, i32 1
  store ptr %64, ptr %14, align 8, !tbaa !5
  br label %56, !llvm.loop !12

65:                                               ; preds = %44
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %12, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %13, align 4
  br label %387

69:                                               ; preds = %381, %46
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %12, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %13, align 4
  br label %386

73:                                               ; preds = %56
  %74 = load ptr, ptr %14, align 8, !tbaa !5
  %75 = load i8, ptr %74, align 1, !tbaa !11
  %76 = sext i8 %75 to i32
  %77 = icmp eq i32 %76, 35
  br i1 %77, label %78, label %79

78:                                               ; preds = %73
  store i32 2, ptr %7, align 4
  br label %265, !llvm.loop !14

79:                                               ; preds = %73
  %80 = load ptr, ptr %14, align 8, !tbaa !5
  %81 = load i8, ptr %80, align 1, !tbaa !11
  %82 = sext i8 %81 to i32
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %84, label %85

84:                                               ; preds = %79
  store i32 2, ptr %7, align 4
  br label %265, !llvm.loop !14

85:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 1024, ptr %15) #6
  %86 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
  %87 = getelementptr inbounds [1024 x i8], ptr %15, i64 0, i64 0
  %88 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %86, ptr noundef @.str.59, ptr noundef %87) #6
  %89 = icmp ne i32 %88, 1
  br i1 %89, label %90, label %102

90:                                               ; preds = %85
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = load i32, ptr %8, align 4, !tbaa !9
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef @.str.125, i32 noundef %92, ptr noundef %93) #6
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = invoke i32 @fclose(ptr noundef %95)
          to label %97 unwind label %98

97:                                               ; preds = %90
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %264

98:                                               ; preds = %90
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %12, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %13, align 4
  br label %268

102:                                              ; preds = %85
  %103 = getelementptr inbounds [1024 x i8], ptr %15, i64 0, i64 0
  %104 = call i32 @strcmp(ptr noundef %103, ptr noundef @.str.126) #7
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %148, label %106

106:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %107 = load ptr, ptr %14, align 8, !tbaa !5
  %108 = getelementptr inbounds [1024 x i8], ptr %15, i64 0, i64 0
  %109 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %107, ptr noundef @.str.127, ptr noundef %108, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19) #6
  %110 = icmp ne i32 %109, 5
  br i1 %110, label %111, label %122

111:                                              ; preds = %106
  %112 = load i32, ptr %8, align 4, !tbaa !9
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void (ptr, ...) @_Z6RNFailPKcz(ptr noundef @.str.76, i32 noundef %112, ptr noundef %113)
          to label %114 unwind label %118

114:                                              ; preds = %111
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = invoke i32 @fclose(ptr noundef %115)
          to label %117 unwind label %118

117:                                              ; preds = %114
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %135

118:                                              ; preds = %114, %111
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %12, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %13, align 4
  br label %147

122:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #6
  %123 = load double, ptr %17, align 8, !tbaa !15
  %124 = load double, ptr %18, align 8, !tbaa !15
  %125 = load double, ptr %19, align 8, !tbaa !15
  invoke void @_ZN7R3PointC1Eddd(ptr noundef nonnull align 8 dereferenceable(24) %21, double noundef %123, double noundef %124, double noundef %125)
          to label %126 unwind label %138

126:                                              ; preds = %122
  %127 = load ptr, ptr %36, align 8, !tbaa !17
  %128 = getelementptr inbounds ptr, ptr %127, i64 4
  %129 = load ptr, ptr %128, align 8
  %130 = invoke noundef ptr %129(ptr noundef nonnull align 8 dereferenceable(272) %36, ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef null)
          to label %131 unwind label %138

131:                                              ; preds = %126
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  store ptr %130, ptr %20, align 8, !tbaa !5
  %132 = load ptr, ptr %20, align 8, !tbaa !5
  %133 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef %132)
          to label %134 unwind label %142

134:                                              ; preds = %131
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  store i32 0, ptr %7, align 4
  br label %135

135:                                              ; preds = %134, %117
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  %136 = load i32, ptr %7, align 4
  switch i32 %136, label %264 [
    i32 0, label %137
  ]

137:                                              ; preds = %135
  br label %263

138:                                              ; preds = %126, %122
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %12, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  br label %146

142:                                              ; preds = %131
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %12, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %13, align 4
  br label %146

146:                                              ; preds = %142, %138
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %147

147:                                              ; preds = %146, %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %268

148:                                              ; preds = %102
  %149 = getelementptr inbounds [1024 x i8], ptr %15, i64 0, i64 0
  %150 = call i32 @strcmp(ptr noundef %149, ptr noundef @.str.128) #7
  %151 = icmp ne i32 %150, 0
  br i1 %151, label %262, label %152

152:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %153 = load ptr, ptr %14, align 8, !tbaa !5
  %154 = getelementptr inbounds [1024 x i8], ptr %15, i64 0, i64 0
  %155 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %153, ptr noundef @.str.129, ptr noundef %154, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25) #6
  %156 = icmp ne i32 %155, 5
  br i1 %156, label %157, label %168

157:                                              ; preds = %152
  %158 = load i32, ptr %8, align 4, !tbaa !9
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void (ptr, ...) @_Z6RNFailPKcz(ptr noundef @.str.130, i32 noundef %158, ptr noundef %159)
          to label %160 unwind label %164

160:                                              ; preds = %157
  %161 = load ptr, ptr %6, align 8, !tbaa !5
  %162 = invoke i32 @fclose(ptr noundef %161)
          to label %163 unwind label %164

163:                                              ; preds = %160
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %256

164:                                              ; preds = %196, %191, %186, %181, %176, %171, %160, %157
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %12, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %13, align 4
  br label %261

168:                                              ; preds = %152
  %169 = load i32, ptr %23, align 4, !tbaa !9
  %170 = icmp sge i32 %169, 0
  br i1 %170, label %171, label %176

171:                                              ; preds = %168
  %172 = load i32, ptr %23, align 4, !tbaa !9
  %173 = invoke noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %174 unwind label %164

174:                                              ; preds = %171
  %175 = icmp slt i32 %172, %173
  br i1 %175, label %178, label %176

176:                                              ; preds = %174, %168
  invoke void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.131, i32 noundef 5336, ptr noundef @.str.2)
          to label %177 unwind label %164

177:                                              ; preds = %176
  br label %178

178:                                              ; preds = %177, %174
  %179 = load i32, ptr %24, align 4, !tbaa !9
  %180 = icmp sge i32 %179, 0
  br i1 %180, label %181, label %186

181:                                              ; preds = %178
  %182 = load i32, ptr %24, align 4, !tbaa !9
  %183 = invoke noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %184 unwind label %164

184:                                              ; preds = %181
  %185 = icmp slt i32 %182, %183
  br i1 %185, label %188, label %186

186:                                              ; preds = %184, %178
  invoke void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.132, i32 noundef 5337, ptr noundef @.str.2)
          to label %187 unwind label %164

187:                                              ; preds = %186
  br label %188

188:                                              ; preds = %187, %184
  %189 = load i32, ptr %25, align 4, !tbaa !9
  %190 = icmp sge i32 %189, 0
  br i1 %190, label %191, label %196

191:                                              ; preds = %188
  %192 = load i32, ptr %25, align 4, !tbaa !9
  %193 = invoke noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %194 unwind label %164

194:                                              ; preds = %191
  %195 = icmp slt i32 %192, %193
  br i1 %195, label %198, label %196

196:                                              ; preds = %194, %188
  invoke void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.133, i32 noundef 5338, ptr noundef @.str.2)
          to label %197 unwind label %164

197:                                              ; preds = %196
  br label %198

198:                                              ; preds = %197, %194
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %199 = load i32, ptr %23, align 4, !tbaa !9
  %200 = sub nsw i32 %199, 1
  %201 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef %200)
          to label %202 unwind label %242

202:                                              ; preds = %198
  store ptr %201, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %203 = load i32, ptr %24, align 4, !tbaa !9
  %204 = sub nsw i32 %203, 1
  %205 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef %204)
          to label %206 unwind label %246

206:                                              ; preds = %202
  store ptr %205, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %207 = load i32, ptr %25, align 4, !tbaa !9
  %208 = sub nsw i32 %207, 1
  %209 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef %208)
          to label %210 unwind label %250

210:                                              ; preds = %206
  store ptr %209, ptr %28, align 8, !tbaa !5
  %211 = load ptr, ptr %26, align 8, !tbaa !5
  %212 = load ptr, ptr %27, align 8, !tbaa !5
  %213 = icmp ne ptr %211, %212
  br i1 %213, label %214, label %255

214:                                              ; preds = %210
  %215 = load ptr, ptr %26, align 8, !tbaa !5
  %216 = load ptr, ptr %28, align 8, !tbaa !5
  %217 = icmp ne ptr %215, %216
  br i1 %217, label %218, label %255

218:                                              ; preds = %214
  %219 = load ptr, ptr %27, align 8, !tbaa !5
  %220 = load ptr, ptr %28, align 8, !tbaa !5
  %221 = icmp ne ptr %219, %220
  br i1 %221, label %222, label %255

222:                                              ; preds = %218
  %223 = load ptr, ptr %26, align 8, !tbaa !5
  %224 = load ptr, ptr %27, align 8, !tbaa !5
  %225 = load ptr, ptr %28, align 8, !tbaa !5
  %226 = load ptr, ptr %36, align 8, !tbaa !17
  %227 = getelementptr inbounds ptr, ptr %226, i64 9
  %228 = load ptr, ptr %227, align 8
  %229 = invoke noundef ptr %228(ptr noundef nonnull align 8 dereferenceable(272) %36, ptr noundef %223, ptr noundef %224, ptr noundef %225, ptr noundef null)
          to label %230 unwind label %250

230:                                              ; preds = %222
  %231 = icmp ne ptr %229, null
  br i1 %231, label %254, label %232

232:                                              ; preds = %230
  %233 = load ptr, ptr %26, align 8, !tbaa !5
  %234 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %233)
          to label %235 unwind label %250

235:                                              ; preds = %232
  %236 = load ptr, ptr %27, align 8, !tbaa !5
  %237 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %236)
          to label %238 unwind label %250

238:                                              ; preds = %235
  %239 = load ptr, ptr %28, align 8, !tbaa !5
  %240 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %239)
          to label %241 unwind label %250

241:                                              ; preds = %238
  br label %254

242:                                              ; preds = %198
  %243 = landingpad { ptr, i32 }
          cleanup
  %244 = extractvalue { ptr, i32 } %243, 0
  store ptr %244, ptr %12, align 8
  %245 = extractvalue { ptr, i32 } %243, 1
  store i32 %245, ptr %13, align 4
  br label %260

246:                                              ; preds = %202
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %12, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %13, align 4
  br label %259

250:                                              ; preds = %238, %235, %232, %222, %206
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %12, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %259

254:                                              ; preds = %241, %230
  br label %255

255:                                              ; preds = %254, %218, %214, %210
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  store i32 0, ptr %7, align 4
  br label %256

256:                                              ; preds = %255, %163
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  %257 = load i32, ptr %7, align 4
  switch i32 %257, label %264 [
    i32 0, label %258
  ]

258:                                              ; preds = %256
  br label %262

259:                                              ; preds = %250, %246
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %260

260:                                              ; preds = %259, %242
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %261

261:                                              ; preds = %260, %164
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %268

262:                                              ; preds = %258, %148
  br label %263

263:                                              ; preds = %262, %137
  store i32 0, ptr %7, align 4
  br label %264

264:                                              ; preds = %263, %256, %135, %97
  call void @llvm.lifetime.end.p0(i64 1024, ptr %15) #6
  br label %265

265:                                              ; preds = %264, %84, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  %266 = load i32, ptr %7, align 4
  switch i32 %266, label %385 [
    i32 0, label %267
    i32 2, label %46
  ]

267:                                              ; preds = %265
  br label %46, !llvm.loop !14

268:                                              ; preds = %261, %147, %98
  call void @llvm.lifetime.end.p0(i64 1024, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %386

269:                                              ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %270

270:                                              ; preds = %374, %269
  %271 = load i32, ptr %29, align 4, !tbaa !9
  %272 = invoke noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %273 unwind label %277

273:                                              ; preds = %270
  %274 = sub nsw i32 %272, 3
  %275 = icmp sle i32 %271, %274
  br i1 %275, label %281, label %276

276:                                              ; preds = %273
  store i32 6, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %381

277:                                              ; preds = %270
  %278 = landingpad { ptr, i32 }
          cleanup
  %279 = extractvalue { ptr, i32 } %278, 0
  store ptr %279, ptr %12, align 8
  %280 = extractvalue { ptr, i32 } %278, 1
  store i32 %280, ptr %13, align 4
  br label %380

281:                                              ; preds = %273
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %282 = load i32, ptr %29, align 4, !tbaa !9
  %283 = add nsw i32 %282, 0
  %284 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %11, i32 noundef %283)
          to label %285 unwind label %346

285:                                              ; preds = %281
  store ptr %284, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %286 = load i32, ptr %29, align 4, !tbaa !9
  %287 = add nsw i32 %286, 1
  %288 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %11, i32 noundef %287)
          to label %289 unwind label %350

289:                                              ; preds = %285
  store ptr %288, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %290 = load i32, ptr %29, align 4, !tbaa !9
  %291 = add nsw i32 %290, 2
  %292 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %11, i32 noundef %291)
          to label %293 unwind label %354

293:                                              ; preds = %289
  store ptr %292, ptr %32, align 8, !tbaa !5
  %294 = load ptr, ptr %30, align 8, !tbaa !5
  %295 = load ptr, ptr %31, align 8, !tbaa !5
  %296 = load ptr, ptr %32, align 8, !tbaa !5
  %297 = load ptr, ptr %36, align 8, !tbaa !17
  %298 = getelementptr inbounds ptr, ptr %297, i64 9
  %299 = load ptr, ptr %298, align 8
  %300 = invoke noundef ptr %299(ptr noundef nonnull align 8 dereferenceable(272) %36, ptr noundef %294, ptr noundef %295, ptr noundef %296, ptr noundef null)
          to label %301 unwind label %354

301:                                              ; preds = %293
  %302 = icmp ne ptr %300, null
  br i1 %302, label %373, label %303

303:                                              ; preds = %301
  %304 = load ptr, ptr %30, align 8, !tbaa !5
  %305 = load ptr, ptr %32, align 8, !tbaa !5
  %306 = load ptr, ptr %31, align 8, !tbaa !5
  %307 = load ptr, ptr %36, align 8, !tbaa !17
  %308 = getelementptr inbounds ptr, ptr %307, i64 9
  %309 = load ptr, ptr %308, align 8
  %310 = invoke noundef ptr %309(ptr noundef nonnull align 8 dereferenceable(272) %36, ptr noundef %304, ptr noundef %305, ptr noundef %306, ptr noundef null)
          to label %311 unwind label %354

311:                                              ; preds = %303
  %312 = icmp ne ptr %310, null
  br i1 %312, label %372, label %313

313:                                              ; preds = %311
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %314 = load ptr, ptr %30, align 8, !tbaa !5
  %315 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %36, ptr noundef %314)
          to label %316 unwind label %358

316:                                              ; preds = %313
  %317 = load ptr, ptr %36, align 8, !tbaa !17
  %318 = getelementptr inbounds ptr, ptr %317, i64 4
  %319 = load ptr, ptr %318, align 8
  %320 = invoke noundef ptr %319(ptr noundef nonnull align 8 dereferenceable(272) %36, ptr noundef nonnull align 8 dereferenceable(24) %315, ptr noundef null)
          to label %321 unwind label %358

321:                                              ; preds = %316
  store ptr %320, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  %322 = load ptr, ptr %31, align 8, !tbaa !5
  %323 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %36, ptr noundef %322)
          to label %324 unwind label %362

324:                                              ; preds = %321
  %325 = load ptr, ptr %36, align 8, !tbaa !17
  %326 = getelementptr inbounds ptr, ptr %325, i64 4
  %327 = load ptr, ptr %326, align 8
  %328 = invoke noundef ptr %327(ptr noundef nonnull align 8 dereferenceable(272) %36, ptr noundef nonnull align 8 dereferenceable(24) %323, ptr noundef null)
          to label %329 unwind label %362

329:                                              ; preds = %324
  store ptr %328, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  %330 = load ptr, ptr %32, align 8, !tbaa !5
  %331 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %36, ptr noundef %330)
          to label %332 unwind label %366

332:                                              ; preds = %329
  %333 = load ptr, ptr %36, align 8, !tbaa !17
  %334 = getelementptr inbounds ptr, ptr %333, i64 4
  %335 = load ptr, ptr %334, align 8
  %336 = invoke noundef ptr %335(ptr noundef nonnull align 8 dereferenceable(272) %36, ptr noundef nonnull align 8 dereferenceable(24) %331, ptr noundef null)
          to label %337 unwind label %366

337:                                              ; preds = %332
  store ptr %336, ptr %35, align 8, !tbaa !5
  %338 = load ptr, ptr %33, align 8, !tbaa !5
  %339 = load ptr, ptr %34, align 8, !tbaa !5
  %340 = load ptr, ptr %35, align 8, !tbaa !5
  %341 = load ptr, ptr %36, align 8, !tbaa !17
  %342 = getelementptr inbounds ptr, ptr %341, i64 9
  %343 = load ptr, ptr %342, align 8
  %344 = invoke noundef ptr %343(ptr noundef nonnull align 8 dereferenceable(272) %36, ptr noundef %338, ptr noundef %339, ptr noundef %340, ptr noundef null)
          to label %345 unwind label %366

345:                                              ; preds = %337
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  br label %372

346:                                              ; preds = %281
  %347 = landingpad { ptr, i32 }
          cleanup
  %348 = extractvalue { ptr, i32 } %347, 0
  store ptr %348, ptr %12, align 8
  %349 = extractvalue { ptr, i32 } %347, 1
  store i32 %349, ptr %13, align 4
  br label %379

350:                                              ; preds = %285
  %351 = landingpad { ptr, i32 }
          cleanup
  %352 = extractvalue { ptr, i32 } %351, 0
  store ptr %352, ptr %12, align 8
  %353 = extractvalue { ptr, i32 } %351, 1
  store i32 %353, ptr %13, align 4
  br label %378

354:                                              ; preds = %303, %293, %289
  %355 = landingpad { ptr, i32 }
          cleanup
  %356 = extractvalue { ptr, i32 } %355, 0
  store ptr %356, ptr %12, align 8
  %357 = extractvalue { ptr, i32 } %355, 1
  store i32 %357, ptr %13, align 4
  br label %377

358:                                              ; preds = %316, %313
  %359 = landingpad { ptr, i32 }
          cleanup
  %360 = extractvalue { ptr, i32 } %359, 0
  store ptr %360, ptr %12, align 8
  %361 = extractvalue { ptr, i32 } %359, 1
  store i32 %361, ptr %13, align 4
  br label %371

362:                                              ; preds = %324, %321
  %363 = landingpad { ptr, i32 }
          cleanup
  %364 = extractvalue { ptr, i32 } %363, 0
  store ptr %364, ptr %12, align 8
  %365 = extractvalue { ptr, i32 } %363, 1
  store i32 %365, ptr %13, align 4
  br label %370

366:                                              ; preds = %337, %332, %329
  %367 = landingpad { ptr, i32 }
          cleanup
  %368 = extractvalue { ptr, i32 } %367, 0
  store ptr %368, ptr %12, align 8
  %369 = extractvalue { ptr, i32 } %367, 1
  store i32 %369, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  br label %370

370:                                              ; preds = %366, %362
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  br label %371

371:                                              ; preds = %370, %358
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  br label %377

372:                                              ; preds = %345, %311
  br label %373

373:                                              ; preds = %372, %301
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %374

374:                                              ; preds = %373
  %375 = load i32, ptr %29, align 4, !tbaa !9
  %376 = add nsw i32 %375, 3
  store i32 %376, ptr %29, align 4, !tbaa !9
  br label %270, !llvm.loop !19

377:                                              ; preds = %371, %354
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  br label %378

378:                                              ; preds = %377, %350
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %379

379:                                              ; preds = %378, %346
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %380

380:                                              ; preds = %379, %277
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %386

381:                                              ; preds = %276
  %382 = load ptr, ptr %6, align 8, !tbaa !5
  %383 = invoke i32 @fclose(ptr noundef %382)
          to label %384 unwind label %69

384:                                              ; preds = %381
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %385

385:                                              ; preds = %384, %265
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %388

386:                                              ; preds = %380, %268, %69
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #6
  br label %387

387:                                              ; preds = %386, %65
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %390

388:                                              ; preds = %385, %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %389 = load i32, ptr %3, align 4
  ret i32 %389

390:                                              ; preds = %387
  %391 = load ptr, ptr %12, align 8
  %392 = load i32, ptr %13, align 4
  %393 = insertvalue { ptr, i32 } poison, ptr %391, 0
  %394 = insertvalue { ptr, i32 } %393, i32 %392, 1
  resume { ptr, i32 } %394
}

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }

!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 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"vtable pointer", !8, i64 0}
!19 = distinct !{!19, !13}


; 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.RNArray = type { %class.RNVArray }
%class.RNVArray = type { ptr, i32, i32 }
%class.R3Point = type { [3 x double] }

@.str = external hidden unnamed_addr constant [41 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [88 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.57 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [40 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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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 #3 align 2

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

declare void @_ZN7R3PointC1Eddd(ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, double noundef) unnamed_addr #1

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(read)
declare i32 @isspace(i32 noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_sscanf(ptr nocapture noundef readonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #6

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6R3Mesh13ReadHoppeFileEPKc(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca [1024 x i8], align 16
  %4 = alloca %class.RNArray, align 8
  %5 = alloca %class.RNArray, align 8
  %6 = alloca [1024 x i8], align 16
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca %class.R3Point, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = tail call noalias ptr @fopen(ptr noundef %1, ptr noundef nonnull @.str.57)
  %.not = icmp eq ptr %16, null
  br i1 %.not, label %17, label %20

17:                                               ; preds = %2
  %18 = load ptr, ptr @stderr, align 8, !tbaa !5
  %19 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.70, ptr noundef %1) #8
  br label %186

20:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #9
  call void @_ZN7RNArrayIP12R3MeshVertexEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #9
  invoke void @_ZN7RNArrayIP12R3MeshVertexEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %.preheader127 unwind label %28

.preheader127:                                    ; preds = %20
  %21 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 1023, ptr noundef nonnull %16)
  %.not94128 = icmp eq ptr %21, null
  br i1 %.not94128, label %.preheader, label %.lr.ph

.preheader:                                       ; preds = %.backedge, %.preheader127
  %22 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %.not95130 = icmp slt i32 %22, 3
  br i1 %.not95130, label %._crit_edge, label %.lr.ph132

.lr.ph:                                           ; preds = %.preheader127, %.backedge
  %.062129 = phi i32 [ %31, %.backedge ], [ 0, %.preheader127 ]
  br label %23

23:                                               ; preds = %23, %.lr.ph
  %.084 = phi ptr [ %3, %.lr.ph ], [ %27, %23 ]
  %24 = load i8, ptr %.084, align 1, !tbaa !9
  %25 = sext i8 %24 to i32
  %26 = call i32 @isspace(i32 noundef %25) #10
  %.not103 = icmp eq i32 %26, 0
  %27 = getelementptr inbounds i8, ptr %.084, i64 1
  br i1 %.not103, label %30, label %23, !llvm.loop !10

28:                                               ; preds = %20
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %185

30:                                               ; preds = %23
  %31 = add nuw nsw i32 %.062129, 1
  switch i8 %24, label %32 [
    i8 35, label %.backedge
    i8 0, label %.backedge
  ], !llvm.loop !12

32:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %6) #9
  %33 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %3, ptr noundef nonnull @.str.59, ptr noundef nonnull %6) #9
  %.not104 = icmp eq i32 %33, 1
  br i1 %.not104, label %37, label %34

34:                                               ; preds = %32
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %16, ptr noundef nonnull @.str.125, i32 noundef %31, ptr noundef %1) #9
  %36 = call i32 @fclose(ptr noundef nonnull %16)
  br label %.loopexit.loopexit

37:                                               ; preds = %32
  %38 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.126) #10
  %.not105 = icmp eq i32 %38, 0
  br i1 %.not105, label %39, label %62

39:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  %40 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %.084, ptr noundef nonnull @.str.127, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10) #9
  %.not106 = icmp eq i32 %40, 5
  br i1 %.not106, label %44, label %41

41:                                               ; preds = %39
  invoke void (ptr, ...) @_Z6RNFailPKcz(ptr noundef nonnull @.str.76, i32 noundef %31, ptr noundef %1)
          to label %55 unwind label %42

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

44:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #9
  %45 = load double, ptr %8, align 8, !tbaa !13
  %46 = load double, ptr %9, align 8, !tbaa !13
  %47 = load double, ptr %10, align 8, !tbaa !13
  invoke void @_ZN7R3PointC1Eddd(ptr noundef nonnull align 8 dereferenceable(24) %11, double noundef %45, double noundef %46, double noundef %47)
          to label %48 unwind label %57

48:                                               ; preds = %44
  %49 = load ptr, ptr %0, align 8, !tbaa !15
  %50 = getelementptr inbounds i8, ptr %49, i64 32
  %51 = load ptr, ptr %50, align 8
  %52 = invoke noundef ptr %51(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef null)
          to label %53 unwind label %57

53:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #9
  %54 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef %52)
          to label %.thread unwind label %59

.thread:                                          ; preds = %53
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  br label %122

55:                                               ; preds = %41
  %56 = call i32 @fclose(ptr noundef nonnull %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  br label %.loopexit.loopexit

57:                                               ; preds = %48, %44
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #9
  br label %61

59:                                               ; preds = %53
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %61

61:                                               ; preds = %57, %59, %42
  %.pn109 = phi { ptr, i32 } [ %43, %42 ], [ %60, %59 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  br label %124

62:                                               ; preds = %37
  %63 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %6, ptr noundef nonnull dereferenceable(1) @.str.128) #10
  %.not111 = icmp eq i32 %63, 0
  br i1 %.not111, label %64, label %122

64:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #9
  %65 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %.084, ptr noundef nonnull @.str.129, ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef nonnull %15) #9
  %.not112 = icmp eq i32 %65, 5
  br i1 %.not112, label %67, label %66

66:                                               ; preds = %64
  invoke void (ptr, ...) @_Z6RNFailPKcz(ptr noundef nonnull @.str.130, i32 noundef %31, ptr noundef %1)
          to label %119 unwind label %.loopexit.split-lp

.loopexit138:                                     ; preds = %73, %80, %87
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %121

.loopexit.split-lp:                               ; preds = %66
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %121

67:                                               ; preds = %64
  %68 = load i32, ptr %13, align 4, !tbaa !17
  %69 = icmp sgt i32 %68, -1
  br i1 %69, label %70, label %73

70:                                               ; preds = %67
  %71 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %72 = icmp slt i32 %68, %71
  br i1 %72, label %74, label %73

73:                                               ; preds = %70, %67
  invoke void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.131, i32 noundef 5336, ptr noundef nonnull @.str.2)
          to label %74 unwind label %.loopexit138

74:                                               ; preds = %73, %70
  %75 = load i32, ptr %14, align 4, !tbaa !17
  %76 = icmp sgt i32 %75, -1
  br i1 %76, label %77, label %80

77:                                               ; preds = %74
  %78 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %79 = icmp slt i32 %75, %78
  br i1 %79, label %81, label %80

80:                                               ; preds = %77, %74
  invoke void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.132, i32 noundef 5337, ptr noundef nonnull @.str.2)
          to label %81 unwind label %.loopexit138

81:                                               ; preds = %80, %77
  %82 = load i32, ptr %15, align 4, !tbaa !17
  %83 = icmp sgt i32 %82, -1
  br i1 %83, label %84, label %87

84:                                               ; preds = %81
  %85 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %86 = icmp slt i32 %82, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %84, %81
  invoke void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.133, i32 noundef 5338, ptr noundef nonnull @.str.2)
          to label %88 unwind label %.loopexit138

88:                                               ; preds = %87, %84
  %89 = load i32, ptr %13, align 4, !tbaa !17
  %90 = add nsw i32 %89, -1
  %91 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef %90)
          to label %92 unwind label %113

92:                                               ; preds = %88
  %93 = load i32, ptr %14, align 4, !tbaa !17
  %94 = add nsw i32 %93, -1
  %95 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef %94)
          to label %96 unwind label %115

96:                                               ; preds = %92
  %97 = load i32, ptr %15, align 4, !tbaa !17
  %98 = add nsw i32 %97, -1
  %99 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef %98)
          to label %100 unwind label %117

100:                                              ; preds = %96
  %.not113 = icmp eq ptr %91, %95
  %.not114 = icmp eq ptr %91, %99
  %or.cond = or i1 %.not113, %.not114
  %.not115 = icmp eq ptr %95, %99
  %or.cond125 = or i1 %.not115, %or.cond
  br i1 %or.cond125, label %.thread126, label %101

101:                                              ; preds = %100
  %102 = load ptr, ptr %0, align 8, !tbaa !15
  %103 = getelementptr inbounds i8, ptr %102, i64 72
  %104 = load ptr, ptr %103, align 8
  %105 = invoke noundef ptr %104(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %91, ptr noundef %95, ptr noundef %99, ptr noundef null)
          to label %106 unwind label %117

106:                                              ; preds = %101
  %.not116 = icmp eq ptr %105, null
  br i1 %.not116, label %107, label %.thread126

107:                                              ; preds = %106
  %108 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef %91)
          to label %109 unwind label %117

109:                                              ; preds = %107
  %110 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef %95)
          to label %111 unwind label %117

111:                                              ; preds = %109
  %112 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef %99)
          to label %.thread126 unwind label %117

113:                                              ; preds = %88
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %121

115:                                              ; preds = %92
  %116 = landingpad { ptr, i32 }
          cleanup
  br label %121

117:                                              ; preds = %111, %109, %107, %101, %96
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %121

.thread126:                                       ; preds = %100, %111, %106
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #9
  br label %122

119:                                              ; preds = %66
  %120 = call i32 @fclose(ptr noundef nonnull %16)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #9
  br label %.loopexit.loopexit

121:                                              ; preds = %.loopexit138, %.loopexit.split-lp, %113, %117, %115
  %.pn120 = phi { ptr, i32 } [ %114, %113 ], [ %118, %117 ], [ %116, %115 ], [ %lpad.loopexit, %.loopexit138 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #9
  br label %124

122:                                              ; preds = %.thread126, %.thread, %62
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %6) #9
  br label %.backedge

.backedge:                                        ; preds = %30, %30, %122
  %123 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 1023, ptr noundef nonnull %16)
  %.not94 = icmp eq ptr %123, null
  br i1 %.not94, label %.preheader, label %.lr.ph, !llvm.loop !12

124:                                              ; preds = %121, %61
  %.pn120.pn = phi { ptr, i32 } [ %.pn120, %121 ], [ %.pn109, %61 ]
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %6) #9
  br label %184

._crit_edge:                                      ; preds = %180, %.preheader
  %125 = call i32 @fclose(ptr noundef nonnull %16)
  br label %.loopexit

.lr.ph132:                                        ; preds = %.preheader, %180
  %.085131 = phi i32 [ %181, %180 ], [ 0, %.preheader ]
  %126 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %.085131)
          to label %127 unwind label %168

127:                                              ; preds = %.lr.ph132
  %128 = add nuw nsw i32 %.085131, 1
  %129 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %128)
          to label %130 unwind label %170

130:                                              ; preds = %127
  %131 = add nuw nsw i32 %.085131, 2
  %132 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %131)
          to label %133 unwind label %172

133:                                              ; preds = %130
  %134 = load ptr, ptr %0, align 8, !tbaa !15
  %135 = getelementptr inbounds i8, ptr %134, i64 72
  %136 = load ptr, ptr %135, align 8
  %137 = invoke noundef ptr %136(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %126, ptr noundef %129, ptr noundef %132, ptr noundef null)
          to label %138 unwind label %172

138:                                              ; preds = %133
  %.not96 = icmp eq ptr %137, null
  br i1 %.not96, label %139, label %180

139:                                              ; preds = %138
  %140 = load ptr, ptr %0, align 8, !tbaa !15
  %141 = getelementptr inbounds i8, ptr %140, i64 72
  %142 = load ptr, ptr %141, align 8
  %143 = invoke noundef ptr %142(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %126, ptr noundef %132, ptr noundef %129, ptr noundef null)
          to label %144 unwind label %172

144:                                              ; preds = %139
  %.not97 = icmp eq ptr %143, null
  br i1 %.not97, label %145, label %180

145:                                              ; preds = %144
  %146 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %126)
  %147 = load ptr, ptr %0, align 8, !tbaa !15
  %148 = getelementptr inbounds i8, ptr %147, i64 32
  %149 = load ptr, ptr %148, align 8
  %150 = invoke noundef ptr %149(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull align 8 dereferenceable(24) %146, ptr noundef null)
          to label %151 unwind label %174

151:                                              ; preds = %145
  %152 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %129)
  %153 = load ptr, ptr %0, align 8, !tbaa !15
  %154 = getelementptr inbounds i8, ptr %153, i64 32
  %155 = load ptr, ptr %154, align 8
  %156 = invoke noundef ptr %155(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull align 8 dereferenceable(24) %152, ptr noundef null)
          to label %157 unwind label %176

157:                                              ; preds = %151
  %158 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %132)
  %159 = load ptr, ptr %0, align 8, !tbaa !15
  %160 = getelementptr inbounds i8, ptr %159, i64 32
  %161 = load ptr, ptr %160, align 8
  %162 = invoke noundef ptr %161(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull align 8 dereferenceable(24) %158, ptr noundef null)
          to label %163 unwind label %178

163:                                              ; preds = %157
  %164 = load ptr, ptr %0, align 8, !tbaa !15
  %165 = getelementptr inbounds i8, ptr %164, i64 72
  %166 = load ptr, ptr %165, align 8
  %167 = invoke noundef ptr %166(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %150, ptr noundef %156, ptr noundef %162, ptr noundef null)
          to label %180 unwind label %178

168:                                              ; preds = %.lr.ph132
  %169 = landingpad { ptr, i32 }
          cleanup
  br label %184

170:                                              ; preds = %127
  %171 = landingpad { ptr, i32 }
          cleanup
  br label %184

172:                                              ; preds = %139, %133, %130
  %173 = landingpad { ptr, i32 }
          cleanup
  br label %184

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

176:                                              ; preds = %151
  %177 = landingpad { ptr, i32 }
          cleanup
  br label %184

178:                                              ; preds = %163, %157
  %179 = landingpad { ptr, i32 }
          cleanup
  br label %184

180:                                              ; preds = %163, %144, %138
  %181 = add nuw nsw i32 %.085131, 3
  %182 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %183 = add nsw i32 %182, -3
  %.not95 = icmp sgt i32 %181, %183
  br i1 %.not95, label %._crit_edge, label %.lr.ph132, !llvm.loop !19

.loopexit.loopexit:                               ; preds = %34, %119, %55
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %6) #9
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %._crit_edge
  %.6 = phi i32 [ 1, %._crit_edge ], [ 0, %.loopexit.loopexit ]
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %3) #9
  br label %186

184:                                              ; preds = %168, %172, %176, %178, %174, %170, %124
  %.pn120.pn.pn = phi { ptr, i32 } [ %.pn120.pn, %124 ], [ %169, %168 ], [ %171, %170 ], [ %173, %172 ], [ %175, %174 ], [ %179, %178 ], [ %177, %176 ]
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #9
  br label %185

185:                                              ; preds = %184, %28
  %.pn120.pn.pn.pn = phi { ptr, i32 } [ %.pn120.pn.pn, %184 ], [ %29, %28 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #9
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %3) #9
  resume { ptr, i32 } %.pn120.pn.pn.pn

186:                                              ; preds = %.loopexit, %17
  %.7 = phi i32 [ %.6, %.loopexit ], [ 0, %17 ]
  ret i32 %.7
}

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nofree 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 #5 = { mustprogress nofree nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { cold nounwind }
attributes #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(read) }

!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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = distinct !{!19, !11}


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