; LLVM IR from Overload-Technologies/Overload :: Dependencies/assimp/code/PostProcessing (FindDegenerates)

; 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::vector" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%class.anon = type { i32 }
%"struct.std::_Bit_reference" = type { ptr, i64 }
%struct.aiMesh = type { i32, i32, i32, ptr, ptr, ptr, ptr, [8 x ptr], [8 x ptr], [8 x i32], ptr, i32, ptr, i32, %struct.aiString, i32, ptr, i32, %struct.aiAABB, ptr }
%struct.aiString = type { i32, [1024 x i8] }
%struct.aiAABB = type { %class.aiVector3t, %class.aiVector3t }
%class.aiVector3t = type { float, float, float }
%"class.Assimp::FindDegeneratesProcess" = type <{ %"class.Assimp::BaseProcess", i8, i8, [6 x i8] }>
%"class.Assimp::BaseProcess" = type { ptr, ptr, ptr }
%struct.aiFace = type { i32, ptr }

@.str.4 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1

declare noundef ptr @_ZN6Assimp13DefaultLogger3getEv() #0

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6Assimp22FindDegeneratesProcess13ExecuteOnMeshEP6aiMesh(ptr noundef nonnull align 8 dereferenceable(26) %0, ptr noundef %1) #2 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::vector", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i8, align 1
  %15 = alloca %class.anon, align 4
  %16 = alloca i32, align 4
  %17 = alloca %class.anon, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"struct.std::_Bit_reference", align 8
  %22 = alloca float, align 4
  %23 = alloca %"struct.std::_Bit_reference", align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca %"struct.std::_Bit_reference", align 8
  %28 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %29 = load ptr, ptr %4, align 8
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.aiMesh, ptr %30, i32 0, i32 0
  store i32 0, ptr %31, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr %6) #8
  call void @_ZNSt6vectorIbSaIbEEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #8
  %32 = getelementptr inbounds %"class.Assimp::FindDegeneratesProcess", ptr %29, i32 0, i32 1
  %33 = load i8, ptr %32, align 8, !tbaa !17, !range !21, !noundef !22
  %34 = trunc i8 %33 to i1
  br i1 %34, label %35, label %45

35:                                               ; preds = %2
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.aiMesh, ptr %36, i32 0, i32 2
  %38 = load i32, ptr %37, align 8, !tbaa !23
  %39 = zext i32 %38 to i64
  invoke void @_ZNSt6vectorIbSaIbEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(40) %6, i64 noundef %39, i1 noundef zeroext false)
          to label %40 unwind label %41

40:                                               ; preds = %35
  br label %45

41:                                               ; preds = %35
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %7, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %8, align 4
  br label %425

45:                                               ; preds = %40, %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 0, ptr %9, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !24
  br label %46

46:                                               ; preds = %305, %45
  %47 = load i32, ptr %11, align 4, !tbaa !24
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.aiMesh, ptr %48, i32 0, i32 2
  %50 = load i32, ptr %49, align 8, !tbaa !23
  %51 = icmp ult i32 %47, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %46
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %308

53:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.aiMesh, ptr %54, i32 0, i32 10
  %56 = load ptr, ptr %55, align 8, !tbaa !25
  %57 = load i32, ptr %11, align 4, !tbaa !24
  %58 = zext i32 %57 to i64
  %59 = getelementptr inbounds %struct.aiFace, ptr %56, i64 %58
  store ptr %59, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #8
  store i8 1, ptr %14, align 1, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %60 = getelementptr inbounds %class.anon, ptr %15, i32 0, i32 0
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.aiMesh, ptr %61, i32 0, i32 1
  %63 = load i32, ptr %62, align 4, !tbaa !27
  store i32 %63, ptr %60, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 0, ptr %16, align 4, !tbaa !24
  br label %64

64:                                               ; preds = %272, %53
  %65 = load i32, ptr %16, align 4, !tbaa !24
  %66 = load ptr, ptr %13, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.aiFace, ptr %66, i32 0, i32 0
  %68 = load i32, ptr %67, align 8, !tbaa !30
  %69 = icmp ult i32 %65, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %64
  store i32 5, ptr %12, align 4
  br label %275

71:                                               ; preds = %64
  %72 = load ptr, ptr %13, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.aiFace, ptr %72, i32 0, i32 1
  %74 = load ptr, ptr %73, align 8, !tbaa !32
  %75 = load ptr, ptr %13, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.aiFace, ptr %75, i32 0, i32 1
  %77 = load ptr, ptr %76, align 8, !tbaa !32
  %78 = load ptr, ptr %13, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.aiFace, ptr %78, i32 0, i32 0
  %80 = load i32, ptr %79, align 8, !tbaa !30
  %81 = zext i32 %80 to i64
  %82 = getelementptr inbounds i32, ptr %77, i64 %81
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %15, i64 4, i1 false), !tbaa.struct !33
  %83 = getelementptr inbounds %class.anon, ptr %17, i32 0, i32 0
  %84 = load i32, ptr %83, align 4
  %85 = invoke noundef zeroext i1 @"_ZSt6all_ofIPjZN6Assimp22FindDegeneratesProcess13ExecuteOnMeshEP6aiMeshE3$_0EbT_S6_T0_"(ptr noundef %74, ptr noundef %82, i32 %84)
          to label %86 unwind label %88

86:                                               ; preds = %71
  br i1 %85, label %92, label %87

87:                                               ; preds = %86
  br label %272

88:                                               ; preds = %71
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %7, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %8, align 4
  br label %277

92:                                               ; preds = %86
  %93 = load ptr, ptr %13, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.aiFace, ptr %93, i32 0, i32 0
  %95 = load i32, ptr %94, align 8, !tbaa !30
  store i32 %95, ptr %10, align 4, !tbaa !24
  %96 = load ptr, ptr %13, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.aiFace, ptr %96, i32 0, i32 0
  %98 = load i32, ptr %97, align 8, !tbaa !30
  %99 = icmp ugt i32 %98, 4
  br i1 %99, label %100, label %110

100:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %101 = load i32, ptr %16, align 4, !tbaa !24
  %102 = add i32 %101, 2
  store i32 %102, ptr %18, align 4, !tbaa !24
  %103 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %104 unwind label %106

104:                                              ; preds = %100
  %105 = load i32, ptr %103, align 4, !tbaa !24
  store i32 %105, ptr %10, align 4, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %110

106:                                              ; preds = %100
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %7, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %277

110:                                              ; preds = %104, %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %111 = load i32, ptr %16, align 4, !tbaa !24
  %112 = add i32 %111, 1
  store i32 %112, ptr %19, align 4, !tbaa !24
  br label %113

113:                                              ; preds = %218, %110
  %114 = load i32, ptr %19, align 4, !tbaa !24
  %115 = load i32, ptr %10, align 4, !tbaa !24
  %116 = icmp ult i32 %114, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %113
  store i32 8, ptr %12, align 4
  br label %221

