; LLVM IR from niessner/Matterport :: code/gaps/pkgs/R3Graphics/R3Scene.ll (ZN7R3Scene18ReadSUNCGModelFileEPKc)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.RNArray.33 = type { %class.RNVArray }
%class.RNVArray = type { ptr, i32, i32 }
%class.RNArray = type { %class.RNVArray }

@stderr = external global ptr, align 8
@.str.42 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.200 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.212 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.213 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.214 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.215 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.216 = external hidden unnamed_addr constant [7 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK11R3SceneNode4NameEv(ptr noundef nonnull align 8 dereferenceable(432)) #4 align 2

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

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

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

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

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

; Function Attrs: nounwind
declare noalias ptr @strdup(ptr noundef) #6

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

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

declare void @_ZN11R3SceneNode10InsertInfoEPKcS1_(ptr noundef nonnull align 8 dereferenceable(432), ptr noundef, ptr noundef) #7

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

declare i32 @fclose(ptr noundef) #7

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7R3Scene4RootEv(ptr noundef nonnull align 8 dereferenceable(352)) #4 align 2

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

45:                                               ; preds = %2
  %46 = load ptr, ptr @stderr, align 8, !tbaa !5
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef @.str.200, ptr noundef %47) #8
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %507

49:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 1, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4096, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #8
  call void @_ZN7RNArrayIPcEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10)
  %50 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = invoke ptr @fgets(ptr noundef %50, i32 noundef 4096, ptr noundef %51)
          to label %53 unwind label %67

53:                                               ; preds = %49
  %54 = icmp ne ptr %52, null
  br i1 %54, label %55, label %76

55:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %56 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
  %57 = call ptr @strtok(ptr noundef %56, ptr noundef @.str.212) #8
  store ptr %57, ptr %13, align 8, !tbaa !5
  br label %58

58:                                               ; preds = %65, %55
  %59 = load ptr, ptr %13, align 8, !tbaa !5
  %60 = icmp ne ptr %59, null
  br i1 %60, label %61, label %75

61:                                               ; preds = %58
  %62 = load ptr, ptr %13, align 8, !tbaa !5
  %63 = call noalias ptr @strdup(ptr noundef %62) #8
  %64 = invoke noundef ptr @_ZN7RNArrayIPcE6InsertES0_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef %63)
          to label %65 unwind label %71

65:                                               ; preds = %61
  %66 = call ptr @strtok(ptr noundef null, ptr noundef @.str.212) #8
  store ptr %66, ptr %13, align 8, !tbaa !5
  br label %58, !llvm.loop !11

67:                                               ; preds = %49
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %11, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %12, align 4
  br label %506

71:                                               ; preds = %61
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %11, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %506

75:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %76

76:                                               ; preds = %75, %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 -1, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %77

77:                                               ; preds = %97, %76
  %78 = load i32, ptr %15, align 4, !tbaa !9
  %79 = invoke noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %80 unwind label %83

80:                                               ; preds = %77
  %81 = icmp slt i32 %78, %79
  br i1 %81, label %87, label %82

82:                                               ; preds = %80
  store i32 4, ptr %7, align 4
  br label %100

83:                                               ; preds = %87, %77
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %11, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %505

87:                                               ; preds = %80
  %88 = load i32, ptr %15, align 4, !tbaa !9
  %89 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIPcEixEi(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef %88)
          to label %90 unwind label %83

90:                                               ; preds = %87
  %91 = load ptr, ptr %89, align 8, !tbaa !5
  %92 = call i32 @strcmp(ptr noundef %91, ptr noundef @.str.213) #9
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %96, label %94

94:                                               ; preds = %90
  %95 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %95, ptr %14, align 4, !tbaa !9
  store i32 4, ptr %7, align 4
  br label %100

96:                                               ; preds = %90
  br label %97

97:                                               ; preds = %96
  %98 = load i32, ptr %15, align 4, !tbaa !9
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %15, align 4, !tbaa !9
  br label %77, !llvm.loop !13

100:                                              ; preds = %94, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %101

101:                                              ; preds = %100
  %102 = load i32, ptr %14, align 4, !tbaa !9
  %103 = icmp slt i32 %102, 0
  br i1 %103, label %104, label %109

104:                                              ; preds = %101
  %105 = load ptr, ptr @stderr, align 8, !tbaa !5
  %106 = load i32, ptr %8, align 4, !tbaa !9
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef @.str.214, i32 noundef %106, ptr noundef %107) #8
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %504

109:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4096, ptr %16) #8
  br label %110

110:                                              ; preds = %418, %416, %109
  %111 = getelementptr inbounds [4096 x i8], ptr %16, i64 0, i64 0
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = invoke ptr @fgets(ptr noundef %111, i32 noundef 4096, ptr noundef %112)
          to label %114 unwind label %131

114:                                              ; preds = %110
  %115 = icmp ne ptr %113, null
  br i1 %115, label %116, label %424

116:                                              ; preds = %114
  %117 = load i32, ptr %8, align 4, !tbaa !9
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #8
  invoke void @_ZN7RNArrayIPcEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %119 unwind label %135

119:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %120 = getelementptr inbounds [4096 x i8], ptr %16, i64 0, i64 0
  %121 = call ptr @strtok(ptr noundef %120, ptr noundef @.str.212) #8
  store ptr %121, ptr %18, align 8, !tbaa !5
  br label %122

122:                                              ; preds = %129, %119
  %123 = load ptr, ptr %18, align 8, !tbaa !5
  %124 = icmp ne ptr %123, null
  br i1 %124, label %125, label %143

125:                                              ; preds = %122
  %126 = load ptr, ptr %18, align 8, !tbaa !5
  %127 = call noalias ptr @strdup(ptr noundef %126) #8
  %128 = invoke noundef ptr @_ZN7RNArrayIPcE6InsertES0_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef %127)
          to label %129 unwind label %139

129:                                              ; preds = %125
  %130 = call ptr @strtok(ptr noundef null, ptr noundef @.str.212) #8
  store ptr %130, ptr %18, align 8, !tbaa !5
  br label %122, !llvm.loop !14

131:                                              ; preds = %424, %110
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %11, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %12, align 4
  br label %503

135:                                              ; preds = %116
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %11, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %12, align 4
  br label %423

139:                                              ; preds = %150, %148, %143, %125
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %11, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %12, align 4
  br label %422

143:                                              ; preds = %122
  %144 = invoke noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %145 unwind label %139

145:                                              ; preds = %143
  %146 = icmp eq i32 %144, 0
  br i1 %146, label %147, label %148

147:                                              ; preds = %145
  store i32 7, ptr %7, align 4
  br label %416, !llvm.loop !15

148:                                              ; preds = %145
  %149 = invoke noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %150 unwind label %139

150:                                              ; preds = %148
  %151 = invoke noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %152 unwind label %139

152:                                              ; preds = %150
  %153 = icmp ne i32 %149, %151
  br i1 %153, label %154, label %159

154:                                              ; preds = %152
  %155 = load ptr, ptr @stderr, align 8, !tbaa !5
  %156 = load i32, ptr %8, align 4, !tbaa !9
  %157 = load ptr, ptr %5, align 8, !tbaa !5
  %158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %155, ptr noundef @.str.215, i32 noundef %156, ptr noundef %157) #8
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %416

159:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %160 = load i32, ptr %14, align 4, !tbaa !9
  %161 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIPcEixEi(ptr noundef nonnull align 8 dereferenceable(16) %17, i32 noundef %160)
          to label %162 unwind label %167

162:                                              ; preds = %159
  %163 = load ptr, ptr %161, align 8, !tbaa !5
  store ptr %163, ptr %19, align 8, !tbaa !5
  %164 = load ptr, ptr %19, align 8, !tbaa !5
  %165 = icmp ne ptr %164, null
  br i1 %165, label %171, label %166

166:                                              ; preds = %162
  store i32 7, ptr %7, align 4
  br label %415, !llvm.loop !15

167:                                              ; preds = %159
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %11, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %12, align 4
  br label %421

171:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %172 = load ptr, ptr %19, align 8, !tbaa !5
  %173 = call i64 @strlen(ptr noundef %172) #9
  %174 = trunc i64 %173 to i32
  store i32 %174, ptr %20, align 4, !tbaa !9
  %175 = load i32, ptr %20, align 4, !tbaa !9
  %176 = icmp eq i32 %175, 0
  br i1 %176, label %177, label %178

177:                                              ; preds = %171
  store i32 7, ptr %7, align 4
  br label %414, !llvm.loop !15

178:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %179

179:                                              ; preds = %370, %178
  %180 = load i32, ptr %21, align 4, !tbaa !9
  %181 = invoke noundef i32 @_ZNK7R3Scene6NNodesEv(ptr noundef nonnull align 8 dereferenceable(352) %40)
          to label %182 unwind label %185

182:                                              ; preds = %179
  %183 = icmp slt i32 %180, %181
  br i1 %183, label %189, label %184

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

185:                                              ; preds = %179
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %11, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %12, align 4
  br label %374

189:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %190 = load i32, ptr %21, align 4, !tbaa !9
  %191 = invoke noundef ptr @_ZNK7R3Scene4NodeEi(ptr noundef nonnull align 8 dereferenceable(352) %40, i32 noundef %190)
          to label %192 unwind label %211

192:                                              ; preds = %189
  store ptr %191, ptr %22, align 8, !tbaa !5
  %193 = load ptr, ptr %22, align 8, !tbaa !5
  %194 = invoke noundef ptr @_ZNK11R3SceneNode4NameEv(ptr noundef nonnull align 8 dereferenceable(432) %193)
          to label %195 unwind label %211

195:                                              ; preds = %192
  %196 = icmp ne ptr %194, null
  br i1 %196, label %197, label %259

197:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 1024, ptr %23) #8
  %198 = getelementptr inbounds [1024 x i8], ptr %23, i64 0, i64 0
  %199 = load ptr, ptr %22, align 8, !tbaa !5
  %200 = invoke noundef ptr @_ZNK11R3SceneNode4NameEv(ptr noundef nonnull align 8 dereferenceable(432) %199)
          to label %201 unwind label %215

201:                                              ; preds = %197
  %202 = call ptr @strncpy(ptr noundef %198, ptr noundef %200, i64 noundef 1024) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %203 = getelementptr inbounds [1024 x i8], ptr %23, i64 0, i64 0
  %204 = call noundef ptr @strchr(ptr noundef %203, i32 noundef 35) #9
  store ptr %204, ptr %24, align 8, !tbaa !5
  %205 = load ptr, ptr %24, align 8, !tbaa !5
  %206 = icmp ne ptr %205, null
  br i1 %206, label %207, label %219

207:                                              ; preds = %201
  %208 = load ptr, ptr %24, align 8, !tbaa !5
  store i8 0, ptr %208, align 1, !tbaa !16
  %209 = load ptr, ptr %24, align 8, !tbaa !5
  %210 = getelementptr inbounds i8, ptr %209, i32 1
  store ptr %210, ptr %24, align 8, !tbaa !5
  br label %221

211:                                              ; preds = %192, %189
  %212 = landingpad { ptr, i32 }
          cleanup
  %213 = extractvalue { ptr, i32 } %212, 0
  store ptr %213, ptr %11, align 8
  %214 = extractvalue { ptr, i32 } %212, 1
  store i32 %214, ptr %12, align 4
  br label %373

215:                                              ; preds = %197
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %11, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %12, align 4
  br label %258

219:                                              ; preds = %201
  %220 = getelementptr inbounds [1024 x i8], ptr %23, i64 0, i64 0
  store ptr %220, ptr %24, align 8, !tbaa !5
  br label %221

221:                                              ; preds = %219, %207
  %222 = getelementptr inbounds [1024 x i8], ptr %23, i64 0, i64 0
  %223 = load ptr, ptr %19, align 8, !tbaa !5
  %224 = call i32 @strcmp(ptr noundef %222, ptr noundef %223) #9
  %225 = icmp ne i32 %224, 0
  br i1 %225, label %226, label %231

226:                                              ; preds = %221
  %227 = load ptr, ptr %24, align 8, !tbaa !5
  %228 = load ptr, ptr %19, align 8, !tbaa !5
  %229 = call i32 @strcmp(ptr noundef %227, ptr noundef %228) #9
  %230 = icmp ne i32 %229, 0
  br i1 %230, label %257, label %231

231:                                              ; preds = %226, %221
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %232

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

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

237:                                              ; preds = %235
  store i32 14, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %256

238:                                              ; preds = %250, %246, %242, %232
  %239 = landingpad { ptr, i32 }
          cleanup
  %240 = extractvalue { ptr, i32 } %239, 0
  store ptr %240, ptr %11, align 8
  %241 = extractvalue { ptr, i32 } %239, 1
  store i32 %241, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %258

242:                                              ; preds = %235
  %243 = load ptr, ptr %22, align 8, !tbaa !5
  %244 = load i32, ptr %25, align 4, !tbaa !9
  %245 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIPcEixEi(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef %244)
          to label %246 unwind label %238

246:                                              ; preds = %242
  %247 = load ptr, ptr %245, align 8, !tbaa !5
  %248 = load i32, ptr %25, align 4, !tbaa !9
  %249 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIPcEixEi(ptr noundef nonnull align 8 dereferenceable(16) %17, i32 noundef %248)
          to label %250 unwind label %238

250:                                              ; preds = %246
  %251 = load ptr, ptr %249, align 8, !tbaa !5
  invoke void @_ZN11R3SceneNode10InsertInfoEPKcS1_(ptr noundef nonnull align 8 dereferenceable(432) %243, ptr noundef %247, ptr noundef %251)
          to label %252 unwind label %238

252:                                              ; preds = %250
  br label %253

253:                                              ; preds = %252
  %254 = load i32, ptr %25, align 4, !tbaa !9
  %255 = add nsw i32 %254, 1
  store i32 %255, ptr %25, align 4, !tbaa !9
  br label %232, !llvm.loop !17

256:                                              ; preds = %237
  br label %257

257:                                              ; preds = %256, %226
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 1024, ptr %23) #8
  br label %259

258:                                              ; preds = %238, %215
  call void @llvm.lifetime.end.p0(i64 1024, ptr %23) #8
  br label %373

259:                                              ; preds = %257, %195
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %260

260:                                              ; preds = %360, %259
  %261 = load i32, ptr %26, align 4, !tbaa !9
  %262 = load ptr, ptr %22, align 8, !tbaa !5
  %263 = invoke noundef i32 @_ZNK11R3SceneNode11NReferencesEv(ptr noundef nonnull align 8 dereferenceable(432) %262)
          to label %264 unwind label %267

