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

; 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] }

@stderr = external global ptr, align 8
@__dso_handle = external hidden global i8
@.str.57 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZZN6R3Mesh12ReadVRMLFileEPKcE16coordinate_index = external hidden global i32, align 4
@_ZZN6R3Mesh12ReadVRMLFileEPKcE11coordinates = external hidden global [3 x double], align 16
@_ZZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices = external hidden global %class.RNArray, align 8
@_ZGVZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices = external hidden global i64, align 8
@.str.155 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [11 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(...)

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

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

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

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

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

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

; Function Attrs: nounwind
declare i32 @__cxa_guard_acquire(ptr) #5

; Function Attrs: nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) #5

; Function Attrs: nounwind
declare void @__cxa_guard_abort(ptr) #5

; Function Attrs: nounwind
declare void @__cxa_guard_release(ptr) #5

declare void @_ZN8RNVArray5EmptyEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #3

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

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

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

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

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

declare i32 @fclose(ptr noundef) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6R3Mesh12ReadVRMLFileEPKc(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 i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %class.RNArray, align 8
  %15 = alloca %class.RNArray, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca %class.R3Point, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %34 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = call noalias ptr @fopen(ptr noundef %35, ptr noundef @.str.57)
  store ptr %36, ptr %6, align 8, !tbaa !5
  %37 = icmp ne ptr %36, null
  br i1 %37, label %42, label %38

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

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

43:                                               ; preds = %42
  br label %44

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

48:                                               ; preds = %44
  %49 = icmp ne ptr %47, null
  br i1 %49, label %50, label %324

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

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

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

63:                                               ; preds = %42
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %16, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %17, align 4
  br label %441

67:                                               ; preds = %436, %44
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %16, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %17, align 4
  br label %440

71:                                               ; preds = %54
  %72 = load ptr, ptr %18, align 8, !tbaa !5
  %73 = load i8, ptr %72, align 1, !tbaa !11
  %74 = sext i8 %73 to i32
  %75 = icmp eq i32 %74, 35
  br i1 %75, label %76, label %77

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

77:                                               ; preds = %71
  %78 = load ptr, ptr %18, align 8, !tbaa !5
  %79 = load i8, ptr %78, align 1, !tbaa !11
  %80 = sext i8 %79 to i32
  %81 = icmp eq i32 %80, 0
  br i1 %81, label %82, label %83

82:                                               ; preds = %77
  store i32 2, ptr %7, align 4
  br label %320, !llvm.loop !14

83:                                               ; preds = %77
  %84 = load ptr, ptr %18, align 8, !tbaa !5
  %85 = call ptr @strtok(ptr noundef %84, ptr noundef @.str.154) #5
  store ptr %85, ptr %18, align 8, !tbaa !5
  %86 = load ptr, ptr %18, align 8, !tbaa !5
  %87 = icmp ne ptr %86, null
  br i1 %87, label %89, label %88

88:                                               ; preds = %83
  store i32 3, ptr %7, align 4
  br label %320

89:                                               ; preds = %83
  %90 = load i32, ptr %11, align 4, !tbaa !9
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %92, label %149

92:                                               ; preds = %89
  %93 = load ptr, ptr %18, align 8, !tbaa !5
  %94 = load i8, ptr %93, align 1, !tbaa !11
  %95 = sext i8 %94 to i32
  %96 = icmp eq i32 %95, 93
  br i1 %96, label %97, label %98

97:                                               ; preds = %92
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %148

98:                                               ; preds = %92
  br label %99

99:                                               ; preds = %144, %98
  %100 = load ptr, ptr %18, align 8, !tbaa !5
  %101 = load i8, ptr %100, align 1, !tbaa !11
  %102 = icmp ne i8 %101, 0
  br i1 %102, label %103, label %142

103:                                              ; preds = %99
  %104 = load ptr, ptr %18, align 8, !tbaa !5
  %105 = load i8, ptr %104, align 1, !tbaa !11
  %106 = sext i8 %105 to i32
  %107 = call i32 @isspace(i32 noundef %106) #8
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %142, label %109

109:                                              ; preds = %103
  %110 = load ptr, ptr %18, align 8, !tbaa !5
  %111 = call double @atof(ptr noundef %110) #8
  %112 = load i32, ptr @_ZZN6R3Mesh12ReadVRMLFileEPKcE16coordinate_index, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [3 x double], ptr @_ZZN6R3Mesh12ReadVRMLFileEPKcE11coordinates, i64 0, i64 %113
  store double %111, ptr %114, align 8, !tbaa !15
  %115 = load i32, ptr @_ZZN6R3Mesh12ReadVRMLFileEPKcE16coordinate_index, align 4, !tbaa !9
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr @_ZZN6R3Mesh12ReadVRMLFileEPKcE16coordinate_index, align 4, !tbaa !9
  %117 = load i32, ptr @_ZZN6R3Mesh12ReadVRMLFileEPKcE16coordinate_index, align 4, !tbaa !9
  %118 = icmp eq i32 %117, 3
  br i1 %118, label %119, label %141

119:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #5
  %120 = load double, ptr @_ZZN6R3Mesh12ReadVRMLFileEPKcE11coordinates, align 16, !tbaa !15
  %121 = load double, ptr getelementptr inbounds ([3 x double], ptr @_ZZN6R3Mesh12ReadVRMLFileEPKcE11coordinates, i64 0, i64 1), align 8, !tbaa !15
  %122 = load double, ptr getelementptr inbounds ([3 x double], ptr @_ZZN6R3Mesh12ReadVRMLFileEPKcE11coordinates, i64 0, i64 2), align 16, !tbaa !15
  invoke void @_ZN7R3PointC1Eddd(ptr noundef nonnull align 8 dereferenceable(24) %19, double noundef %120, double noundef %121, double noundef %122)
          to label %123 unwind label %132

123:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %124 = load ptr, ptr %34, align 8, !tbaa !17
  %125 = getelementptr inbounds ptr, ptr %124, i64 4
  %126 = load ptr, ptr %125, align 8
  %127 = invoke noundef ptr %126(ptr noundef nonnull align 8 dereferenceable(272) %34, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef null)
          to label %128 unwind label %136

128:                                              ; preds = %123
  store ptr %127, ptr %20, align 8, !tbaa !5
  %129 = load ptr, ptr %20, align 8, !tbaa !5
  %130 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef %129)
          to label %131 unwind label %136

