; LLVM IR from Dovyski/opengl-demos :: src/model-md2/md2.ll (ZN9CMD2Model9LoadModelEPKc)

; 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.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%struct.md2_t = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%class.CMD2Model = type <{ i32, i32, i32, [4 x i8], ptr, ptr, ptr, i32, %struct.animState_t, float, [4 x i8] }>
%struct.animState_t = type { i32, i32, i32, float, float, float, i32, i32, i32 }
%struct.frame_t = type { [3 x float], [3 x float], [16 x i8], [1 x %struct.vertex_t] }
%struct.vertex_t = type { [3 x i8], i8 }

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN9CMD2Model9LoadModelEPKc(ptr noundef nonnull align 8 dereferenceable(84) %0, ptr noundef %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::basic_ifstream", align 8
  %7 = alloca %struct.md2_t, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %17 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 520, ptr %6) #8
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256) %6)
  call void @llvm.lifetime.start.p0(i64 68, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = invoke noundef i32 @_ZStorSt13_Ios_OpenmodeS_(i32 noundef 8, i32 noundef 4)
          to label %20 unwind label %29

20:                                               ; preds = %2
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %6, ptr noundef %18, i32 noundef %19)
          to label %21 unwind label %29

21:                                               ; preds = %20
  %22 = load ptr, ptr %6, align 8, !tbaa !9
  %23 = getelementptr i8, ptr %22, i64 -24
  %24 = load i64, ptr %23, align 8
  %25 = getelementptr inbounds i8, ptr %6, i64 %24
  %26 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4failEv(ptr noundef nonnull align 8 dereferenceable(264) %25)
          to label %27 unwind label %29

27:                                               ; preds = %21
  br i1 %26, label %28, label %33

28:                                               ; preds = %27
  store i1 false, ptr %3, align 1
  store i32 1, ptr %14, align 4
  br label %261

29:                                               ; preds = %259, %118, %113, %104, %99, %90, %77, %67, %45, %43, %33, %21, %20, %2
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %12, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 68, ptr %7) #8
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %6) #8
  call void @llvm.lifetime.end.p0(i64 520, ptr %6) #8
  br label %263

33:                                               ; preds = %27
  %34 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef %7, i64 noundef 68)
          to label %35 unwind label %29

35:                                               ; preds = %33
  %36 = getelementptr inbounds %struct.md2_t, ptr %7, i32 0, i32 0
  %37 = load i32, ptr %36, align 4, !tbaa !11
  %38 = icmp ne i32 %37, 844121161
  br i1 %38, label %39, label %45

39:                                               ; preds = %35
  %40 = getelementptr inbounds %struct.md2_t, ptr %7, i32 0, i32 1
  %41 = load i32, ptr %40, align 4, !tbaa !14
  %42 = icmp ne i32 %41, 8
  br i1 %42, label %43, label %45

43:                                               ; preds = %39
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256) %6)
          to label %44 unwind label %29

44:                                               ; preds = %43
  store i1 false, ptr %3, align 1
  store i32 1, ptr %14, align 4
  br label %261

45:                                               ; preds = %39, %35
  %46 = getelementptr inbounds %struct.md2_t, ptr %7, i32 0, i32 10
  %47 = load i32, ptr %46, align 4, !tbaa !15
  %48 = getelementptr inbounds %class.CMD2Model, ptr %17, i32 0, i32 0
  store i32 %47, ptr %48, align 8, !tbaa !16
  %49 = getelementptr inbounds %struct.md2_t, ptr %7, i32 0, i32 6
  %50 = load i32, ptr %49, align 4, !tbaa !20
  %51 = getelementptr inbounds %class.CMD2Model, ptr %17, i32 0, i32 1
  store i32 %50, ptr %51, align 4, !tbaa !21
  %52 = getelementptr inbounds %struct.md2_t, ptr %7, i32 0, i32 9
  %53 = load i32, ptr %52, align 4, !tbaa !22
  %54 = getelementptr inbounds %class.CMD2Model, ptr %17, i32 0, i32 2
  store i32 %53, ptr %54, align 8, !tbaa !23
  %55 = getelementptr inbounds %class.CMD2Model, ptr %17, i32 0, i32 1
  %56 = load i32, ptr %55, align 4, !tbaa !21
  %57 = getelementptr inbounds %class.CMD2Model, ptr %17, i32 0, i32 0
  %58 = load i32, ptr %57, align 8, !tbaa !16
  %59 = mul nsw i32 %56, %58
  %60 = sext i32 %59 to i64
  %61 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %60, i64 12)
  %62 = extractvalue { i64, i1 } %61, 1
  %63 = extractvalue { i64, i1 } %61, 0
  %64 = mul i64 %60, 3
  %65 = select i1 %62, i64 -1, i64 %63
  %66 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %65) #9
          to label %67 unwind label %29