264:                                              ; preds = %260
  %265 = icmp slt i32 %261, %263
  br i1 %265, label %271, label %266

266:                                              ; preds = %264
  store i32 17, ptr %7, align 4
  br label %367

267:                                              ; preds = %260
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %11, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %12, align 4
  br label %368

271:                                              ; preds = %264
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %272 = load ptr, ptr %22, align 8, !tbaa !5
  %273 = load i32, ptr %26, align 4, !tbaa !9
  %274 = invoke noundef ptr @_ZNK11R3SceneNode9ReferenceEi(ptr noundef nonnull align 8 dereferenceable(432) %272, i32 noundef %273)
          to label %275 unwind label %287

275:                                              ; preds = %271
  store ptr %274, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %276 = load ptr, ptr %27, align 8, !tbaa !5
  %277 = invoke noundef ptr @_ZNK16R3SceneReference15ReferencedSceneEv(ptr noundef nonnull align 8 dereferenceable(48) %276)
          to label %278 unwind label %291

278:                                              ; preds = %275
  store ptr %277, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %279 = load ptr, ptr %28, align 8, !tbaa !5
  %280 = invoke noundef ptr @_ZNK7R3Scene4RootEv(ptr noundef nonnull align 8 dereferenceable(352) %279)
          to label %281 unwind label %295

281:                                              ; preds = %278
  store ptr %280, ptr %29, align 8, !tbaa !5
  %282 = load ptr, ptr %29, align 8, !tbaa !5
  %283 = invoke noundef ptr @_ZNK11R3SceneNode4NameEv(ptr noundef nonnull align 8 dereferenceable(432) %282)
          to label %284 unwind label %295

284:                                              ; preds = %281
  %285 = icmp ne ptr %283, null
  br i1 %285, label %299, label %286

286:                                              ; preds = %284
  store i32 19, ptr %7, align 4
  br label %357

287:                                              ; preds = %271
  %288 = landingpad { ptr, i32 }
          cleanup
  %289 = extractvalue { ptr, i32 } %288, 0
  store ptr %289, ptr %11, align 8
  %290 = extractvalue { ptr, i32 } %288, 1
  store i32 %290, ptr %12, align 4
  br label %366

291:                                              ; preds = %275
  %292 = landingpad { ptr, i32 }
          cleanup
  %293 = extractvalue { ptr, i32 } %292, 0
  store ptr %293, ptr %11, align 8
  %294 = extractvalue { ptr, i32 } %292, 1
  store i32 %294, ptr %12, align 4
  br label %365

295:                                              ; preds = %281, %278
  %296 = landingpad { ptr, i32 }
          cleanup
  %297 = extractvalue { ptr, i32 } %296, 0
  store ptr %297, ptr %11, align 8
  %298 = extractvalue { ptr, i32 } %296, 1
  store i32 %298, ptr %12, align 4
  br label %364

299:                                              ; preds = %284
  call void @llvm.lifetime.start.p0(i64 1024, ptr %30) #8
  %300 = getelementptr inbounds [1024 x i8], ptr %30, i64 0, i64 0
  %301 = load ptr, ptr %29, align 8, !tbaa !5
  %302 = invoke noundef ptr @_ZNK11R3SceneNode4NameEv(ptr noundef nonnull align 8 dereferenceable(432) %301)
          to label %303 unwind label %313

303:                                              ; preds = %299
  %304 = call ptr @strncpy(ptr noundef %300, ptr noundef %302, i64 noundef 1024) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %305 = getelementptr inbounds [1024 x i8], ptr %30, i64 0, i64 0
  %306 = call noundef ptr @strchr(ptr noundef %305, i32 noundef 35) #9
  store ptr %306, ptr %31, align 8, !tbaa !5
  %307 = load ptr, ptr %31, align 8, !tbaa !5
  %308 = icmp ne ptr %307, null
  br i1 %308, label %309, label %317

309:                                              ; preds = %303
  %310 = load ptr, ptr %31, align 8, !tbaa !5
  store i8 0, ptr %310, align 1, !tbaa !16
  %311 = load ptr, ptr %31, align 8, !tbaa !5
  %312 = getelementptr inbounds i8, ptr %311, i32 1
  store ptr %312, ptr %31, align 8, !tbaa !5
  br label %319

313:                                              ; preds = %299
  %314 = landingpad { ptr, i32 }
          cleanup
  %315 = extractvalue { ptr, i32 } %314, 0
  store ptr %315, ptr %11, align 8
  %316 = extractvalue { ptr, i32 } %314, 1
  store i32 %316, ptr %12, align 4
  br label %363

317:                                              ; preds = %303
  %318 = getelementptr inbounds [1024 x i8], ptr %30, i64 0, i64 0
  store ptr %318, ptr %31, align 8, !tbaa !5
  br label %319

319:                                              ; preds = %317, %309
  %320 = getelementptr inbounds [1024 x i8], ptr %30, i64 0, i64 0
  %321 = load ptr, ptr %19, align 8, !tbaa !5
  %322 = call i32 @strcmp(ptr noundef %320, ptr noundef %321) #9
  %323 = icmp ne i32 %322, 0
  br i1 %323, label %324, label %329

324:                                              ; preds = %319
  %325 = load ptr, ptr %31, align 8, !tbaa !5
  %326 = load ptr, ptr %19, align 8, !tbaa !5
  %327 = call i32 @strcmp(ptr noundef %325, ptr noundef %326) #9
  %328 = icmp ne i32 %327, 0
  br i1 %328, label %355, label %329

329:                                              ; preds = %324, %319
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  store i32 0, ptr %32, align 4, !tbaa !9
  br label %330

330:                                              ; preds = %351, %329
  %331 = load i32, ptr %32, align 4, !tbaa !9
  %332 = invoke noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %333 unwind label %336

333:                                              ; preds = %330
  %334 = icmp slt i32 %331, %332
  br i1 %334, label %340, label %335

335:                                              ; preds = %333
  store i32 20, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  br label %354

336:                                              ; preds = %348, %344, %340, %330
  %337 = landingpad { ptr, i32 }
          cleanup
  %338 = extractvalue { ptr, i32 } %337, 0
  store ptr %338, ptr %11, align 8
  %339 = extractvalue { ptr, i32 } %337, 1
  store i32 %339, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  br label %363

340:                                              ; preds = %333
  %341 = load ptr, ptr %22, align 8, !tbaa !5
  %342 = load i32, ptr %32, align 4, !tbaa !9
  %343 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIPcEixEi(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef %342)
          to label %344 unwind label %336

344:                                              ; preds = %340
  %345 = load ptr, ptr %343, align 8, !tbaa !5
  %346 = load i32, ptr %32, align 4, !tbaa !9
  %347 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIPcEixEi(ptr noundef nonnull align 8 dereferenceable(16) %17, i32 noundef %346)
          to label %348 unwind label %336

348:                                              ; preds = %344
  %349 = load ptr, ptr %347, align 8, !tbaa !5
  invoke void @_ZN11R3SceneNode10InsertInfoEPKcS1_(ptr noundef nonnull align 8 dereferenceable(432) %341, ptr noundef %345, ptr noundef %349)
          to label %350 unwind label %336

350:                                              ; preds = %348
  br label %351

