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

; 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
@.str.57 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [41 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: 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #3

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

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

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)) #4 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: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #0 align 2

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, ...) #6

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

; Function Attrs: inlinehint mustprogress nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #7

declare i32 @fclose(ptr noundef) #1

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

; Function Attrs: nounwind
declare ptr @strtok(ptr noundef, ptr noundef) #6

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6R3Mesh12ReadCattFileEPKc(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 [1024 x i8], align 16
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %class.RNArray, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca [80 x i8], align 16
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca %class.R3Point, align 8
  %22 = alloca i32, align 4
  %23 = alloca [256 x i8], align 16
  %24 = alloca [256 x i8], align 16
  %25 = alloca %class.RNArray, align 8
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  %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) #8
  %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 %42, label %40

40:                                               ; preds = %2
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  call void (ptr, ...) @_Z6RNFailPKcz(ptr noundef @.str.58, ptr noundef %41)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %449

42:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1024, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #8
  call void @_ZN7RNArrayIP12R3MeshVertexEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12)
  br label %43

43:                                               ; preds = %329, %327, %42
  %44 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = invoke ptr @fgets(ptr noundef %44, i32 noundef 1023, ptr noundef %45)
          to label %47 unwind label %62

47:                                               ; preds = %43
  %48 = icmp ne ptr %46, null
  br i1 %48, label %49, label %331

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

53:                                               ; preds = %59, %49
  %54 = load ptr, ptr %15, align 8, !tbaa !5
  %55 = load i8, ptr %54, align 1, !tbaa !11
  %56 = sext i8 %55 to i32
  %57 = call i32 @isspace(i32 noundef %56) #9
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %66

59:                                               ; preds = %53
  %60 = load ptr, ptr %15, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %60, i32 1
  store ptr %61, ptr %15, align 8, !tbaa !5
  br label %53, !llvm.loop !12

62:                                               ; preds = %443, %43
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %13, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %14, align 4
  br label %448

66:                                               ; preds = %53
  %67 = load ptr, ptr %15, align 8, !tbaa !5
  %68 = load i8, ptr %67, align 1, !tbaa !11
  %69 = sext i8 %68 to i32
  %70 = icmp eq i32 %69, 0
  br i1 %70, label %71, label %72

71:                                               ; preds = %66
  store i32 2, ptr %7, align 4
  br label %327, !llvm.loop !14

72:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 80, ptr %16) #8
  %73 = load ptr, ptr %15, align 8, !tbaa !5
  %74 = getelementptr inbounds [80 x i8], ptr %16, i64 0, i64 0
  %75 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %73, ptr noundef @.str.59, ptr noundef %74) #8
  %76 = icmp ne i32 %75, 1
  br i1 %76, label %77, label %85

77:                                               ; preds = %72
  %78 = load i32, ptr %9, align 4, !tbaa !9
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void (ptr, ...) @_Z6RNFailPKcz(ptr noundef @.str.60, i32 noundef %78, ptr noundef %79)
          to label %80 unwind label %81

80:                                               ; preds = %77
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %326

81:                                               ; preds = %77
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %13, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %14, align 4
  br label %330

85:                                               ; preds = %72
  %86 = getelementptr inbounds [80 x i8], ptr %16, i64 0, i64 0
  %87 = load i8, ptr %86, align 16, !tbaa !11
  %88 = sext i8 %87 to i32
  %89 = icmp eq i32 %88, 37
  br i1 %89, label %90, label %108

90:                                               ; preds = %85
  store i32 0, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !9
  %91 = getelementptr inbounds [80 x i8], ptr %16, i64 0, i64 0
  %92 = call i32 @strcmp(ptr noundef %91, ptr noundef @.str.116) #9
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %95, label %94

94:                                               ; preds = %90
  store i32 1, ptr %10, align 4, !tbaa !9
  br label %107

95:                                               ; preds = %90
  %96 = getelementptr inbounds [80 x i8], ptr %16, i64 0, i64 0
  %97 = call i32 @strcmp(ptr noundef %96, ptr noundef @.str.117) #9
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %100, label %99

99:                                               ; preds = %95
  store i32 1, ptr %11, align 4, !tbaa !9
  br label %106

100:                                              ; preds = %95
  %101 = getelementptr inbounds [80 x i8], ptr %16, i64 0, i64 0
  %102 = call i32 @strcmp(ptr noundef %101, ptr noundef @.str.118) #9
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %105, label %104

104:                                              ; preds = %100
  store i32 3, ptr %7, align 4
  br label %326

105:                                              ; preds = %100
  br label %106

106:                                              ; preds = %105, %99
  br label %107

107:                                              ; preds = %106, %94
  store i32 2, ptr %7, align 4
  br label %326, !llvm.loop !14

108:                                              ; preds = %85
  %109 = load i32, ptr %10, align 4, !tbaa !9
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %141

111:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %112 = load ptr, ptr %15, align 8, !tbaa !5
  %113 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %112, ptr noundef @.str.119, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20) #8
  %114 = icmp ne i32 %113, 4
  br i1 %114, label %115, label %123

115:                                              ; preds = %111
  %116 = load i32, ptr %9, align 4, !tbaa !9
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void (ptr, ...) @_Z6RNFailPKcz(ptr noundef @.str.60, i32 noundef %116, ptr noundef %117)
          to label %118 unwind label %119

118:                                              ; preds = %115
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %133

119:                                              ; preds = %115
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %13, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %14, align 4
  br label %140

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

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

132:                                              ; preds = %127
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #8
  store i32 0, ptr %7, align 4
  br label %133

133:                                              ; preds = %132, %118
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  %134 = load i32, ptr %7, align 4
  switch i32 %134, label %326 [
    i32 0, label %135
  ]

135:                                              ; preds = %133
  br label %325

136:                                              ; preds = %127, %123
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %13, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #8
  br label %140

140:                                              ; preds = %136, %119
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %330

141:                                              ; preds = %108
  %142 = load i32, ptr %11, align 4, !tbaa !9
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %144, label %324

144:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 256, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 256, ptr %24) #8
  %145 = load ptr, ptr %15, align 8, !tbaa !5
  %146 = getelementptr inbounds [256 x i8], ptr %23, i64 0, i64 0
  %147 = getelementptr inbounds [256 x i8], ptr %24, i64 0, i64 0
  %148 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %145, ptr noundef @.str.120, ptr noundef %22, ptr noundef %146, ptr noundef %147) #8
  %149 = icmp ne i32 %148, 3
  br i1 %149, label %158, label %150

150:                                              ; preds = %144
  %151 = getelementptr inbounds [256 x i8], ptr %23, i64 0, i64 0
  %152 = call i32 @strcmp(ptr noundef %151, ptr noundef @.str.121) #9
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %158, label %154

154:                                              ; preds = %150
  %155 = getelementptr inbounds [256 x i8], ptr %24, i64 0, i64 0
  %156 = call i32 @strcmp(ptr noundef %155, ptr noundef @.str.122) #9
  %157 = icmp ne i32 %156, 0
  br i1 %157, label %158, label %166

158:                                              ; preds = %154, %150, %144
  %159 = load i32, ptr %9, align 4, !tbaa !9
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void (ptr, ...) @_Z6RNFailPKcz(ptr noundef @.str.60, i32 noundef %159, ptr noundef %160)
          to label %161 unwind label %162

161:                                              ; preds = %158
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %318

162:                                              ; preds = %158
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %13, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %14, align 4
  br label %323

166:                                              ; preds = %154
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #8
  invoke void @_ZN7RNArrayIP12R3MeshVertexEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25)
          to label %167 unwind label %195

167:                                              ; preds = %166
  %168 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  %170 = invoke ptr @fgets(ptr noundef %168, i32 noundef 1023, ptr noundef %169)
          to label %171 unwind label %199

171:                                              ; preds = %167
  %172 = icmp ne ptr %170, null
  br i1 %172, label %173, label %230

173:                                              ; preds = %171
  %174 = load i32, ptr %9, align 4, !tbaa !9
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %9, align 4, !tbaa !9
  %176 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  %177 = call ptr @strtok(ptr noundef %176, ptr noundef @.str.123) #8
  store ptr %177, ptr %15, align 8, !tbaa !5
  br label %178

178:                                              ; preds = %227, %173
  %179 = load ptr, ptr %15, align 8, !tbaa !5
  %180 = icmp ne ptr %179, null
  br i1 %180, label %181, label %229

181:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %182 = load ptr, ptr %15, align 8, !tbaa !5
  %183 = call i32 @atoi(ptr noundef %182) #9
  store i32 %183, ptr %26, align 4, !tbaa !9
  %184 = load i32, ptr %26, align 4, !tbaa !9
  %185 = icmp sle i32 %184, 0
  br i1 %185, label %191, label %186

186:                                              ; preds = %181
  %187 = load i32, ptr %26, align 4, !tbaa !9
  %188 = invoke noundef i32 @_ZNK6R3Mesh9NVerticesEv(ptr noundef nonnull align 8 dereferenceable(272) %36)
          to label %189 unwind label %203

189:                                              ; preds = %186
  %190 = icmp sgt i32 %187, %188
  br i1 %190, label %191, label %207

191:                                              ; preds = %189, %181
  %192 = load i32, ptr %9, align 4, !tbaa !9
  %193 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void (ptr, ...) @_Z6RNFailPKcz(ptr noundef @.str.124, i32 noundef %192, ptr noundef %193)
          to label %194 unwind label %203

194:                                              ; preds = %191
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %225

195:                                              ; preds = %166
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %13, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %14, align 4
  br label %322

199:                                              ; preds = %167
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %13, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %14, align 4
  br label %321

203:                                              ; preds = %191, %186
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %13, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %14, align 4
  br label %228

207:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %208 = load i32, ptr %26, align 4, !tbaa !9
  %209 = sub nsw i32 %208, 1
  %210 = invoke noundef ptr @_ZNK6R3Mesh6VertexEi(ptr noundef nonnull align 8 dereferenceable(272) %36, i32 noundef %209)
          to label %211 unwind label %216

211:                                              ; preds = %207
  store ptr %210, ptr %27, align 8, !tbaa !5
  %212 = load ptr, ptr %27, align 8, !tbaa !5
  %213 = icmp ne ptr %212, null
  br i1 %213, label %220, label %214

214:                                              ; preds = %211
  invoke void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.61, i32 noundef 5229, ptr noundef @.str.2)
          to label %215 unwind label %216

215:                                              ; preds = %214
  br label %220

216:                                              ; preds = %220, %214, %207
  %217 = landingpad { ptr, i32 }
          cleanup
  %218 = extractvalue { ptr, i32 } %217, 0
  store ptr %218, ptr %13, align 8
  %219 = extractvalue { ptr, i32 } %217, 1
  store i32 %219, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %228

220:                                              ; preds = %215, %211
  %221 = load ptr, ptr %27, align 8, !tbaa !5
  %222 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef %221)
          to label %223 unwind label %216

223:                                              ; preds = %220
  %224 = call ptr @strtok(ptr noundef null, ptr noundef @.str.123) #8
  store ptr %224, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  store i32 0, ptr %7, align 4
  br label %225

225:                                              ; preds = %223, %194
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  %226 = load i32, ptr %7, align 4
  switch i32 %226, label %317 [
    i32 0, label %227
  ]

227:                                              ; preds = %225
  br label %178, !llvm.loop !19

228:                                              ; preds = %216, %203
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %321

229:                                              ; preds = %178
  br label %230

230:                                              ; preds = %229, %171
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  store i32 2, ptr %28, align 4, !tbaa !9
  br label %231

231:                                              ; preds = %313, %230
  %232 = load i32, ptr %28, align 4, !tbaa !9
  %233 = invoke noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %25)
          to label %234 unwind label %237

234:                                              ; preds = %231
  %235 = icmp slt i32 %232, %233
  br i1 %235, label %241, label %236

236:                                              ; preds = %234
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %316