67:                                               ; preds = %45
  %68 = getelementptr inbounds %class.CMD2Model, ptr %17, i32 0, i32 4
  store ptr %66, ptr %68, align 8, !tbaa !24
  %69 = getelementptr inbounds %class.CMD2Model, ptr %17, i32 0, i32 2
  %70 = load i32, ptr %69, align 8, !tbaa !23
  %71 = sext i32 %70 to i64
  %72 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %71, i64 4)
  %73 = extractvalue { i64, i1 } %72, 1
  %74 = extractvalue { i64, i1 } %72, 0
  %75 = select i1 %73, i64 -1, i64 %74
  %76 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %75) #9
          to label %77 unwind label %29

77:                                               ; preds = %67
  %78 = getelementptr inbounds %class.CMD2Model, ptr %17, i32 0, i32 5
  store ptr %76, ptr %78, align 8, !tbaa !25
  %79 = getelementptr inbounds %class.CMD2Model, ptr %17, i32 0, i32 1
  %80 = load i32, ptr %79, align 4, !tbaa !21
  %81 = getelementptr inbounds %class.CMD2Model, ptr %17, i32 0, i32 0
  %82 = load i32, ptr %81, align 8, !tbaa !16
  %83 = mul nsw i32 %80, %82
  %84 = sext i32 %83 to i64
  %85 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %84, i64 4)
  %86 = extractvalue { i64, i1 } %85, 1
  %87 = extractvalue { i64, i1 } %85, 0
  %88 = select i1 %86, i64 -1, i64 %87
  %89 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %88) #9
          to label %90 unwind label %29

90:                                               ; preds = %77
  %91 = getelementptr inbounds %class.CMD2Model, ptr %17, i32 0, i32 6
  store ptr %89, ptr %91, align 8, !tbaa !26
  %92 = getelementptr inbounds %class.CMD2Model, ptr %17, i32 0, i32 0
  %93 = load i32, ptr %92, align 8, !tbaa !16
  %94 = getelementptr inbounds %struct.md2_t, ptr %7, i32 0, i32 4
  %95 = load i32, ptr %94, align 4, !tbaa !27
  %96 = mul nsw i32 %93, %95
  %97 = sext i32 %96 to i64
  %98 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %97) #9
          to label %99 unwind label %29

99:                                               ; preds = %90
  store ptr %98, ptr %8, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.md2_t, ptr %7, i32 0, i32 14
  %101 = load i32, ptr %100, align 4, !tbaa !28
  %102 = sext i32 %101 to i64
  %103 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi5seekgElSt12_Ios_Seekdir(ptr noundef nonnull align 8 dereferenceable(16) %6, i64 noundef %102, i32 noundef 0)
          to label %104 unwind label %29

104:                                              ; preds = %99
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = getelementptr inbounds %class.CMD2Model, ptr %17, i32 0, i32 0
  %107 = load i32, ptr %106, align 8, !tbaa !16
  %108 = getelementptr inbounds %struct.md2_t, ptr %7, i32 0, i32 4
  %109 = load i32, ptr %108, align 4, !tbaa !27
  %110 = mul nsw i32 %107, %109
  %111 = sext i32 %110 to i64
  %112 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef %105, i64 noundef %111)
          to label %113 unwind label %29