351:                                              ; preds = %350
  %352 = load i32, ptr %32, align 4, !tbaa !9
  %353 = add nsw i32 %352, 1
  store i32 %353, ptr %32, align 4, !tbaa !9
  br label %330, !llvm.loop !18

354:                                              ; preds = %335
  store i32 17, ptr %7, align 4
  br label %356

355:                                              ; preds = %324
  store i32 0, ptr %7, align 4
  br label %356

356:                                              ; preds = %355, %354
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 1024, ptr %30) #8
  br label %357

357:                                              ; preds = %356, %286
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  %358 = load i32, ptr %7, align 4
  switch i32 %358, label %367 [
    i32 0, label %359
    i32 19, label %360
  ]

359:                                              ; preds = %357
  br label %360

360:                                              ; preds = %359, %357
  %361 = load i32, ptr %26, align 4, !tbaa !9
  %362 = add nsw i32 %361, 1
  store i32 %362, ptr %26, align 4, !tbaa !9
  br label %260, !llvm.loop !19

363:                                              ; preds = %336, %313
  call void @llvm.lifetime.end.p0(i64 1024, ptr %30) #8
  br label %364

364:                                              ; preds = %363, %295
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %365

365:                                              ; preds = %364, %291
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %366

366:                                              ; preds = %365, %287
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %368

367:                                              ; preds = %357, %266
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %369

368:                                              ; preds = %366, %267
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %373

369:                                              ; preds = %367
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %370

370:                                              ; preds = %369
  %371 = load i32, ptr %21, align 4, !tbaa !9
  %372 = add nsw i32 %371, 1
  store i32 %372, ptr %21, align 4, !tbaa !9
  br label %179, !llvm.loop !20

373:                                              ; preds = %368, %258, %211
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %374

374:                                              ; preds = %373, %185
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %420

375:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %376 = load ptr, ptr %19, align 8, !tbaa !5
  %377 = invoke noundef ptr @_ZNK7R3Scene15ReferencedSceneEPKc(ptr noundef nonnull align 8 dereferenceable(352) %40, ptr noundef %376)
          to label %378 unwind label %388

378:                                              ; preds = %375
  store ptr %377, ptr %33, align 8, !tbaa !5
  %379 = load ptr, ptr %33, align 8, !tbaa !5
  %380 = icmp ne ptr %379, null
  br i1 %380, label %381, label %413

381:                                              ; preds = %378
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  store i32 0, ptr %34, align 4, !tbaa !9
  br label %382

382:                                              ; preds = %409, %381
  %383 = load i32, ptr %34, align 4, !tbaa !9
  %384 = invoke noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %385 unwind label %392

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

387:                                              ; preds = %385
  store i32 23, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  br label %412

388:                                              ; preds = %375
  %389 = landingpad { ptr, i32 }
          cleanup
  %390 = extractvalue { ptr, i32 } %389, 0
  store ptr %390, ptr %11, align 8
  %391 = extractvalue { ptr, i32 } %389, 1
  store i32 %391, ptr %12, align 4
  br label %419

392:                                              ; preds = %406, %402, %399, %396, %382
  %393 = landingpad { ptr, i32 }
          cleanup
  %394 = extractvalue { ptr, i32 } %393, 0
  store ptr %394, ptr %11, align 8
  %395 = extractvalue { ptr, i32 } %393, 1
  store i32 %395, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  br label %419

396:                                              ; preds = %385
  %397 = load ptr, ptr %33, align 8, !tbaa !5
  %398 = invoke noundef ptr @_ZNK7R3Scene4RootEv(ptr noundef nonnull align 8 dereferenceable(352) %397)
          to label %399 unwind label %392

399:                                              ; preds = %396
  %400 = load i32, ptr %34, align 4, !tbaa !9
  %401 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIPcEixEi(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef %400)
          to label %402 unwind label %392

402:                                              ; preds = %399
  %403 = load ptr, ptr %401, align 8, !tbaa !5
  %404 = load i32, ptr %34, align 4, !tbaa !9
  %405 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIPcEixEi(ptr noundef nonnull align 8 dereferenceable(16) %17, i32 noundef %404)
          to label %406 unwind label %392

406:                                              ; preds = %402
  %407 = load ptr, ptr %405, align 8, !tbaa !5
  invoke void @_ZN11R3SceneNode10InsertInfoEPKcS1_(ptr noundef nonnull align 8 dereferenceable(432) %398, ptr noundef %403, ptr noundef %407)
          to label %408 unwind label %392

408:                                              ; preds = %406
  br label %409

409:                                              ; preds = %408
  %410 = load i32, ptr %34, align 4, !tbaa !9
  %411 = add nsw i32 %410, 1
  store i32 %411, ptr %34, align 4, !tbaa !9
  br label %382, !llvm.loop !21

412:                                              ; preds = %387
  br label %413

413:                                              ; preds = %412, %378
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  store i32 0, ptr %7, align 4
  br label %414

414:                                              ; preds = %413, %177
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %415

415:                                              ; preds = %414, %166
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %416

416:                                              ; preds = %415, %154, %147
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  %417 = load i32, ptr %7, align 4
  switch i32 %417, label %502 [
    i32 0, label %418
    i32 7, label %110
  ]

418:                                              ; preds = %416
  br label %110, !llvm.loop !15

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

420:                                              ; preds = %419, %374
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %421

421:                                              ; preds = %420, %167
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %422

422:                                              ; preds = %421, %139
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #8
  br label %423

423:                                              ; preds = %422, %135
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  br label %503

424:                                              ; preds = %114
  %425 = load ptr, ptr %6, align 8, !tbaa !5
  %426 = invoke i32 @fclose(ptr noundef %425)
          to label %427 unwind label %131

427:                                              ; preds = %424
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #8
  invoke void @_ZN7RNArrayIP11R3SceneNodeEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %35)
          to label %428 unwind label %435

428:                                              ; preds = %427
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  store i32 0, ptr %36, align 4, !tbaa !9
  br label %429

429:                                              ; preds = %449, %428
  %430 = load i32, ptr %36, align 4, !tbaa !9
  %431 = invoke noundef i32 @_ZNK7R3Scene6NNodesEv(ptr noundef nonnull align 8 dereferenceable(352) %40)
          to label %432 unwind label %439

432:                                              ; preds = %429
  %433 = icmp slt i32 %430, %431
  br i1 %433, label %443, label %434

434:                                              ; preds = %432
  store i32 26, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  br label %452

435:                                              ; preds = %427
  %436 = landingpad { ptr, i32 }
          cleanup
  %437 = extractvalue { ptr, i32 } %436, 0
  store ptr %437, ptr %11, align 8
  %438 = extractvalue { ptr, i32 } %436, 1
  store i32 %438, ptr %12, align 4
  br label %501

439:                                              ; preds = %446, %443, %429
  %440 = landingpad { ptr, i32 }
          cleanup
  %441 = extractvalue { ptr, i32 } %440, 0
  store ptr %441, ptr %11, align 8
  %442 = extractvalue { ptr, i32 } %440, 1
  store i32 %442, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  br label %500

443:                                              ; preds = %432
  %444 = load i32, ptr %36, align 4, !tbaa !9
  %445 = invoke noundef ptr @_ZNK7R3Scene4NodeEi(ptr noundef nonnull align 8 dereferenceable(352) %40, i32 noundef %444)
          to label %446 unwind label %439