131:                                              ; preds = %128
  store i32 0, ptr @_ZZN6R3Mesh12ReadVRMLFileEPKcE16coordinate_index, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #5
  br label %141

132:                                              ; preds = %119
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %16, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %17, align 4
  br label %140

136:                                              ; preds = %128, %123
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %16, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %140

140:                                              ; preds = %136, %132
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #5
  br label %323

141:                                              ; preds = %131, %109
  br label %142

142:                                              ; preds = %141, %103, %99
  %143 = call ptr @strtok(ptr noundef null, ptr noundef @.str.154) #5
  store ptr %143, ptr %18, align 8, !tbaa !5
  br label %144

144:                                              ; preds = %142
  %145 = load ptr, ptr %18, align 8, !tbaa !5
  %146 = icmp ne ptr %145, null
  br i1 %146, label %99, label %147, !llvm.loop !19

147:                                              ; preds = %144
  br label %148

148:                                              ; preds = %147, %97
  br label %319

149:                                              ; preds = %89
  %150 = load i32, ptr %13, align 4, !tbaa !9
  %151 = icmp ne i32 %150, 0
  br i1 %151, label %152, label %288

152:                                              ; preds = %149
  %153 = load ptr, ptr %18, align 8, !tbaa !5
  %154 = load i8, ptr %153, align 1, !tbaa !11
  %155 = sext i8 %154 to i32
  %156 = icmp eq i32 %155, 93
  br i1 %156, label %157, label %158

157:                                              ; preds = %152
  store i32 0, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %287

158:                                              ; preds = %152
  br label %159

159:                                              ; preds = %283, %158
  %160 = load ptr, ptr %18, align 8, !tbaa !5
  %161 = load i8, ptr %160, align 1, !tbaa !11
  %162 = icmp ne i8 %161, 0
  br i1 %162, label %163, label %281

163:                                              ; preds = %159
  %164 = load ptr, ptr %18, align 8, !tbaa !5
  %165 = load i8, ptr %164, align 1, !tbaa !11
  %166 = sext i8 %165 to i32
  %167 = call i32 @isspace(i32 noundef %166) #8
  %168 = icmp ne i32 %167, 0
  br i1 %168, label %281, label %169

169:                                              ; preds = %163
  %170 = load atomic i8, ptr @_ZGVZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices acquire, align 8
  %171 = icmp eq i8 %170, 0
  br i1 %171, label %172, label %178, !prof !20

172:                                              ; preds = %169
  %173 = call i32 @__cxa_guard_acquire(ptr @_ZGVZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices) #5
  %174 = icmp ne i32 %173, 0
  br i1 %174, label %175, label %178

175:                                              ; preds = %172
  invoke void @_ZN7RNArrayIP12R3MeshVertexEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) @_ZZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices)
          to label %176 unwind label %191

176:                                              ; preds = %175
  %177 = call i32 @__cxa_atexit(ptr @_ZN8RNVArrayD2Ev, ptr @_ZZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices, ptr @__dso_handle) #5
  call void @__cxa_guard_release(ptr @_ZGVZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices) #5
  br label %178

178:                                              ; preds = %176, %172, %169
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %179 = load ptr, ptr %18, align 8, !tbaa !5
  %180 = call i32 @atoi(ptr noundef %179) #8
  store i32 %180, ptr %21, align 4, !tbaa !9
  %181 = load i32, ptr %21, align 4, !tbaa !9
  %182 = icmp sge i32 %181, 0
  br i1 %182, label %183, label %199

183:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %184 = load i32, ptr %21, align 4, !tbaa !9
  %185 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) %14, i32 noundef %184)
          to label %186 unwind label %195

186:                                              ; preds = %183
  %187 = load ptr, ptr %185, align 8, !tbaa !5
  store ptr %187, ptr %22, align 8, !tbaa !5
  %188 = load ptr, ptr %22, align 8, !tbaa !5
  %189 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) @_ZZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices, ptr noundef %188)
          to label %190 unwind label %195

190:                                              ; preds = %186
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %279

191:                                              ; preds = %175
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %16, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %17, align 4
  call void @__cxa_guard_abort(ptr @_ZGVZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices) #5
  br label %323

195:                                              ; preds = %186, %183
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %16, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %280

199:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %200 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) @_ZZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices, i32 noundef 0)
          to label %201 unwind label %209

201:                                              ; preds = %199
  %202 = load ptr, ptr %200, align 8, !tbaa !5
  store ptr %202, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 2, ptr %24, align 4, !tbaa !9
  br label %203

203:                                              ; preds = %271, %201
  %204 = load i32, ptr %24, align 4, !tbaa !9
  %205 = invoke noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices)
          to label %206 unwind label %213

206:                                              ; preds = %203
  %207 = icmp slt i32 %204, %205
  br i1 %207, label %217, label %208

208:                                              ; preds = %206
  store i32 10, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %276

209:                                              ; preds = %276, %199
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %16, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %17, align 4
  br label %278

213:                                              ; preds = %203
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %16, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %17, align 4
  br label %275

217:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %218 = load i32, ptr %24, align 4, !tbaa !9
  %219 = sub nsw i32 %218, 1
  %220 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) @_ZZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices, i32 noundef %219)
          to label %221 unwind label %239

221:                                              ; preds = %217
  %222 = load ptr, ptr %220, align 8, !tbaa !5
  store ptr %222, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %223 = load i32, ptr %24, align 4, !tbaa !9
  %224 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) @_ZZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices, i32 noundef %223)
          to label %225 unwind label %243

