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

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

@RN_EPSILON = external global double, align 8
@stderr = external global ptr, align 8
@.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.62 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [9 x i8], align 1
@RNgray_rgb = external global %class.RNRgb, align 8

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

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN8R3VectoraSERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #5

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

; 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

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

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

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

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #9

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6R3Mesh11ReadObjFileEPKc(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 %class.RNArray.9, align 8
  %11 = alloca %class.RNArray.10, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %class.RNArray, align 8
  %15 = alloca %class.RNArray, align 8
  %16 = alloca ptr, align 8
  %17 = alloca [80 x i8], align 16
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca ptr, align 8
  %22 = alloca %class.R3Point, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca ptr, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca ptr, align 8
  %30 = alloca i32, align 4
  %31 = alloca [4 x [128 x i8]], align 16
  %32 = alloca i32, align 4
  %33 = alloca [4 x ptr], align 16
  %34 = alloca i32, align 4
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca %class.R2Point, align 8
  %42 = alloca %class.R3Vector, align 8
  %43 = alloca i32, align 4
  %44 = alloca ptr, align 8
  %45 = alloca ptr, align 8
  %46 = alloca ptr, align 8
  %47 = alloca ptr, align 8
  %48 = alloca ptr, align 8
  %49 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %50 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #11
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = call noalias ptr @fopen(ptr noundef %51, ptr noundef @.str.57)
  store ptr %52, ptr %6, align 8, !tbaa !5
  %53 = icmp ne ptr %52, null
  br i1 %53, label %56, label %54

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

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

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

58:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #11
  invoke void @_ZN7RNArrayIP12R3MeshVertexEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %59 unwind label %87

59:                                               ; preds = %58
  br label %60

60:                                               ; preds = %647, %645, %59
  %61 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = invoke ptr @fgets(ptr noundef %61, i32 noundef 1023, ptr noundef %62)
          to label %64 unwind label %91

64:                                               ; preds = %60
  %65 = icmp ne ptr %63, null
  br i1 %65, label %66, label %649

66:                                               ; preds = %64
  %67 = load i32, ptr %9, align 4, !tbaa !9
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #11
  %69 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
  store ptr %69, ptr %16, align 8, !tbaa !5
  br label %70

70:                                               ; preds = %76, %66
  %71 = load ptr, ptr %16, align 8, !tbaa !5
  %72 = load i8, ptr %71, align 1, !tbaa !11
  %73 = sext i8 %72 to i32
  %74 = call i32 @isspace(i32 noundef %73) #12
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %95

76:                                               ; preds = %70
  %77 = load ptr, ptr %16, align 8, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %77, i32 1
  store ptr %78, ptr %16, align 8, !tbaa !5
  br label %70, !llvm.loop !12

79:                                               ; preds = %56
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %12, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %13, align 4
  br label %769

83:                                               ; preds = %57
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %12, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %13, align 4
  br label %768

87:                                               ; preds = %58
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %12, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %13, align 4
  br label %767

91:                                               ; preds = %761, %60
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %12, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %13, align 4
  br label %766

95:                                               ; preds = %70
  %96 = load ptr, ptr %16, align 8, !tbaa !5
  %97 = load i8, ptr %96, align 1, !tbaa !11
  %98 = sext i8 %97 to i32
  %99 = icmp eq i32 %98, 35
  br i1 %99, label %100, label %101

100:                                              ; preds = %95
  store i32 2, ptr %7, align 4
  br label %645, !llvm.loop !14

101:                                              ; preds = %95
  %102 = load ptr, ptr %16, align 8, !tbaa !5
  %103 = load i8, ptr %102, align 1, !tbaa !11
  %104 = sext i8 %103 to i32
  %105 = icmp eq i32 %104, 0
  br i1 %105, label %106, label %107

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

107:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 80, ptr %17) #11
  %108 = load ptr, ptr %16, align 8, !tbaa !5
  %109 = getelementptr inbounds [80 x i8], ptr %17, i64 0, i64 0
  %110 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %108, ptr noundef @.str.59, ptr noundef %109) #11
  %111 = icmp ne i32 %110, 1
  br i1 %111, label %112, label %120

112:                                              ; preds = %107
  %113 = load i32, ptr %9, align 4, !tbaa !9
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void (ptr, ...) @_Z6RNFailPKcz(ptr noundef @.str.60, i32 noundef %113, ptr noundef %114)
          to label %115 unwind label %116

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

116:                                              ; preds = %112
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %12, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %13, align 4
  br label %648

120:                                              ; preds = %107
  %121 = getelementptr inbounds [80 x i8], ptr %17, i64 0, i64 0
  %122 = call i32 @strcmp(ptr noundef %121, ptr noundef @.str.61) #12
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %163, label %124

124:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #11
  %125 = load ptr, ptr %16, align 8, !tbaa !5
  %126 = getelementptr inbounds [80 x i8], ptr %17, i64 0, i64 0
  %127 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %125, ptr noundef @.str.62, ptr noundef %126, ptr noundef %18, ptr noundef %19, ptr noundef %20) #11
  %128 = icmp ne i32 %127, 4
  br i1 %128, label %129, label %137

129:                                              ; preds = %124
  %130 = load i32, ptr %9, align 4, !tbaa !9
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void (ptr, ...) @_Z6RNFailPKcz(ptr noundef @.str.60, i32 noundef %130, ptr noundef %131)
          to label %132 unwind label %133

132:                                              ; preds = %129
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %150

133:                                              ; preds = %129
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %12, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %13, align 4
  br label %162

137:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #11
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #11
  %138 = load double, ptr %18, align 8, !tbaa !15
  %139 = load double, ptr %19, align 8, !tbaa !15
  %140 = load double, ptr %20, align 8, !tbaa !15
  invoke void @_ZN7R3PointC1Eddd(ptr noundef nonnull align 8 dereferenceable(24) %22, double noundef %138, double noundef %139, double noundef %140)
          to label %141 unwind label %153

141:                                              ; preds = %137
  %142 = load ptr, ptr %50, align 8, !tbaa !17
  %143 = getelementptr inbounds ptr, ptr %142, i64 4
  %144 = load ptr, ptr %143, align 8
  %145 = invoke noundef ptr %144(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef null)
          to label %146 unwind label %153

146:                                              ; preds = %141
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #11
  store ptr %145, ptr %21, align 8, !tbaa !5
  %147 = load ptr, ptr %21, align 8, !tbaa !5
  %148 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef %147)
          to label %149 unwind label %157

149:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #11
  store i32 0, ptr %7, align 4
  br label %150

150:                                              ; preds = %149, %132
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #11
  %151 = load i32, ptr %7, align 4
  switch i32 %151, label %644 [
    i32 0, label %152
  ]

152:                                              ; preds = %150
  br label %643

153:                                              ; preds = %141, %137
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %12, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #11
  br label %161

157:                                              ; preds = %146
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %12, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %13, align 4
  br label %161

161:                                              ; preds = %157, %153
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #11
  br label %162

162:                                              ; preds = %161, %133
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #11
  br label %648

163:                                              ; preds = %120
  %164 = getelementptr inbounds [80 x i8], ptr %17, i64 0, i64 0
  %165 = call i32 @strcmp(ptr noundef %164, ptr noundef @.str.63) #12
  %166 = icmp ne i32 %165, 0
  br i1 %166, label %197, label %167

167:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #11
  %168 = load ptr, ptr %16, align 8, !tbaa !5
  %169 = getelementptr inbounds [80 x i8], ptr %17, i64 0, i64 0
  %170 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %168, ptr noundef @.str.64, ptr noundef %169, ptr noundef %23, ptr noundef %24) #11
  %171 = icmp ne i32 %170, 3
  br i1 %171, label %172, label %176

172:                                              ; preds = %167
  %173 = load ptr, ptr @stderr, align 8, !tbaa !5
  %174 = load i32, ptr %9, align 4, !tbaa !9
  %175 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %173, ptr noundef @.str.65, i32 noundef %174) #11
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %185

176:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #11
  %177 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #13
          to label %178 unwind label %188

178:                                              ; preds = %176
  %179 = load double, ptr %23, align 8, !tbaa !15
  %180 = load double, ptr %24, align 8, !tbaa !15
  invoke void @_ZN7R2PointC1Edd(ptr noundef nonnull align 8 dereferenceable(16) %177, double noundef %179, double noundef %180)
          to label %181 unwind label %192

181:                                              ; preds = %178
  store ptr %177, ptr %25, align 8, !tbaa !5
  %182 = load ptr, ptr %25, align 8, !tbaa !5
  %183 = invoke noundef ptr @_ZN7RNArrayIP7R2PointE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef %182)
          to label %184 unwind label %188

184:                                              ; preds = %181
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #11
  store i32 0, ptr %7, align 4
  br label %185

185:                                              ; preds = %184, %172
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #11
  %186 = load i32, ptr %7, align 4
  switch i32 %186, label %644 [
    i32 0, label %187
  ]

187:                                              ; preds = %185
  br label %642

188:                                              ; preds = %181, %176
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %12, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %13, align 4
  br label %196

192:                                              ; preds = %178
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %12, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %13, align 4
  call void @_ZdlPvm(ptr noundef %177, i64 noundef 16) #14
  br label %196

196:                                              ; preds = %192, %188
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #11
  br label %648

197:                                              ; preds = %163
  %198 = getelementptr inbounds [80 x i8], ptr %17, i64 0, i64 0
  %199 = call i32 @strcmp(ptr noundef %198, ptr noundef @.str.66) #12
  %200 = icmp ne i32 %199, 0
  br i1 %200, label %232, label %201

201:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #11
  %202 = load ptr, ptr %16, align 8, !tbaa !5
  %203 = getelementptr inbounds [80 x i8], ptr %17, i64 0, i64 0
  %204 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %202, ptr noundef @.str.62, ptr noundef %203, ptr noundef %26, ptr noundef %27, ptr noundef %28) #11
  %205 = icmp ne i32 %204, 4
  br i1 %205, label %206, label %210

206:                                              ; preds = %201
  %207 = load ptr, ptr @stderr, align 8, !tbaa !5
  %208 = load i32, ptr %9, align 4, !tbaa !9
  %209 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %207, ptr noundef @.str.65, i32 noundef %208) #11
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %220

210:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #11
  %211 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #13
          to label %212 unwind label %223

212:                                              ; preds = %210
  %213 = load double, ptr %26, align 8, !tbaa !15
  %214 = load double, ptr %27, align 8, !tbaa !15
  %215 = load double, ptr %28, align 8, !tbaa !15
  invoke void @_ZN8R3VectorC1Eddd(ptr noundef nonnull align 8 dereferenceable(24) %211, double noundef %213, double noundef %214, double noundef %215)
          to label %216 unwind label %227

216:                                              ; preds = %212
  store ptr %211, ptr %29, align 8, !tbaa !5
  %217 = load ptr, ptr %29, align 8, !tbaa !5
  %218 = invoke noundef ptr @_ZN7RNArrayIP8R3VectorE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %217)
          to label %219 unwind label %223

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

220:                                              ; preds = %219, %206
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #11
  %221 = load i32, ptr %7, align 4
  switch i32 %221, label %644 [
    i32 0, label %222
  ]

222:                                              ; preds = %220
  br label %641

223:                                              ; preds = %216, %210
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %12, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %13, align 4
  br label %231

227:                                              ; preds = %212
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %12, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %13, align 4
  call void @_ZdlPvm(ptr noundef %211, i64 noundef 24) #14
  br label %231

231:                                              ; preds = %227, %223
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #11
  br label %648

232:                                              ; preds = %197
  %233 = getelementptr inbounds [80 x i8], ptr %17, i64 0, i64 0
  %234 = call i32 @strcmp(ptr noundef %233, ptr noundef @.str.67) #12
  %235 = icmp ne i32 %234, 0
  br i1 %235, label %640, label %236

236:                                              ; preds = %232
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #11
  store i32 1, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 512, ptr %31) #11
  call void @llvm.memset.p0.i64(ptr align 16 %31, i8 0, i64 512, i1 false)
  %237 = load ptr, ptr %16, align 8, !tbaa !5
  %238 = getelementptr inbounds [80 x i8], ptr %17, i64 0, i64 0
  %239 = getelementptr inbounds [4 x [128 x i8]], ptr %31, i64 0, i64 0
  %240 = getelementptr inbounds [128 x i8], ptr %239, i64 0, i64 0
  %241 = getelementptr inbounds [4 x [128 x i8]], ptr %31, i64 0, i64 1
  %242 = getelementptr inbounds [128 x i8], ptr %241, i64 0, i64 0
  %243 = getelementptr inbounds [4 x [128 x i8]], ptr %31, i64 0, i64 2
  %244 = getelementptr inbounds [128 x i8], ptr %243, i64 0, i64 0
  %245 = getelementptr inbounds [4 x [128 x i8]], ptr %31, i64 0, i64 3
  %246 = getelementptr inbounds [128 x i8], ptr %245, i64 0, i64 0
  %247 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %237, ptr noundef @.str.68, ptr noundef %238, ptr noundef %240, ptr noundef %242, ptr noundef %244, ptr noundef %246) #11
  %248 = icmp ne i32 %247, 5
  br i1 %248, label %249, label %265

249:                                              ; preds = %236
  store i32 0, ptr %30, align 4, !tbaa !9
  %250 = load ptr, ptr %16, align 8, !tbaa !5
  %251 = getelementptr inbounds [80 x i8], ptr %17, i64 0, i64 0
  %252 = getelementptr inbounds [4 x [128 x i8]], ptr %31, i64 0, i64 0
  %253 = getelementptr inbounds [128 x i8], ptr %252, i64 0, i64 0
  %254 = getelementptr inbounds [4 x [128 x i8]], ptr %31, i64 0, i64 1
  %255 = getelementptr inbounds [128 x i8], ptr %254, i64 0, i64 0
  %256 = getelementptr inbounds [4 x [128 x i8]], ptr %31, i64 0, i64 2
  %257 = getelementptr inbounds [128 x i8], ptr %256, i64 0, i64 0
  %258 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %250, ptr noundef @.str.69, ptr noundef %251, ptr noundef %253, ptr noundef %255, ptr noundef %257) #11
  %259 = icmp ne i32 %258, 4
  br i1 %259, label %260, label %264

260:                                              ; preds = %249
  %261 = load ptr, ptr @stderr, align 8, !tbaa !5
  %262 = load i32, ptr %9, align 4, !tbaa !9
  %263 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %261, ptr noundef @.str.65, i32 noundef %262) #11
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %636

264:                                              ; preds = %249
  br label %265

265:                                              ; preds = %264, %236
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #11
  %266 = load i32, ptr %30, align 4, !tbaa !9
  %267 = icmp ne i32 %266, 0
  %268 = zext i1 %267 to i64
  %269 = select i1 %267, i32 4, i32 3
  store i32 %269, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %33) #11
  call void @llvm.memset.p0.i64(ptr align 16 %33, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #11
  store i32 0, ptr %34, align 4, !tbaa !9
  br label %270

270:                                              ; preds = %436, %265
  %271 = load i32, ptr %34, align 4, !tbaa !9
  %272 = load i32, ptr %32, align 4, !tbaa !9
  %273 = icmp slt i32 %271, %272
  br i1 %273, label %275, label %274

274:                                              ; preds = %270
  store i32 6, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #11
  br label %441

275:                                              ; preds = %270
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #11
  %276 = load i32, ptr %34, align 4, !tbaa !9
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [4 x [128 x i8]], ptr %31, i64 0, i64 %277
  %279 = getelementptr inbounds [128 x i8], ptr %278, i64 0, i64 0
  store ptr %279, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #11
  %280 = load ptr, ptr %35, align 8, !tbaa !5
  %281 = call noundef ptr @strchr(ptr noundef %280, i32 noundef 47) #12
  store ptr %281, ptr %36, align 8, !tbaa !5
  %282 = load ptr, ptr %36, align 8, !tbaa !5
  %283 = icmp ne ptr %282, null
  br i1 %283, label %284, label %287

284:                                              ; preds = %275
  %285 = load ptr, ptr %36, align 8, !tbaa !5
  %286 = getelementptr inbounds i8, ptr %285, i32 1
  store ptr %286, ptr %36, align 8, !tbaa !5
  store i8 0, ptr %285, align 1, !tbaa !11
  br label %287

287:                                              ; preds = %284, %275
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #11
  %288 = load ptr, ptr %36, align 8, !tbaa !5
  %289 = icmp ne ptr %288, null
  br i1 %289, label %290, label %293

290:                                              ; preds = %287
  %291 = load ptr, ptr %36, align 8, !tbaa !5
  %292 = call noundef ptr @strchr(ptr noundef %291, i32 noundef 47) #12
  br label %294

293:                                              ; preds = %287
  br label %294

294:                                              ; preds = %293, %290
  %295 = phi ptr [ %292, %290 ], [ null, %293 ]
  store ptr %295, ptr %37, align 8, !tbaa !5
  %296 = load ptr, ptr %37, align 8, !tbaa !5
  %297 = icmp ne ptr %296, null
  br i1 %297, label %298, label %301

298:                                              ; preds = %294
  %299 = load ptr, ptr %37, align 8, !tbaa !5
  %300 = getelementptr inbounds i8, ptr %299, i32 1
  store ptr %300, ptr %37, align 8, !tbaa !5
  store i8 0, ptr %299, align 1, !tbaa !11
  br label %301

301:                                              ; preds = %298, %294
  %302 = load ptr, ptr %37, align 8, !tbaa !5
  %303 = icmp ne ptr %302, null
  br i1 %303, label %304, label %309

304:                                              ; preds = %301
  %305 = load ptr, ptr %37, align 8, !tbaa !5
  %306 = call i64 @strlen(ptr noundef %305) #12
  %307 = icmp eq i64 %306, 0
  br i1 %307, label %308, label %309

308:                                              ; preds = %304
  store ptr null, ptr %37, align 8, !tbaa !5
  br label %309

309:                                              ; preds = %308, %304, %301
  %310 = load ptr, ptr %36, align 8, !tbaa !5
  %311 = icmp ne ptr %310, null
  br i1 %311, label %312, label %317

312:                                              ; preds = %309
  %313 = load ptr, ptr %36, align 8, !tbaa !5
  %314 = call i64 @strlen(ptr noundef %313) #12
  %315 = icmp eq i64 %314, 0
  br i1 %315, label %316, label %317

316:                                              ; preds = %312
  store ptr null, ptr %36, align 8, !tbaa !5
  br label %317

317:                                              ; preds = %316, %312, %309
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #11
  %318 = load ptr, ptr %35, align 8, !tbaa !5
  %319 = icmp ne ptr %318, null
  br i1 %319, label %320, label %323

320:                                              ; preds = %317
  %321 = load ptr, ptr %35, align 8, !tbaa !5
  %322 = call i32 @atoi(ptr noundef %321) #12
  br label %324

323:                                              ; preds = %317
  br label %324

324:                                              ; preds = %323, %320
  %325 = phi i32 [ %322, %320 ], [ 0, %323 ]
  store i32 %325, ptr %38, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #11
  %326 = load ptr, ptr %36, align 8, !tbaa !5
  %327 = icmp ne ptr %326, null
  br i1 %327, label %328, label %331

328:                                              ; preds = %324
  %329 = load ptr, ptr %36, align 8, !tbaa !5
  %330 = call i32 @atoi(ptr noundef %329) #12
  br label %332

331:                                              ; preds = %324
  br label %332

332:                                              ; preds = %331, %328
  %333 = phi i32 [ %330, %328 ], [ 0, %331 ]
  store i32 %333, ptr %39, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #11
  %334 = load ptr, ptr %37, align 8, !tbaa !5
  %335 = icmp ne ptr %334, null
  br i1 %335, label %336, label %339

336:                                              ; preds = %332
  %337 = load ptr, ptr %37, align 8, !tbaa !5
  %338 = call i32 @atoi(ptr noundef %337) #12
  br label %340

339:                                              ; preds = %332
  br label %340

340:                                              ; preds = %339, %336
  %341 = phi i32 [ %338, %336 ], [ 0, %339 ]
  store i32 %341, ptr %40, align 4, !tbaa !9
  %342 = load i32, ptr %38, align 4, !tbaa !9
  %343 = sub nsw i32 %342, 1
  %344 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %14, i32 noundef %343)
          to label %345 unwind label %366