118:                                              ; preds = %113
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.aiMesh, ptr %119, i32 0, i32 3
  %121 = load ptr, ptr %120, align 8, !tbaa !34
  %122 = load ptr, ptr %13, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.aiFace, ptr %122, i32 0, i32 1
  %124 = load ptr, ptr %123, align 8, !tbaa !32
  %125 = load i32, ptr %16, align 4, !tbaa !24
  %126 = zext i32 %125 to i64
  %127 = getelementptr inbounds i32, ptr %124, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !24
  %129 = zext i32 %128 to i64
  %130 = getelementptr inbounds %class.aiVector3t, ptr %121, i64 %129
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.aiMesh, ptr %131, i32 0, i32 3
  %133 = load ptr, ptr %132, align 8, !tbaa !34
  %134 = load ptr, ptr %13, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.aiFace, ptr %134, i32 0, i32 1
  %136 = load ptr, ptr %135, align 8, !tbaa !32
  %137 = load i32, ptr %19, align 4, !tbaa !24
  %138 = zext i32 %137 to i64
  %139 = getelementptr inbounds i32, ptr %136, i64 %138
  %140 = load i32, ptr %139, align 4, !tbaa !24
  %141 = zext i32 %140 to i64
  %142 = getelementptr inbounds %class.aiVector3t, ptr %133, i64 %141
  %143 = invoke noundef zeroext i1 @_ZNK10aiVector3tIfEeqERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %130, ptr noundef nonnull align 4 dereferenceable(12) %142)
          to label %144 unwind label %160

144:                                              ; preds = %118
  br i1 %143, label %145, label %217

145:                                              ; preds = %144
  %146 = load ptr, ptr %13, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.aiFace, ptr %146, i32 0, i32 0
  %148 = load i32, ptr %147, align 8, !tbaa !30
  %149 = add i32 %148, -1
  store i32 %149, ptr %147, align 8, !tbaa !30
  %150 = load i32, ptr %10, align 4, !tbaa !24
  %151 = add i32 %150, -1
  store i32 %151, ptr %10, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %152 = load i32, ptr %19, align 4, !tbaa !24
  store i32 %152, ptr %20, align 4, !tbaa !24
  br label %153

153:                                              ; preds = %179, %145
  %154 = load i32, ptr %20, align 4, !tbaa !24
  %155 = load ptr, ptr %13, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.aiFace, ptr %155, i32 0, i32 0
  %157 = load i32, ptr %156, align 8, !tbaa !30
  %158 = icmp ult i32 %154, %157
  br i1 %158, label %164, label %159

159:                                              ; preds = %153
  store i32 11, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %182

160:                                              ; preds = %118
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %7, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %8, align 4
  br label %223

164:                                              ; preds = %153
  %165 = load ptr, ptr %13, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.aiFace, ptr %165, i32 0, i32 1
  %167 = load ptr, ptr %166, align 8, !tbaa !32
  %168 = load i32, ptr %20, align 4, !tbaa !24
  %169 = add i32 %168, 1
  %170 = zext i32 %169 to i64
  %171 = getelementptr inbounds i32, ptr %167, i64 %170
  %172 = load i32, ptr %171, align 4, !tbaa !24
  %173 = load ptr, ptr %13, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.aiFace, ptr %173, i32 0, i32 1
  %175 = load ptr, ptr %174, align 8, !tbaa !32
  %176 = load i32, ptr %20, align 4, !tbaa !24
  %177 = zext i32 %176 to i64
  %178 = getelementptr inbounds i32, ptr %175, i64 %177
  store i32 %172, ptr %178, align 4, !tbaa !24
  br label %179

179:                                              ; preds = %164
  %180 = load i32, ptr %20, align 4, !tbaa !24
  %181 = add i32 %180, 1
  store i32 %181, ptr %20, align 4, !tbaa !24
  br label %153, !llvm.loop !35

182:                                              ; preds = %159
  %183 = load i32, ptr %19, align 4, !tbaa !24
  %184 = add i32 %183, -1
  store i32 %184, ptr %19, align 4, !tbaa !24
  %185 = load ptr, ptr %13, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.aiFace, ptr %185, i32 0, i32 1
  %187 = load ptr, ptr %186, align 8, !tbaa !32
  %188 = load ptr, ptr %13, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.aiFace, ptr %188, i32 0, i32 0
  %190 = load i32, ptr %189, align 8, !tbaa !30
  %191 = zext i32 %190 to i64
  %192 = getelementptr inbounds i32, ptr %187, i64 %191
  store i32 -559038737, ptr %192, align 4, !tbaa !24
  %193 = load i8, ptr %14, align 1, !tbaa !26, !range !21, !noundef !22
  %194 = trunc i8 %193 to i1
  br i1 %194, label %195, label %198

195:                                              ; preds = %182
  %196 = load i32, ptr %9, align 4, !tbaa !24
  %197 = add i32 %196, 1
  store i32 %197, ptr %9, align 4, !tbaa !24
  store i8 0, ptr %14, align 1, !tbaa !26
  br label %198

198:                                              ; preds = %195, %182
  %199 = getelementptr inbounds %"class.Assimp::FindDegeneratesProcess", ptr %29, i32 0, i32 1
  %200 = load i8, ptr %199, align 8, !tbaa !17, !range !21, !noundef !22
  %201 = trunc i8 %200 to i1
  br i1 %201, label %202, label %216

202:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #8
  %203 = load i32, ptr %11, align 4, !tbaa !24
  %204 = zext i32 %203 to i64
  %205 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %6, i64 noundef %204)
          to label %206 unwind label %212

206:                                              ; preds = %202
  %207 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 0
  %208 = extractvalue { ptr, i64 } %205, 0
  store ptr %208, ptr %207, align 8
  %209 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 1
  %210 = extractvalue { ptr, i64 } %205, 1
  store i64 %210, ptr %209, align 8
  %211 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %21, i1 noundef zeroext true) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  store i32 14, ptr %12, align 4
  br label %221

212:                                              ; preds = %202
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %7, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #8
  br label %223

216:                                              ; preds = %198
  br label %217

217:                                              ; preds = %216, %144
  br label %218

218:                                              ; preds = %217
  %219 = load i32, ptr %19, align 4, !tbaa !24
  %220 = add i32 %219, 1
  store i32 %220, ptr %19, align 4, !tbaa !24
  br label %113, !llvm.loop !37

221:                                              ; preds = %206, %117
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  %222 = load i32, ptr %12, align 4
  switch i32 %222, label %275 [
    i32 8, label %224
  ]

223:                                              ; preds = %212, %160
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %277

224:                                              ; preds = %221
  %225 = getelementptr inbounds %"class.Assimp::FindDegeneratesProcess", ptr %29, i32 0, i32 2
  %226 = load i8, ptr %225, align 1, !tbaa !38, !range !21, !noundef !22
  %227 = trunc i8 %226 to i1
  br i1 %227, label %228, label %271

228:                                              ; preds = %224
  %229 = load ptr, ptr %13, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.aiFace, ptr %229, i32 0, i32 0
  %231 = load i32, ptr %230, align 8, !tbaa !30
  %232 = icmp eq i32 %231, 3
  br i1 %232, label %233, label %270