446:                                              ; preds = %443
  %447 = invoke noundef ptr @_ZN7RNArrayIP11R3SceneNodeE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef %445)
          to label %448 unwind label %439

448:                                              ; preds = %446
  br label %449

449:                                              ; preds = %448
  %450 = load i32, ptr %36, align 4, !tbaa !9
  %451 = add nsw i32 %450, 1
  store i32 %451, ptr %36, align 4, !tbaa !9
  br label %429, !llvm.loop !22

452:                                              ; preds = %434
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  store i32 0, ptr %37, align 4, !tbaa !9
  br label %453

453:                                              ; preds = %494, %452
  %454 = load i32, ptr %37, align 4, !tbaa !9
  %455 = invoke noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %35)
          to label %456 unwind label %459

456:                                              ; preds = %453
  %457 = icmp slt i32 %454, %455
  br i1 %457, label %463, label %458

458:                                              ; preds = %456
  store i32 29, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  br label %499

459:                                              ; preds = %453
  %460 = landingpad { ptr, i32 }
          cleanup
  %461 = extractvalue { ptr, i32 } %460, 0
  store ptr %461, ptr %11, align 8
  %462 = extractvalue { ptr, i32 } %460, 1
  store i32 %462, ptr %12, align 4
  br label %498

463:                                              ; preds = %456
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #8
  %464 = load i32, ptr %37, align 4, !tbaa !9
  %465 = invoke noundef ptr @_ZNK7RNArrayIP11R3SceneNodeE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %35, i32 noundef %464)
          to label %466 unwind label %473

466:                                              ; preds = %463
  store ptr %465, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  %467 = load ptr, ptr %38, align 8, !tbaa !5
  %468 = invoke noundef ptr @_ZNK11R3SceneNode4InfoEPKc(ptr noundef nonnull align 8 dereferenceable(432) %467, ptr noundef @.str.216)
          to label %469 unwind label %477

469:                                              ; preds = %466
  store ptr %468, ptr %39, align 8, !tbaa !5
  %470 = load ptr, ptr %39, align 8, !tbaa !5
  %471 = icmp ne ptr %470, null
  br i1 %471, label %481, label %472

472:                                              ; preds = %469
  store i32 31, ptr %7, align 4
  br label %491

473:                                              ; preds = %463
  %474 = landingpad { ptr, i32 }
          cleanup
  %475 = extractvalue { ptr, i32 } %474, 0
  store ptr %475, ptr %11, align 8
  %476 = extractvalue { ptr, i32 } %474, 1
  store i32 %476, ptr %12, align 4
  br label %497

477:                                              ; preds = %466
  %478 = landingpad { ptr, i32 }
          cleanup
  %479 = extractvalue { ptr, i32 } %478, 0
  store ptr %479, ptr %11, align 8
  %480 = extractvalue { ptr, i32 } %478, 1
  store i32 %480, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  br label %497

481:                                              ; preds = %469
  %482 = load ptr, ptr %39, align 8, !tbaa !5
  %483 = call i32 @strcmp(ptr noundef %482, ptr noundef @.str.74) #9
  %484 = icmp ne i32 %483, 0
  br i1 %484, label %485, label %486

485:                                              ; preds = %481
  store i32 31, ptr %7, align 4
  br label %491

486:                                              ; preds = %481
  %487 = load ptr, ptr %38, align 8, !tbaa !5
  %488 = icmp eq ptr %487, null
  br i1 %488, label %490, label %489

489:                                              ; preds = %486
  call void @_ZN11R3SceneNodeD1Ev(ptr noundef nonnull align 8 dereferenceable(432) %487) #8
  call void @_ZdlPvm(ptr noundef %487, i64 noundef 432) #10
  br label %490

490:                                              ; preds = %489, %486
  store i32 0, ptr %7, align 4
  br label %491

491:                                              ; preds = %490, %485, %472
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  %492 = load i32, ptr %7, align 4
  switch i32 %492, label %514 [
    i32 0, label %493
    i32 31, label %494
  ]

493:                                              ; preds = %491
  br label %494

494:                                              ; preds = %493, %491
  %495 = load i32, ptr %37, align 4, !tbaa !9
  %496 = add nsw i32 %495, 1
  store i32 %496, ptr %37, align 4, !tbaa !9
  br label %453, !llvm.loop !23

497:                                              ; preds = %477, %473
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #8
  br label %498

498:                                              ; preds = %497, %459
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  br label %500

499:                                              ; preds = %458
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %35) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #8
  br label %502

500:                                              ; preds = %498, %439
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %35) #8
  br label %501

501:                                              ; preds = %500, %435
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #8
  br label %503

502:                                              ; preds = %499, %416
  call void @llvm.lifetime.end.p0(i64 4096, ptr %16) #8
  br label %504

503:                                              ; preds = %501, %423, %131
  call void @llvm.lifetime.end.p0(i64 4096, ptr %16) #8
  br label %505

504:                                              ; preds = %502, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4096, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %507

505:                                              ; preds = %503, %83
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %506

506:                                              ; preds = %505, %71, %67
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4096, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %509

507:                                              ; preds = %504, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  %508 = load i32, ptr %3, align 4
  ret i32 %508

509:                                              ; preds = %506
  %510 = load ptr, ptr %11, align 8
  %511 = load i32, ptr %12, align 4
  %512 = insertvalue { ptr, i32 } poison, ptr %510, 0
  %513 = insertvalue { ptr, i32 } %512, i32 %511, 1
  resume { ptr, i32 } %513

514:                                              ; preds = %491
  unreachable
}

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK11R3SceneNode11NReferencesEv(ptr noundef nonnull align 8 dereferenceable(432)) #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK16R3SceneReference15ReferencedSceneEv(ptr noundef nonnull align 8 dereferenceable(48)) #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZNK11R3SceneNode4InfoEPKc(ptr noundef nonnull align 8 dereferenceable(432), ptr noundef) #3 align 2

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

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 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind willreturn memory(read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.RNArray.33 = type { %class.RNVArray }
%class.RNVArray = type { ptr, i32, i32 }
%class.RNArray = type { %class.RNVArray }

@stderr = external local_unnamed_addr global ptr, align 8
@.str.42 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.200 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.212 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.213 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.214 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.215 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.216 = external hidden unnamed_addr constant [7 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK11R3SceneNode4NameEv(ptr noundef nonnull align 8 dereferenceable(432)) local_unnamed_addr #4 align 2

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

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

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strdup(ptr nocapture noundef readonly) local_unnamed_addr #6

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

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

declare void @_ZN11R3SceneNode10InsertInfoEPKcS1_(ptr noundef nonnull align 8 dereferenceable(432), ptr noundef, ptr noundef) local_unnamed_addr #8

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

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strncpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly, i64 noundef) local_unnamed_addr #9

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7R3Scene4RootEv(ptr noundef nonnull align 8 dereferenceable(352)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7R3Scene18ReadSUNCGModelFileEPKc(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef %1) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca [4096 x i8], align 16
  %4 = alloca %class.RNArray.33, align 8
  %5 = alloca [4096 x i8], align 16
  %6 = alloca %class.RNArray.33, align 8
  %7 = alloca [1024 x i8], align 16
  %8 = alloca [1024 x i8], align 16
  %9 = alloca %class.RNArray, align 8
  %10 = tail call noalias ptr @fopen(ptr noundef %1, ptr noundef nonnull @.str.42)
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %11, label %14

11:                                               ; preds = %2
  %12 = load ptr, ptr @stderr, align 8, !tbaa !5
  %13 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef nonnull @.str.200, ptr noundef %1) #12
  br label %204

14:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %3) #13
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #13
  call void @_ZN7RNArrayIPcEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %15 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 4096, ptr noundef nonnull %10)
  %.not126 = icmp eq ptr %15, null
  br i1 %.not126, label %.loopexit175, label %16