237:                                              ; preds = %308, %305, %302, %298, %295, %293, %285, %281, %276, %274, %266, %264, %256, %252, %243, %241, %231
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %13, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %321

241:                                              ; preds = %234
  %242 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) %25, i32 noundef 0)
          to label %243 unwind label %237

243:                                              ; preds = %241
  %244 = load ptr, ptr %242, align 8, !tbaa !5
  %245 = load i32, ptr %28, align 4, !tbaa !9
  %246 = sub nsw i32 %245, 1
  %247 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) %25, i32 noundef %246)
          to label %248 unwind label %237

248:                                              ; preds = %243
  %249 = load ptr, ptr %247, align 8, !tbaa !5
  %250 = icmp eq ptr %244, %249
  br i1 %250, label %251, label %252

251:                                              ; preds = %248
  br label %313

252:                                              ; preds = %248
  %253 = load i32, ptr %28, align 4, !tbaa !9
  %254 = sub nsw i32 %253, 1
  %255 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) %25, i32 noundef %254)
          to label %256 unwind label %237

256:                                              ; preds = %252
  %257 = load ptr, ptr %255, align 8, !tbaa !5
  %258 = load i32, ptr %28, align 4, !tbaa !9
  %259 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) %25, i32 noundef %258)
          to label %260 unwind label %237

260:                                              ; preds = %256
  %261 = load ptr, ptr %259, align 8, !tbaa !5
  %262 = icmp eq ptr %257, %261
  br i1 %262, label %263, label %264

263:                                              ; preds = %260
  br label %313

264:                                              ; preds = %260
  %265 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) %25, i32 noundef 0)
          to label %266 unwind label %237

266:                                              ; preds = %264
  %267 = load ptr, ptr %265, align 8, !tbaa !5
  %268 = load i32, ptr %28, align 4, !tbaa !9
  %269 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) %25, i32 noundef %268)
          to label %270 unwind label %237

270:                                              ; preds = %266
  %271 = load ptr, ptr %269, align 8, !tbaa !5
  %272 = icmp eq ptr %267, %271
  br i1 %272, label %273, label %274

273:                                              ; preds = %270
  br label %313

274:                                              ; preds = %270
  %275 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) %25, i32 noundef 0)
          to label %276 unwind label %237

276:                                              ; preds = %274
  %277 = load ptr, ptr %275, align 8, !tbaa !5
  %278 = load i32, ptr %28, align 4, !tbaa !9
  %279 = sub nsw i32 %278, 1
  %280 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) %25, i32 noundef %279)
          to label %281 unwind label %237

281:                                              ; preds = %276
  %282 = load ptr, ptr %280, align 8, !tbaa !5
  %283 = load i32, ptr %28, align 4, !tbaa !9
  %284 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) %25, i32 noundef %283)
          to label %285 unwind label %237

285:                                              ; preds = %281
  %286 = load ptr, ptr %284, align 8, !tbaa !5
  %287 = load ptr, ptr %36, align 8, !tbaa !17
  %288 = getelementptr inbounds ptr, ptr %287, i64 9
  %289 = load ptr, ptr %288, align 8
  %290 = invoke noundef ptr %289(ptr noundef nonnull align 8 dereferenceable(272) %36, ptr noundef %277, ptr noundef %282, ptr noundef %286, ptr noundef null)
          to label %291 unwind label %237

291:                                              ; preds = %285
  %292 = icmp ne ptr %290, null
  br i1 %292, label %312, label %293

293:                                              ; preds = %291
  %294 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) %25, i32 noundef 0)
          to label %295 unwind label %237

295:                                              ; preds = %293
  %296 = load ptr, ptr %294, align 8, !tbaa !5
  %297 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef %296)
          to label %298 unwind label %237

298:                                              ; preds = %295
  %299 = load i32, ptr %28, align 4, !tbaa !9
  %300 = sub nsw i32 %299, 1
  %301 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) %25, i32 noundef %300)
          to label %302 unwind label %237

302:                                              ; preds = %298
  %303 = load ptr, ptr %301, align 8, !tbaa !5
  %304 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef %303)
          to label %305 unwind label %237

305:                                              ; preds = %302
  %306 = load i32, ptr %28, align 4, !tbaa !9
  %307 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) %25, i32 noundef %306)
          to label %308 unwind label %237

308:                                              ; preds = %305
  %309 = load ptr, ptr %307, align 8, !tbaa !5
  %310 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef %309)
          to label %311 unwind label %237

311:                                              ; preds = %308
  br label %312

312:                                              ; preds = %311, %291
  br label %313

313:                                              ; preds = %312, %273, %263, %251
  %314 = load i32, ptr %28, align 4, !tbaa !9
  %315 = add nsw i32 %314, 1
  store i32 %315, ptr %28, align 4, !tbaa !9
  br label %231, !llvm.loop !20

316:                                              ; preds = %236
  store i32 0, ptr %7, align 4
  br label %317

317:                                              ; preds = %316, %225
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #8
  br label %318

318:                                              ; preds = %317, %161
  call void @llvm.lifetime.end.p0(i64 256, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 256, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  %319 = load i32, ptr %7, align 4
  switch i32 %319, label %326 [
    i32 0, label %320
  ]

320:                                              ; preds = %318
  br label %324

321:                                              ; preds = %237, %228, %199
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #8
  br label %322

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

323:                                              ; preds = %322, %162
  call void @llvm.lifetime.end.p0(i64 256, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 256, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %330

324:                                              ; preds = %320, %141
  br label %325

325:                                              ; preds = %324, %135
  store i32 0, ptr %7, align 4
  br label %326

326:                                              ; preds = %325, %318, %133, %107, %104, %80
  call void @llvm.lifetime.end.p0(i64 80, ptr %16) #8
  br label %327

327:                                              ; preds = %326, %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  %328 = load i32, ptr %7, align 4
  switch i32 %328, label %447 [
    i32 0, label %329
    i32 2, label %43
    i32 3, label %331
  ]

329:                                              ; preds = %327
  br label %43, !llvm.loop !14

330:                                              ; preds = %323, %140, %81
  call void @llvm.lifetime.end.p0(i64 80, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %448

331:                                              ; preds = %327, %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %332

332:                                              ; preds = %436, %331
  %333 = load i32, ptr %29, align 4, !tbaa !9
  %334 = invoke noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %335 unwind label %339

335:                                              ; preds = %332
  %336 = sub nsw i32 %334, 3
  %337 = icmp sle i32 %333, %336
  br i1 %337, label %343, label %338

338:                                              ; preds = %335
  store i32 11, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %443

339:                                              ; preds = %332
  %340 = landingpad { ptr, i32 }
          cleanup
  %341 = extractvalue { ptr, i32 } %340, 0
  store ptr %341, ptr %13, align 8
  %342 = extractvalue { ptr, i32 } %340, 1
  store i32 %342, ptr %14, align 4
  br label %442

343:                                              ; preds = %335
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %344 = load i32, ptr %29, align 4, !tbaa !9
  %345 = add nsw i32 %344, 0
  %346 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %12, i32 noundef %345)
          to label %347 unwind label %408

347:                                              ; preds = %343
  store ptr %346, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %348 = load i32, ptr %29, align 4, !tbaa !9
  %349 = add nsw i32 %348, 1
  %350 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %12, i32 noundef %349)
          to label %351 unwind label %412

351:                                              ; preds = %347
  store ptr %350, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %352 = load i32, ptr %29, align 4, !tbaa !9
  %353 = add nsw i32 %352, 2
  %354 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %12, i32 noundef %353)
          to label %355 unwind label %416

355:                                              ; preds = %351
  store ptr %354, ptr %32, align 8, !tbaa !5
  %356 = load ptr, ptr %30, align 8, !tbaa !5
  %357 = load ptr, ptr %31, align 8, !tbaa !5
  %358 = load ptr, ptr %32, align 8, !tbaa !5
  %359 = load ptr, ptr %36, align 8, !tbaa !17
  %360 = getelementptr inbounds ptr, ptr %359, i64 9
  %361 = load ptr, ptr %360, align 8
  %362 = invoke noundef ptr %361(ptr noundef nonnull align 8 dereferenceable(272) %36, ptr noundef %356, ptr noundef %357, ptr noundef %358, ptr noundef null)
          to label %363 unwind label %416

363:                                              ; preds = %355
  %364 = icmp ne ptr %362, null
  br i1 %364, label %435, label %365

365:                                              ; preds = %363
  %366 = load ptr, ptr %30, align 8, !tbaa !5
  %367 = load ptr, ptr %32, align 8, !tbaa !5
  %368 = load ptr, ptr %31, align 8, !tbaa !5
  %369 = load ptr, ptr %36, align 8, !tbaa !17
  %370 = getelementptr inbounds ptr, ptr %369, i64 9
  %371 = load ptr, ptr %370, align 8
  %372 = invoke noundef ptr %371(ptr noundef nonnull align 8 dereferenceable(272) %36, ptr noundef %366, ptr noundef %367, ptr noundef %368, ptr noundef null)
          to label %373 unwind label %416

373:                                              ; preds = %365
  %374 = icmp ne ptr %372, null
  br i1 %374, label %434, label %375

375:                                              ; preds = %373
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %376 = load ptr, ptr %30, align 8, !tbaa !5
  %377 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %36, ptr noundef %376)
          to label %378 unwind label %420

378:                                              ; preds = %375
  %379 = load ptr, ptr %36, align 8, !tbaa !17
  %380 = getelementptr inbounds ptr, ptr %379, i64 4
  %381 = load ptr, ptr %380, align 8
  %382 = invoke noundef ptr %381(ptr noundef nonnull align 8 dereferenceable(272) %36, ptr noundef nonnull align 8 dereferenceable(24) %377, ptr noundef null)
          to label %383 unwind label %420

383:                                              ; preds = %378
  store ptr %382, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %384 = load ptr, ptr %31, align 8, !tbaa !5
  %385 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %36, ptr noundef %384)
          to label %386 unwind label %424

386:                                              ; preds = %383
  %387 = load ptr, ptr %36, align 8, !tbaa !17
  %388 = getelementptr inbounds ptr, ptr %387, i64 4
  %389 = load ptr, ptr %388, align 8
  %390 = invoke noundef ptr %389(ptr noundef nonnull align 8 dereferenceable(272) %36, ptr noundef nonnull align 8 dereferenceable(24) %385, ptr noundef null)
          to label %391 unwind label %424

391:                                              ; preds = %386
  store ptr %390, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  %392 = load ptr, ptr %32, align 8, !tbaa !5
  %393 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %36, ptr noundef %392)
          to label %394 unwind label %428

394:                                              ; preds = %391
  %395 = load ptr, ptr %36, align 8, !tbaa !17
  %396 = getelementptr inbounds ptr, ptr %395, i64 4
  %397 = load ptr, ptr %396, align 8
  %398 = invoke noundef ptr %397(ptr noundef nonnull align 8 dereferenceable(272) %36, ptr noundef nonnull align 8 dereferenceable(24) %393, ptr noundef null)
          to label %399 unwind label %428

399:                                              ; preds = %394
  store ptr %398, ptr %35, align 8, !tbaa !5
  %400 = load ptr, ptr %33, align 8, !tbaa !5
  %401 = load ptr, ptr %34, align 8, !tbaa !5
  %402 = load ptr, ptr %35, align 8, !tbaa !5
  %403 = load ptr, ptr %36, align 8, !tbaa !17
  %404 = getelementptr inbounds ptr, ptr %403, i64 9
  %405 = load ptr, ptr %404, align 8
  %406 = invoke noundef ptr %405(ptr noundef nonnull align 8 dereferenceable(272) %36, ptr noundef %400, ptr noundef %401, ptr noundef %402, ptr noundef null)
          to label %407 unwind label %428

407:                                              ; preds = %399
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  br label %434

408:                                              ; preds = %343
  %409 = landingpad { ptr, i32 }
          cleanup
  %410 = extractvalue { ptr, i32 } %409, 0
  store ptr %410, ptr %13, align 8
  %411 = extractvalue { ptr, i32 } %409, 1
  store i32 %411, ptr %14, align 4
  br label %441

412:                                              ; preds = %347
  %413 = landingpad { ptr, i32 }
          cleanup
  %414 = extractvalue { ptr, i32 } %413, 0
  store ptr %414, ptr %13, align 8
  %415 = extractvalue { ptr, i32 } %413, 1
  store i32 %415, ptr %14, align 4
  br label %440

416:                                              ; preds = %365, %355, %351
  %417 = landingpad { ptr, i32 }
          cleanup
  %418 = extractvalue { ptr, i32 } %417, 0
  store ptr %418, ptr %13, align 8
  %419 = extractvalue { ptr, i32 } %417, 1
  store i32 %419, ptr %14, align 4
  br label %439

420:                                              ; preds = %378, %375
  %421 = landingpad { ptr, i32 }
          cleanup
  %422 = extractvalue { ptr, i32 } %421, 0
  store ptr %422, ptr %13, align 8
  %423 = extractvalue { ptr, i32 } %421, 1
  store i32 %423, ptr %14, align 4
  br label %433

424:                                              ; preds = %386, %383
  %425 = landingpad { ptr, i32 }
          cleanup
  %426 = extractvalue { ptr, i32 } %425, 0
  store ptr %426, ptr %13, align 8
  %427 = extractvalue { ptr, i32 } %425, 1
  store i32 %427, ptr %14, align 4
  br label %432

428:                                              ; preds = %399, %394, %391
  %429 = landingpad { ptr, i32 }
          cleanup
  %430 = extractvalue { ptr, i32 } %429, 0
  store ptr %430, ptr %13, align 8
  %431 = extractvalue { ptr, i32 } %429, 1
  store i32 %431, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  br label %432

432:                                              ; preds = %428, %424
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  br label %433

433:                                              ; preds = %432, %420
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  br label %439

434:                                              ; preds = %407, %373
  br label %435

435:                                              ; preds = %434, %363
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  br label %436

436:                                              ; preds = %435
  %437 = load i32, ptr %29, align 4, !tbaa !9
  %438 = add nsw i32 %437, 3
  store i32 %438, ptr %29, align 4, !tbaa !9
  br label %332, !llvm.loop !21

439:                                              ; preds = %433, %416
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br label %440

440:                                              ; preds = %439, %412
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br label %441

441:                                              ; preds = %440, %408
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  br label %442

442:                                              ; preds = %441, %339
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %448

443:                                              ; preds = %338
  %444 = load ptr, ptr %6, align 8, !tbaa !5
  %445 = invoke i32 @fclose(ptr noundef %444)
          to label %446 unwind label %62

446:                                              ; preds = %443
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %447

447:                                              ; preds = %446, %327
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 1024, ptr %8) #8
  br label %449

448:                                              ; preds = %442, %330, %62
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 1024, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %451

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

451:                                              ; preds = %448
  %452 = load ptr, ptr %13, align 8
  %453 = load i32, ptr %14, align 4
  %454 = insertvalue { ptr, i32 } poison, ptr %452, 0
  %455 = insertvalue { ptr, i32 } %454, i32 %453, 1
  resume { ptr, i32 } %455
}

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 willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #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 "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 = { inlinehint mustprogress nounwind willreturn memory(read) 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 }
attributes #9 = { 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}
!20 = distinct !{!20, !13}
!21 = distinct !{!21, !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
@.str.57 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [41 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: 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #3

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

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

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 #4 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: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #0 align 2

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 #5

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

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

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

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

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #8

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

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

; Function Attrs: mustprogress nofree nounwind willreturn
declare ptr @strtok(ptr noundef, ptr nocapture noundef readonly) local_unnamed_addr #10

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6R3Mesh12ReadCattFileEPKc(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 [80 x i8], align 16
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca %class.R3Point, align 8
  %11 = alloca i32, align 4
  %12 = alloca [256 x i8], align 16
  %13 = alloca [256 x i8], align 16
  %14 = alloca %class.RNArray, align 8
  %15 = tail call noalias ptr @fopen(ptr noundef %1, ptr noundef nonnull @.str.57)
  %.not = icmp eq ptr %15, null
  br i1 %.not, label %16, label %17

16:                                               ; preds = %2
  tail call void (ptr, ...) @_Z6RNFailPKcz(ptr noundef nonnull @.str.58, ptr noundef %1)
  br label %226

17:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %3) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #11
  call void @_ZN7RNArrayIP12R3MeshVertexEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %18 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 1023, ptr noundef nonnull %15)
  %.not118170 = icmp eq ptr %18, null
  br i1 %.not118170, label %._crit_edge, label %.lr.ph174

.lr.ph174:                                        ; preds = %17, %.backedge
  %.072173 = phi i32 [ %.678188, %.backedge ], [ 0, %17 ]
  %.079172 = phi i32 [ %.382187, %.backedge ], [ 0, %17 ]
  %.083171 = phi i32 [ %.386186, %.backedge ], [ 0, %17 ]
  br label %19

19:                                               ; preds = %19, %.lr.ph174
  %.0113 = phi ptr [ %3, %.lr.ph174 ], [ %23, %19 ]
  %20 = load i8, ptr %.0113, align 1, !tbaa !5
  %21 = sext i8 %20 to i32
  %22 = call i32 @isspace(i32 noundef %21) #12
  %.not119 = icmp eq i32 %22, 0
  %23 = getelementptr inbounds i8, ptr %.0113, i64 1
  br i1 %.not119, label %24, label %19, !llvm.loop !8

24:                                               ; preds = %19
  %25 = add nsw i32 %.072173, 1
  %26 = icmp eq i8 %20, 0
  br i1 %26, label %.backedge, label %27, !llvm.loop !10

27:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %5) #11
  %28 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %.0113, ptr noundef nonnull @.str.59, ptr noundef nonnull %5) #11
  %.not120 = icmp eq i32 %28, 1
  br i1 %.not120, label %32, label %29

29:                                               ; preds = %27
  invoke void (ptr, ...) @_Z6RNFailPKcz(ptr noundef nonnull @.str.60, i32 noundef %25, ptr noundef %1)
          to label %.loopexit165.loopexit unwind label %30

30:                                               ; preds = %29
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %164

32:                                               ; preds = %27
  %33 = load i8, ptr %5, align 16, !tbaa !5
  %34 = icmp eq i8 %33, 37
  br i1 %34, label %35, label %41

35:                                               ; preds = %32
  %36 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.116) #12
  %.not138 = icmp eq i32 %36, 0
  br i1 %.not138, label %.thread189, label %37, !llvm.loop !10

37:                                               ; preds = %35
  %38 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.117) #12
  %.not139 = icmp eq i32 %38, 0
  br i1 %.not139, label %.thread189, label %39, !llvm.loop !10

39:                                               ; preds = %37
  %40 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.118) #12
  %.not140 = icmp eq i32 %40, 0
  br i1 %.not140, label %162, label %.thread189

41:                                               ; preds = %32
  %.not121 = icmp eq i32 %.079172, 0
  br i1 %.not121, label %60, label %42

42:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #11
  %43 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %.0113, ptr noundef nonnull @.str.119, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9) #11
  %.not135 = icmp eq i32 %43, 4
  br i1 %.not135, label %47, label %44

44:                                               ; preds = %42
  invoke void (ptr, ...) @_Z6RNFailPKcz(ptr noundef nonnull @.str.60, i32 noundef %25, ptr noundef %1)
          to label %56 unwind label %45

45:                                               ; preds = %44
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %59

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

51:                                               ; preds = %47
  %52 = load ptr, ptr %0, align 8, !tbaa !13
  %53 = getelementptr inbounds i8, ptr %52, i64 32
  %54 = load ptr, ptr %53, align 8
  %55 = invoke noundef ptr %54(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef null)
          to label %.thread unwind label %57

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

56:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #11
  br label %.loopexit165.loopexit

57:                                               ; preds = %51, %47
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #11
  br label %59

59:                                               ; preds = %57, %45
  %.pn136 = phi { ptr, i32 } [ %46, %45 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #11
  br label %164

60:                                               ; preds = %41
  %.not122 = icmp eq i32 %.083171, 0
  br i1 %.not122, label %.thread189, label %61

61:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #11
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %12) #11
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %13) #11
  %62 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %.0113, ptr noundef nonnull @.str.120, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13) #11
  %.not123 = icmp eq i32 %62, 3
  br i1 %.not123, label %63, label %67

63:                                               ; preds = %61
  %64 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %12, ptr noundef nonnull dereferenceable(1) @.str.121) #12
  %.not124 = icmp eq i32 %64, 0
  br i1 %.not124, label %65, label %67

65:                                               ; preds = %63
  %66 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %13, ptr noundef nonnull dereferenceable(1) @.str.122) #12
  %.not125 = icmp eq i32 %66, 0
  br i1 %.not125, label %70, label %67

67:                                               ; preds = %65, %63, %61
  invoke void (ptr, ...) @_Z6RNFailPKcz(ptr noundef nonnull @.str.60, i32 noundef %25, ptr noundef %1)
          to label %.thread156 unwind label %68

.thread156:                                       ; preds = %67
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %13) #11
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %12) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #11
  br label %.loopexit165.loopexit

68:                                               ; preds = %67
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %161

70:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #11
  invoke void @_ZN7RNArrayIP12R3MeshVertexEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %71 unwind label %83

71:                                               ; preds = %70
  %72 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 1023, ptr noundef nonnull %15)
  %.not126 = icmp eq ptr %72, null
  br i1 %.not126, label %.loopexit, label %73

73:                                               ; preds = %71
  %74 = add nsw i32 %.072173, 2
  %75 = call ptr @strtok(ptr noundef nonnull %3, ptr noundef nonnull @.str.123) #11
  %.not127166 = icmp eq ptr %75, null
  br i1 %.not127166, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %73, %94
  %.1114167 = phi ptr [ %95, %94 ], [ %75, %73 ]
  %76 = call i32 @atoi(ptr nocapture noundef %.1114167) #12
  %77 = icmp slt i32 %76, 1
  br i1 %77, label %82, label %78

78:                                               ; preds = %.lr.ph
  %79 = invoke noundef i32 @_ZNK6R3Mesh9NVerticesEv(ptr noundef nonnull align 8 dereferenceable(272) %0)
          to label %80 unwind label %.loopexit164

80:                                               ; preds = %78
  %81 = icmp sgt i32 %76, %79
  br i1 %81, label %82, label %85

82:                                               ; preds = %80, %.lr.ph
  invoke void (ptr, ...) @_Z6RNFailPKcz(ptr noundef nonnull @.str.124, i32 noundef %74, ptr noundef %1)
          to label %158 unwind label %.loopexit.split-lp

83:                                               ; preds = %70
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %160

.loopexit164:                                     ; preds = %78
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %159

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

85:                                               ; preds = %80
  %86 = add nsw i32 %76, -1
  %87 = invoke noundef ptr @_ZNK6R3Mesh6VertexEi(ptr noundef nonnull align 8 dereferenceable(272) %0, i32 noundef %86)
          to label %88 unwind label %90

88:                                               ; preds = %85
  %.not129 = icmp eq ptr %87, null
  br i1 %.not129, label %89, label %92

89:                                               ; preds = %88
  invoke void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.61, i32 noundef 5229, ptr noundef nonnull @.str.2)
          to label %92 unwind label %90

90:                                               ; preds = %92, %89, %85
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %159

92:                                               ; preds = %89, %88
  %93 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef %87)
          to label %94 unwind label %90

94:                                               ; preds = %92
  %95 = call ptr @strtok(ptr noundef null, ptr noundef nonnull @.str.123) #11
  %.not127 = icmp eq ptr %95, null
  br i1 %.not127, label %.loopexit, label %.lr.ph, !llvm.loop !15

.loopexit:                                        ; preds = %94, %73, %71
  %.173 = phi i32 [ %25, %71 ], [ %74, %73 ], [ %74, %94 ]
  %96 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %14)
  %97 = icmp sgt i32 %96, 2
  br i1 %97, label %.lr.ph169, label %.thread160

.thread160:                                       ; preds = %154, %.loopexit
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #11
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %13) #11
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %12) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #11
  br label %.thread189

98:                                               ; preds = %151, %149, %146, %144, %141, %139, %132, %129, %126, %124, %118, %116, %110, %108, %101, %.lr.ph169
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %159

.lr.ph169:                                        ; preds = %.loopexit, %154
  %.0100168 = phi i32 [ %155, %154 ], [ 2, %.loopexit ]
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) %14, i32 noundef 0)
          to label %101 unwind label %98

101:                                              ; preds = %.lr.ph169
  %102 = load ptr, ptr %100, align 8, !tbaa !16
  %103 = add nsw i32 %.0100168, -1
  %104 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) %14, i32 noundef %103)
          to label %105 unwind label %98

105:                                              ; preds = %101
  %106 = load ptr, ptr %104, align 8, !tbaa !16
  %107 = icmp eq ptr %102, %106
  br i1 %107, label %154, label %108

108:                                              ; preds = %105
  %109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) %14, i32 noundef %103)
          to label %110 unwind label %98

110:                                              ; preds = %108
  %111 = load ptr, ptr %109, align 8, !tbaa !16
  %112 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) %14, i32 noundef %.0100168)
          to label %113 unwind label %98

113:                                              ; preds = %110
  %114 = load ptr, ptr %112, align 8, !tbaa !16
  %115 = icmp eq ptr %111, %114
  br i1 %115, label %154, label %116

116:                                              ; preds = %113
  %117 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) %14, i32 noundef 0)
          to label %118 unwind label %98

118:                                              ; preds = %116
  %119 = load ptr, ptr %117, align 8, !tbaa !16
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) %14, i32 noundef %.0100168)
          to label %121 unwind label %98

121:                                              ; preds = %118
  %122 = load ptr, ptr %120, align 8, !tbaa !16
  %123 = icmp eq ptr %119, %122
  br i1 %123, label %154, label %124

124:                                              ; preds = %121
  %125 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) %14, i32 noundef 0)
          to label %126 unwind label %98

126:                                              ; preds = %124
  %127 = load ptr, ptr %125, align 8, !tbaa !16
  %128 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) %14, i32 noundef %103)
          to label %129 unwind label %98

129:                                              ; preds = %126
  %130 = load ptr, ptr %128, align 8, !tbaa !16
  %131 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) %14, i32 noundef %.0100168)
          to label %132 unwind label %98

132:                                              ; preds = %129
  %133 = load ptr, ptr %131, align 8, !tbaa !16
  %134 = load ptr, ptr %0, align 8, !tbaa !13
  %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 %127, ptr noundef %130, ptr noundef %133, ptr noundef null)
          to label %138 unwind label %98

138:                                              ; preds = %132
  %.not128 = icmp eq ptr %137, null
  br i1 %.not128, label %139, label %154

139:                                              ; preds = %138
  %140 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) %14, i32 noundef 0)
          to label %141 unwind label %98

141:                                              ; preds = %139
  %142 = load ptr, ptr %140, align 8, !tbaa !16
  %143 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef %142)
          to label %144 unwind label %98

144:                                              ; preds = %141
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) %14, i32 noundef %103)
          to label %146 unwind label %98

146:                                              ; preds = %144
  %147 = load ptr, ptr %145, align 8, !tbaa !16
  %148 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef %147)
          to label %149 unwind label %98

149:                                              ; preds = %146
  %150 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) %14, i32 noundef %.0100168)
          to label %151 unwind label %98

151:                                              ; preds = %149
  %152 = load ptr, ptr %150, align 8, !tbaa !16
  %153 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef %152)
          to label %154 unwind label %98

154:                                              ; preds = %138, %151, %121, %113, %105
  %155 = add nuw nsw i32 %.0100168, 1
  %156 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %14)
  %157 = icmp slt i32 %155, %156
  br i1 %157, label %.lr.ph169, label %.thread160, !llvm.loop !18

158:                                              ; preds = %82
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #11
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %13) #11
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %12) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #11
  br label %.loopexit165.loopexit

159:                                              ; preds = %.loopexit164, %.loopexit.split-lp, %90, %98
  %.pn.pn = phi { ptr, i32 } [ %99, %98 ], [ %91, %90 ], [ %lpad.loopexit, %.loopexit164 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #11
  br label %160

160:                                              ; preds = %159, %83
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %159 ], [ %84, %83 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #11
  br label %161

161:                                              ; preds = %160, %68
  %.pn133 = phi { ptr, i32 } [ %69, %68 ], [ %.pn.pn.pn, %160 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %13) #11
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %12) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #11
  br label %164

.thread189:                                       ; preds = %35, %37, %39, %.thread160, %.thread, %60
  %.285.ph = phi i32 [ 0, %60 ], [ %.083171, %.thread ], [ %.083171, %.thread160 ], [ 0, %39 ], [ 1, %37 ], [ 0, %35 ]
  %.281.ph = phi i32 [ 0, %60 ], [ %.079172, %.thread ], [ 0, %.thread160 ], [ 0, %39 ], [ 0, %37 ], [ 1, %35 ]
  %.577.ph = phi i32 [ %25, %60 ], [ %25, %.thread ], [ %.173, %.thread160 ], [ %25, %39 ], [ %25, %37 ], [ %25, %35 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #11
  br label %.backedge

162:                                              ; preds = %39
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #11
  br label %._crit_edge

.backedge:                                        ; preds = %24, %.thread189
  %.678188 = phi i32 [ %.577.ph, %.thread189 ], [ %25, %24 ]
  %.382187 = phi i32 [ %.281.ph, %.thread189 ], [ %.079172, %24 ]
  %.386186 = phi i32 [ %.285.ph, %.thread189 ], [ %.083171, %24 ]
  %163 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 1023, ptr noundef nonnull %15)
  %.not118 = icmp eq ptr %163, null
  br i1 %.not118, label %._crit_edge, label %.lr.ph174, !llvm.loop !10