233:                                              ; preds = %228
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %234 = load ptr, ptr %13, align 8, !tbaa !5
  %235 = load ptr, ptr %5, align 8, !tbaa !5
  %236 = invoke noundef float @_ZN6Assimp13GeometryUtils23calculateAreaOfTriangleERK6aiFaceP6aiMesh(ptr noundef nonnull align 8 dereferenceable(16) %234, ptr noundef %235)
          to label %237 unwind label %256

237:                                              ; preds = %233
  store float %236, ptr %22, align 4, !tbaa !39
  %238 = load float, ptr %22, align 4, !tbaa !39
  %239 = fcmp olt float %238, 0x3EB0C6F7A0000000
  br i1 %239, label %240, label %265

240:                                              ; preds = %237
  %241 = getelementptr inbounds %"class.Assimp::FindDegeneratesProcess", ptr %29, i32 0, i32 1
  %242 = load i8, ptr %241, align 8, !tbaa !17, !range !21, !noundef !22
  %243 = trunc i8 %242 to i1
  br i1 %243, label %244, label %264

244:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #8
  %245 = load i32, ptr %11, align 4, !tbaa !24
  %246 = zext i32 %245 to i64
  %247 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %6, i64 noundef %246)
          to label %248 unwind label %260

248:                                              ; preds = %244
  %249 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 0
  %250 = extractvalue { ptr, i64 } %247, 0
  store ptr %250, ptr %249, align 8
  %251 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 1
  %252 = extractvalue { ptr, i64 } %247, 1
  store i64 %252, ptr %251, align 8
  %253 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %23, i1 noundef zeroext true) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  %254 = load i32, ptr %9, align 4, !tbaa !24
  %255 = add i32 %254, 1
  store i32 %255, ptr %9, align 4, !tbaa !24
  store i32 14, ptr %12, align 4
  br label %266

256:                                              ; preds = %233
  %257 = landingpad { ptr, i32 }
          cleanup
  %258 = extractvalue { ptr, i32 } %257, 0
  store ptr %258, ptr %7, align 8
  %259 = extractvalue { ptr, i32 } %257, 1
  store i32 %259, ptr %8, align 4
  br label %269

260:                                              ; preds = %244
  %261 = landingpad { ptr, i32 }
          cleanup
  %262 = extractvalue { ptr, i32 } %261, 0
  store ptr %262, ptr %7, align 8
  %263 = extractvalue { ptr, i32 } %261, 1
  store i32 %263, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  br label %269

264:                                              ; preds = %240
  br label %265

265:                                              ; preds = %264, %237
  store i32 0, ptr %12, align 4
  br label %266

266:                                              ; preds = %265, %248
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  %267 = load i32, ptr %12, align 4
  switch i32 %267, label %275 [
    i32 0, label %268
  ]

268:                                              ; preds = %266
  br label %270

269:                                              ; preds = %260, %256
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %277

270:                                              ; preds = %268, %228
  br label %271

271:                                              ; preds = %270, %224
  br label %272

272:                                              ; preds = %271, %87
  %273 = load i32, ptr %16, align 4, !tbaa !24
  %274 = add i32 %273, 1
  store i32 %274, ptr %16, align 4, !tbaa !24
  br label %64, !llvm.loop !40

275:                                              ; preds = %266, %221, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  %276 = load i32, ptr %12, align 4
  switch i32 %276, label %304 [
    i32 5, label %278
    i32 14, label %303
  ]

277:                                              ; preds = %269, %223, %106, %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %424

278:                                              ; preds = %275
  %279 = load ptr, ptr %13, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.aiFace, ptr %279, i32 0, i32 0
  %281 = load i32, ptr %280, align 8, !tbaa !30
  switch i32 %281, label %297 [
    i32 1, label %282
    i32 2, label %287
    i32 3, label %292
  ]

282:                                              ; preds = %278
  %283 = load ptr, ptr %5, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.aiMesh, ptr %283, i32 0, i32 0
  %285 = load i32, ptr %284, align 8, !tbaa !9
  %286 = or i32 %285, 1
  store i32 %286, ptr %284, align 8, !tbaa !9
  br label %302

287:                                              ; preds = %278
  %288 = load ptr, ptr %5, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.aiMesh, ptr %288, i32 0, i32 0
  %290 = load i32, ptr %289, align 8, !tbaa !9
  %291 = or i32 %290, 2
  store i32 %291, ptr %289, align 8, !tbaa !9
  br label %302

292:                                              ; preds = %278
  %293 = load ptr, ptr %5, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.aiMesh, ptr %293, i32 0, i32 0
  %295 = load i32, ptr %294, align 8, !tbaa !9
  %296 = or i32 %295, 4
  store i32 %296, ptr %294, align 8, !tbaa !9
  br label %302

297:                                              ; preds = %278
  %298 = load ptr, ptr %5, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.aiMesh, ptr %298, i32 0, i32 0
  %300 = load i32, ptr %299, align 8, !tbaa !9
  %301 = or i32 %300, 8
  store i32 %301, ptr %299, align 8, !tbaa !9
  br label %302

302:                                              ; preds = %297, %292, %287, %282
  br label %303

303:                                              ; preds = %302, %275
  store i32 4, ptr %12, align 4
  br label %304

304:                                              ; preds = %303, %275
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %305

305:                                              ; preds = %304
  %306 = load i32, ptr %11, align 4, !tbaa !24
  %307 = add i32 %306, 1
  store i32 %307, ptr %11, align 4, !tbaa !24
  br label %46, !llvm.loop !41

308:                                              ; preds = %52
  %309 = getelementptr inbounds %"class.Assimp::FindDegeneratesProcess", ptr %29, i32 0, i32 1
  %310 = load i8, ptr %309, align 8, !tbaa !17, !range !21, !noundef !22
  %311 = trunc i8 %310 to i1
  br i1 %311, label %312, label %407

312:                                              ; preds = %308
  %313 = load i32, ptr %9, align 4, !tbaa !24
  %314 = icmp ne i32 %313, 0
  br i1 %314, label %315, label %407

315:                                              ; preds = %312
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  store i32 0, ptr %24, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 0, ptr %25, align 4, !tbaa !24
  br label %316

316:                                              ; preds = %383, %315
  %317 = load i32, ptr %25, align 4, !tbaa !24
  %318 = load ptr, ptr %5, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.aiMesh, ptr %318, i32 0, i32 2
  %320 = load i32, ptr %319, align 8, !tbaa !23
  %321 = icmp ult i32 %317, %320
  br i1 %321, label %323, label %322

322:                                              ; preds = %316
  store i32 16, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %386

323:                                              ; preds = %316
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %324 = load ptr, ptr %5, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.aiMesh, ptr %324, i32 0, i32 10
  %326 = load ptr, ptr %325, align 8, !tbaa !25
  %327 = load i32, ptr %25, align 4, !tbaa !24
  %328 = zext i32 %327 to i64
  %329 = getelementptr inbounds %struct.aiFace, ptr %326, i64 %328
  store ptr %329, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #8
  %330 = load i32, ptr %25, align 4, !tbaa !24
  %331 = zext i32 %330 to i64
  %332 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %6, i64 noundef %331)
          to label %333 unwind label %366