113:                                              ; preds = %104
  %114 = getelementptr inbounds %struct.md2_t, ptr %7, i32 0, i32 15
  %115 = load i32, ptr %114, align 4, !tbaa !29
  %116 = sext i32 %115 to i64
  %117 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi5seekgElSt12_Ios_Seekdir(ptr noundef nonnull align 8 dereferenceable(16) %6, i64 noundef %116, i32 noundef 0)
          to label %118 unwind label %29

118:                                              ; preds = %113
  %119 = getelementptr inbounds %class.CMD2Model, ptr %17, i32 0, i32 5
  %120 = load ptr, ptr %119, align 8, !tbaa !25
  %121 = getelementptr inbounds %class.CMD2Model, ptr %17, i32 0, i32 2
  %122 = load i32, ptr %121, align 8, !tbaa !23
  %123 = sext i32 %122 to i64
  %124 = mul i64 %123, 4
  %125 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef %120, i64 noundef %124)
          to label %126 unwind label %29

126:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !30
  br label %127

127:                                              ; preds = %252, %126
  %128 = load i32, ptr %15, align 4, !tbaa !30
  %129 = getelementptr inbounds %class.CMD2Model, ptr %17, i32 0, i32 0
  %130 = load i32, ptr %129, align 8, !tbaa !16
  %131 = icmp slt i32 %128, %130
  br i1 %131, label %133, label %132

132:                                              ; preds = %127
  store i32 2, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %255

133:                                              ; preds = %127
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.md2_t, ptr %7, i32 0, i32 4
  %136 = load i32, ptr %135, align 4, !tbaa !27
  %137 = load i32, ptr %15, align 4, !tbaa !30
  %138 = mul nsw i32 %136, %137
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds i8, ptr %134, i64 %139
  store ptr %140, ptr %9, align 8, !tbaa !5
  %141 = getelementptr inbounds %class.CMD2Model, ptr %17, i32 0, i32 4
  %142 = load ptr, ptr %141, align 8, !tbaa !24
  %143 = getelementptr inbounds %class.CMD2Model, ptr %17, i32 0, i32 1
  %144 = load i32, ptr %143, align 4, !tbaa !21
  %145 = load i32, ptr %15, align 4, !tbaa !30
  %146 = mul nsw i32 %144, %145
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [3 x float], ptr %142, i64 %147
  store ptr %148, ptr %10, align 8, !tbaa !5
  %149 = getelementptr inbounds %class.CMD2Model, ptr %17, i32 0, i32 6
  %150 = load ptr, ptr %149, align 8, !tbaa !26
  %151 = getelementptr inbounds %class.CMD2Model, ptr %17, i32 0, i32 1
  %152 = load i32, ptr %151, align 4, !tbaa !21
  %153 = load i32, ptr %15, align 4, !tbaa !30
  %154 = mul nsw i32 %152, %153
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds i32, ptr %150, i64 %155
  store ptr %156, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 0, ptr %16, align 4, !tbaa !30
  br label %157

157:                                              ; preds = %248, %133
  %158 = load i32, ptr %16, align 4, !tbaa !30
  %159 = getelementptr inbounds %class.CMD2Model, ptr %17, i32 0, i32 1
  %160 = load i32, ptr %159, align 4, !tbaa !21
  %161 = icmp slt i32 %158, %160
  br i1 %161, label %163, label %162

162:                                              ; preds = %157
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %251