345:                                              ; preds = %340
  %346 = load i32, ptr %34, align 4, !tbaa !9
  %347 = sext i32 %346 to i64
  %348 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 %347
  store ptr %344, ptr %348, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #11
  invoke void @_ZN7R2PointC1Edd(ptr noundef nonnull align 8 dereferenceable(16) %41, double noundef 0.000000e+00, double noundef 0.000000e+00)
          to label %349 unwind label %370

349:                                              ; preds = %345
  call void @llvm.lifetime.start.p0(i64 24, ptr %42) #11
  invoke void @_ZN8R3VectorC1Eddd(ptr noundef nonnull align 8 dereferenceable(24) %42, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
          to label %350 unwind label %374

350:                                              ; preds = %349
  %351 = load i32, ptr %39, align 4, !tbaa !9
  %352 = icmp sgt i32 %351, 0
  br i1 %352, label %353, label %378

353:                                              ; preds = %350
  %354 = load i32, ptr %39, align 4, !tbaa !9
  %355 = sub nsw i32 %354, 1
  %356 = invoke noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %357 unwind label %374

357:                                              ; preds = %353
  %358 = icmp slt i32 %355, %356
  br i1 %358, label %359, label %378

359:                                              ; preds = %357
  %360 = load i32, ptr %39, align 4, !tbaa !9
  %361 = sub nsw i32 %360, 1
  %362 = invoke noundef ptr @_ZNK7RNArrayIP7R2PointE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef %361)
          to label %363 unwind label %374

363:                                              ; preds = %359
  %364 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7R2PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(16) %41, ptr noundef nonnull align 8 dereferenceable(16) %362)
          to label %365 unwind label %374

365:                                              ; preds = %363
  br label %378

366:                                              ; preds = %340
  %367 = landingpad { ptr, i32 }
          cleanup
  %368 = extractvalue { ptr, i32 } %367, 0
  store ptr %368, ptr %12, align 8
  %369 = extractvalue { ptr, i32 } %367, 1
  store i32 %369, ptr %13, align 4
  br label %440

370:                                              ; preds = %345
  %371 = landingpad { ptr, i32 }
          cleanup
  %372 = extractvalue { ptr, i32 } %371, 0
  store ptr %372, ptr %12, align 8
  %373 = extractvalue { ptr, i32 } %371, 1
  store i32 %373, ptr %13, align 4
  br label %439

374:                                              ; preds = %426, %420, %416, %410, %403, %397, %391, %387, %381, %363, %359, %353, %349
  %375 = landingpad { ptr, i32 }
          cleanup
  %376 = extractvalue { ptr, i32 } %375, 0
  store ptr %376, ptr %12, align 8
  %377 = extractvalue { ptr, i32 } %375, 1
  store i32 %377, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %42) #11
  br label %439

378:                                              ; preds = %365, %357, %350
  %379 = load i32, ptr %40, align 4, !tbaa !9
  %380 = icmp sgt i32 %379, 0
  br i1 %380, label %381, label %394

381:                                              ; preds = %378
  %382 = load i32, ptr %40, align 4, !tbaa !9
  %383 = sub nsw i32 %382, 1
  %384 = invoke noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %385 unwind label %374

385:                                              ; preds = %381
  %386 = icmp slt i32 %383, %384
  br i1 %386, label %387, label %394

387:                                              ; preds = %385
  %388 = load i32, ptr %40, align 4, !tbaa !9
  %389 = sub nsw i32 %388, 1
  %390 = invoke noundef ptr @_ZNK7RNArrayIP8R3VectorE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %11, i32 noundef %389)
          to label %391 unwind label %374

391:                                              ; preds = %387
  %392 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN8R3VectoraSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 8 dereferenceable(24) %390)
          to label %393 unwind label %374

393:                                              ; preds = %391
  br label %394

394:                                              ; preds = %393, %385, %378
  %395 = load i32, ptr %39, align 4, !tbaa !9
  %396 = icmp sgt i32 %395, 0
  br i1 %396, label %397, label %407

397:                                              ; preds = %394
  %398 = load i32, ptr %34, align 4, !tbaa !9
  %399 = sext i32 %398 to i64
  %400 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 %399
  %401 = load ptr, ptr %400, align 8, !tbaa !5
  %402 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6R3Mesh19VertexTextureCoordsEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef %401)
          to label %403 unwind label %374

403:                                              ; preds = %397
  %404 = invoke noundef i32 @_Z10R2ContainsRK7R2PointS1_(ptr noundef nonnull align 8 dereferenceable(16) %41, ptr noundef nonnull align 8 dereferenceable(16) %402)
          to label %405 unwind label %374

405:                                              ; preds = %403
  %406 = icmp ne i32 %404, 0
  br i1 %406, label %407, label %420

407:                                              ; preds = %405, %394
  %408 = load i32, ptr %40, align 4, !tbaa !9
  %409 = icmp sgt i32 %408, 0
  br i1 %409, label %410, label %435

410:                                              ; preds = %407
  %411 = load i32, ptr %34, align 4, !tbaa !9
  %412 = sext i32 %411 to i64
  %413 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 %412
  %414 = load ptr, ptr %413, align 8, !tbaa !5
  %415 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh12VertexNormalEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef %414)
          to label %416 unwind label %374

416:                                              ; preds = %410
  %417 = invoke noundef i32 @_Z10R3ContainsRK8R3VectorS1_(ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 8 dereferenceable(24) %415)
          to label %418 unwind label %374

418:                                              ; preds = %416
  %419 = icmp ne i32 %417, 0
  br i1 %419, label %435, label %420

420:                                              ; preds = %418, %405
  %421 = load i32, ptr %34, align 4, !tbaa !9
  %422 = sext i32 %421 to i64
  %423 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 %422
  %424 = load ptr, ptr %423, align 8, !tbaa !5
  %425 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef %424)
          to label %426 unwind label %374

426:                                              ; preds = %420
  %427 = load ptr, ptr %50, align 8, !tbaa !17
  %428 = getelementptr inbounds ptr, ptr %427, i64 7
  %429 = load ptr, ptr %428, align 8
  %430 = invoke noundef ptr %429(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef nonnull align 8 dereferenceable(24) %425, ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 8 dereferenceable(24) @RNgray_rgb, ptr noundef nonnull align 8 dereferenceable(16) %41, ptr noundef null)
          to label %431 unwind label %374

431:                                              ; preds = %426
  %432 = load i32, ptr %34, align 4, !tbaa !9
  %433 = sext i32 %432 to i64
  %434 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 %433
  store ptr %430, ptr %434, align 8, !tbaa !5
  br label %435

435:                                              ; preds = %431, %418, %407
  call void @llvm.lifetime.end.p0(i64 24, ptr %42) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #11
  br label %436

436:                                              ; preds = %435
  %437 = load i32, ptr %34, align 4, !tbaa !9
  %438 = add nsw i32 %437, 1
  store i32 %438, ptr %34, align 4, !tbaa !9
  br label %270, !llvm.loop !19

439:                                              ; preds = %374, %370
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #11
  br label %440

440:                                              ; preds = %439, %366
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #11
  br label %639

441:                                              ; preds = %274
  %442 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 0
  %443 = load ptr, ptr %442, align 16, !tbaa !5
  %444 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 1
  %445 = load ptr, ptr %444, align 8, !tbaa !5
  %446 = icmp eq ptr %443, %445
  br i1 %446, label %459, label %447

447:                                              ; preds = %441
  %448 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 1
  %449 = load ptr, ptr %448, align 8, !tbaa !5
  %450 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 2
  %451 = load ptr, ptr %450, align 16, !tbaa !5
  %452 = icmp eq ptr %449, %451
  br i1 %452, label %459, label %453

453:                                              ; preds = %447
  %454 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 0
  %455 = load ptr, ptr %454, align 16, !tbaa !5
  %456 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 2
  %457 = load ptr, ptr %456, align 16, !tbaa !5
  %458 = icmp eq ptr %455, %457
  br i1 %458, label %459, label %460

459:                                              ; preds = %453, %447, %441
  store i32 2, ptr %7, align 4
  br label %635, !llvm.loop !14

460:                                              ; preds = %453
  %461 = load i32, ptr %30, align 4, !tbaa !9
  %462 = icmp ne i32 %461, 0
  br i1 %462, label %463, label %482

463:                                              ; preds = %460
  %464 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 3
  %465 = load ptr, ptr %464, align 8, !tbaa !5
  %466 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 0
  %467 = load ptr, ptr %466, align 16, !tbaa !5
  %468 = icmp eq ptr %465, %467
  br i1 %468, label %481, label %469

469:                                              ; preds = %463
  %470 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 3
  %471 = load ptr, ptr %470, align 8, !tbaa !5
  %472 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 1
  %473 = load ptr, ptr %472, align 8, !tbaa !5
  %474 = icmp eq ptr %471, %473
  br i1 %474, label %481, label %475

475:                                              ; preds = %469
  %476 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 3
  %477 = load ptr, ptr %476, align 8, !tbaa !5
  %478 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 2
  %479 = load ptr, ptr %478, align 16, !tbaa !5
  %480 = icmp eq ptr %477, %479
  br i1 %480, label %481, label %482

481:                                              ; preds = %475, %469, %463
  store i32 0, ptr %30, align 4, !tbaa !9
  br label %482

482:                                              ; preds = %481, %475, %460
  %483 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 0
  %484 = load ptr, ptr %483, align 16, !tbaa !5
  %485 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef %484)
          to label %486 unwind label %553

486:                                              ; preds = %482
  %487 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 1
  %488 = load ptr, ptr %487, align 8, !tbaa !5
  %489 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef %488)
          to label %490 unwind label %553

490:                                              ; preds = %486
  %491 = invoke noundef double @_Z10R3DistanceRK7R3PointS1_(ptr noundef nonnull align 8 dereferenceable(24) %485, ptr noundef nonnull align 8 dereferenceable(24) %489)
          to label %492 unwind label %553