333:                                              ; preds = %323
  %334 = getelementptr inbounds { ptr, i64 }, ptr %27, i32 0, i32 0
  %335 = extractvalue { ptr, i64 } %332, 0
  store ptr %335, ptr %334, align 8
  %336 = getelementptr inbounds { ptr, i64 }, ptr %27, i32 0, i32 1
  %337 = extractvalue { ptr, i64 } %332, 1
  store i64 %337, ptr %336, align 8
  %338 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %27) #8
  %339 = xor i1 %338, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #8
  br i1 %339, label %340, label %371

340:                                              ; preds = %333
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %341 = load ptr, ptr %5, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct.aiMesh, ptr %341, i32 0, i32 10
  %343 = load ptr, ptr %342, align 8, !tbaa !25
  %344 = load i32, ptr %24, align 4, !tbaa !24
  %345 = add i32 %344, 1
  store i32 %345, ptr %24, align 4, !tbaa !24
  %346 = zext i32 %344 to i64
  %347 = getelementptr inbounds %struct.aiFace, ptr %343, i64 %346
  store ptr %347, ptr %28, align 8, !tbaa !5
  %348 = load ptr, ptr %26, align 8, !tbaa !5
  %349 = getelementptr inbounds %struct.aiFace, ptr %348, i32 0, i32 0
  %350 = load i32, ptr %349, align 8, !tbaa !30
  %351 = load ptr, ptr %28, align 8, !tbaa !5
  %352 = getelementptr inbounds %struct.aiFace, ptr %351, i32 0, i32 0
  store i32 %350, ptr %352, align 8, !tbaa !30
  %353 = load ptr, ptr %26, align 8, !tbaa !5
  %354 = getelementptr inbounds %struct.aiFace, ptr %353, i32 0, i32 1
  %355 = load ptr, ptr %354, align 8, !tbaa !32
  %356 = load ptr, ptr %28, align 8, !tbaa !5
  %357 = getelementptr inbounds %struct.aiFace, ptr %356, i32 0, i32 1
  store ptr %355, ptr %357, align 8, !tbaa !32
  %358 = load ptr, ptr %26, align 8, !tbaa !5
  %359 = load ptr, ptr %28, align 8, !tbaa !5
  %360 = icmp ne ptr %358, %359
  br i1 %360, label %361, label %370

361:                                              ; preds = %340
  %362 = load ptr, ptr %26, align 8, !tbaa !5
  %363 = getelementptr inbounds %struct.aiFace, ptr %362, i32 0, i32 0
  store i32 0, ptr %363, align 8, !tbaa !30
  %364 = load ptr, ptr %26, align 8, !tbaa !5
  %365 = getelementptr inbounds %struct.aiFace, ptr %364, i32 0, i32 1
  store ptr null, ptr %365, align 8, !tbaa !32
  br label %370

366:                                              ; preds = %323
  %367 = landingpad { ptr, i32 }
          cleanup
  %368 = extractvalue { ptr, i32 } %367, 0
  store ptr %368, ptr %7, align 8
  %369 = extractvalue { ptr, i32 } %367, 1
  store i32 %369, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %406

370:                                              ; preds = %361, %340
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %382

371:                                              ; preds = %333
  %372 = load ptr, ptr %26, align 8, !tbaa !5
  %373 = getelementptr inbounds %struct.aiFace, ptr %372, i32 0, i32 1
  %374 = load ptr, ptr %373, align 8, !tbaa !32
  %375 = icmp eq ptr %374, null
  br i1 %375, label %377, label %376

376:                                              ; preds = %371
  call void @_ZdaPv(ptr noundef %374) #9
  br label %377

377:                                              ; preds = %376, %371
  %378 = load ptr, ptr %26, align 8, !tbaa !5
  %379 = getelementptr inbounds %struct.aiFace, ptr %378, i32 0, i32 1
  store ptr null, ptr %379, align 8, !tbaa !32
  %380 = load ptr, ptr %26, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct.aiFace, ptr %380, i32 0, i32 0
  store i32 0, ptr %381, align 8, !tbaa !30
  br label %382

382:                                              ; preds = %377, %370
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  br label %383

383:                                              ; preds = %382
  %384 = load i32, ptr %25, align 4, !tbaa !24
  %385 = add i32 %384, 1
  store i32 %385, ptr %25, align 4, !tbaa !24
  br label %316, !llvm.loop !42

386:                                              ; preds = %322
  %387 = load i32, ptr %24, align 4, !tbaa !24
  %388 = load ptr, ptr %5, align 8, !tbaa !5
  %389 = getelementptr inbounds %struct.aiMesh, ptr %388, i32 0, i32 2
  store i32 %387, ptr %389, align 8, !tbaa !23
  %390 = load ptr, ptr %5, align 8, !tbaa !5
  %391 = getelementptr inbounds %struct.aiMesh, ptr %390, i32 0, i32 2
  %392 = load i32, ptr %391, align 8, !tbaa !23
  %393 = icmp ne i32 %392, 0
  br i1 %393, label %402, label %394

394:                                              ; preds = %386
  %395 = invoke noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
          to label %396 unwind label %398

396:                                              ; preds = %394
  invoke void @_ZN6Assimp6Logger12verboseDebugEPKc(ptr noundef nonnull align 8 dereferenceable(12) %395, ptr noundef @.str.4)
          to label %397 unwind label %398

397:                                              ; preds = %396
  store i1 true, ptr %3, align 1
  store i32 1, ptr %12, align 4
  br label %403

398:                                              ; preds = %396, %394
  %399 = landingpad { ptr, i32 }
          cleanup
  %400 = extractvalue { ptr, i32 } %399, 0
  store ptr %400, ptr %7, align 8
  %401 = extractvalue { ptr, i32 } %399, 1
  store i32 %401, ptr %8, align 4
  br label %406

402:                                              ; preds = %386
  store i32 0, ptr %12, align 4
  br label %403

403:                                              ; preds = %402, %397
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  %404 = load i32, ptr %12, align 4
  switch i32 %404, label %422 [
    i32 0, label %405
  ]

405:                                              ; preds = %403
  br label %407

406:                                              ; preds = %398, %366
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %424

407:                                              ; preds = %405, %312, %308
  %408 = load i32, ptr %9, align 4, !tbaa !24
  %409 = icmp ne i32 %408, 0
  br i1 %409, label %410, label %421

410:                                              ; preds = %407
  %411 = invoke noundef zeroext i1 @_ZN6Assimp13DefaultLogger12isNullLoggerEv()
          to label %412 unwind label %417

412:                                              ; preds = %410
  br i1 %411, label %421, label %413

413:                                              ; preds = %412
  %414 = invoke noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
          to label %415 unwind label %417