163:                                              ; preds = %157
  %164 = load ptr, ptr %9, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.frame_t, ptr %164, i32 0, i32 3
  %166 = load i32, ptr %16, align 4, !tbaa !30
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [1 x %struct.vertex_t], ptr %165, i64 0, i64 %167
  %169 = getelementptr inbounds %struct.vertex_t, ptr %168, i32 0, i32 0
  %170 = getelementptr inbounds [3 x i8], ptr %169, i64 0, i64 0
  %171 = load i8, ptr %170, align 4, !tbaa !31
  %172 = zext i8 %171 to i32
  %173 = sitofp i32 %172 to float
  %174 = load ptr, ptr %9, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.frame_t, ptr %174, i32 0, i32 0
  %176 = getelementptr inbounds [3 x float], ptr %175, i64 0, i64 0
  %177 = load float, ptr %176, align 4, !tbaa !32
  %178 = load ptr, ptr %9, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.frame_t, ptr %178, i32 0, i32 1
  %180 = getelementptr inbounds [3 x float], ptr %179, i64 0, i64 0
  %181 = load float, ptr %180, align 4, !tbaa !32
  %182 = call float @llvm.fmuladd.f32(float %173, float %177, float %181)
  %183 = load ptr, ptr %10, align 8, !tbaa !5
  %184 = load i32, ptr %16, align 4, !tbaa !30
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds [3 x float], ptr %183, i64 %185
  %187 = getelementptr inbounds [3 x float], ptr %186, i64 0, i64 0
  store float %182, ptr %187, align 4, !tbaa !32
  %188 = load ptr, ptr %9, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.frame_t, ptr %188, i32 0, i32 3
  %190 = load i32, ptr %16, align 4, !tbaa !30
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [1 x %struct.vertex_t], ptr %189, i64 0, i64 %191
  %193 = getelementptr inbounds %struct.vertex_t, ptr %192, i32 0, i32 0
  %194 = getelementptr inbounds [3 x i8], ptr %193, i64 0, i64 1
  %195 = load i8, ptr %194, align 1, !tbaa !31
  %196 = zext i8 %195 to i32
  %197 = sitofp i32 %196 to float
  %198 = load ptr, ptr %9, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.frame_t, ptr %198, i32 0, i32 0
  %200 = getelementptr inbounds [3 x float], ptr %199, i64 0, i64 1
  %201 = load float, ptr %200, align 4, !tbaa !32
  %202 = load ptr, ptr %9, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.frame_t, ptr %202, i32 0, i32 1
  %204 = getelementptr inbounds [3 x float], ptr %203, i64 0, i64 1
  %205 = load float, ptr %204, align 4, !tbaa !32
  %206 = call float @llvm.fmuladd.f32(float %197, float %201, float %205)
  %207 = load ptr, ptr %10, align 8, !tbaa !5
  %208 = load i32, ptr %16, align 4, !tbaa !30
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds [3 x float], ptr %207, i64 %209
  %211 = getelementptr inbounds [3 x float], ptr %210, i64 0, i64 1
  store float %206, ptr %211, align 4, !tbaa !32
  %212 = load ptr, ptr %9, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.frame_t, ptr %212, i32 0, i32 3
  %214 = load i32, ptr %16, align 4, !tbaa !30
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds [1 x %struct.vertex_t], ptr %213, i64 0, i64 %215
  %217 = getelementptr inbounds %struct.vertex_t, ptr %216, i32 0, i32 0
  %218 = getelementptr inbounds [3 x i8], ptr %217, i64 0, i64 2
  %219 = load i8, ptr %218, align 2, !tbaa !31
  %220 = zext i8 %219 to i32
  %221 = sitofp i32 %220 to float
  %222 = load ptr, ptr %9, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.frame_t, ptr %222, i32 0, i32 0
  %224 = getelementptr inbounds [3 x float], ptr %223, i64 0, i64 2
  %225 = load float, ptr %224, align 4, !tbaa !32
  %226 = load ptr, ptr %9, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.frame_t, ptr %226, i32 0, i32 1
  %228 = getelementptr inbounds [3 x float], ptr %227, i64 0, i64 2
  %229 = load float, ptr %228, align 4, !tbaa !32
  %230 = call float @llvm.fmuladd.f32(float %221, float %225, float %229)
  %231 = load ptr, ptr %10, align 8, !tbaa !5
  %232 = load i32, ptr %16, align 4, !tbaa !30
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [3 x float], ptr %231, i64 %233
  %235 = getelementptr inbounds [3 x float], ptr %234, i64 0, i64 2
  store float %230, ptr %235, align 4, !tbaa !32
  %236 = load ptr, ptr %9, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.frame_t, ptr %236, i32 0, i32 3
  %238 = load i32, ptr %16, align 4, !tbaa !30
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds [1 x %struct.vertex_t], ptr %237, i64 0, i64 %239
  %241 = getelementptr inbounds %struct.vertex_t, ptr %240, i32 0, i32 1
  %242 = load i8, ptr %241, align 1, !tbaa !33
  %243 = zext i8 %242 to i32
  %244 = load ptr, ptr %11, align 8, !tbaa !5
  %245 = load i32, ptr %16, align 4, !tbaa !30
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds i32, ptr %244, i64 %246
  store i32 %243, ptr %247, align 4, !tbaa !30
  br label %248