492:                                              ; preds = %490
  %493 = load double, ptr @RN_EPSILON, align 8, !tbaa !15
  %494 = invoke noundef i32 @_Z12RNIsPositivedd(double noundef %491, double noundef %493)
          to label %495 unwind label %553

495:                                              ; preds = %492
  %496 = icmp ne i32 %494, 0
  br i1 %496, label %497, label %558

497:                                              ; preds = %495
  %498 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 1
  %499 = load ptr, ptr %498, align 8, !tbaa !5
  %500 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef %499)
          to label %501 unwind label %553

501:                                              ; preds = %497
  %502 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 2
  %503 = load ptr, ptr %502, align 16, !tbaa !5
  %504 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef %503)
          to label %505 unwind label %553

505:                                              ; preds = %501
  %506 = invoke noundef double @_Z10R3DistanceRK7R3PointS1_(ptr noundef nonnull align 8 dereferenceable(24) %500, ptr noundef nonnull align 8 dereferenceable(24) %504)
          to label %507 unwind label %553

507:                                              ; preds = %505
  %508 = load double, ptr @RN_EPSILON, align 8, !tbaa !15
  %509 = invoke noundef i32 @_Z12RNIsPositivedd(double noundef %506, double noundef %508)
          to label %510 unwind label %553

510:                                              ; preds = %507
  %511 = icmp ne i32 %509, 0
  br i1 %511, label %512, label %558

512:                                              ; preds = %510
  %513 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 2
  %514 = load ptr, ptr %513, align 16, !tbaa !5
  %515 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef %514)
          to label %516 unwind label %553

516:                                              ; preds = %512
  %517 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 0
  %518 = load ptr, ptr %517, align 16, !tbaa !5
  %519 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef %518)
          to label %520 unwind label %553

520:                                              ; preds = %516
  %521 = invoke noundef double @_Z10R3DistanceRK7R3PointS1_(ptr noundef nonnull align 8 dereferenceable(24) %515, ptr noundef nonnull align 8 dereferenceable(24) %519)
          to label %522 unwind label %553

522:                                              ; preds = %520
  %523 = load double, ptr @RN_EPSILON, align 8, !tbaa !15
  %524 = invoke noundef i32 @_Z12RNIsPositivedd(double noundef %521, double noundef %523)
          to label %525 unwind label %553

525:                                              ; preds = %522
  %526 = icmp ne i32 %524, 0
  br i1 %526, label %527, label %558

527:                                              ; preds = %525
  %528 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 0
  %529 = load ptr, ptr %528, align 16, !tbaa !5
  %530 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 1
  %531 = load ptr, ptr %530, align 8, !tbaa !5
  %532 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 2
  %533 = load ptr, ptr %532, align 16, !tbaa !5
  %534 = load ptr, ptr %50, align 8, !tbaa !17
  %535 = getelementptr inbounds ptr, ptr %534, i64 9
  %536 = load ptr, ptr %535, align 8
  %537 = invoke noundef ptr %536(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef %529, ptr noundef %531, ptr noundef %533, ptr noundef null)
          to label %538 unwind label %553

538:                                              ; preds = %527
  %539 = icmp ne ptr %537, null
  br i1 %539, label %557, label %540

540:                                              ; preds = %538
  %541 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 0
  %542 = load ptr, ptr %541, align 16, !tbaa !5
  %543 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef %542)
          to label %544 unwind label %553

544:                                              ; preds = %540
  %545 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 1
  %546 = load ptr, ptr %545, align 8, !tbaa !5
  %547 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef %546)
          to label %548 unwind label %553

548:                                              ; preds = %544
  %549 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 2
  %550 = load ptr, ptr %549, align 16, !tbaa !5
  %551 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef %550)
          to label %552 unwind label %553

552:                                              ; preds = %548
  br label %557

553:                                              ; preds = %627, %623, %619, %606, %601, %599, %595, %591, %586, %584, %580, %576, %571, %569, %565, %561, %548, %544, %540, %527, %522, %520, %516, %512, %507, %505, %501, %497, %492, %490, %486, %482
  %554 = landingpad { ptr, i32 }
          cleanup
  %555 = extractvalue { ptr, i32 } %554, 0
  store ptr %555, ptr %12, align 8
  %556 = extractvalue { ptr, i32 } %554, 1
  store i32 %556, ptr %13, align 4
  br label %639

557:                                              ; preds = %552, %538
  br label %558

558:                                              ; preds = %557, %525, %510, %495
  %559 = load i32, ptr %30, align 4, !tbaa !9
  %560 = icmp ne i32 %559, 0
  br i1 %560, label %561, label %634

561:                                              ; preds = %558
  %562 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 0
  %563 = load ptr, ptr %562, align 16, !tbaa !5
  %564 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef %563)
          to label %565 unwind label %553

565:                                              ; preds = %561
  %566 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 2
  %567 = load ptr, ptr %566, align 16, !tbaa !5
  %568 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef %567)
          to label %569 unwind label %553

569:                                              ; preds = %565
  %570 = invoke noundef double @_Z10R3DistanceRK7R3PointS1_(ptr noundef nonnull align 8 dereferenceable(24) %564, ptr noundef nonnull align 8 dereferenceable(24) %568)
          to label %571 unwind label %553

571:                                              ; preds = %569
  %572 = load double, ptr @RN_EPSILON, align 8, !tbaa !15
  %573 = invoke noundef i32 @_Z12RNIsPositivedd(double noundef %570, double noundef %572)
          to label %574 unwind label %553

574:                                              ; preds = %571
  %575 = icmp ne i32 %573, 0
  br i1 %575, label %576, label %633

576:                                              ; preds = %574
  %577 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 2
  %578 = load ptr, ptr %577, align 16, !tbaa !5
  %579 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef %578)
          to label %580 unwind label %553

580:                                              ; preds = %576
  %581 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 3
  %582 = load ptr, ptr %581, align 8, !tbaa !5
  %583 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef %582)
          to label %584 unwind label %553

584:                                              ; preds = %580
  %585 = invoke noundef double @_Z10R3DistanceRK7R3PointS1_(ptr noundef nonnull align 8 dereferenceable(24) %579, ptr noundef nonnull align 8 dereferenceable(24) %583)
          to label %586 unwind label %553

586:                                              ; preds = %584
  %587 = load double, ptr @RN_EPSILON, align 8, !tbaa !15
  %588 = invoke noundef i32 @_Z12RNIsPositivedd(double noundef %585, double noundef %587)
          to label %589 unwind label %553

589:                                              ; preds = %586
  %590 = icmp ne i32 %588, 0
  br i1 %590, label %591, label %633

591:                                              ; preds = %589
  %592 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 0
  %593 = load ptr, ptr %592, align 16, !tbaa !5
  %594 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef %593)
          to label %595 unwind label %553

595:                                              ; preds = %591
  %596 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 3
  %597 = load ptr, ptr %596, align 8, !tbaa !5
  %598 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef %597)
          to label %599 unwind label %553

599:                                              ; preds = %595
  %600 = invoke noundef double @_Z10R3DistanceRK7R3PointS1_(ptr noundef nonnull align 8 dereferenceable(24) %594, ptr noundef nonnull align 8 dereferenceable(24) %598)
          to label %601 unwind label %553

601:                                              ; preds = %599
  %602 = load double, ptr @RN_EPSILON, align 8, !tbaa !15
  %603 = invoke noundef i32 @_Z12RNIsPositivedd(double noundef %600, double noundef %602)
          to label %604 unwind label %553

604:                                              ; preds = %601
  %605 = icmp ne i32 %603, 0
  br i1 %605, label %606, label %633

606:                                              ; preds = %604
  %607 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 0
  %608 = load ptr, ptr %607, align 16, !tbaa !5
  %609 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 2
  %610 = load ptr, ptr %609, align 16, !tbaa !5
  %611 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 3
  %612 = load ptr, ptr %611, align 8, !tbaa !5
  %613 = load ptr, ptr %50, align 8, !tbaa !17
  %614 = getelementptr inbounds ptr, ptr %613, i64 9
  %615 = load ptr, ptr %614, align 8
  %616 = invoke noundef ptr %615(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef %608, ptr noundef %610, ptr noundef %612, ptr noundef null)
          to label %617 unwind label %553

617:                                              ; preds = %606
  %618 = icmp ne ptr %616, null
  br i1 %618, label %632, label %619

619:                                              ; preds = %617
  %620 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 0
  %621 = load ptr, ptr %620, align 16, !tbaa !5
  %622 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef %621)
          to label %623 unwind label %553

623:                                              ; preds = %619
  %624 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 2
  %625 = load ptr, ptr %624, align 16, !tbaa !5
  %626 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef %625)
          to label %627 unwind label %553

627:                                              ; preds = %623
  %628 = getelementptr inbounds [4 x ptr], ptr %33, i64 0, i64 3
  %629 = load ptr, ptr %628, align 8, !tbaa !5
  %630 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef %629)
          to label %631 unwind label %553

631:                                              ; preds = %627
  br label %632

632:                                              ; preds = %631, %617
  br label %633

633:                                              ; preds = %632, %604, %589, %574
  br label %634

634:                                              ; preds = %633, %558
  store i32 0, ptr %7, align 4
  br label %635

635:                                              ; preds = %634, %459
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #11
  br label %636

636:                                              ; preds = %635, %260
  call void @llvm.lifetime.end.p0(i64 512, ptr %31) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #11
  %637 = load i32, ptr %7, align 4
  switch i32 %637, label %644 [
    i32 0, label %638
  ]

638:                                              ; preds = %636
  br label %640

639:                                              ; preds = %553, %440
  call void @llvm.lifetime.end.p0(i64 32, ptr %33) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #11
  call void @llvm.lifetime.end.p0(i64 512, ptr %31) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #11
  br label %648

640:                                              ; preds = %638, %232
  br label %641

641:                                              ; preds = %640, %222
  br label %642

642:                                              ; preds = %641, %187
  br label %643

643:                                              ; preds = %642, %152
  store i32 0, ptr %7, align 4
  br label %644