415:                                              ; preds = %413
  invoke void @_ZN6Assimp6Logger4warnIJRA7_KcRjRA24_S2_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(12) %414, ptr noundef nonnull align 1 dereferenceable(7) @.str.5, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 1 dereferenceable(24) @.str.6)
          to label %416 unwind label %417

416:                                              ; preds = %415
  br label %421

417:                                              ; preds = %415, %413, %410
  %418 = landingpad { ptr, i32 }
          cleanup
  %419 = extractvalue { ptr, i32 } %418, 0
  store ptr %419, ptr %7, align 8
  %420 = extractvalue { ptr, i32 } %418, 1
  store i32 %420, ptr %8, align 4
  br label %424

421:                                              ; preds = %416, %412, %407
  store i1 false, ptr %3, align 1
  store i32 1, ptr %12, align 4
  br label %422

422:                                              ; preds = %421, %403
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #8
  %423 = load i1, ptr %3, align 1
  ret i1 %423

424:                                              ; preds = %417, %406, %277
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %425

425:                                              ; preds = %424, %41
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #8
  br label %426

426:                                              ; preds = %425
  %427 = load ptr, ptr %7, align 8
  %428 = load i32, ptr %8, align 4
  %429 = insertvalue { ptr, i32 } poison, ptr %427, 0
  %430 = insertvalue { ptr, i32 } %429, i32 %428, 1
  resume { ptr, i32 } %430
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEEC2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, i1 noundef zeroext) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZSt6all_ofIPjZN6Assimp22FindDegeneratesProcess13ExecuteOnMeshEP6aiMeshE3$_0EbT_S6_T0_"(ptr noundef, ptr noundef, i32) #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK10aiVector3tIfEeqERKS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) #3 align 2