248:                                              ; preds = %163
  %249 = load i32, ptr %16, align 4, !tbaa !30
  %250 = add nsw i32 %249, 1
  store i32 %250, ptr %16, align 4, !tbaa !30
  br label %157, !llvm.loop !35

251:                                              ; preds = %162
  br label %252

252:                                              ; preds = %251
  %253 = load i32, ptr %15, align 4, !tbaa !30
  %254 = add nsw i32 %253, 1
  store i32 %254, ptr %15, align 4, !tbaa !30
  br label %127, !llvm.loop !37

255:                                              ; preds = %132
  %256 = load ptr, ptr %8, align 8, !tbaa !5
  %257 = icmp eq ptr %256, null
  br i1 %257, label %259, label %258

258:                                              ; preds = %255
  call void @_ZdaPv(ptr noundef %256) #10
  br label %259

259:                                              ; preds = %258, %255
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256) %6)
          to label %260 unwind label %29

260:                                              ; preds = %259
  store i1 true, ptr %3, align 1
  store i32 1, ptr %14, align 4
  br label %261

261:                                              ; preds = %260, %44, %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 68, ptr %7) #8
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %6) #8
  call void @llvm.lifetime.end.p0(i64 520, ptr %6) #8
  %262 = load i1, ptr %3, align 1
  ret i1 %262

263:                                              ; preds = %29
  %264 = load ptr, ptr %12, align 8
  %265 = load i32, ptr %13, align 4
  %266 = insertvalue { ptr, i32 } poison, ptr %264, 0
  %267 = insertvalue { ptr, i32 } %266, i32 %265, 1
  resume { ptr, i32 } %267
}

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZStorSt13_Ios_OpenmodeS_(i32 noundef, i32 noundef) #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4failEv(ptr noundef nonnull align 8 dereferenceable(264)) #1 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) #4

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256)) #1 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #5

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi5seekgElSt12_Ios_Seekdir(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i32 noundef) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #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 nounwind uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #7 align 2

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTS5md2_t", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !13, i64 56, !13, i64 60, !13, i64 64}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !13, i64 4}
!15 = !{!12, !13, i64 40}
!16 = !{!17, !13, i64 0}
!17 = !{!"_ZTS9CMD2Model", !13, i64 0, !13, i64 4, !13, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !13, i64 40, !18, i64 44, !19, i64 80}
!18 = !{!"_ZTS11animState_t", !13, i64 0, !13, i64 4, !13, i64 8, !19, i64 12, !19, i64 16, !19, i64 20, !13, i64 24, !13, i64 28, !13, i64 32}
!19 = !{!"float", !7, i64 0}
!20 = !{!12, !13, i64 24}
!21 = !{!17, !13, i64 4}
!22 = !{!12, !13, i64 36}
!23 = !{!17, !13, i64 8}
!24 = !{!17, !6, i64 16}
!25 = !{!17, !6, i64 24}
!26 = !{!17, !6, i64 32}
!27 = !{!12, !13, i64 16}
!28 = !{!12, !13, i64 56}
!29 = !{!12, !13, i64 60}
!30 = !{!13, !13, i64 0}
!31 = !{!7, !7, i64 0}
!32 = !{!19, !19, i64 0}
!33 = !{!34, !7, i64 3}
!34 = !{!"_ZTS8vertex_t", !7, i64 0, !7, i64 3}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = distinct !{!37, !36}


; 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.std::basic_ifstream" = type { %"class.std::basic_istream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon }
%union.anon = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%struct.md2_t = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.vertex_t = type { [3 x i8], i8 }

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN9CMD2Model9LoadModelEPKc(ptr nocapture noundef nonnull align 8 dereferenceable(84) %0, ptr noundef %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::basic_ifstream", align 8
  %4 = alloca %struct.md2_t, align 4
  call void @llvm.lifetime.start.p0(i64 520, ptr nonnull %3) #8
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256) %3)
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %4) #8
  %5 = call noundef i32 @_ZStorSt13_Ios_OpenmodeS_(i32 noundef 8, i32 noundef 4)
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256) %3, ptr noundef %1, i32 noundef %5)
          to label %6 unwind label %13