16:                                               ; preds = %14
  %17 = call ptr @strtok(ptr noundef nonnull %3, ptr noundef nonnull @.str.212) #13
  %.not127188 = icmp eq ptr %17, null
  br i1 %.not127188, label %.loopexit175, label %.lr.ph

.lr.ph:                                           ; preds = %16, %20
  %.0112189 = phi ptr [ %21, %20 ], [ %17, %16 ]
  %18 = call noalias ptr @strdup(ptr noundef nonnull %.0112189) #13
  %19 = invoke noundef ptr @_ZN7RNArrayIPcE6InsertES0_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef %18)
          to label %20 unwind label %22

20:                                               ; preds = %.lr.ph
  %21 = call ptr @strtok(ptr noundef null, ptr noundef nonnull @.str.212) #13
  %.not127 = icmp eq ptr %21, null
  br i1 %.not127, label %.loopexit175, label %.lr.ph, !llvm.loop !9

22:                                               ; preds = %.lr.ph
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %203

.loopexit175:                                     ; preds = %20, %16, %14
  %24 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %.lr.ph191, label %._crit_edge

26:                                               ; preds = %.lr.ph191
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %203

.lr.ph191:                                        ; preds = %.loopexit175, %32
  %.0118190 = phi i32 [ %33, %32 ], [ 0, %.loopexit175 ]
  %28 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIPcEixEi(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef %.0118190)
          to label %29 unwind label %26

29:                                               ; preds = %.lr.ph191
  %30 = load ptr, ptr %28, align 8, !tbaa !5
  %31 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %30, ptr noundef nonnull dereferenceable(1) @.str.213) #14
  %.not128 = icmp eq i32 %31, 0
  br i1 %.not128, label %38, label %32

32:                                               ; preds = %29
  %33 = add nuw nsw i32 %.0118190, 1
  %34 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %35 = icmp slt i32 %33, %34
  br i1 %35, label %.lr.ph191, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %32, %.loopexit175
  %36 = load ptr, ptr @stderr, align 8, !tbaa !5
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.214, i32 noundef 1, ptr noundef %1) #12
  br label %202

38:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %5) #13
  %39 = call ptr @fgets(ptr noundef nonnull %5, i32 noundef 4096, ptr noundef nonnull %10)
  %.not129208 = icmp eq ptr %39, null
  br i1 %.not129208, label %._crit_edge212, label %.lr.ph211

.lr.ph211:                                        ; preds = %38, %.loopexit173
  %.090209 = phi i32 [ %40, %.loopexit173 ], [ 1, %38 ]
  %40 = add nuw nsw i32 %.090209, 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #13
  invoke void @_ZN7RNArrayIPcEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %41 unwind label %47

41:                                               ; preds = %.lr.ph211
  %42 = call ptr @strtok(ptr noundef nonnull %5, ptr noundef nonnull @.str.212) #13
  %.not136192 = icmp eq ptr %42, null
  br i1 %.not136192, label %._crit_edge196, label %.lr.ph195

.lr.ph195:                                        ; preds = %41, %45
  %.0119193 = phi ptr [ %46, %45 ], [ %42, %41 ]
  %43 = call noalias ptr @strdup(ptr noundef nonnull %.0119193) #13
  %44 = invoke noundef ptr @_ZN7RNArrayIPcE6InsertES0_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef %43)
          to label %45 unwind label %49

45:                                               ; preds = %.lr.ph195
  %46 = call ptr @strtok(ptr noundef null, ptr noundef nonnull @.str.212) #13
  %.not136 = icmp eq ptr %46, null
  br i1 %.not136, label %._crit_edge196, label %.lr.ph195, !llvm.loop !12

47:                                               ; preds = %.lr.ph211
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %166

49:                                               ; preds = %.lr.ph195
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %165

._crit_edge196:                                   ; preds = %45, %41
  %51 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %6)
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %.loopexit173, label %53, !llvm.loop !13

53:                                               ; preds = %._crit_edge196
  %54 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %6)
  %55 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %.not137 = icmp eq i32 %54, %55
  br i1 %.not137, label %58, label %.thread168

.thread168:                                       ; preds = %53
  %56 = load ptr, ptr @stderr, align 8, !tbaa !5
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str.215, i32 noundef %40, ptr noundef %1) #12
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #13
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #13
  br label %200

58:                                               ; preds = %53
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIPcEixEi(ptr noundef nonnull align 8 dereferenceable(16) %6, i32 noundef %.0118190)
          to label %60 unwind label %62

60:                                               ; preds = %58
  %61 = load ptr, ptr %59, align 8, !tbaa !5
  %.not138 = icmp eq ptr %61, null
  br i1 %.not138, label %.loopexit173, label %64, !llvm.loop !13

62:                                               ; preds = %58
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %165

64:                                               ; preds = %60
  %65 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %61) #14
  %66 = and i64 %65, 4294967295
  %67 = icmp eq i64 %66, 0
  br i1 %67, label %.loopexit173, label %.preheader174, !llvm.loop !13

.preheader174:                                    ; preds = %64, %.loopexit
  %.0117 = phi i32 [ %145, %.loopexit ], [ 0, %64 ]
  %68 = invoke noundef i32 @_ZNK7R3Scene6NNodesEv(ptr noundef nonnull align 8 dereferenceable(352) %0)
          to label %69 unwind label %73

69:                                               ; preds = %.preheader174
  %70 = icmp slt i32 %.0117, %68
  br i1 %70, label %75, label %71

71:                                               ; preds = %69
  %72 = invoke noundef ptr @_ZNK7R3Scene15ReferencedSceneEPKc(ptr noundef nonnull align 8 dereferenceable(352) %0, ptr noundef nonnull %61)
          to label %146 unwind label %149

73:                                               ; preds = %.preheader174
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %165

75:                                               ; preds = %69
  %76 = invoke noundef ptr @_ZNK7R3Scene4NodeEi(ptr noundef nonnull align 8 dereferenceable(352) %0, i32 noundef %.0117)
          to label %77 unwind label %85

77:                                               ; preds = %75
  %78 = call noundef ptr @_ZNK11R3SceneNode4NameEv(ptr noundef nonnull align 8 dereferenceable(432) %76)
  %.not142 = icmp eq ptr %78, null
  br i1 %.not142, label %106, label %79

79:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %7) #13
  %80 = call noundef ptr @_ZNK11R3SceneNode4NameEv(ptr noundef nonnull align 8 dereferenceable(432) %76)
  %81 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) %80, i64 noundef 1024) #13
  %82 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %7, i32 noundef 35) #14
  %.not143 = icmp eq ptr %82, null
  br i1 %.not143, label %87, label %83

83:                                               ; preds = %79
  store i8 0, ptr %82, align 1, !tbaa !14
  %84 = getelementptr inbounds i8, ptr %82, i64 1
  br label %87

85:                                               ; preds = %75
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %165