declare noundef float @_ZN6Assimp13GeometryUtils23calculateAreaOfTriangleERK6aiFaceP6aiMesh(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

declare void @_ZN6Assimp6Logger12verboseDebugEPKc(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef) #0

declare noundef zeroext i1 @_ZN6Assimp13DefaultLogger12isNullLoggerEv() #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Assimp6Logger4warnIJRA7_KcRjRA24_S2_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 1 dereferenceable(7), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 2

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { 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, !11, i64 0}
!10 = !{!"_ZTS6aiMesh", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !7, i64 48, !7, i64 112, !7, i64 176, !6, i64 208, !11, i64 216, !6, i64 224, !11, i64 232, !12, i64 236, !11, i64 1264, !6, i64 1272, !13, i64 1280, !14, i64 1284, !6, i64 1312}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS8aiString", !11, i64 0, !7, i64 4}
!13 = !{!"_ZTS16aiMorphingMethod", !7, i64 0}
!14 = !{!"_ZTS6aiAABB", !15, i64 0, !15, i64 12}
!15 = !{!"_ZTS10aiVector3tIfE", !16, i64 0, !16, i64 4, !16, i64 8}
!16 = !{!"float", !7, i64 0}
!17 = !{!18, !20, i64 24}
!18 = !{!"_ZTSN6Assimp22FindDegeneratesProcessE", !19, i64 0, !20, i64 24, !20, i64 25}
!19 = !{!"_ZTSN6Assimp11BaseProcessE", !6, i64 8, !6, i64 16}
!20 = !{!"bool", !7, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!10, !11, i64 8}
!24 = !{!11, !11, i64 0}
!25 = !{!10, !6, i64 208}
!26 = !{!20, !20, i64 0}
!27 = !{!10, !11, i64 4}
!28 = !{!29, !11, i64 0}
!29 = !{!"_ZTSZN6Assimp22FindDegeneratesProcess13ExecuteOnMeshEP6aiMeshE3$_0", !11, i64 0}
!30 = !{!31, !11, i64 0}
!31 = !{!"_ZTS6aiFace", !11, i64 0, !6, i64 8}
!32 = !{!31, !6, i64 8}
!33 = !{i64 0, i64 4, !24}
!34 = !{!10, !6, i64 16}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = distinct !{!37, !36}
!38 = !{!18, !20, i64 25}
!39 = !{!16, !16, i64 0}
!40 = distinct !{!40, !36}
!41 = distinct !{!41, !36}
!42 = distinct !{!42, !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::vector" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"struct.std::_Bit_reference" = type { ptr, i64 }
%struct.aiFace = type { i32, ptr }
%class.aiVector3t = type { float, float, float }

@.str.4 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1

declare noundef ptr @_ZN6Assimp13DefaultLogger3getEv() local_unnamed_addr #0

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6Assimp22FindDegeneratesProcess13ExecuteOnMeshEP6aiMesh(ptr nocapture noundef nonnull readonly align 8 dereferenceable(26) %0, ptr noundef %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"struct.std::_Bit_reference", align 8
  %8 = alloca %"struct.std::_Bit_reference", align 8
  %9 = alloca %"struct.std::_Bit_reference", align 8
  store i32 0, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #7
  call void @_ZNSt6vectorIbSaIbEEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #7
  %10 = getelementptr inbounds i8, ptr %0, i64 24
  %11 = load i8, ptr %10, align 8, !tbaa !16, !range !20, !noundef !21
  %12 = trunc nuw i8 %11 to i1
  br i1 %12, label %13, label %19

13:                                               ; preds = %2
  %14 = getelementptr inbounds i8, ptr %1, i64 8
  %15 = load i32, ptr %14, align 8, !tbaa !22
  %16 = zext i32 %15 to i64
  invoke void @_ZNSt6vectorIbSaIbEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef %16, i1 noundef zeroext false)
          to label %19 unwind label %17

17:                                               ; preds = %13
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %196

19:                                               ; preds = %13, %2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  store i32 0, ptr %4, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %20 = getelementptr inbounds i8, ptr %1, i64 8
  %21 = load i32, ptr %20, align 8, !tbaa !22
  %.not160 = icmp eq i32 %21, 0
  br i1 %.not160, label %.critedge.thread, label %.lr.ph153

.lr.ph153:                                        ; preds = %19
  %22 = getelementptr inbounds i8, ptr %1, i64 208
  %23 = getelementptr inbounds i8, ptr %1, i64 4
  %24 = getelementptr inbounds i8, ptr %1, i64 16
  %25 = getelementptr inbounds i8, ptr %7, i64 8
  %26 = getelementptr inbounds i8, ptr %0, i64 25
  %27 = getelementptr inbounds i8, ptr %8, i64 8
  br label %34

._crit_edge154:                                   ; preds = %.thread125
  %28 = load i8, ptr %10, align 8, !tbaa !16, !range !20, !noundef !21
  %29 = trunc nuw i8 %28 to i1
  %30 = icmp ne i32 %149, 0
  %or.cond = select i1 %29, i1 %30, i1 false
  br i1 %or.cond, label %.preheader, label %.critedge

.preheader:                                       ; preds = %._crit_edge154
  %31 = icmp eq i32 %150, 0
  br i1 %31, label %._crit_edge158.thread, label %.lr.ph157

.lr.ph157:                                        ; preds = %.preheader
  %32 = getelementptr inbounds i8, ptr %1, i64 208
  %33 = getelementptr inbounds i8, ptr %9, i64 8
  br label %153

34:                                               ; preds = %.lr.ph153, %.thread125
  %35 = phi i32 [ 0, %.lr.ph153 ], [ %149, %.thread125 ]
  %indvars.iv168 = phi i64 [ 0, %.lr.ph153 ], [ %indvars.iv.next169, %.thread125 ]
  %36 = load ptr, ptr %22, align 8, !tbaa !24
  %37 = getelementptr inbounds %struct.aiFace, ptr %36, i64 %indvars.iv168
  %38 = load i32, ptr %23, align 4, !tbaa !25
  %39 = load i32, ptr %37, align 8, !tbaa !26
  %.not161 = icmp eq i32 %39, 0
  br i1 %.not161, label %._crit_edge150.thread, label %.lr.ph149

.lr.ph149:                                        ; preds = %34
  %40 = getelementptr inbounds i8, ptr %37, i64 8
  br label %41

41:                                               ; preds = %.lr.ph149, %.thread121
  %42 = phi i32 [ %35, %.lr.ph149 ], [ %133, %.thread121 ]
  %indvars.iv165 = phi i64 [ 0, %.lr.ph149 ], [ %indvars.iv.next166.pre-phi, %.thread121 ]
  %43 = phi i32 [ %39, %.lr.ph149 ], [ %134, %.thread121 ]
  %.0102144 = phi i1 [ true, %.lr.ph149 ], [ %.5, %.thread121 ]
  %44 = load ptr, ptr %40, align 8, !tbaa !28
  %45 = zext i32 %43 to i64
  %46 = getelementptr inbounds i32, ptr %44, i64 %45
  %47 = invoke noundef zeroext i1 @"_ZSt6all_ofIPjZN6Assimp22FindDegeneratesProcess13ExecuteOnMeshEP6aiMeshE3$_0EbT_S6_T0_"(ptr noundef %44, ptr noundef nonnull %46, i32 %38)
          to label %48 unwind label %49

48:                                               ; preds = %41
  br i1 %47, label %51, label %..thread121_crit_edge

..thread121_crit_edge:                            ; preds = %48
  %.pre175 = add nuw nsw i64 %indvars.iv165, 1
  br label %.thread121

49:                                               ; preds = %41
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %195

51:                                               ; preds = %48
  %52 = load i32, ptr %37, align 8, !tbaa !26
  store i32 %52, ptr %5, align 4, !tbaa !23
  %53 = icmp ugt i32 %52, 4
  br i1 %53, label %54, label %59

54:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  %55 = trunc nuw i64 %indvars.iv165 to i32
  %56 = add i32 %55, 2
  store i32 %56, ptr %6, align 4, !tbaa !23
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %58 = load i32, ptr %57, align 4, !tbaa !23
  store i32 %58, ptr %5, align 4, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  br label %59

59:                                               ; preds = %54, %51
  %60 = phi i32 [ %58, %54 ], [ %52, %51 ]
  %61 = add nuw nsw i64 %indvars.iv165, 1
  %62 = zext i32 %60 to i64
  %.not112137 = icmp ult i64 %61, %62
  br i1 %.not112137, label %.lr.ph142, label %.thread

.lr.ph142:                                        ; preds = %59
  %63 = trunc nuw i64 %indvars.iv165 to i32
  %64 = trunc nuw i64 %61 to i32
  br label %65

65:                                               ; preds = %.lr.ph142, %103
  %66 = phi i32 [ %42, %.lr.ph142 ], [ %104, %103 ]
  %.094140 = phi i32 [ %64, %.lr.ph142 ], [ %.094, %103 ]
  %.094.in139 = phi i32 [ %63, %.lr.ph142 ], [ %.195, %103 ]
  %.1103138 = phi i1 [ %.0102144, %.lr.ph142 ], [ %.3105, %103 ]
  %67 = load ptr, ptr %24, align 8, !tbaa !29
  %68 = load ptr, ptr %40, align 8, !tbaa !28
  %69 = getelementptr inbounds i32, ptr %68, i64 %indvars.iv165
  %70 = load i32, ptr %69, align 4, !tbaa !23
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds %class.aiVector3t, ptr %67, i64 %71
  %73 = zext i32 %.094140 to i64
  %74 = getelementptr inbounds i32, ptr %68, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !23
  %76 = zext i32 %75 to i64
  %77 = getelementptr inbounds %class.aiVector3t, ptr %67, i64 %76
  %78 = call noundef zeroext i1 @_ZNK10aiVector3tIfEeqERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %72, ptr noundef nonnull align 4 dereferenceable(12) %77)
  br i1 %78, label %79, label %103

79:                                               ; preds = %65
  %80 = load i32, ptr %37, align 8, !tbaa !26
  %81 = add i32 %80, -1
  store i32 %81, ptr %37, align 8, !tbaa !26
  %82 = load i32, ptr %5, align 4, !tbaa !23
  %83 = add i32 %82, -1
  store i32 %83, ptr %5, align 4, !tbaa !23
  %84 = load i32, ptr %37, align 8, !tbaa !26
  %85 = icmp ult i32 %.094140, %84
  %.pre = load ptr, ptr %40, align 8, !tbaa !28
  br i1 %85, label %.lr.ph, label %.._crit_edge_crit_edge

.._crit_edge_crit_edge:                           ; preds = %79
  %.pre174 = zext i32 %84 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre174, %.._crit_edge_crit_edge ], [ %91, %.lr.ph ]
  %86 = getelementptr inbounds i32, ptr %.pre, i64 %.pre-phi
  store i32 -559038737, ptr %86, align 4, !tbaa !23
  br i1 %.1103138, label %93, label %95

.lr.ph:                                           ; preds = %79, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %73, %79 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %87 = getelementptr inbounds i32, ptr %.pre, i64 %indvars.iv.next
  %88 = load i32, ptr %87, align 4, !tbaa !23
  %89 = getelementptr inbounds i32, ptr %.pre, i64 %indvars.iv
  store i32 %88, ptr %89, align 4, !tbaa !23
  %90 = load i32, ptr %37, align 8, !tbaa !26
  %91 = zext i32 %90 to i64
  %92 = icmp ult i64 %indvars.iv.next, %91
  br i1 %92, label %.lr.ph, label %._crit_edge, !llvm.loop !30

93:                                               ; preds = %._crit_edge
  %94 = add i32 %66, 1
  store i32 %94, ptr %4, align 4, !tbaa !23
  br label %95

95:                                               ; preds = %93, %._crit_edge
  %96 = phi i32 [ %94, %93 ], [ %66, %._crit_edge ]
  %97 = load i8, ptr %10, align 8, !tbaa !16, !range !20, !noundef !21
  %98 = trunc nuw i8 %97 to i1
  br i1 %98, label %99, label %103

99:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  %100 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef %indvars.iv168)
          to label %.thread125.loopexit unwind label %101

101:                                              ; preds = %99
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  br label %195