644:                                              ; preds = %643, %636, %220, %185, %150, %115
  call void @llvm.lifetime.end.p0(i64 80, ptr %17) #11
  br label %645

645:                                              ; preds = %644, %106, %100
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #11
  %646 = load i32, ptr %7, align 4
  switch i32 %646, label %765 [
    i32 0, label %647
    i32 2, label %60
  ]

647:                                              ; preds = %645
  br label %60, !llvm.loop !14

648:                                              ; preds = %639, %231, %196, %162, %116
  call void @llvm.lifetime.end.p0(i64 80, ptr %17) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #11
  br label %766

649:                                              ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #11
  store i32 0, ptr %43, align 4, !tbaa !9
  br label %650

650:                                              ; preds = %754, %649
  %651 = load i32, ptr %43, align 4, !tbaa !9
  %652 = invoke noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %653 unwind label %657

653:                                              ; preds = %650
  %654 = sub nsw i32 %652, 3
  %655 = icmp sle i32 %651, %654
  br i1 %655, label %661, label %656

656:                                              ; preds = %653
  store i32 9, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #11
  br label %761

657:                                              ; preds = %650
  %658 = landingpad { ptr, i32 }
          cleanup
  %659 = extractvalue { ptr, i32 } %658, 0
  store ptr %659, ptr %12, align 8
  %660 = extractvalue { ptr, i32 } %658, 1
  store i32 %660, ptr %13, align 4
  br label %760

661:                                              ; preds = %653
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #11
  %662 = load i32, ptr %43, align 4, !tbaa !9
  %663 = add nsw i32 %662, 0
  %664 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef %663)
          to label %665 unwind label %726

665:                                              ; preds = %661
  store ptr %664, ptr %44, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #11
  %666 = load i32, ptr %43, align 4, !tbaa !9
  %667 = add nsw i32 %666, 1
  %668 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef %667)
          to label %669 unwind label %730

669:                                              ; preds = %665
  store ptr %668, ptr %45, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #11
  %670 = load i32, ptr %43, align 4, !tbaa !9
  %671 = add nsw i32 %670, 2
  %672 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef %671)
          to label %673 unwind label %734

673:                                              ; preds = %669
  store ptr %672, ptr %46, align 8, !tbaa !5
  %674 = load ptr, ptr %44, align 8, !tbaa !5
  %675 = load ptr, ptr %45, align 8, !tbaa !5
  %676 = load ptr, ptr %46, align 8, !tbaa !5
  %677 = load ptr, ptr %50, align 8, !tbaa !17
  %678 = getelementptr inbounds ptr, ptr %677, i64 9
  %679 = load ptr, ptr %678, align 8
  %680 = invoke noundef ptr %679(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef %674, ptr noundef %675, ptr noundef %676, ptr noundef null)
          to label %681 unwind label %734

681:                                              ; preds = %673
  %682 = icmp ne ptr %680, null
  br i1 %682, label %753, label %683

683:                                              ; preds = %681
  %684 = load ptr, ptr %44, align 8, !tbaa !5
  %685 = load ptr, ptr %46, align 8, !tbaa !5
  %686 = load ptr, ptr %45, align 8, !tbaa !5
  %687 = load ptr, ptr %50, align 8, !tbaa !17
  %688 = getelementptr inbounds ptr, ptr %687, i64 9
  %689 = load ptr, ptr %688, align 8
  %690 = invoke noundef ptr %689(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef %684, ptr noundef %685, ptr noundef %686, ptr noundef null)
          to label %691 unwind label %734

691:                                              ; preds = %683
  %692 = icmp ne ptr %690, null
  br i1 %692, label %752, label %693

693:                                              ; preds = %691
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #11
  %694 = load ptr, ptr %44, align 8, !tbaa !5
  %695 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef %694)
          to label %696 unwind label %738

696:                                              ; preds = %693
  %697 = load ptr, ptr %50, align 8, !tbaa !17
  %698 = getelementptr inbounds ptr, ptr %697, i64 4
  %699 = load ptr, ptr %698, align 8
  %700 = invoke noundef ptr %699(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef nonnull align 8 dereferenceable(24) %695, ptr noundef null)
          to label %701 unwind label %738

701:                                              ; preds = %696
  store ptr %700, ptr %47, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #11
  %702 = load ptr, ptr %45, align 8, !tbaa !5
  %703 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef %702)
          to label %704 unwind label %742

704:                                              ; preds = %701
  %705 = load ptr, ptr %50, align 8, !tbaa !17
  %706 = getelementptr inbounds ptr, ptr %705, i64 4
  %707 = load ptr, ptr %706, align 8
  %708 = invoke noundef ptr %707(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef nonnull align 8 dereferenceable(24) %703, ptr noundef null)
          to label %709 unwind label %742

709:                                              ; preds = %704
  store ptr %708, ptr %48, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #11
  %710 = load ptr, ptr %46, align 8, !tbaa !5
  %711 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef %710)
          to label %712 unwind label %746

712:                                              ; preds = %709
  %713 = load ptr, ptr %50, align 8, !tbaa !17
  %714 = getelementptr inbounds ptr, ptr %713, i64 4
  %715 = load ptr, ptr %714, align 8
  %716 = invoke noundef ptr %715(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef nonnull align 8 dereferenceable(24) %711, ptr noundef null)
          to label %717 unwind label %746

717:                                              ; preds = %712
  store ptr %716, ptr %49, align 8, !tbaa !5
  %718 = load ptr, ptr %47, align 8, !tbaa !5
  %719 = load ptr, ptr %48, align 8, !tbaa !5
  %720 = load ptr, ptr %49, align 8, !tbaa !5
  %721 = load ptr, ptr %50, align 8, !tbaa !17
  %722 = getelementptr inbounds ptr, ptr %721, i64 9
  %723 = load ptr, ptr %722, align 8
  %724 = invoke noundef ptr %723(ptr noundef nonnull align 8 dereferenceable(272) %50, ptr noundef %718, ptr noundef %719, ptr noundef %720, ptr noundef null)
          to label %725 unwind label %746

725:                                              ; preds = %717
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #11
  br label %752

726:                                              ; preds = %661
  %727 = landingpad { ptr, i32 }
          cleanup
  %728 = extractvalue { ptr, i32 } %727, 0
  store ptr %728, ptr %12, align 8
  %729 = extractvalue { ptr, i32 } %727, 1
  store i32 %729, ptr %13, align 4
  br label %759

730:                                              ; preds = %665
  %731 = landingpad { ptr, i32 }
          cleanup
  %732 = extractvalue { ptr, i32 } %731, 0
  store ptr %732, ptr %12, align 8
  %733 = extractvalue { ptr, i32 } %731, 1
  store i32 %733, ptr %13, align 4
  br label %758

734:                                              ; preds = %683, %673, %669
  %735 = landingpad { ptr, i32 }
          cleanup
  %736 = extractvalue { ptr, i32 } %735, 0
  store ptr %736, ptr %12, align 8
  %737 = extractvalue { ptr, i32 } %735, 1
  store i32 %737, ptr %13, align 4
  br label %757

738:                                              ; preds = %696, %693
  %739 = landingpad { ptr, i32 }
          cleanup
  %740 = extractvalue { ptr, i32 } %739, 0
  store ptr %740, ptr %12, align 8
  %741 = extractvalue { ptr, i32 } %739, 1
  store i32 %741, ptr %13, align 4
  br label %751

742:                                              ; preds = %704, %701
  %743 = landingpad { ptr, i32 }
          cleanup
  %744 = extractvalue { ptr, i32 } %743, 0
  store ptr %744, ptr %12, align 8
  %745 = extractvalue { ptr, i32 } %743, 1
  store i32 %745, ptr %13, align 4
  br label %750

746:                                              ; preds = %717, %712, %709
  %747 = landingpad { ptr, i32 }
          cleanup
  %748 = extractvalue { ptr, i32 } %747, 0
  store ptr %748, ptr %12, align 8
  %749 = extractvalue { ptr, i32 } %747, 1
  store i32 %749, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #11
  br label %750

750:                                              ; preds = %746, %742
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #11
  br label %751

751:                                              ; preds = %750, %738
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #11
  br label %757

752:                                              ; preds = %725, %691
  br label %753

753:                                              ; preds = %752, %681
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #11
  br label %754

754:                                              ; preds = %753
  %755 = load i32, ptr %43, align 4, !tbaa !9
  %756 = add nsw i32 %755, 3
  store i32 %756, ptr %43, align 4, !tbaa !9
  br label %650, !llvm.loop !20

757:                                              ; preds = %751, %734
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #11
  br label %758

758:                                              ; preds = %757, %730
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #11
  br label %759

759:                                              ; preds = %758, %726
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #11
  br label %760

760:                                              ; preds = %759, %657
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #11
  br label %766

761:                                              ; preds = %656
  %762 = load ptr, ptr %6, align 8, !tbaa !5
  %763 = invoke i32 @fclose(ptr noundef %762)
          to label %764 unwind label %91

764:                                              ; preds = %761
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %765

765:                                              ; preds = %764, %645
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #11
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #11
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #11
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #11
  call void @llvm.lifetime.end.p0(i64 1024, ptr %8) #11
  br label %770

766:                                              ; preds = %760, %648, %91
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #11
  br label %767

767:                                              ; preds = %766, %87
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #11
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #11
  br label %768

768:                                              ; preds = %767, %83
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #11
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #11
  br label %769

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

770:                                              ; preds = %765, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #11
  %771 = load i32, ptr %3, align 4
  ret i32 %771

772:                                              ; preds = %769
  %773 = load ptr, ptr %12, align 8
  %774 = load i32, ptr %13, align 4
  %775 = insertvalue { ptr, i32 } poison, ptr %773, 0
  %776 = insertvalue { ptr, i32 } %775, i32 %774, 1
  resume { ptr, i32 } %776
}

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

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

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

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

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

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

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

declare void @_ZN7R2PointC1Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #5

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN7R2PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #5

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

declare noundef i32 @_Z10R2ContainsRK7R2PointS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #5

declare noundef i32 @_Z10R3ContainsRK8R3VectorS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #5