87:                                               ; preds = %79, %83
  %.0115 = phi ptr [ %84, %83 ], [ %7, %79 ]
  %88 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) %61) #14
  %.not144 = icmp eq i32 %88, 0
  br i1 %.not144, label %91, label %89

89:                                               ; preds = %87
  %90 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.0115, ptr noundef nonnull dereferenceable(1) %61) #14
  %.not145 = icmp eq i32 %90, 0
  br i1 %.not145, label %91, label %.loopexit171

91:                                               ; preds = %89, %87
  %92 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %93 = icmp sgt i32 %92, 0
  br i1 %93, label %.lr.ph199, label %.loopexit171

94:                                               ; preds = %100, %97, %.lr.ph199
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %7) #13
  br label %165

.lr.ph199:                                        ; preds = %91, %102
  %.0114197 = phi i32 [ %103, %102 ], [ 0, %91 ]
  %96 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIPcEixEi(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef %.0114197)
          to label %97 unwind label %94

97:                                               ; preds = %.lr.ph199
  %98 = load ptr, ptr %96, align 8, !tbaa !5
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIPcEixEi(ptr noundef nonnull align 8 dereferenceable(16) %6, i32 noundef %.0114197)
          to label %100 unwind label %94

100:                                              ; preds = %97
  %101 = load ptr, ptr %99, align 8, !tbaa !5
  invoke void @_ZN11R3SceneNode10InsertInfoEPKcS1_(ptr noundef nonnull align 8 dereferenceable(432) %76, ptr noundef %98, ptr noundef %101)
          to label %102 unwind label %94

102:                                              ; preds = %100
  %103 = add nuw nsw i32 %.0114197, 1
  %104 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %105 = icmp slt i32 %103, %104
  br i1 %105, label %.lr.ph199, label %.loopexit171, !llvm.loop !15

.loopexit171:                                     ; preds = %102, %91, %89
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %7) #13
  br label %106

106:                                              ; preds = %.loopexit171, %77
  %107 = call noundef i32 @_ZNK11R3SceneNode11NReferencesEv(ptr noundef nonnull align 8 dereferenceable(432) %76)
  %108 = icmp sgt i32 %107, 0
  br i1 %108, label %.lr.ph202, label %.loopexit

.lr.ph202:                                        ; preds = %106, %.thread164
  %.0113200 = phi i32 [ %142, %.thread164 ], [ 0, %106 ]
  %109 = invoke noundef ptr @_ZNK11R3SceneNode9ReferenceEi(ptr noundef nonnull align 8 dereferenceable(432) %76, i32 noundef %.0113200)
          to label %110 unwind label %114

110:                                              ; preds = %.lr.ph202
  %111 = call noundef ptr @_ZNK16R3SceneReference15ReferencedSceneEv(ptr noundef nonnull align 8 dereferenceable(48) %109)
  %112 = call noundef ptr @_ZNK7R3Scene4RootEv(ptr noundef nonnull align 8 dereferenceable(352) %111)
  %113 = call noundef ptr @_ZNK11R3SceneNode4NameEv(ptr noundef nonnull align 8 dereferenceable(432) %112)
  %.not146 = icmp eq ptr %113, null
  br i1 %.not146, label %.thread164, label %116

114:                                              ; preds = %.lr.ph202
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %165

116:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %8) #13
  %117 = call noundef ptr @_ZNK11R3SceneNode4NameEv(ptr noundef nonnull align 8 dereferenceable(432) %112)
  %118 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) %117, i64 noundef 1024) #13
  %119 = call noundef ptr @strchr(ptr noundef nonnull dereferenceable(1) %8, i32 noundef 35) #14
  %.not147 = icmp eq ptr %119, null
  br i1 %.not147, label %122, label %120

120:                                              ; preds = %116
  store i8 0, ptr %119, align 1, !tbaa !14
  %121 = getelementptr inbounds i8, ptr %119, i64 1
  br label %122

122:                                              ; preds = %116, %120
  %.092 = phi ptr [ %121, %120 ], [ %8, %116 ]
  %123 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) %61) #14
  %.not148 = icmp eq i32 %123, 0
  br i1 %.not148, label %126, label %124

124:                                              ; preds = %122
  %125 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %.092, ptr noundef nonnull dereferenceable(1) %61) #14
  %.not149 = icmp eq i32 %125, 0
  br i1 %.not149, label %126, label %141

126:                                              ; preds = %124, %122
  %127 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %128 = icmp sgt i32 %127, 0
  br i1 %128, label %.lr.ph205, label %.thread166

.thread166:                                       ; preds = %137, %126
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %8) #13
  br label %.loopexit

129:                                              ; preds = %135, %132, %.lr.ph205
  %130 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %8) #13
  br label %165

.lr.ph205:                                        ; preds = %126, %137
  %.091203 = phi i32 [ %138, %137 ], [ 0, %126 ]
  %131 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIPcEixEi(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef %.091203)
          to label %132 unwind label %129

132:                                              ; preds = %.lr.ph205
  %133 = load ptr, ptr %131, align 8, !tbaa !5
  %134 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIPcEixEi(ptr noundef nonnull align 8 dereferenceable(16) %6, i32 noundef %.091203)
          to label %135 unwind label %129

135:                                              ; preds = %132
  %136 = load ptr, ptr %134, align 8, !tbaa !5
  invoke void @_ZN11R3SceneNode10InsertInfoEPKcS1_(ptr noundef nonnull align 8 dereferenceable(432) %76, ptr noundef %133, ptr noundef %136)
          to label %137 unwind label %129

137:                                              ; preds = %135
  %138 = add nuw nsw i32 %.091203, 1
  %139 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %140 = icmp slt i32 %138, %139
  br i1 %140, label %.lr.ph205, label %.thread166, !llvm.loop !16

141:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %8) #13
  br label %.thread164

.thread164:                                       ; preds = %110, %141
  %142 = add nuw nsw i32 %.0113200, 1
  %143 = call noundef i32 @_ZNK11R3SceneNode11NReferencesEv(ptr noundef nonnull align 8 dereferenceable(432) %76)
  %144 = icmp slt i32 %142, %143
  br i1 %144, label %.lr.ph202, label %.loopexit, !llvm.loop !17

.loopexit:                                        ; preds = %.thread164, %106, %.thread166
  %145 = add nuw nsw i32 %.0117, 1
  br label %.preheader174, !llvm.loop !18

146:                                              ; preds = %71
  %.not139 = icmp eq ptr %72, null
  br i1 %.not139, label %.loopexit173, label %.preheader172

.preheader172:                                    ; preds = %146
  %147 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %148 = icmp sgt i32 %147, 0
  br i1 %148, label %.lr.ph207, label %.loopexit173

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

151:                                              ; preds = %158, %155, %.lr.ph207
  %152 = landingpad { ptr, i32 }
          cleanup
  br label %165

.lr.ph207:                                        ; preds = %.preheader172, %160
  %.089206 = phi i32 [ %161, %160 ], [ 0, %.preheader172 ]
  %153 = call noundef ptr @_ZNK7R3Scene4RootEv(ptr noundef nonnull align 8 dereferenceable(352) %72)
  %154 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIPcEixEi(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef %.089206)
          to label %155 unwind label %151

155:                                              ; preds = %.lr.ph207
  %156 = load ptr, ptr %154, align 8, !tbaa !5
  %157 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN7RNArrayIPcEixEi(ptr noundef nonnull align 8 dereferenceable(16) %6, i32 noundef %.089206)
          to label %158 unwind label %151

158:                                              ; preds = %155
  %159 = load ptr, ptr %157, align 8, !tbaa !5
  invoke void @_ZN11R3SceneNode10InsertInfoEPKcS1_(ptr noundef nonnull align 8 dereferenceable(432) %153, ptr noundef %156, ptr noundef %159)
          to label %160 unwind label %151

160:                                              ; preds = %158
  %161 = add nuw nsw i32 %.089206, 1
  %162 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %163 = icmp slt i32 %161, %162
  br i1 %163, label %.lr.ph207, label %.loopexit173, !llvm.loop !19

.loopexit173:                                     ; preds = %160, %.preheader172, %60, %146, %64, %._crit_edge196
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #13
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #13
  %164 = call ptr @fgets(ptr noundef nonnull %5, i32 noundef 4096, ptr noundef nonnull %10)
  %.not129 = icmp eq ptr %164, null
  br i1 %.not129, label %._crit_edge212, label %.lr.ph211

165:                                              ; preds = %62, %149, %151, %73, %114, %129, %94, %85, %49
  %.pn156 = phi { ptr, i32 } [ %50, %49 ], [ %63, %62 ], [ %74, %73 ], [ %95, %94 ], [ %86, %85 ], [ %130, %129 ], [ %115, %114 ], [ %152, %151 ], [ %150, %149 ]
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #13
  br label %166

166:                                              ; preds = %165, %47
  %.pn156.pn = phi { ptr, i32 } [ %.pn156, %165 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #13
  br label %201

._crit_edge212:                                   ; preds = %.loopexit173, %38
  %167 = call i32 @fclose(ptr noundef nonnull %10)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #13
  invoke void @_ZN7RNArrayIP11R3SceneNodeEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %.preheader170 unwind label %173

.preheader170:                                    ; preds = %._crit_edge212, %181
  %.088 = phi i32 [ %182, %181 ], [ 0, %._crit_edge212 ]
  %168 = invoke noundef i32 @_ZNK7R3Scene6NNodesEv(ptr noundef nonnull align 8 dereferenceable(352) %0)
          to label %169 unwind label %175

169:                                              ; preds = %.preheader170
  %170 = icmp slt i32 %.088, %168
  br i1 %170, label %177, label %.preheader

.preheader:                                       ; preds = %169
  %171 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
  %172 = icmp sgt i32 %171, 0
  br i1 %172, label %.lr.ph214, label %._crit_edge215

173:                                              ; preds = %._crit_edge212
  %174 = landingpad { ptr, i32 }
          cleanup
  br label %199

175:                                              ; preds = %179, %177, %.preheader170
  %176 = landingpad { ptr, i32 }
          cleanup
  br label %198

177:                                              ; preds = %169
  %178 = invoke noundef ptr @_ZNK7R3Scene4NodeEi(ptr noundef nonnull align 8 dereferenceable(352) %0, i32 noundef %.088)
          to label %179 unwind label %175

179:                                              ; preds = %177
  %180 = invoke noundef ptr @_ZN7RNArrayIP11R3SceneNodeE6InsertES1_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef %178)
          to label %181 unwind label %175

181:                                              ; preds = %179
  %182 = add nuw nsw i32 %.088, 1
  br label %.preheader170, !llvm.loop !20

._crit_edge215:                                   ; preds = %194, %.preheader
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #13
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #13
  br label %200

.lr.ph214:                                        ; preds = %.preheader, %194
  %.087213 = phi i32 [ %195, %194 ], [ 0, %.preheader ]
  %183 = invoke noundef ptr @_ZNK7RNArrayIP11R3SceneNodeE3KthEi(ptr noundef nonnull align 8 dereferenceable(16) %9, i32 noundef %.087213)
          to label %184 unwind label %187

184:                                              ; preds = %.lr.ph214
  %185 = invoke noundef ptr @_ZNK11R3SceneNode4InfoEPKc(ptr noundef nonnull align 8 dereferenceable(432) %183, ptr noundef nonnull @.str.216)
          to label %186 unwind label %189

186:                                              ; preds = %184
  %.not131 = icmp eq ptr %185, null
  br i1 %.not131, label %194, label %191

187:                                              ; preds = %.lr.ph214
  %188 = landingpad { ptr, i32 }
          cleanup
  br label %198

189:                                              ; preds = %184
  %190 = landingpad { ptr, i32 }
          cleanup
  br label %198

191:                                              ; preds = %186
  %192 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %185, ptr noundef nonnull dereferenceable(1) @.str.74) #14
  %.not132 = icmp eq i32 %192, 0
  br i1 %.not132, label %193, label %194

193:                                              ; preds = %191
  call void @_ZN11R3SceneNodeD1Ev(ptr noundef nonnull align 8 dereferenceable(432) %183) #13
  call void @_ZdlPvm(ptr noundef %183, i64 noundef 432) #15
  br label %194

194:                                              ; preds = %191, %186, %193
  %195 = add nuw nsw i32 %.087213, 1
  %196 = call noundef i32 @_ZNK8RNVArray8NEntriesEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
  %197 = icmp slt i32 %195, %196
  br i1 %197, label %.lr.ph214, label %._crit_edge215, !llvm.loop !21

198:                                              ; preds = %187, %189, %175
  %.pn133 = phi { ptr, i32 } [ %176, %175 ], [ %190, %189 ], [ %188, %187 ]
  call void @_ZN8RNVArrayD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #13
  br label %199

199:                                              ; preds = %198, %173
  %.pn133.pn = phi { ptr, i32 } [ %.pn133, %198 ], [ %174, %173 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #13
  br label %201

200:                                              ; preds = %.thread168, %._crit_edge215
  %.2 = phi i32 [ 1, %._crit_edge215 ], [ 0, %.thread168 ]
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %5) #13
  br label %202

201:                                              ; preds = %199, %166
  %.pn156.pn.pn = phi { ptr, i32 } [ %.pn156.pn, %166 ], [ %.pn133.pn, %199 ]
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %5) #13
  br label %203

202:                                              ; preds = %200, %._crit_edge
  %.3 = phi i32 [ 0, %._crit_edge ], [ %.2, %200 ]
  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 4096, ptr nonnull %3) #13
  br label %204

203:                                              ; preds = %26, %201, %22
  %.pn161 = phi { ptr, i32 } [ %23, %22 ], [ %.pn156.pn.pn, %201 ], [ %27, %26 ]
  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 4096, ptr nonnull %3) #13
  resume { ptr, i32 } %.pn161

204:                                              ; preds = %202, %11
  %.4 = phi i32 [ %.3, %202 ], [ 0, %11 ]
  ret i32 %.4
}

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK11R3SceneNode11NReferencesEv(ptr noundef nonnull align 8 dereferenceable(432)) local_unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK16R3SceneReference15ReferencedSceneEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZNK11R3SceneNode4InfoEPKc(ptr noundef nonnull align 8 dereferenceable(432), ptr noundef) local_unnamed_addr #3 align 2

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { "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(argmem: readwrite) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { mustprogress nofree nounwind willreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #11 = { nounwind "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 = { cold nounwind }
attributes #13 = { nounwind }
attributes #14 = { nounwind willreturn memory(read) }
attributes #15 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10}


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