6:                                                ; preds = %2
  %7 = load ptr, ptr %3, align 8, !tbaa !5
  %8 = getelementptr i8, ptr %7, i64 -24
  %9 = load i64, ptr %8, align 8
  %10 = getelementptr inbounds i8, ptr %3, i64 %9
  %11 = invoke noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4failEv(ptr noundef nonnull align 8 dereferenceable(264) %10)
          to label %12 unwind label %13

12:                                               ; preds = %6
  br i1 %11, label %138, label %15

13:                                               ; preds = %._crit_edge43, %76, %71, %65, %60, %53, %47, %40, %24, %23, %15, %6, %2
  %14 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %4) #8
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %3) #8
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %3) #8
  resume { ptr, i32 } %14

15:                                               ; preds = %12
  %16 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull %4, i64 noundef 68)
          to label %17 unwind label %13

17:                                               ; preds = %15
  %18 = load i32, ptr %4, align 4, !tbaa !8
  %19 = icmp ne i32 %18, 844121161
  %20 = getelementptr inbounds i8, ptr %4, i64 4
  %21 = load i32, ptr %20, align 4
  %22 = icmp ne i32 %21, 8
  %or.cond = select i1 %19, i1 %22, i1 false
  br i1 %or.cond, label %23, label %24

23:                                               ; preds = %17
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256) %3)
          to label %138 unwind label %13

24:                                               ; preds = %17
  %25 = getelementptr inbounds i8, ptr %4, i64 40
  %26 = load i32, ptr %25, align 4, !tbaa !12
  store i32 %26, ptr %0, align 8, !tbaa !13
  %27 = getelementptr inbounds i8, ptr %4, i64 24
  %28 = load i32, ptr %27, align 4, !tbaa !18
  %29 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 %28, ptr %29, align 4, !tbaa !19
  %30 = getelementptr inbounds i8, ptr %4, i64 36
  %31 = load i32, ptr %30, align 4, !tbaa !20
  %32 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %31, ptr %32, align 8, !tbaa !21
  %33 = mul nsw i32 %28, %26
  %34 = sext i32 %33 to i64
  %35 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %34, i64 12)
  %36 = extractvalue { i64, i1 } %35, 1
  %37 = extractvalue { i64, i1 } %35, 0
  %38 = select i1 %36, i64 -1, i64 %37
  %39 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %38) #9
          to label %40 unwind label %13

40:                                               ; preds = %24
  %41 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %39, ptr %41, align 8, !tbaa !22
  %42 = sext i32 %31 to i64
  %43 = icmp slt i32 %31, 0
  %44 = shl nsw i64 %42, 2
  %45 = select i1 %43, i64 -1, i64 %44
  %46 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %45) #9
          to label %47 unwind label %13

47:                                               ; preds = %40
  %48 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %46, ptr %48, align 8, !tbaa !23
  %49 = icmp slt i32 %33, 0
  %50 = shl nsw i64 %34, 2
  %51 = select i1 %49, i64 -1, i64 %50
  %52 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %51) #9
          to label %53 unwind label %13

53:                                               ; preds = %47
  %54 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %52, ptr %54, align 8, !tbaa !24
  %55 = getelementptr inbounds i8, ptr %4, i64 16
  %56 = load i32, ptr %55, align 4, !tbaa !25
  %57 = mul nsw i32 %56, %26
  %58 = sext i32 %57 to i64
  %59 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %58) #9
          to label %60 unwind label %13

60:                                               ; preds = %53
  %61 = getelementptr inbounds i8, ptr %4, i64 56
  %62 = load i32, ptr %61, align 4, !tbaa !26
  %63 = sext i32 %62 to i64
  %64 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi5seekgElSt12_Ios_Seekdir(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %63, i32 noundef 0)
          to label %65 unwind label %13