declare i32 @fclose(ptr noundef) #5

; Function Attrs: nounwind
declare void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16)) 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { 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 #10 = { 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 #11 = { nounwind }
attributes #12 = { nounwind willreturn memory(read) }
attributes #13 = { builtin allocsize(0) }
attributes #14 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"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}


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

@RN_EPSILON = external local_unnamed_addr global double, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.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.62 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [9 x i8], align 1
@RNgray_rgb = external global %class.RNRgb, align 8

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

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN8R3VectoraSERKS_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5

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

; 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

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

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

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

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

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

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

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

24:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %3) #13
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #13
  call void @_ZN7RNArrayIP7R2PointEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #13
  invoke void @_ZN7RNArrayIP8R3VectorEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %25 unwind label %41

25:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #13
  invoke void @_ZN7RNArrayIP12R3MeshVertexEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %26 unwind label %43

26:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #13
  invoke void @_ZN7RNArrayIP12R3MeshVertexEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %.preheader254 unwind label %45

.preheader254:                                    ; preds = %26
  %27 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 1023, ptr noundef nonnull %22)
  %.not150258 = icmp eq ptr %27, null
  br i1 %.not150258, label %.preheader, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader254
  %28 = getelementptr inbounds i8, ptr %18, i64 128
  %29 = getelementptr inbounds i8, ptr %18, i64 256
  %30 = getelementptr inbounds i8, ptr %18, i64 384
  %31 = getelementptr inbounds i8, ptr %19, i64 8
  %32 = getelementptr inbounds i8, ptr %19, i64 16
  %33 = getelementptr inbounds i8, ptr %19, i64 24
  br label %35

.preheader:                                       ; preds = %.backedge, %.preheader254
  %34 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %.not151260 = icmp slt i32 %34, 3
  br i1 %.not151260, label %._crit_edge, label %.lr.ph262

35:                                               ; preds = %.lr.ph, %.backedge
  %.099259 = phi i32 [ 0, %.lr.ph ], [ %48, %.backedge ]
  br label %36

36:                                               ; preds = %36, %35
  %.0127 = phi ptr [ %3, %35 ], [ %40, %36 ]
  %37 = load i8, ptr %.0127, align 1, !tbaa !5
  %38 = sext i8 %37 to i32
  %39 = call i32 @isspace(i32 noundef %38) #14
  %.not159 = icmp eq i32 %39, 0
  %40 = getelementptr inbounds i8, ptr %.0127, i64 1
  br i1 %.not159, label %47, label %36, !llvm.loop !8

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

43:                                               ; preds = %25
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %345

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

47:                                               ; preds = %36
  %48 = add nuw nsw i32 %.099259, 1
  switch i8 %37, label %49 [
    i8 35, label %.backedge
    i8 0, label %.backedge
  ], !llvm.loop !10

49:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %8) #13
  %50 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %.0127, ptr noundef nonnull @.str.59, ptr noundef nonnull %8) #13
  %.not160 = icmp eq i32 %50, 1
  br i1 %.not160, label %54, label %51

51:                                               ; preds = %49
  invoke void (ptr, ...) @_Z6RNFailPKcz(ptr noundef nonnull @.str.60, i32 noundef %48, ptr noundef %1)
          to label %.loopexit.loopexit unwind label %52

52:                                               ; preds = %51
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %283

54:                                               ; preds = %49
  %55 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.61) #14
  %.not161 = icmp eq i32 %55, 0
  br i1 %.not161, label %56, label %78

56:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #13
  %57 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %.0127, ptr noundef nonnull @.str.62, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11) #13
  %.not162 = icmp eq i32 %57, 4
  br i1 %.not162, label %61, label %58

58:                                               ; preds = %56
  invoke void (ptr, ...) @_Z6RNFailPKcz(ptr noundef nonnull @.str.60, i32 noundef %48, ptr noundef %1)
          to label %72 unwind label %59

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

61:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #13
  %62 = load double, ptr %9, align 8, !tbaa !11
  %63 = load double, ptr %10, align 8, !tbaa !11
  %64 = load double, ptr %11, align 8, !tbaa !11
  invoke void @_ZN7R3PointC1Eddd(ptr noundef nonnull align 8 dereferenceable(24) %12, double noundef %62, double noundef %63, double noundef %64)
          to label %65 unwind label %73

65:                                               ; preds = %61
  %66 = load ptr, ptr %0, align 8, !tbaa !13
  %67 = getelementptr inbounds i8, ptr %66, i64 32
  %68 = load ptr, ptr %67, align 8
  %69 = invoke noundef ptr %68(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef null)
          to label %70 unwind label %73

70:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #13
  %71 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef %69)
          to label %.thread unwind label %75

.thread:                                          ; preds = %70
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #13
  br label %.thread269

72:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #13
  br label %.loopexit.loopexit

73:                                               ; preds = %65, %61
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #13
  br label %77

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

77:                                               ; preds = %73, %75, %59
  %.pn165 = phi { ptr, i32 } [ %60, %59 ], [ %76, %75 ], [ %74, %73 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #13
  br label %283

78:                                               ; preds = %54
  %79 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.63) #14
  %.not167 = icmp eq i32 %79, 0
  br i1 %.not167, label %80, label %97

80:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #13
  %81 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %.0127, ptr noundef nonnull @.str.64, ptr noundef nonnull %8, ptr noundef nonnull %13, ptr noundef nonnull %14) #13
  %.not168 = icmp eq i32 %81, 3
  br i1 %.not168, label %82, label %89

82:                                               ; preds = %80
  %83 = invoke noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #15
          to label %84 unwind label %92

84:                                               ; preds = %82
  %85 = load double, ptr %13, align 8, !tbaa !11
  %86 = load double, ptr %14, align 8, !tbaa !11
  invoke void @_ZN7R2PointC1Edd(ptr noundef nonnull align 8 dereferenceable(16) %83, double noundef %85, double noundef %86)
          to label %87 unwind label %94

87:                                               ; preds = %84
  %88 = invoke noundef ptr @_ZN7RNArrayIP7R2PointE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull %83)
          to label %.thread211 unwind label %92

.thread211:                                       ; preds = %87
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #13
  br label %.thread269

89:                                               ; preds = %80
  %90 = load ptr, ptr @stderr, align 8, !tbaa !15
  %91 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %90, ptr noundef nonnull @.str.65, i32 noundef %48) #16
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #13
  br label %.loopexit.loopexit

92:                                               ; preds = %87, %82
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %96

94:                                               ; preds = %84
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %83, i64 noundef 16) #17
  br label %96

96:                                               ; preds = %94, %92
  %.pn169 = phi { ptr, i32 } [ %93, %92 ], [ %95, %94 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #13
  br label %283

97:                                               ; preds = %78
  %98 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.66) #14
  %.not171 = icmp eq i32 %98, 0
  br i1 %.not171, label %99, label %117

99:                                               ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #13
  %100 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %.0127, ptr noundef nonnull @.str.62, ptr noundef nonnull %8, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17) #13
  %.not172 = icmp eq i32 %100, 4
  br i1 %.not172, label %101, label %109

101:                                              ; preds = %99
  %102 = invoke noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #15
          to label %103 unwind label %112

103:                                              ; preds = %101
  %104 = load double, ptr %15, align 8, !tbaa !11
  %105 = load double, ptr %16, align 8, !tbaa !11
  %106 = load double, ptr %17, align 8, !tbaa !11
  invoke void @_ZN8R3VectorC1Eddd(ptr noundef nonnull align 8 dereferenceable(24) %102, double noundef %104, double noundef %105, double noundef %106)
          to label %107 unwind label %114

107:                                              ; preds = %103
  %108 = invoke noundef ptr @_ZN7RNArrayIP8R3VectorE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull %102)
          to label %.thread212 unwind label %112

.thread212:                                       ; preds = %107
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #13
  br label %.thread269

109:                                              ; preds = %99
  %110 = load ptr, ptr @stderr, align 8, !tbaa !15
  %111 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %110, ptr noundef nonnull @.str.65, i32 noundef %48) #16
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #13
  br label %.loopexit.loopexit

112:                                              ; preds = %107, %101
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %116

114:                                              ; preds = %103
  %115 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %102, i64 noundef 24) #17
  br label %116

116:                                              ; preds = %114, %112
  %.pn173 = phi { ptr, i32 } [ %113, %112 ], [ %115, %114 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #13
  br label %283

117:                                              ; preds = %97
  %118 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.67) #14
  %.not175 = icmp eq i32 %118, 0
  br i1 %.not175, label %119, label %.thread269

119:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %18) #13
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(512) %18, i8 0, i64 512, i1 false)
  %120 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %.0127, ptr noundef nonnull @.str.68, ptr noundef nonnull %8, ptr noundef nonnull %18, ptr noundef nonnull %28, ptr noundef nonnull %29, ptr noundef nonnull %30) #13
  %.not176.not = icmp eq i32 %120, 5
  br i1 %.not176.not, label %125, label %121

121:                                              ; preds = %119
  %122 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %.0127, ptr noundef nonnull @.str.69, ptr noundef nonnull %8, ptr noundef nonnull %18, ptr noundef nonnull %28, ptr noundef nonnull %29) #13
  %.not177 = icmp eq i32 %122, 4
  br i1 %.not177, label %125, label %.thread247

.thread247:                                       ; preds = %121
  %123 = load ptr, ptr @stderr, align 8, !tbaa !15
  %124 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %123, ptr noundef nonnull @.str.65, i32 noundef %48) #16
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %18) #13
  br label %.loopexit.loopexit

125:                                              ; preds = %121, %119
  %wide.trip.count = phi i64 [ 3, %121 ], [ 4, %119 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #13
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %19, i8 0, i64 32, i1 false)
  br label %130

126:                                              ; preds = %198
  %127 = load ptr, ptr %19, align 16, !tbaa !15
  %128 = load ptr, ptr %31, align 8, !tbaa !15
  %129 = icmp eq ptr %127, %128
  br i1 %129, label %280, label %200, !llvm.loop !10

130:                                              ; preds = %125, %198
  %indvars.iv = phi i64 [ 0, %125 ], [ %indvars.iv.next, %198 ]
  %131 = getelementptr inbounds [4 x [128 x i8]], ptr %18, i64 0, i64 %indvars.iv
  %132 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %131, i32 noundef 47) #14
  %.not188 = icmp eq ptr %132, null
  br i1 %.not188, label %.thread242, label %133

133:                                              ; preds = %130
  %134 = getelementptr inbounds i8, ptr %132, i64 1
  store i8 0, ptr %132, align 1, !tbaa !5
  %135 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %134, i32 noundef 47) #14
  %.not190 = icmp eq ptr %135, null
  br i1 %.not190, label %138, label %.thread231

.thread231:                                       ; preds = %133
  %136 = getelementptr inbounds i8, ptr %135, i64 1
  store i8 0, ptr %135, align 1, !tbaa !5
  %char0 = load i8, ptr %136, align 1
  %137 = icmp eq i8 %char0, 0
  %spec.store.select = select i1 %137, ptr null, ptr %136
  br label %138

138:                                              ; preds = %133, %.thread231
  %.1135236 = phi ptr [ %spec.store.select, %.thread231 ], [ null, %133 ]
  %char0192 = load i8, ptr %134, align 1
  %139 = icmp eq i8 %char0192, 0
  br i1 %139, label %.thread242, label %141

.thread242:                                       ; preds = %130, %138
  %.1135237.ph = phi ptr [ null, %130 ], [ %.1135236, %138 ]
  %140 = call i32 @atoi(ptr nocapture noundef %131) #14
  br label %144

141:                                              ; preds = %138
  %142 = call i32 @atoi(ptr nocapture noundef %131) #14
  %143 = call i32 @atoi(ptr nocapture noundef %134) #14
  br label %144

144:                                              ; preds = %.thread242, %141
  %145 = phi i32 [ %142, %141 ], [ %140, %.thread242 ]
  %.1135237246 = phi ptr [ %.1135236, %141 ], [ %.1135237.ph, %.thread242 ]
  %146 = phi i32 [ %143, %141 ], [ 0, %.thread242 ]
  %.not194 = icmp eq ptr %.1135237246, null
  br i1 %.not194, label %149, label %147

147:                                              ; preds = %144
  %148 = call i32 @atoi(ptr nocapture noundef %.1135237246) #14
  br label %149

149:                                              ; preds = %144, %147
  %150 = phi i32 [ %148, %147 ], [ 0, %144 ]
  %151 = add nsw i32 %145, -1
  %152 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %6, i32 noundef %151)
          to label %153 unwind label %165

153:                                              ; preds = %149
  %154 = getelementptr inbounds [4 x ptr], ptr %19, i64 0, i64 %indvars.iv
  store ptr %152, ptr %154, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #13
  invoke void @_ZN7R2PointC1Edd(ptr noundef nonnull align 8 dereferenceable(16) %20, double noundef 0.000000e+00, double noundef 0.000000e+00)
          to label %155 unwind label %167

155:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %21) #13
  invoke void @_ZN8R3VectorC1Eddd(ptr noundef nonnull align 8 dereferenceable(24) %21, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
          to label %156 unwind label %169

156:                                              ; preds = %155
  %157 = icmp sgt i32 %146, 0
  br i1 %157, label %158, label %171

158:                                              ; preds = %156
  %159 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %.not195 = icmp sgt i32 %146, %159
  br i1 %.not195, label %171, label %160

160:                                              ; preds = %158
  %161 = add nsw i32 %146, -1
  %162 = invoke noundef ptr @_ZNK7RNArrayIP7R2PointE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef %161)
          to label %163 unwind label %169

163:                                              ; preds = %160
  %164 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN7R2PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %162)
          to label %171 unwind label %169

165:                                              ; preds = %149
  %166 = landingpad { ptr, i32 }
          cleanup
  br label %281

167:                                              ; preds = %153
  %168 = landingpad { ptr, i32 }
          cleanup
  br label %199

169:                                              ; preds = %191, %188, %186, %181, %178, %175, %163, %160, %155
  %170 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #13
  br label %199

171:                                              ; preds = %163, %158, %156
  %172 = icmp sgt i32 %150, 0
  br i1 %172, label %173, label %180

173:                                              ; preds = %171
  %174 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  %.not196 = icmp sgt i32 %150, %174
  br i1 %.not196, label %180, label %175

175:                                              ; preds = %173
  %176 = add nsw i32 %150, -1
  %177 = invoke noundef ptr @_ZNK7RNArrayIP8R3VectorE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef %176)
          to label %178 unwind label %169

178:                                              ; preds = %175
  %179 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN8R3VectoraSERKS_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %177)
          to label %180 unwind label %169

180:                                              ; preds = %178, %173, %171
  br i1 %157, label %181, label %185

181:                                              ; preds = %180
  %182 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK6R3Mesh19VertexTextureCoordsEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %152)
  %183 = invoke noundef i32 @_Z10R2ContainsRK7R2PointS1_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %182)
          to label %184 unwind label %169

184:                                              ; preds = %181
  %.not197 = icmp eq i32 %183, 0
  br i1 %.not197, label %191, label %185

185:                                              ; preds = %184, %180
  br i1 %172, label %186, label %198

186:                                              ; preds = %185
  %187 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh12VertexNormalEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %152)
          to label %188 unwind label %169

188:                                              ; preds = %186
  %189 = invoke noundef i32 @_Z10R3ContainsRK8R3VectorS1_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %187)
          to label %190 unwind label %169

190:                                              ; preds = %188
  %.not198 = icmp eq i32 %189, 0
  br i1 %.not198, label %191, label %198

191:                                              ; preds = %190, %184
  %192 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %152)
  %193 = load ptr, ptr %0, align 8, !tbaa !13
  %194 = getelementptr inbounds i8, ptr %193, i64 56
  %195 = load ptr, ptr %194, align 8
  %196 = invoke noundef ptr %195(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull align 8 dereferenceable(24) %192, ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) @RNgray_rgb, ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef null)
          to label %197 unwind label %169

197:                                              ; preds = %191
  store ptr %196, ptr %154, align 8, !tbaa !15
  br label %198

198:                                              ; preds = %197, %190, %185
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #13
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #13
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %126, label %130, !llvm.loop !17

199:                                              ; preds = %169, %167
  %.pn199 = phi { ptr, i32 } [ %170, %169 ], [ %168, %167 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #13
  br label %281

200:                                              ; preds = %126
  %201 = load ptr, ptr %32, align 16, !tbaa !15
  %202 = icmp eq ptr %128, %201
  %203 = icmp eq ptr %127, %201
  %or.cond = or i1 %202, %203
  br i1 %or.cond, label %280, label %204, !llvm.loop !10

204:                                              ; preds = %200
  br i1 %.not176.not, label %205, label %210

205:                                              ; preds = %204
  %206 = load ptr, ptr %33, align 8, !tbaa !15
  %207 = icmp eq ptr %206, %127
  %208 = icmp eq ptr %206, %128
  %or.cond209 = or i1 %207, %208
  %209 = icmp eq ptr %206, %201
  %or.cond210 = or i1 %209, %or.cond209
  br label %210

210:                                              ; preds = %205, %204
  %.not183 = phi i1 [ true, %204 ], [ %or.cond210, %205 ]
  %211 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %127)
  %212 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %128)
  %213 = invoke noundef double @_Z10R3DistanceRK7R3PointS1_(ptr noundef nonnull align 8 dereferenceable(24) %211, ptr noundef nonnull align 8 dereferenceable(24) %212)
          to label %214 unwind label %243

214:                                              ; preds = %210
  %215 = load double, ptr @RN_EPSILON, align 8, !tbaa !11
  %216 = call noundef i32 @_Z12RNIsPositivedd(double noundef %213, double noundef %215)
  %.not179 = icmp eq i32 %216, 0
  br i1 %.not179, label %245, label %217

217:                                              ; preds = %214
  %218 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %128)
  %219 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %201)
  %220 = invoke noundef double @_Z10R3DistanceRK7R3PointS1_(ptr noundef nonnull align 8 dereferenceable(24) %218, ptr noundef nonnull align 8 dereferenceable(24) %219)
          to label %221 unwind label %243

221:                                              ; preds = %217
  %222 = load double, ptr @RN_EPSILON, align 8, !tbaa !11
  %223 = call noundef i32 @_Z12RNIsPositivedd(double noundef %220, double noundef %222)
  %.not180 = icmp eq i32 %223, 0
  br i1 %.not180, label %245, label %224

224:                                              ; preds = %221
  %225 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %201)
  %226 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %127)
  %227 = invoke noundef double @_Z10R3DistanceRK7R3PointS1_(ptr noundef nonnull align 8 dereferenceable(24) %225, ptr noundef nonnull align 8 dereferenceable(24) %226)
          to label %228 unwind label %243

228:                                              ; preds = %224
  %229 = load double, ptr @RN_EPSILON, align 8, !tbaa !11
  %230 = call noundef i32 @_Z12RNIsPositivedd(double noundef %227, double noundef %229)
  %.not181 = icmp eq i32 %230, 0
  br i1 %.not181, label %245, label %231

231:                                              ; preds = %228
  %232 = load ptr, ptr %0, align 8, !tbaa !13
  %233 = getelementptr inbounds i8, ptr %232, i64 72
  %234 = load ptr, ptr %233, align 8
  %235 = invoke noundef ptr %234(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %127, ptr noundef %128, ptr noundef %201, ptr noundef null)
          to label %236 unwind label %243

236:                                              ; preds = %231
  %.not182 = icmp eq ptr %235, null
  br i1 %.not182, label %237, label %245

237:                                              ; preds = %236
  %238 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef %127)
          to label %239 unwind label %243

239:                                              ; preds = %237
  %240 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef %128)
          to label %241 unwind label %243

241:                                              ; preds = %239
  %242 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef %201)
          to label %245 unwind label %243

243:                                              ; preds = %278, %276, %274, %268, %261, %253, %246, %241, %239, %237, %231, %224, %217, %210
  %244 = landingpad { ptr, i32 }
          cleanup
  br label %281

245:                                              ; preds = %236, %241, %228, %221, %214
  br i1 %.not183, label %.thread251, label %246

246:                                              ; preds = %245
  %247 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %127)
  %248 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %201)
  %249 = invoke noundef double @_Z10R3DistanceRK7R3PointS1_(ptr noundef nonnull align 8 dereferenceable(24) %247, ptr noundef nonnull align 8 dereferenceable(24) %248)
          to label %250 unwind label %243

250:                                              ; preds = %246
  %251 = load double, ptr @RN_EPSILON, align 8, !tbaa !11
  %252 = call noundef i32 @_Z12RNIsPositivedd(double noundef %249, double noundef %251)
  %.not184 = icmp eq i32 %252, 0
  br i1 %.not184, label %.thread251, label %253

253:                                              ; preds = %250
  %254 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %201)
  %255 = load ptr, ptr %33, align 8, !tbaa !15
  %256 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %255)
  %257 = invoke noundef double @_Z10R3DistanceRK7R3PointS1_(ptr noundef nonnull align 8 dereferenceable(24) %254, ptr noundef nonnull align 8 dereferenceable(24) %256)
          to label %258 unwind label %243

258:                                              ; preds = %253
  %259 = load double, ptr @RN_EPSILON, align 8, !tbaa !11
  %260 = call noundef i32 @_Z12RNIsPositivedd(double noundef %257, double noundef %259)
  %.not185 = icmp eq i32 %260, 0
  br i1 %.not185, label %.thread251, label %261

261:                                              ; preds = %258
  %262 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %127)
  %263 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %255)
  %264 = invoke noundef double @_Z10R3DistanceRK7R3PointS1_(ptr noundef nonnull align 8 dereferenceable(24) %262, ptr noundef nonnull align 8 dereferenceable(24) %263)
          to label %265 unwind label %243

265:                                              ; preds = %261
  %266 = load double, ptr @RN_EPSILON, align 8, !tbaa !11
  %267 = call noundef i32 @_Z12RNIsPositivedd(double noundef %264, double noundef %266)
  %.not186 = icmp eq i32 %267, 0
  br i1 %.not186, label %.thread251, label %268

268:                                              ; preds = %265
  %269 = load ptr, ptr %0, align 8, !tbaa !13
  %270 = getelementptr inbounds i8, ptr %269, i64 72
  %271 = load ptr, ptr %270, align 8
  %272 = invoke noundef ptr %271(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %127, ptr noundef %201, ptr noundef %255, ptr noundef null)
          to label %273 unwind label %243

273:                                              ; preds = %268
  %.not187 = icmp eq ptr %272, null
  br i1 %.not187, label %274, label %.thread251

274:                                              ; preds = %273
  %275 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef %127)
          to label %276 unwind label %243

276:                                              ; preds = %274
  %277 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef %201)
          to label %278 unwind label %243

278:                                              ; preds = %276
  %279 = invoke noundef ptr @_ZN7RNArrayIP12R3MeshVertexE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef %255)
          to label %.thread251 unwind label %243

.thread251:                                       ; preds = %250, %258, %265, %278, %273, %245
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #13
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %18) #13
  br label %.thread269

280:                                              ; preds = %200, %126
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #13
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %18) #13
  br label %.thread269

281:                                              ; preds = %165, %199, %243
  %.pn199.pn.pn = phi { ptr, i32 } [ %244, %243 ], [ %.pn199, %199 ], [ %166, %165 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #13
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %18) #13
  br label %283

.thread269:                                       ; preds = %280, %.thread251, %.thread212, %.thread211, %.thread, %117
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #13
  br label %.backedge

.backedge:                                        ; preds = %47, %47, %.thread269
  %282 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 1023, ptr noundef nonnull %22)
  %.not150 = icmp eq ptr %282, null
  br i1 %.not150, label %.preheader, label %35, !llvm.loop !10

283:                                              ; preds = %281, %116, %96, %77, %52
  %.pn203 = phi { ptr, i32 } [ %53, %52 ], [ %.pn199.pn.pn, %281 ], [ %.pn173, %116 ], [ %.pn169, %96 ], [ %.pn165, %77 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #13
  br label %343

._crit_edge:                                      ; preds = %339, %.preheader
  %284 = call i32 @fclose(ptr noundef nonnull %22)
  br label %.loopexit

.lr.ph262:                                        ; preds = %.preheader, %339
  %.0128261 = phi i32 [ %340, %339 ], [ 0, %.preheader ]
  %285 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %7, i32 noundef %.0128261)
          to label %286 unwind label %327

286:                                              ; preds = %.lr.ph262
  %287 = add nuw nsw i32 %.0128261, 1
  %288 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %7, i32 noundef %287)
          to label %289 unwind label %329

289:                                              ; preds = %286
  %290 = add nuw nsw i32 %.0128261, 2
  %291 = invoke noundef ptr @_ZNK7RNArrayIP12R3MeshVertexE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %7, i32 noundef %290)
          to label %292 unwind label %331

292:                                              ; preds = %289
  %293 = load ptr, ptr %0, align 8, !tbaa !13
  %294 = getelementptr inbounds i8, ptr %293, i64 72
  %295 = load ptr, ptr %294, align 8
  %296 = invoke noundef ptr %295(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %285, ptr noundef %288, ptr noundef %291, ptr noundef null)
          to label %297 unwind label %331

297:                                              ; preds = %292
  %.not152 = icmp eq ptr %296, null
  br i1 %.not152, label %298, label %339

298:                                              ; preds = %297
  %299 = load ptr, ptr %0, align 8, !tbaa !13
  %300 = getelementptr inbounds i8, ptr %299, i64 72
  %301 = load ptr, ptr %300, align 8
  %302 = invoke noundef ptr %301(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %285, ptr noundef %291, ptr noundef %288, ptr noundef null)
          to label %303 unwind label %331

303:                                              ; preds = %298
  %.not153 = icmp eq ptr %302, null
  br i1 %.not153, label %304, label %339

304:                                              ; preds = %303
  %305 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %285)
  %306 = load ptr, ptr %0, align 8, !tbaa !13
  %307 = getelementptr inbounds i8, ptr %306, i64 32
  %308 = load ptr, ptr %307, align 8
  %309 = invoke noundef ptr %308(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull align 8 dereferenceable(24) %305, ptr noundef null)
          to label %310 unwind label %333

310:                                              ; preds = %304
  %311 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %288)
  %312 = load ptr, ptr %0, align 8, !tbaa !13
  %313 = getelementptr inbounds i8, ptr %312, i64 32
  %314 = load ptr, ptr %313, align 8
  %315 = invoke noundef ptr %314(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull align 8 dereferenceable(24) %311, ptr noundef null)
          to label %316 unwind label %335

316:                                              ; preds = %310
  %317 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK6R3Mesh14VertexPositionEPK12R3MeshVertex(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %291)
  %318 = load ptr, ptr %0, align 8, !tbaa !13
  %319 = getelementptr inbounds i8, ptr %318, i64 32
  %320 = load ptr, ptr %319, align 8
  %321 = invoke noundef ptr %320(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull align 8 dereferenceable(24) %317, ptr noundef null)
          to label %322 unwind label %337

322:                                              ; preds = %316
  %323 = load ptr, ptr %0, align 8, !tbaa !13
  %324 = getelementptr inbounds i8, ptr %323, i64 72
  %325 = load ptr, ptr %324, align 8
  %326 = invoke noundef ptr %325(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef %309, ptr noundef %315, ptr noundef %321, ptr noundef null)
          to label %339 unwind label %337

327:                                              ; preds = %.lr.ph262
  %328 = landingpad { ptr, i32 }
          cleanup
  br label %343

329:                                              ; preds = %286
  %330 = landingpad { ptr, i32 }
          cleanup
  br label %343

331:                                              ; preds = %298, %292, %289
  %332 = landingpad { ptr, i32 }
          cleanup
  br label %343

333:                                              ; preds = %304
  %334 = landingpad { ptr, i32 }
          cleanup
  br label %343

335:                                              ; preds = %310
  %336 = landingpad { ptr, i32 }
          cleanup
  br label %343

337:                                              ; preds = %322, %316
  %338 = landingpad { ptr, i32 }
          cleanup
  br label %343

339:                                              ; preds = %322, %303, %297
  %340 = add nuw nsw i32 %.0128261, 3
  %341 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %342 = add nsw i32 %341, -3
  %.not151 = icmp sgt i32 %340, %342
  br i1 %.not151, label %._crit_edge, label %.lr.ph262, !llvm.loop !18

.loopexit.loopexit:                               ; preds = %.thread247, %109, %89, %72, %51
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #13
  br label %.loopexit

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

343:                                              ; preds = %327, %331, %335, %337, %333, %329, %283
  %.pn203.pn = phi { ptr, i32 } [ %.pn203, %283 ], [ %328, %327 ], [ %330, %329 ], [ %332, %331 ], [ %334, %333 ], [ %338, %337 ], [ %336, %335 ]
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #13
  br label %344

344:                                              ; preds = %343, %45
  %.pn203.pn.pn = phi { ptr, i32 } [ %.pn203.pn, %343 ], [ %46, %45 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #13
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #13
  br label %345

345:                                              ; preds = %344, %43
  %.pn203.pn.pn.pn = phi { ptr, i32 } [ %.pn203.pn.pn, %344 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #13
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #13
  br label %346

346:                                              ; preds = %345, %41
  %.pn203.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn203.pn.pn.pn, %345 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #13
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #13
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #13
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %3) #13
  resume { ptr, i32 } %.pn203.pn.pn.pn.pn

347:                                              ; preds = %.loopexit, %23
  %.9 = phi i32 [ %.8, %.loopexit ], [ 0, %23 ]
  ret i32 %.9
}

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

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

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

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

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

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

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

declare void @_ZN7R2PointC1Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #5

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN7R2PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5

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

declare noundef i32 @_Z10R2ContainsRK7R2PointS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5

declare noundef i32 @_Z10R3ContainsRK8R3VectorS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{!16, !16, i64 0}
!16 = !{!"any pointer", !6, i64 0}
!17 = distinct !{!17, !9}
!18 = distinct !{!18, !9}


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