164:                                              ; preds = %161, %59, %30
  %.pn141 = phi { ptr, i32 } [ %31, %30 ], [ %.pn136, %59 ], [ %.pn133, %161 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #11
  br label %225

._crit_edge:                                      ; preds = %.backedge, %162, %17
  %165 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %.not143176 = icmp slt i32 %165, 3
  br i1 %.not143176, label %._crit_edge180, label %.lr.ph179

._crit_edge180:                                   ; preds = %221, %._crit_edge
  %166 = call i32 @fclose(ptr noundef nonnull %15)
  br label %.loopexit165

.lr.ph179:                                        ; preds = %._crit_edge, %221
  %.099177 = phi i32 [ %222, %221 ], [ 0, %._crit_edge ]
  %167 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef %.099177)
          to label %168 unwind label %209

168:                                              ; preds = %.lr.ph179
  %169 = add nuw nsw i32 %.099177, 1
  %170 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef %169)
          to label %171 unwind label %211

171:                                              ; preds = %168
  %172 = add nuw nsw i32 %.099177, 2
  %173 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef %172)
          to label %174 unwind label %213

174:                                              ; preds = %171
  %175 = load ptr, ptr %0, align 8, !tbaa !13
  %176 = getelementptr inbounds i8, ptr %175, i64 72
  %177 = load ptr, ptr %176, align 8
  %178 = invoke noundef ptr %177(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %167, ptr noundef %170, ptr noundef %173, ptr noundef null)
          to label %179 unwind label %213

179:                                              ; preds = %174
  %.not144 = icmp eq ptr %178, null
  br i1 %.not144, label %180, label %221

180:                                              ; preds = %179
  %181 = load ptr, ptr %0, align 8, !tbaa !13
  %182 = getelementptr inbounds i8, ptr %181, i64 72
  %183 = load ptr, ptr %182, align 8
  %184 = invoke noundef ptr %183(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %167, ptr noundef %173, ptr noundef %170, ptr noundef null)
          to label %185 unwind label %213

185:                                              ; preds = %180
  %.not145 = icmp eq ptr %184, null
  br i1 %.not145, label %186, label %221

186:                                              ; preds = %185
  %187 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %167)
  %188 = load ptr, ptr %0, align 8, !tbaa !13
  %189 = getelementptr inbounds i8, ptr %188, i64 32
  %190 = load ptr, ptr %189, align 8
  %191 = invoke noundef ptr %190(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull align 8 dereferenceable(24) %187, ptr noundef null)
          to label %192 unwind label %215

192:                                              ; preds = %186
  %193 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %170)
  %194 = load ptr, ptr %0, align 8, !tbaa !13
  %195 = getelementptr inbounds i8, ptr %194, i64 32
  %196 = load ptr, ptr %195, align 8
  %197 = invoke noundef ptr %196(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull align 8 dereferenceable(24) %193, ptr noundef null)
          to label %198 unwind label %217

198:                                              ; preds = %192
  %199 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %173)
  %200 = load ptr, ptr %0, align 8, !tbaa !13
  %201 = getelementptr inbounds i8, ptr %200, i64 32
  %202 = load ptr, ptr %201, align 8
  %203 = invoke noundef ptr %202(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull align 8 dereferenceable(24) %199, ptr noundef null)
          to label %204 unwind label %219

204:                                              ; preds = %198
  %205 = load ptr, ptr %0, align 8, !tbaa !13
  %206 = getelementptr inbounds i8, ptr %205, i64 72
  %207 = load ptr, ptr %206, align 8
  %208 = invoke noundef ptr %207(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %191, ptr noundef %197, ptr noundef %203, ptr noundef null)
          to label %221 unwind label %219

209:                                              ; preds = %.lr.ph179
  %210 = landingpad { ptr, i32 }
          cleanup
  br label %225

211:                                              ; preds = %168
  %212 = landingpad { ptr, i32 }
          cleanup
  br label %225

213:                                              ; preds = %180, %174, %171
  %214 = landingpad { ptr, i32 }
          cleanup
  br label %225

215:                                              ; preds = %186
  %216 = landingpad { ptr, i32 }
          cleanup
  br label %225

217:                                              ; preds = %192
  %218 = landingpad { ptr, i32 }
          cleanup
  br label %225

219:                                              ; preds = %204, %198
  %220 = landingpad { ptr, i32 }
          cleanup
  br label %225

221:                                              ; preds = %204, %185, %179
  %222 = add nuw nsw i32 %.099177, 3
  %223 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %224 = add nsw i32 %223, -3
  %.not143 = icmp sgt i32 %222, %224
  br i1 %.not143, label %._crit_edge180, label %.lr.ph179, !llvm.loop !19

.loopexit165.loopexit:                            ; preds = %56, %158, %29, %.thread156
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #11
  br label %.loopexit165

.loopexit165:                                     ; preds = %.loopexit165.loopexit, %._crit_edge180
  %.10 = phi i32 [ 1, %._crit_edge180 ], [ 0, %.loopexit165.loopexit ]
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #11
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %3) #11
  br label %226

225:                                              ; preds = %209, %213, %217, %219, %215, %211, %164
  %.pn146.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn141, %164 ], [ %210, %209 ], [ %212, %211 ], [ %214, %213 ], [ %216, %215 ], [ %220, %219 ], [ %218, %217 ]
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #11
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %3) #11
  resume { ptr, i32 } %.pn146.pn.pn.pn.pn.pn

226:                                              ; preds = %.loopexit165, %16
  %.11 = phi i32 [ %.10, %.loopexit165 ], [ 0, %16 ]
  ret i32 %.11
}

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 willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 #6 = { 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 #7 = { 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 #8 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 #9 = { 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 #10 = { mustprogress nofree nounwind willreturn "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 #11 = { nounwind }
attributes #12 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !6, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !7, i64 0}
!15 = distinct !{!15, !9}
!16 = !{!17, !17, i64 0}
!17 = !{!"any pointer", !6, i64 0}
!18 = distinct !{!18, !9}
!19 = distinct !{!19, !9}


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