65:                                               ; preds = %60
  %66 = load i32, ptr %0, align 8, !tbaa !13
  %67 = load i32, ptr %55, align 4, !tbaa !25
  %68 = mul nsw i32 %67, %66
  %69 = sext i32 %68 to i64
  %70 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull %59, i64 noundef %69)
          to label %71 unwind label %13

71:                                               ; preds = %65
  %72 = getelementptr inbounds i8, ptr %4, i64 60
  %73 = load i32, ptr %72, align 4, !tbaa !27
  %74 = sext i32 %73 to i64
  %75 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi5seekgElSt12_Ios_Seekdir(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %74, i32 noundef 0)
          to label %76 unwind label %13

76:                                               ; preds = %71
  %77 = load ptr, ptr %48, align 8, !tbaa !23
  %78 = load i32, ptr %32, align 8, !tbaa !21
  %79 = sext i32 %78 to i64
  %80 = shl nsw i64 %79, 2
  %81 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef %77, i64 noundef %80)
          to label %.preheader unwind label %13

.preheader:                                       ; preds = %76
  %82 = load i32, ptr %0, align 8, !tbaa !13
  %83 = icmp sgt i32 %82, 0
  br i1 %83, label %.lr.ph42, label %._crit_edge43

.lr.ph42:                                         ; preds = %.preheader
  %84 = load ptr, ptr %41, align 8, !tbaa !22
  %85 = load ptr, ptr %54, align 8, !tbaa !24
  %86 = load i32, ptr %29, align 4, !tbaa !19
  %87 = icmp sgt i32 %86, 0
  br i1 %87, label %.lr.ph42.split, label %._crit_edge43

.lr.ph42.split:                                   ; preds = %.lr.ph42, %._crit_edge
  %88 = phi i32 [ %105, %._crit_edge ], [ %82, %.lr.ph42 ]
  %89 = phi i32 [ %106, %._crit_edge ], [ %86, %.lr.ph42 ]
  %.03841 = phi i32 [ %107, %._crit_edge ], [ 0, %.lr.ph42 ]
  %90 = load i32, ptr %55, align 4, !tbaa !25
  %91 = mul nsw i32 %90, %.03841
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds i8, ptr %59, i64 %92
  %94 = mul nsw i32 %89, %.03841
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [3 x float], ptr %84, i64 %95
  %97 = getelementptr inbounds i32, ptr %85, i64 %95
  %98 = icmp sgt i32 %89, 0
  br i1 %98, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph42.split
  %99 = getelementptr inbounds i8, ptr %93, i64 40
  %100 = getelementptr inbounds i8, ptr %93, i64 12
  %101 = getelementptr inbounds i8, ptr %93, i64 4
  %102 = getelementptr inbounds i8, ptr %93, i64 16
  %103 = getelementptr inbounds i8, ptr %93, i64 8
  %104 = getelementptr inbounds i8, ptr %93, i64 20
  br label %109

._crit_edge.loopexit:                             ; preds = %109
  %.pre = load i32, ptr %0, align 8, !tbaa !13
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph42.split
  %105 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %88, %.lr.ph42.split ]
  %106 = phi i32 [ %135, %._crit_edge.loopexit ], [ %89, %.lr.ph42.split ]
  %107 = add nuw nsw i32 %.03841, 1
  %108 = icmp slt i32 %107, %105
  br i1 %108, label %.lr.ph42.split, label %._crit_edge43, !llvm.loop !28

109:                                              ; preds = %.lr.ph, %109
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %109 ]
  %110 = getelementptr inbounds [1 x %struct.vertex_t], ptr %99, i64 0, i64 %indvars.iv
  %111 = load i8, ptr %110, align 4, !tbaa !31
  %112 = uitofp i8 %111 to float
  %113 = load float, ptr %93, align 4, !tbaa !32
  %114 = load float, ptr %100, align 4, !tbaa !32
  %115 = call float @llvm.fmuladd.f32(float %112, float %113, float %114)
  %116 = getelementptr inbounds [3 x float], ptr %96, i64 %indvars.iv
  store float %115, ptr %116, align 4, !tbaa !32
  %117 = getelementptr inbounds i8, ptr %110, i64 1
  %118 = load i8, ptr %117, align 1, !tbaa !31
  %119 = uitofp i8 %118 to float
  %120 = load float, ptr %101, align 4, !tbaa !32
  %121 = load float, ptr %102, align 4, !tbaa !32
  %122 = call float @llvm.fmuladd.f32(float %119, float %120, float %121)
  %123 = getelementptr inbounds i8, ptr %116, i64 4
  store float %122, ptr %123, align 4, !tbaa !32
  %124 = getelementptr inbounds i8, ptr %110, i64 2
  %125 = load i8, ptr %124, align 2, !tbaa !31
  %126 = uitofp i8 %125 to float
  %127 = load float, ptr %103, align 4, !tbaa !32
  %128 = load float, ptr %104, align 4, !tbaa !32
  %129 = call float @llvm.fmuladd.f32(float %126, float %127, float %128)
  %130 = getelementptr inbounds i8, ptr %116, i64 8
  store float %129, ptr %130, align 4, !tbaa !32
  %131 = getelementptr inbounds i8, ptr %110, i64 3
  %132 = load i8, ptr %131, align 1, !tbaa !33
  %133 = zext i8 %132 to i32
  %134 = getelementptr inbounds i32, ptr %97, i64 %indvars.iv
  store i32 %133, ptr %134, align 4, !tbaa !35
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %135 = load i32, ptr %29, align 4, !tbaa !19
  %136 = sext i32 %135 to i64
  %137 = icmp slt i64 %indvars.iv.next, %136
  br i1 %137, label %109, label %._crit_edge.loopexit, !llvm.loop !36

._crit_edge43:                                    ; preds = %._crit_edge, %.lr.ph42, %.preheader
  call void @_ZdaPv(ptr noundef nonnull %59) #10
  invoke void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256) %3)
          to label %138 unwind label %13

138:                                              ; preds = %._crit_edge43, %23, %12
  %.039 = phi i1 [ false, %12 ], [ false, %23 ], [ true, %._crit_edge43 ]
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %4) #8
  call void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256) %3) #8
  call void @llvm.lifetime.end.p0(i64 520, ptr nonnull %3) #8
  ret i1 %.039
}

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE4openEPKcSt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZStorSt13_Ios_OpenmodeS_(i32 noundef, i32 noundef) local_unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEE4failEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #1 align 2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi4readEPcl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #5

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSi5seekgElSt12_Ios_Seekdir(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #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 nounwind uwtable
declare void @_ZNSt14basic_ifstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(256)) unnamed_addr #7 align 2

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 0}
!9 = !{!"_ZTS5md2_t", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !7, i64 0}
!12 = !{!9, !10, i64 40}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTS9CMD2Model", !10, i64 0, !10, i64 4, !10, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !10, i64 40, !16, i64 44, !17, i64 80}
!15 = !{!"any pointer", !11, i64 0}
!16 = !{!"_ZTS11animState_t", !10, i64 0, !10, i64 4, !10, i64 8, !17, i64 12, !17, i64 16, !17, i64 20, !10, i64 24, !10, i64 28, !10, i64 32}
!17 = !{!"float", !11, i64 0}
!18 = !{!9, !10, i64 24}
!19 = !{!14, !10, i64 4}
!20 = !{!9, !10, i64 36}
!21 = !{!14, !10, i64 8}
!22 = !{!14, !15, i64 16}
!23 = !{!14, !15, i64 24}
!24 = !{!14, !15, i64 32}
!25 = !{!9, !10, i64 16}
!26 = !{!9, !10, i64 56}
!27 = !{!9, !10, i64 60}
!28 = distinct !{!28, !29, !30}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!"llvm.loop.unswitch.partial.disable"}
!31 = !{!11, !11, i64 0}
!32 = !{!17, !17, i64 0}
!33 = !{!34, !11, i64 3}
!34 = !{!"_ZTS8vertex_t", !11, i64 0, !11, i64 3}
!35 = !{!10, !10, i64 0}
!36 = distinct !{!36, !29}


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