103:                                              ; preds = %65, %95
  %104 = phi i32 [ %96, %95 ], [ %66, %65 ]
  %.3105 = phi i1 [ false, %95 ], [ %.1103138, %65 ]
  %.195 = phi i32 [ %.094.in139, %95 ], [ %.094140, %65 ]
  %.094 = add i32 %.195, 1
  %105 = load i32, ptr %5, align 4, !tbaa !23
  %.not112 = icmp ult i32 %.094, %105
  br i1 %.not112, label %65, label %.thread, !llvm.loop !32

.thread125.loopexit:                              ; preds = %99
  %106 = extractvalue { ptr, i64 } %100, 0
  store ptr %106, ptr %7, align 8
  %107 = extractvalue { ptr, i64 } %100, 1
  store i64 %107, ptr %25, align 8
  %108 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %7, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  br label %.thread125

.thread:                                          ; preds = %103, %59
  %109 = phi i32 [ %42, %59 ], [ %104, %103 ]
  %.1103.lcssa = phi i1 [ %.0102144, %59 ], [ %.3105, %103 ]
  %110 = load i8, ptr %26, align 1, !tbaa !33, !range !20, !noundef !21
  %111 = trunc nuw i8 %110 to i1
  br i1 %111, label %112, label %.thread121

112:                                              ; preds = %.thread
  %113 = load i32, ptr %37, align 8, !tbaa !26
  %114 = icmp eq i32 %113, 3
  br i1 %114, label %115, label %.thread121

115:                                              ; preds = %112
  %116 = invoke noundef float @_ZN6Assimp13GeometryUtils23calculateAreaOfTriangleERK6aiFaceP6aiMesh(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull %1)
          to label %117 unwind label %124

117:                                              ; preds = %115
  %118 = fcmp olt float %116, 0x3EB0C6F7A0000000
  br i1 %118, label %119, label %.thread121

119:                                              ; preds = %117
  %120 = load i8, ptr %10, align 8, !tbaa !16, !range !20, !noundef !21
  %121 = trunc nuw i8 %120 to i1
  br i1 %121, label %122, label %.thread121

122:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  %123 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef %indvars.iv168)
          to label %128 unwind label %126

124:                                              ; preds = %115
  %125 = landingpad { ptr, i32 }
          cleanup
  br label %195

126:                                              ; preds = %122
  %127 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  br label %195

128:                                              ; preds = %122
  %129 = extractvalue { ptr, i64 } %123, 0
  store ptr %129, ptr %8, align 8
  %130 = extractvalue { ptr, i64 } %123, 1
  store i64 %130, ptr %27, align 8
  %131 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %8, i1 noundef zeroext true) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  %132 = add i32 %109, 1
  store i32 %132, ptr %4, align 4, !tbaa !23
  br label %.thread125

.thread121:                                       ; preds = %..thread121_crit_edge, %117, %119, %.thread, %112
  %indvars.iv.next166.pre-phi = phi i64 [ %.pre175, %..thread121_crit_edge ], [ %61, %117 ], [ %61, %119 ], [ %61, %.thread ], [ %61, %112 ]
  %133 = phi i32 [ %42, %..thread121_crit_edge ], [ %109, %117 ], [ %109, %119 ], [ %109, %.thread ], [ %109, %112 ]
  %.5 = phi i1 [ %.0102144, %..thread121_crit_edge ], [ %.1103.lcssa, %117 ], [ %.1103.lcssa, %119 ], [ %.1103.lcssa, %.thread ], [ %.1103.lcssa, %112 ]
  %134 = load i32, ptr %37, align 8, !tbaa !26
  %135 = zext i32 %134 to i64
  %136 = icmp ult i64 %indvars.iv.next166.pre-phi, %135
  br i1 %136, label %41, label %._crit_edge150, !llvm.loop !34

._crit_edge150:                                   ; preds = %.thread121
  switch i32 %134, label %._crit_edge150.thread [
    i32 1, label %137
    i32 2, label %140
    i32 3, label %143
  ]

137:                                              ; preds = %._crit_edge150
  %138 = load i32, ptr %1, align 8, !tbaa !5
  %139 = or i32 %138, 1
  store i32 %139, ptr %1, align 8, !tbaa !5
  br label %.thread125

140:                                              ; preds = %._crit_edge150
  %141 = load i32, ptr %1, align 8, !tbaa !5
  %142 = or i32 %141, 2
  store i32 %142, ptr %1, align 8, !tbaa !5
  br label %.thread125

143:                                              ; preds = %._crit_edge150
  %144 = load i32, ptr %1, align 8, !tbaa !5
  %145 = or i32 %144, 4
  store i32 %145, ptr %1, align 8, !tbaa !5
  br label %.thread125

._crit_edge150.thread:                            ; preds = %34, %._crit_edge150
  %146 = phi i32 [ %133, %._crit_edge150 ], [ %35, %34 ]
  %147 = load i32, ptr %1, align 8, !tbaa !5
  %148 = or i32 %147, 8
  store i32 %148, ptr %1, align 8, !tbaa !5
  br label %.thread125

.thread125:                                       ; preds = %.thread125.loopexit, %128, %._crit_edge150.thread, %143, %140, %137
  %149 = phi i32 [ %96, %.thread125.loopexit ], [ %132, %128 ], [ %146, %._crit_edge150.thread ], [ %133, %143 ], [ %133, %140 ], [ %133, %137 ]
  %indvars.iv.next169 = add nuw nsw i64 %indvars.iv168, 1
  %150 = load i32, ptr %20, align 8, !tbaa !22
  %151 = zext i32 %150 to i64
  %152 = icmp ult i64 %indvars.iv.next169, %151
  br i1 %152, label %34, label %._crit_edge154, !llvm.loop !35

._crit_edge158:                                   ; preds = %179
  store i32 %.187, ptr %20, align 8, !tbaa !22
  %.not.not = icmp eq i32 %.187, 0
  br i1 %.not.not, label %._crit_edge158.thread, label %.critedge

153:                                              ; preds = %.lr.ph157, %179
  %indvars.iv171 = phi i64 [ 0, %.lr.ph157 ], [ %indvars.iv.next172, %179 ]
  %.086155 = phi i32 [ 0, %.lr.ph157 ], [ %.187, %179 ]
  %154 = load ptr, ptr %32, align 8, !tbaa !24
  %155 = getelementptr inbounds %struct.aiFace, ptr %154, i64 %indvars.iv171
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  %156 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef %indvars.iv171)
          to label %157 unwind label %171

157:                                              ; preds = %153
  %158 = extractvalue { ptr, i64 } %156, 0
  store ptr %158, ptr %9, align 8
  %159 = extractvalue { ptr, i64 } %156, 1
  store i64 %159, ptr %33, align 8
  %160 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  br i1 %160, label %173, label %161