225:                                              ; preds = %221
  %226 = load ptr, ptr %224, align 8, !tbaa !5
  store ptr %226, ptr %26, align 8, !tbaa !5
  %227 = load ptr, ptr %23, align 8, !tbaa !5
  %228 = load ptr, ptr %25, align 8, !tbaa !5
  %229 = icmp eq ptr %227, %228
  br i1 %229, label %238, label %230

230:                                              ; preds = %225
  %231 = load ptr, ptr %25, align 8, !tbaa !5
  %232 = load ptr, ptr %26, align 8, !tbaa !5
  %233 = icmp eq ptr %231, %232
  br i1 %233, label %238, label %234

234:                                              ; preds = %230
  %235 = load ptr, ptr %23, align 8, !tbaa !5
  %236 = load ptr, ptr %26, align 8, !tbaa !5
  %237 = icmp eq ptr %235, %236
  br i1 %237, label %238, label %247

238:                                              ; preds = %234, %230, %225
  store i32 12, ptr %7, align 4
  br label %268

239:                                              ; preds = %217
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %16, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %17, align 4
  br label %274

243:                                              ; preds = %263, %260, %257, %247, %221
  %244 = landingpad { ptr, i32 }
          cleanup
  %245 = extractvalue { ptr, i32 } %244, 0
  store ptr %245, ptr %16, align 8
  %246 = extractvalue { ptr, i32 } %244, 1
  store i32 %246, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  br label %274

247:                                              ; preds = %234
  %248 = load ptr, ptr %23, align 8, !tbaa !5
  %249 = load ptr, ptr %25, align 8, !tbaa !5
  %250 = load ptr, ptr %26, align 8, !tbaa !5
  %251 = load ptr, ptr %34, align 8, !tbaa !17
  %252 = getelementptr inbounds ptr, ptr %251, i64 9
  %253 = load ptr, ptr %252, align 8
  %254 = invoke noundef ptr %253(ptr noundef nonnull align 8 dereferenceable(272) %34, ptr noundef %248, ptr noundef %249, ptr noundef %250, ptr noundef null)
          to label %255 unwind label %243

255:                                              ; preds = %247
  %256 = icmp ne ptr %254, null
  br i1 %256, label %267, label %257

257:                                              ; preds = %255
  %258 = load ptr, ptr %23, align 8, !tbaa !5
  %259 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef %258)
          to label %260 unwind label %243

260:                                              ; preds = %257
  %261 = load ptr, ptr %25, align 8, !tbaa !5
  %262 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef %261)
          to label %263 unwind label %243

263:                                              ; preds = %260
  %264 = load ptr, ptr %26, align 8, !tbaa !5
  %265 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef %264)
          to label %266 unwind label %243

266:                                              ; preds = %263
  br label %267

267:                                              ; preds = %266, %255
  store i32 0, ptr %7, align 4
  br label %268

268:                                              ; preds = %267, %238
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  %269 = load i32, ptr %7, align 4
  switch i32 %269, label %449 [
    i32 0, label %270
    i32 12, label %271
  ]

270:                                              ; preds = %268
  br label %271

271:                                              ; preds = %270, %268
  %272 = load i32, ptr %24, align 4, !tbaa !9
  %273 = add nsw i32 %272, 1
  store i32 %273, ptr %24, align 4, !tbaa !9
  br label %203, !llvm.loop !21

274:                                              ; preds = %243, %239
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br label %275

275:                                              ; preds = %274, %213
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %278

276:                                              ; preds = %208
  invoke void @_ZN8RNVArray5EmptyEi(ptr noundef nonnull align 8 dereferenceable(16) @_ZZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices, i32 noundef 0)
          to label %277 unwind label %209

277:                                              ; preds = %276
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %279

278:                                              ; preds = %275, %209
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %280

279:                                              ; preds = %277, %190
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %281

280:                                              ; preds = %278, %195
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %323

281:                                              ; preds = %279, %163, %159
  %282 = call ptr @strtok(ptr noundef null, ptr noundef @.str.154) #5
  store ptr %282, ptr %18, align 8, !tbaa !5
  br label %283

283:                                              ; preds = %281
  %284 = load ptr, ptr %18, align 8, !tbaa !5
  %285 = icmp ne ptr %284, null
  br i1 %285, label %159, label %286, !llvm.loop !22

286:                                              ; preds = %283
  br label %287

287:                                              ; preds = %286, %157
  br label %318

288:                                              ; preds = %149
  %289 = load ptr, ptr %18, align 8, !tbaa !5
  %290 = call i32 @strcmp(ptr noundef %289, ptr noundef @.str.155) #8
  %291 = icmp ne i32 %290, 0
  br i1 %291, label %293, label %292

292:                                              ; preds = %288
  store i32 1, ptr %10, align 4, !tbaa !9
  br label %317

293:                                              ; preds = %288
  %294 = load ptr, ptr %18, align 8, !tbaa !5
  %295 = call i32 @strcmp(ptr noundef %294, ptr noundef @.str.156) #8
  %296 = icmp ne i32 %295, 0
  br i1 %296, label %298, label %297

297:                                              ; preds = %293
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %316

298:                                              ; preds = %293
  %299 = load i32, ptr %10, align 4, !tbaa !9
  %300 = icmp ne i32 %299, 0
  br i1 %300, label %301, label %306

301:                                              ; preds = %298
  %302 = load ptr, ptr %18, align 8, !tbaa !5
  %303 = call i32 @strcmp(ptr noundef %302, ptr noundef @.str.157) #8
  %304 = icmp ne i32 %303, 0
  br i1 %304, label %306, label %305

305:                                              ; preds = %301
  store i32 1, ptr %11, align 4, !tbaa !9
  br label %315

306:                                              ; preds = %301, %298
  %307 = load i32, ptr %12, align 4, !tbaa !9
  %308 = icmp ne i32 %307, 0
  br i1 %308, label %309, label %314

309:                                              ; preds = %306
  %310 = load ptr, ptr %18, align 8, !tbaa !5
  %311 = call i32 @strcmp(ptr noundef %310, ptr noundef @.str.158) #8
  %312 = icmp ne i32 %311, 0
  br i1 %312, label %314, label %313

313:                                              ; preds = %309
  store i32 1, ptr %13, align 4, !tbaa !9
  br label %314

314:                                              ; preds = %313, %309, %306
  br label %315

315:                                              ; preds = %314, %305
  br label %316

316:                                              ; preds = %315, %297
  br label %317

317:                                              ; preds = %316, %292
  br label %318

318:                                              ; preds = %317, %287
  br label %319

319:                                              ; preds = %318, %148
  store i32 0, ptr %7, align 4
  br label %320

320:                                              ; preds = %319, %88, %82, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  %321 = load i32, ptr %7, align 4
  switch i32 %321, label %449 [
    i32 0, label %322
    i32 2, label %44
    i32 3, label %324
  ]

322:                                              ; preds = %320
  br label %44, !llvm.loop !14

323:                                              ; preds = %280, %191, %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %440

324:                                              ; preds = %320, %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %325

325:                                              ; preds = %429, %324
  %326 = load i32, ptr %27, align 4, !tbaa !9
  %327 = invoke noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %328 unwind label %332

328:                                              ; preds = %325
  %329 = sub nsw i32 %327, 3
  %330 = icmp sle i32 %326, %329
  br i1 %330, label %336, label %331

331:                                              ; preds = %328
  store i32 13, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %436

332:                                              ; preds = %325
  %333 = landingpad { ptr, i32 }
          cleanup
  %334 = extractvalue { ptr, i32 } %333, 0
  store ptr %334, ptr %16, align 8
  %335 = extractvalue { ptr, i32 } %333, 1
  store i32 %335, ptr %17, align 4
  br label %435

336:                                              ; preds = %328
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %337 = load i32, ptr %27, align 4, !tbaa !9
  %338 = add nsw i32 %337, 0
  %339 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef %338)
          to label %340 unwind label %401

340:                                              ; preds = %336
  store ptr %339, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %341 = load i32, ptr %27, align 4, !tbaa !9
  %342 = add nsw i32 %341, 1
  %343 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef %342)
          to label %344 unwind label %405

344:                                              ; preds = %340
  store ptr %343, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  %345 = load i32, ptr %27, align 4, !tbaa !9
  %346 = add nsw i32 %345, 2
  %347 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef %346)
          to label %348 unwind label %409

348:                                              ; preds = %344
  store ptr %347, ptr %30, align 8, !tbaa !5
  %349 = load ptr, ptr %28, align 8, !tbaa !5
  %350 = load ptr, ptr %29, align 8, !tbaa !5
  %351 = load ptr, ptr %30, align 8, !tbaa !5
  %352 = load ptr, ptr %34, align 8, !tbaa !17
  %353 = getelementptr inbounds ptr, ptr %352, i64 9
  %354 = load ptr, ptr %353, align 8
  %355 = invoke noundef ptr %354(ptr noundef nonnull align 8 dereferenceable(272) %34, ptr noundef %349, ptr noundef %350, ptr noundef %351, ptr noundef null)
          to label %356 unwind label %409

356:                                              ; preds = %348
  %357 = icmp ne ptr %355, null
  br i1 %357, label %428, label %358

358:                                              ; preds = %356
  %359 = load ptr, ptr %28, align 8, !tbaa !5
  %360 = load ptr, ptr %30, align 8, !tbaa !5
  %361 = load ptr, ptr %29, align 8, !tbaa !5
  %362 = load ptr, ptr %34, align 8, !tbaa !17
  %363 = getelementptr inbounds ptr, ptr %362, i64 9
  %364 = load ptr, ptr %363, align 8
  %365 = invoke noundef ptr %364(ptr noundef nonnull align 8 dereferenceable(272) %34, ptr noundef %359, ptr noundef %360, ptr noundef %361, ptr noundef null)
          to label %366 unwind label %409

366:                                              ; preds = %358
  %367 = icmp ne ptr %365, null
  br i1 %367, label %427, label %368

368:                                              ; preds = %366
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  %369 = load ptr, ptr %28, align 8, !tbaa !5
  %370 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %34, ptr noundef %369)
          to label %371 unwind label %413

371:                                              ; preds = %368
  %372 = load ptr, ptr %34, align 8, !tbaa !17
  %373 = getelementptr inbounds ptr, ptr %372, i64 4
  %374 = load ptr, ptr %373, align 8
  %375 = invoke noundef ptr %374(ptr noundef nonnull align 8 dereferenceable(272) %34, ptr noundef nonnull align 8 dereferenceable(24) %370, ptr noundef null)
          to label %376 unwind label %413

376:                                              ; preds = %371
  store ptr %375, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  %377 = load ptr, ptr %29, align 8, !tbaa !5
  %378 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %34, ptr noundef %377)
          to label %379 unwind label %417

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

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

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

392:                                              ; preds = %387
  store ptr %391, ptr %33, align 8, !tbaa !5
  %393 = load ptr, ptr %31, align 8, !tbaa !5
  %394 = load ptr, ptr %32, align 8, !tbaa !5
  %395 = load ptr, ptr %33, align 8, !tbaa !5
  %396 = load ptr, ptr %34, align 8, !tbaa !17
  %397 = getelementptr inbounds ptr, ptr %396, i64 9
  %398 = load ptr, ptr %397, align 8
  %399 = invoke noundef ptr %398(ptr noundef nonnull align 8 dereferenceable(272) %34, ptr noundef %393, ptr noundef %394, ptr noundef %395, ptr noundef null)
          to label %400 unwind label %421

400:                                              ; preds = %392
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  br label %427

401:                                              ; preds = %336
  %402 = landingpad { ptr, i32 }
          cleanup
  %403 = extractvalue { ptr, i32 } %402, 0
  store ptr %403, ptr %16, align 8
  %404 = extractvalue { ptr, i32 } %402, 1
  store i32 %404, ptr %17, align 4
  br label %434

405:                                              ; preds = %340
  %406 = landingpad { ptr, i32 }
          cleanup
  %407 = extractvalue { ptr, i32 } %406, 0
  store ptr %407, ptr %16, align 8
  %408 = extractvalue { ptr, i32 } %406, 1
  store i32 %408, ptr %17, align 4
  br label %433

409:                                              ; preds = %358, %348, %344
  %410 = landingpad { ptr, i32 }
          cleanup
  %411 = extractvalue { ptr, i32 } %410, 0
  store ptr %411, ptr %16, align 8
  %412 = extractvalue { ptr, i32 } %410, 1
  store i32 %412, ptr %17, align 4
  br label %432

413:                                              ; preds = %371, %368
  %414 = landingpad { ptr, i32 }
          cleanup
  %415 = extractvalue { ptr, i32 } %414, 0
  store ptr %415, ptr %16, align 8
  %416 = extractvalue { ptr, i32 } %414, 1
  store i32 %416, ptr %17, align 4
  br label %426

417:                                              ; preds = %379, %376
  %418 = landingpad { ptr, i32 }
          cleanup
  %419 = extractvalue { ptr, i32 } %418, 0
  store ptr %419, ptr %16, align 8
  %420 = extractvalue { ptr, i32 } %418, 1
  store i32 %420, ptr %17, align 4
  br label %425

421:                                              ; preds = %392, %387, %384
  %422 = landingpad { ptr, i32 }
          cleanup
  %423 = extractvalue { ptr, i32 } %422, 0
  store ptr %423, ptr %16, align 8
  %424 = extractvalue { ptr, i32 } %422, 1
  store i32 %424, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  br label %425

425:                                              ; preds = %421, %417
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  br label %426

426:                                              ; preds = %425, %413
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  br label %432

427:                                              ; preds = %400, %366
  br label %428

428:                                              ; preds = %427, %356
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  br label %429

429:                                              ; preds = %428
  %430 = load i32, ptr %27, align 4, !tbaa !9
  %431 = add nsw i32 %430, 3
  store i32 %431, ptr %27, align 4, !tbaa !9
  br label %325, !llvm.loop !23

432:                                              ; preds = %426, %409
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  br label %433

433:                                              ; preds = %432, %405
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  br label %434

434:                                              ; preds = %433, %401
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  br label %435

435:                                              ; preds = %434, %332
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %440

436:                                              ; preds = %331
  %437 = load ptr, ptr %6, align 8, !tbaa !5
  %438 = invoke i32 @fclose(ptr noundef %437)
          to label %439 unwind label %67

439:                                              ; preds = %436
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 1024, ptr %8) #5
  br label %442

440:                                              ; preds = %435, %323, %67
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  br label %441

441:                                              ; preds = %440, %63
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 1024, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %444

442:                                              ; preds = %439, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %443 = load i32, ptr %3, align 4
  ret i32 %443

444:                                              ; preds = %441
  %445 = load ptr, ptr %16, align 8
  %446 = load i32, ptr %17, align 4
  %447 = insertvalue { ptr, i32 } poison, ptr %445, 0
  %448 = insertvalue { ptr, i32 } %447, i32 %446, 1
  resume { ptr, i32 } %448

449:                                              ; preds = %320, %268
  unreachable
}

; Function Attrs: inlinehint mustprogress nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 }
attributes #6 = { 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 = { 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 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 = !{!"branch_weights", i32 1, i32 1048575}
!21 = distinct !{!21, !13}
!22 = distinct !{!22, !13}
!23 = distinct !{!23, !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] }

@stderr = external local_unnamed_addr global ptr, align 8
@__dso_handle = external hidden global i8
@.str.57 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [3 x i8], align 1
@_ZZN6R3Mesh12ReadVRMLFileEPKcE16coordinate_index = external hidden local_unnamed_addr global i32, align 4
@_ZZN6R3Mesh12ReadVRMLFileEPKcE11coordinates = external hidden local_unnamed_addr global [3 x double], align 16
@_ZZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices = external hidden global %class.RNArray, align 8
@_ZGVZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices = external hidden global i64, align 8
@.str.155 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [11 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(...)

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

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

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

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

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

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

; Function Attrs: nofree nounwind
declare i32 @__cxa_guard_acquire(ptr) local_unnamed_addr #5

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

; Function Attrs: nofree nounwind
declare void @__cxa_guard_abort(ptr) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare void @__cxa_guard_release(ptr) local_unnamed_addr #5

declare void @_ZN8RNVArray5EmptyEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #3

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

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

; 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 range(i32 0, 2) i32 @_ZN6R3Mesh12ReadVRMLFileEPKc(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 %class.R3Point, align 8
  %7 = tail call noalias ptr @fopen(ptr noundef %1, ptr noundef nonnull @.str.57)
  %.not = icmp eq ptr %7, null
  br i1 %.not, label %8, label %11

8:                                                ; preds = %2
  %9 = load ptr, ptr @stderr, align 8, !tbaa !5
  %10 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.70, ptr noundef %1) #11
  br label %198

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

.preheader163:                                    ; preds = %11
  %12 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 1023, ptr noundef nonnull %7)
  %.not113165 = icmp eq ptr %12, null
  br i1 %.not113165, label %.thread, label %.preheader162

.preheader162:                                    ; preds = %.preheader163, %.loopexit
  %.072169 = phi i32 [ %.2, %.loopexit ], [ 0, %.preheader163 ]
  %.073168 = phi i32 [ %.275, %.loopexit ], [ 0, %.preheader163 ]
  %.076167 = phi i32 [ %.278, %.loopexit ], [ 0, %.preheader163 ]
  %.080166 = phi i32 [ %.282, %.loopexit ], [ 0, %.preheader163 ]
  br label %13

13:                                               ; preds = %13, %.preheader162
  %.099 = phi ptr [ %17, %13 ], [ %3, %.preheader162 ]
  %14 = load i8, ptr %.099, align 1, !tbaa !9
  %15 = sext i8 %14 to i32
  %16 = call i32 @isspace(i32 noundef %15) #13
  %.not114 = icmp eq i32 %16, 0
  %17 = getelementptr inbounds i8, ptr %.099, i64 1
  br i1 %.not114, label %20, label %13, !llvm.loop !10

18:                                               ; preds = %11
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %197

20:                                               ; preds = %13
  switch i8 %14, label %21 [
    i8 35, label %.loopexit
    i8 0, label %.loopexit
  ], !llvm.loop !12

21:                                               ; preds = %20
  %22 = call ptr @strtok(ptr noundef nonnull %.099, ptr noundef nonnull @.str.154) #12
  %.not115 = icmp eq ptr %22, null
  br i1 %.not115, label %.thread, label %23

23:                                               ; preds = %21
  %.not116 = icmp eq i32 %.073168, 0
  br i1 %.not116, label %57, label %24

24:                                               ; preds = %23
  %25 = load i8, ptr %22, align 1, !tbaa !9
  %26 = icmp eq i8 %25, 93
  br i1 %26, label %.loopexit, label %.preheader160

thread-pre-split:                                 ; preds = %55
  %.pr = load i8, ptr %56, align 1, !tbaa !9
  br label %.preheader160

.preheader160:                                    ; preds = %24, %thread-pre-split
  %27 = phi i8 [ %.pr, %thread-pre-split ], [ %25, %24 ]
  %.1100 = phi ptr [ %56, %thread-pre-split ], [ %22, %24 ]
  %.not133 = icmp eq i8 %27, 0
  br i1 %.not133, label %55, label %28

28:                                               ; preds = %.preheader160
  %29 = sext i8 %27 to i32
  %30 = call i32 @isspace(i32 noundef %29) #13
  %.not134 = icmp eq i32 %30, 0
  br i1 %.not134, label %31, label %55

31:                                               ; preds = %28
  %32 = call double @atof(ptr noundef %.1100) #13
  %33 = load i32, ptr @_ZZN6R3Mesh12ReadVRMLFileEPKcE16coordinate_index, align 4, !tbaa !13
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [3 x double], ptr @_ZZN6R3Mesh12ReadVRMLFileEPKcE11coordinates, i64 0, i64 %34
  store double %32, ptr %35, align 8, !tbaa !15
  %36 = add nsw i32 %33, 1
  store i32 %36, ptr @_ZZN6R3Mesh12ReadVRMLFileEPKcE16coordinate_index, align 4, !tbaa !13
  %37 = icmp eq i32 %36, 3
  br i1 %37, label %38, label %55

38:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #12
  %39 = load double, ptr @_ZZN6R3Mesh12ReadVRMLFileEPKcE11coordinates, align 16, !tbaa !15
  %40 = load double, ptr getelementptr inbounds (i8, ptr @_ZZN6R3Mesh12ReadVRMLFileEPKcE11coordinates, i64 8), align 8, !tbaa !15
  %41 = load double, ptr getelementptr inbounds (i8, ptr @_ZZN6R3Mesh12ReadVRMLFileEPKcE11coordinates, i64 16), align 16, !tbaa !15
  invoke void @_ZN7R3PointC1Eddd(ptr noundef nonnull align 8 dereferenceable(24) %6, double noundef %39, double noundef %40, double noundef %41)
          to label %42 unwind label %50

42:                                               ; preds = %38
  %43 = load ptr, ptr %0, align 8, !tbaa !17
  %44 = getelementptr inbounds i8, ptr %43, i64 32
  %45 = load ptr, ptr %44, align 8
  %46 = invoke noundef ptr %45(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef null)
          to label %47 unwind label %52

47:                                               ; preds = %42
  %48 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef %46)
          to label %49 unwind label %52

49:                                               ; preds = %47
  store i32 0, ptr @_ZZN6R3Mesh12ReadVRMLFileEPKcE16coordinate_index, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #12
  br label %55

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

52:                                               ; preds = %47, %42
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %54

54:                                               ; preds = %52, %50
  %.pn135 = phi { ptr, i32 } [ %53, %52 ], [ %51, %50 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #12
  br label %196

55:                                               ; preds = %31, %49, %28, %.preheader160
  %56 = call ptr @strtok(ptr noundef null, ptr noundef nonnull @.str.154) #12
  %.not138 = icmp eq ptr %56, null
  br i1 %.not138, label %.loopexit, label %thread-pre-split, !llvm.loop !19

57:                                               ; preds = %23
  %.not117 = icmp eq i32 %.080166, 0
  br i1 %.not117, label %125, label %58

58:                                               ; preds = %57
  %59 = load i8, ptr %22, align 1, !tbaa !9
  %60 = icmp eq i8 %59, 93
  br i1 %60, label %.loopexit, label %.preheader

thread-pre-split151:                              ; preds = %123
  %.pr152 = load i8, ptr %124, align 1, !tbaa !9
  br label %.preheader

.preheader:                                       ; preds = %58, %thread-pre-split151
  %61 = phi i8 [ %.pr152, %thread-pre-split151 ], [ %59, %58 ]
  %.2101 = phi ptr [ %124, %thread-pre-split151 ], [ %22, %58 ]
  %.not124 = icmp eq i8 %61, 0
  br i1 %.not124, label %123, label %62

62:                                               ; preds = %.preheader
  %63 = sext i8 %61 to i32
  %64 = call i32 @isspace(i32 noundef %63) #13
  %.not125 = icmp eq i32 %64, 0
  br i1 %.not125, label %65, label %123

65:                                               ; preds = %62
  %66 = load atomic i8, ptr @_ZGVZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices acquire, align 8
  %67 = icmp eq i8 %66, 0
  br i1 %67, label %68, label %73, !prof !20

68:                                               ; preds = %65
  %69 = call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices) #12
  %.not126 = icmp eq i32 %69, 0
  br i1 %.not126, label %73, label %70

70:                                               ; preds = %68
  invoke void @_ZN7RNArrayIP12R3MeshVertexEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) @_ZZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices)
          to label %71 unwind label %81

71:                                               ; preds = %70
  %72 = call i32 @__cxa_atexit(ptr nonnull @_ZN8RNVArrayD2Ev, ptr nonnull @_ZZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices, ptr nonnull @__dso_handle) #12
  call void @__cxa_guard_release(ptr nonnull @_ZGVZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices) #12
  br label %73

73:                                               ; preds = %71, %68, %65
  %74 = call i32 @atoi(ptr nocapture noundef %.2101) #13
  %75 = icmp sgt i32 %74, -1
  br i1 %75, label %76, label %85

76:                                               ; preds = %73
  %77 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef %74)
          to label %78 unwind label %83

78:                                               ; preds = %76
  %79 = load ptr, ptr %77, align 8, !tbaa !5
  %80 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) @_ZZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices, ptr noundef %79)
          to label %123 unwind label %83

81:                                               ; preds = %70
  %82 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_guard_abort(ptr nonnull @_ZGVZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices) #12
  br label %196

83:                                               ; preds = %78, %76
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %196

85:                                               ; preds = %73
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) @_ZZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices, i32 noundef 0)
          to label %87 unwind label %91

87:                                               ; preds = %85
  %88 = load ptr, ptr %86, align 8, !tbaa !5
  %89 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices)
  %90 = icmp sgt i32 %89, 2
  br i1 %90, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %119, %87
  invoke void @_ZN8RNVArray5EmptyEi(ptr noundef nonnull align 8 dereferenceable(16) @_ZZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices, i32 noundef 0)
          to label %123 unwind label %91

91:                                               ; preds = %._crit_edge, %85
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %196

.lr.ph:                                           ; preds = %87, %119
  %.086164 = phi i32 [ %120, %119 ], [ 2, %87 ]
  %93 = add nsw i32 %.086164, -1
  %94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) @_ZZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices, i32 noundef %93)
          to label %95 unwind label %103

95:                                               ; preds = %.lr.ph
  %96 = load ptr, ptr %94, align 8, !tbaa !5
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIP12R3MeshVertexEixEi(ptr noundef nonnull align 8 dereferenceable(16) @_ZZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices, i32 noundef %.086164)
          to label %98 unwind label %105

98:                                               ; preds = %95
  %99 = load ptr, ptr %97, align 8, !tbaa !5
  %100 = icmp eq ptr %88, %96
  %101 = icmp eq ptr %96, %99
  %or.cond = select i1 %100, i1 true, i1 %101
  %102 = icmp eq ptr %88, %99
  %or.cond150 = select i1 %or.cond, i1 true, i1 %102
  br i1 %or.cond150, label %119, label %107

103:                                              ; preds = %.lr.ph
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %196

105:                                              ; preds = %117, %115, %113, %107, %95
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %196

107:                                              ; preds = %98
  %108 = load ptr, ptr %0, align 8, !tbaa !17
  %109 = getelementptr inbounds i8, ptr %108, i64 72
  %110 = load ptr, ptr %109, align 8
  %111 = invoke noundef ptr %110(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %88, ptr noundef %96, ptr noundef %99, ptr noundef null)
          to label %112 unwind label %105

112:                                              ; preds = %107
  %.not127 = icmp eq ptr %111, null
  br i1 %.not127, label %113, label %119

113:                                              ; preds = %112
  %114 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef %88)
          to label %115 unwind label %105

115:                                              ; preds = %113
  %116 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef %96)
          to label %117 unwind label %105

117:                                              ; preds = %115
  %118 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef %99)
          to label %119 unwind label %105

119:                                              ; preds = %112, %117, %98
  %120 = add nuw nsw i32 %.086164, 1
  %121 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZZN6R3Mesh12ReadVRMLFileEPKcE13face_vertices)
  %122 = icmp slt i32 %120, %121
  br i1 %122, label %.lr.ph, label %._crit_edge, !llvm.loop !21

123:                                              ; preds = %78, %._crit_edge, %62, %.preheader
  %124 = call ptr @strtok(ptr noundef null, ptr noundef nonnull @.str.154) #12
  %.not132 = icmp eq ptr %124, null
  br i1 %.not132, label %.loopexit, label %thread-pre-split151, !llvm.loop !22

125:                                              ; preds = %57
  %126 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %22, ptr noundef nonnull dereferenceable(1) @.str.155) #13
  %.not118 = icmp eq i32 %126, 0
  br i1 %.not118, label %.loopexit, label %127

127:                                              ; preds = %125
  %128 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %22, ptr noundef nonnull dereferenceable(1) @.str.156) #13
  %.not119 = icmp eq i32 %128, 0
  br i1 %.not119, label %.loopexit, label %129

129:                                              ; preds = %127
  %.not120 = icmp eq i32 %.072169, 0
  br i1 %.not120, label %132, label %130

130:                                              ; preds = %129
  %131 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %22, ptr noundef nonnull dereferenceable(1) @.str.157) #13
  %.not121 = icmp eq i32 %131, 0
  br i1 %.not121, label %.loopexit, label %132

132:                                              ; preds = %130, %129
  %.not122 = icmp eq i32 %.076167, 0
  br i1 %.not122, label %.loopexit, label %133

133:                                              ; preds = %132
  %134 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %22, ptr noundef nonnull dereferenceable(1) @.str.158) #13
  %.not123 = icmp eq i32 %134, 0
  %spec.select = zext i1 %.not123 to i32
  br label %.loopexit

.loopexit:                                        ; preds = %55, %123, %133, %132, %24, %58, %125, %127, %130, %20, %20
  %.282 = phi i32 [ %.080166, %20 ], [ %.080166, %20 ], [ 0, %132 ], [ %.080166, %24 ], [ 0, %58 ], [ 0, %125 ], [ 0, %127 ], [ 0, %130 ], [ %spec.select, %133 ], [ 1, %123 ], [ %.080166, %55 ]
  %.278 = phi i32 [ %.076167, %20 ], [ %.076167, %20 ], [ 0, %132 ], [ %.076167, %24 ], [ 0, %58 ], [ %.076167, %125 ], [ 1, %127 ], [ %.076167, %130 ], [ 1, %133 ], [ %.076167, %123 ], [ %.076167, %55 ]
  %.275 = phi i32 [ %.073168, %20 ], [ %.073168, %20 ], [ 0, %132 ], [ 0, %24 ], [ 0, %58 ], [ 0, %125 ], [ 0, %127 ], [ 1, %130 ], [ 0, %133 ], [ 0, %123 ], [ 1, %55 ]
  %.2 = phi i32 [ %.072169, %20 ], [ %.072169, %20 ], [ %.072169, %132 ], [ %.072169, %24 ], [ %.072169, %58 ], [ 1, %125 ], [ %.072169, %127 ], [ 1, %130 ], [ %.072169, %133 ], [ %.072169, %123 ], [ %.072169, %55 ]
  %135 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 1023, ptr noundef nonnull %7)
  %.not113 = icmp eq ptr %135, null
  br i1 %.not113, label %.thread, label %.preheader162

.thread:                                          ; preds = %.loopexit, %21, %.preheader163
  %136 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %.not139171 = icmp slt i32 %136, 3
  br i1 %.not139171, label %._crit_edge174, label %.lr.ph173

._crit_edge174:                                   ; preds = %192, %.thread
  %137 = call i32 @fclose(ptr noundef nonnull %7)
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #12
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #12
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %3) #12
  br label %198

.lr.ph173:                                        ; preds = %.thread, %192
  %.079172 = phi i32 [ %193, %192 ], [ 0, %.thread ]
  %138 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %.079172)
          to label %139 unwind label %180

139:                                              ; preds = %.lr.ph173
  %140 = add nuw nsw i32 %.079172, 1
  %141 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %140)
          to label %142 unwind label %182

142:                                              ; preds = %139
  %143 = add nuw nsw i32 %.079172, 2
  %144 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %143)
          to label %145 unwind label %184

145:                                              ; preds = %142
  %146 = load ptr, ptr %0, align 8, !tbaa !17
  %147 = getelementptr inbounds i8, ptr %146, i64 72
  %148 = load ptr, ptr %147, align 8
  %149 = invoke noundef ptr %148(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %138, ptr noundef %141, ptr noundef %144, ptr noundef null)
          to label %150 unwind label %184

150:                                              ; preds = %145
  %.not140 = icmp eq ptr %149, null
  br i1 %.not140, label %151, label %192

151:                                              ; preds = %150
  %152 = load ptr, ptr %0, align 8, !tbaa !17
  %153 = getelementptr inbounds i8, ptr %152, i64 72
  %154 = load ptr, ptr %153, align 8
  %155 = invoke noundef ptr %154(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %138, ptr noundef %144, ptr noundef %141, ptr noundef null)
          to label %156 unwind label %184

156:                                              ; preds = %151
  %.not141 = icmp eq ptr %155, null
  br i1 %.not141, label %157, label %192

157:                                              ; preds = %156
  %158 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %138)
  %159 = load ptr, ptr %0, align 8, !tbaa !17
  %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 %186

163:                                              ; preds = %157
  %164 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %141)
  %165 = load ptr, ptr %0, align 8, !tbaa !17
  %166 = getelementptr inbounds i8, ptr %165, i64 32
  %167 = load ptr, ptr %166, align 8
  %168 = invoke noundef ptr %167(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull align 8 dereferenceable(24) %164, ptr noundef null)
          to label %169 unwind label %188

169:                                              ; preds = %163
  %170 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %144)
  %171 = load ptr, ptr %0, align 8, !tbaa !17
  %172 = getelementptr inbounds i8, ptr %171, i64 32
  %173 = load ptr, ptr %172, align 8
  %174 = invoke noundef ptr %173(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull align 8 dereferenceable(24) %170, ptr noundef null)
          to label %175 unwind label %190

175:                                              ; preds = %169
  %176 = load ptr, ptr %0, align 8, !tbaa !17
  %177 = getelementptr inbounds i8, ptr %176, i64 72
  %178 = load ptr, ptr %177, align 8
  %179 = invoke noundef ptr %178(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %162, ptr noundef %168, ptr noundef %174, ptr noundef null)
          to label %192 unwind label %190

180:                                              ; preds = %.lr.ph173
  %181 = landingpad { ptr, i32 }
          cleanup
  br label %196

182:                                              ; preds = %139
  %183 = landingpad { ptr, i32 }
          cleanup
  br label %196

184:                                              ; preds = %151, %145, %142
  %185 = landingpad { ptr, i32 }
          cleanup
  br label %196

186:                                              ; preds = %157
  %187 = landingpad { ptr, i32 }
          cleanup
  br label %196

188:                                              ; preds = %163
  %189 = landingpad { ptr, i32 }
          cleanup
  br label %196

190:                                              ; preds = %175, %169
  %191 = landingpad { ptr, i32 }
          cleanup
  br label %196

192:                                              ; preds = %175, %156, %150
  %193 = add nuw nsw i32 %.079172, 3
  %194 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %195 = add nsw i32 %194, -3
  %.not139 = icmp sgt i32 %193, %195
  br i1 %.not139, label %._crit_edge174, label %.lr.ph173, !llvm.loop !23

196:                                              ; preds = %180, %184, %188, %190, %186, %182, %54, %81, %91, %105, %103, %83
  %.pn142.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn135, %54 ], [ %82, %81 ], [ %84, %83 ], [ %92, %91 ], [ %106, %105 ], [ %104, %103 ], [ %181, %180 ], [ %183, %182 ], [ %185, %184 ], [ %187, %186 ], [ %191, %190 ], [ %189, %188 ]
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #12
  br label %197

197:                                              ; preds = %196, %18
  %.pn142.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn142.pn.pn.pn.pn.pn, %196 ], [ %19, %18 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #12
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #12
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #12
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %3) #12
  resume { ptr, i32 } %.pn142.pn.pn.pn.pn.pn.pn

198:                                              ; preds = %._crit_edge174, %8
  %.0 = phi i32 [ 1, %._crit_edge174 ], [ 0, %8 ]
  ret i32 %.0
}

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 = { nofree nounwind }
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 = { cold nounwind }
attributes #12 = { nounwind }
attributes #13 = { 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 = !{!"int", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"vtable pointer", !8, i64 0}
!19 = distinct !{!19, !11}
!20 = !{!"branch_weights", i32 1, i32 1048575}
!21 = distinct !{!21, !11}
!22 = distinct !{!22, !11}
!23 = distinct !{!23, !11}


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