161:                                              ; preds = %157
  %162 = load ptr, ptr %32, align 8, !tbaa !24
  %163 = add i32 %.086155, 1
  %164 = zext i32 %.086155 to i64
  %165 = getelementptr inbounds %struct.aiFace, ptr %162, i64 %164
  %166 = load i32, ptr %155, align 8, !tbaa !26
  store i32 %166, ptr %165, align 8, !tbaa !26
  %167 = getelementptr inbounds i8, ptr %155, i64 8
  %168 = load ptr, ptr %167, align 8, !tbaa !28
  %169 = getelementptr inbounds i8, ptr %165, i64 8
  store ptr %168, ptr %169, align 8, !tbaa !28
  %.not111 = icmp eq ptr %155, %165
  br i1 %.not111, label %179, label %170

170:                                              ; preds = %161
  store i32 0, ptr %155, align 8, !tbaa !26
  store ptr null, ptr %167, align 8, !tbaa !28
  br label %179

171:                                              ; preds = %153
  %172 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  br label %195

173:                                              ; preds = %157
  %174 = getelementptr inbounds i8, ptr %155, i64 8
  %175 = load ptr, ptr %174, align 8, !tbaa !28
  %176 = icmp eq ptr %175, null
  br i1 %176, label %178, label %177

177:                                              ; preds = %173
  call void @_ZdaPv(ptr noundef nonnull %175) #8
  br label %178

178:                                              ; preds = %177, %173
  store ptr null, ptr %174, align 8, !tbaa !28
  store i32 0, ptr %155, align 8, !tbaa !26
  br label %179

179:                                              ; preds = %161, %170, %178
  %.187 = phi i32 [ %.086155, %178 ], [ %163, %170 ], [ %163, %161 ]
  %indvars.iv.next172 = add nuw nsw i64 %indvars.iv171, 1
  %180 = load i32, ptr %20, align 8, !tbaa !22
  %181 = zext i32 %180 to i64
  %182 = icmp ult i64 %indvars.iv.next172, %181
  br i1 %182, label %153, label %._crit_edge158, !llvm.loop !36

._crit_edge158.thread:                            ; preds = %.preheader, %._crit_edge158
  %183 = invoke noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
          to label %184 unwind label %185

184:                                              ; preds = %._crit_edge158.thread
  invoke void @_ZN6Assimp6Logger12verboseDebugEPKc(ptr noundef nonnull align 8 dereferenceable(12) %183, ptr noundef nonnull @.str.4)
          to label %.critedge.thread unwind label %185

185:                                              ; preds = %184, %._crit_edge158.thread
  %186 = landingpad { ptr, i32 }
          cleanup
  br label %195

.critedge:                                        ; preds = %._crit_edge158, %._crit_edge154
  %.not = icmp eq i32 %149, 0
  br i1 %.not, label %.critedge.thread, label %187

187:                                              ; preds = %.critedge
  %188 = invoke noundef zeroext i1 @_ZN6Assimp13DefaultLogger12isNullLoggerEv()
          to label %189 unwind label %193

189:                                              ; preds = %187
  br i1 %188, label %.critedge.thread, label %190

190:                                              ; preds = %189
  %191 = invoke noundef ptr @_ZN6Assimp13DefaultLogger3getEv()
          to label %192 unwind label %193

192:                                              ; preds = %190
  invoke void @_ZN6Assimp6Logger4warnIJRA7_KcRjRA24_S2_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(12) %191, ptr noundef nonnull align 1 dereferenceable(7) @.str.5, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 1 dereferenceable(24) @.str.6)
          to label %.critedge.thread unwind label %193

193:                                              ; preds = %192, %190, %187
  %194 = landingpad { ptr, i32 }
          cleanup
  br label %195

.critedge.thread:                                 ; preds = %19, %184, %.critedge, %189, %192
  %.1 = phi i1 [ false, %192 ], [ false, %189 ], [ false, %.critedge ], [ true, %184 ], [ false, %19 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #7
  ret i1 %.1

195:                                              ; preds = %171, %185, %49, %101, %126, %124, %193
  %.pn113.pn.pn = phi { ptr, i32 } [ %194, %193 ], [ %102, %101 ], [ %50, %49 ], [ %127, %126 ], [ %125, %124 ], [ %172, %171 ], [ %186, %185 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  br label %196

196:                                              ; preds = %195, %17
  %.pn113.pn.pn.pn = phi { ptr, i32 } [ %.pn113.pn.pn, %195 ], [ %18, %17 ]
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn113.pn.pn.pn
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEEC2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEE6resizeEmb(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, i1 noundef zeroext) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef zeroext i1 @"_ZSt6all_ofIPjZN6Assimp22FindDegeneratesProcess13ExecuteOnMeshEP6aiMeshE3$_0EbT_S6_T0_"(ptr noundef, ptr noundef, i32) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK10aiVector3tIfEeqERKS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) local_unnamed_addr #3 align 2

declare noundef float @_ZN6Assimp13GeometryUtils23calculateAreaOfTriangleERK6aiFaceP6aiMesh(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

declare void @_ZN6Assimp6Logger12verboseDebugEPKc(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef) local_unnamed_addr #0

declare noundef zeroext i1 @_ZN6Assimp13DefaultLogger12isNullLoggerEv() local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Assimp6Logger4warnIJRA7_KcRjRA24_S2_EEEvDpOT_(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef nonnull align 1 dereferenceable(7), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 2

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { 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 #5 = { 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { 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, !7, i64 0}
!6 = !{!"_ZTS6aiMesh", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !8, i64 48, !8, i64 112, !8, i64 176, !10, i64 208, !7, i64 216, !10, i64 224, !7, i64 232, !11, i64 236, !7, i64 1264, !10, i64 1272, !12, i64 1280, !13, i64 1284, !10, i64 1312}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTS8aiString", !7, i64 0, !8, i64 4}
!12 = !{!"_ZTS16aiMorphingMethod", !8, i64 0}
!13 = !{!"_ZTS6aiAABB", !14, i64 0, !14, i64 12}
!14 = !{!"_ZTS10aiVector3tIfE", !15, i64 0, !15, i64 4, !15, i64 8}
!15 = !{!"float", !8, i64 0}
!16 = !{!17, !19, i64 24}
!17 = !{!"_ZTSN6Assimp22FindDegeneratesProcessE", !18, i64 0, !19, i64 24, !19, i64 25}
!18 = !{!"_ZTSN6Assimp11BaseProcessE", !10, i64 8, !10, i64 16}
!19 = !{!"bool", !8, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!6, !7, i64 8}
!23 = !{!7, !7, i64 0}
!24 = !{!6, !10, i64 208}
!25 = !{!6, !7, i64 4}
!26 = !{!27, !7, i64 0}
!27 = !{!"_ZTS6aiFace", !7, i64 0, !10, i64 8}
!28 = !{!27, !10, i64 8}
!29 = !{!6, !10, i64 16}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = distinct !{!32, !31}
!33 = !{!17, !19, i64 25}
!34 = distinct !{!34, !31}
!35 = distinct !{!35, !31}
!36 = distinct !{!36, !31}


; Effective O3 passes: AggressiveInstCombinePass,BDCEPass,ConstraintEliminationPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass