; LLVM IR from Overload-Technologies/Overload :: Dependencies/assimp/code/Common (VertexTriangleAdjacency)

; 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"

%struct.aiFace = type { i32, ptr }
%"class.Assimp::VertexTriangleAdjacency" = type <{ ptr, ptr, ptr, i32, [4 x i8] }>

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [124 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp23VertexTriangleAdjacencyC2EP6aiFacejjb(ptr noundef nonnull align 8 dereferenceable(28) %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i1 noundef zeroext %4) unnamed_addr #0 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  %25 = zext i1 %4 to i8
  store i8 %25, ptr %10, align 1, !tbaa !11
  %26 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = load i32, ptr %8, align 4, !tbaa !9
  %29 = zext i32 %28 to i64
  %30 = getelementptr inbounds %struct.aiFace, ptr %27, i64 %29
  store ptr %30, ptr %11, align 8, !tbaa !5
  %31 = load i32, ptr %9, align 4, !tbaa !9
  %32 = icmp eq i32 0, %31
  br i1 %32, label %33, label %75

33:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %34, ptr %12, align 8, !tbaa !5
  br label %35

35:                                               ; preds = %71, %33
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  %37 = load ptr, ptr %11, align 8, !tbaa !5
  %38 = icmp ne ptr %36, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %74

40:                                               ; preds = %35
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  %42 = icmp ne ptr null, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %40
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 60)
  br label %44

44:                                               ; preds = %43, %40
  %45 = phi i1 [ true, %40 ], [ false, %43 ]
  %46 = load ptr, ptr %12, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.aiFace, ptr %46, i32 0, i32 0
  %48 = load i32, ptr %47, align 8, !tbaa !13
  %49 = icmp eq i32 3, %48
  br i1 %49, label %51, label %50

50:                                               ; preds = %44
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 61)
  br label %51

51:                                               ; preds = %50, %44
  %52 = phi i1 [ true, %44 ], [ false, %50 ]
  %53 = load ptr, ptr %12, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.aiFace, ptr %53, i32 0, i32 1
  %55 = load ptr, ptr %54, align 8, !tbaa !15
  %56 = getelementptr inbounds i32, ptr %55, i64 0
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %56)
  %58 = load i32, ptr %57, align 4, !tbaa !9
  store i32 %58, ptr %9, align 4, !tbaa !9
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.aiFace, ptr %59, i32 0, i32 1
  %61 = load ptr, ptr %60, align 8, !tbaa !15
  %62 = getelementptr inbounds i32, ptr %61, i64 1
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %62)
  %64 = load i32, ptr %63, align 4, !tbaa !9
  store i32 %64, ptr %9, align 4, !tbaa !9
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.aiFace, ptr %65, i32 0, i32 1
  %67 = load ptr, ptr %66, align 8, !tbaa !15
  %68 = getelementptr inbounds i32, ptr %67, i64 2
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %68)
  %70 = load i32, ptr %69, align 4, !tbaa !9
  store i32 %70, ptr %9, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %51
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.aiFace, ptr %72, i32 1
  store ptr %73, ptr %12, align 8, !tbaa !5
  br label %35, !llvm.loop !16

74:                                               ; preds = %39
  br label %75

75:                                               ; preds = %74, %5
  %76 = load i32, ptr %9, align 4, !tbaa !9
  %77 = add i32 %76, 1
  %78 = getelementptr inbounds %"class.Assimp::VertexTriangleAdjacency", ptr %26, i32 0, i32 3
  store i32 %77, ptr %78, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %79 = load i8, ptr %10, align 1, !tbaa !11, !range !20, !noundef !21
  %80 = trunc i8 %79 to i1
  br i1 %80, label %81, label %107

81:                                               ; preds = %75
  %82 = load i32, ptr %9, align 4, !tbaa !9
  %83 = add i32 %82, 1
  %84 = zext 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 = call noalias noundef nonnull ptr @_Znam(i64 noundef %88) #8
  %90 = getelementptr inbounds %"class.Assimp::VertexTriangleAdjacency", ptr %26, i32 0, i32 2
  store ptr %89, ptr %90, align 8, !tbaa !22
  store ptr %89, ptr %13, align 8, !tbaa !5
  %91 = getelementptr inbounds %"class.Assimp::VertexTriangleAdjacency", ptr %26, i32 0, i32 2
  %92 = load ptr, ptr %91, align 8, !tbaa !22
  %93 = load i32, ptr %9, align 4, !tbaa !9
  %94 = add i32 %93, 1
  %95 = zext i32 %94 to i64
  %96 = mul i64 4, %95
  call void @llvm.memset.p0.i64(ptr align 4 %92, i8 0, i64 %96, i1 false)
  %97 = load i32, ptr %9, align 4, !tbaa !9
  %98 = add i32 %97, 2
  %99 = zext i32 %98 to i64
  %100 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %99, i64 4)
  %101 = extractvalue { i64, i1 } %100, 1
  %102 = extractvalue { i64, i1 } %100, 0
  %103 = select i1 %101, i64 -1, i64 %102
  %104 = call noalias noundef nonnull ptr @_Znam(i64 noundef %103) #8
  %105 = getelementptr inbounds i32, ptr %104, i64 1
  %106 = getelementptr inbounds %"class.Assimp::VertexTriangleAdjacency", ptr %26, i32 0, i32 0
  store ptr %105, ptr %106, align 8, !tbaa !23
  br label %125

107:                                              ; preds = %75
  %108 = load i32, ptr %9, align 4, !tbaa !9
  %109 = add i32 %108, 2
  %110 = zext i32 %109 to i64
  %111 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %110, i64 4)
  %112 = extractvalue { i64, i1 } %111, 1
  %113 = extractvalue { i64, i1 } %111, 0
  %114 = select i1 %112, i64 -1, i64 %113
  %115 = call noalias noundef nonnull ptr @_Znam(i64 noundef %114) #8
  %116 = getelementptr inbounds i32, ptr %115, i64 1
  %117 = getelementptr inbounds %"class.Assimp::VertexTriangleAdjacency", ptr %26, i32 0, i32 0
  store ptr %116, ptr %117, align 8, !tbaa !23
  store ptr %116, ptr %13, align 8, !tbaa !5
  %118 = getelementptr inbounds %"class.Assimp::VertexTriangleAdjacency", ptr %26, i32 0, i32 0
  %119 = load ptr, ptr %118, align 8, !tbaa !23
  %120 = load i32, ptr %9, align 4, !tbaa !9
  %121 = add i32 %120, 1
  %122 = zext i32 %121 to i64
  %123 = mul i64 4, %122
  call void @llvm.memset.p0.i64(ptr align 4 %119, i8 0, i64 %123, i1 false)
  %124 = getelementptr inbounds %"class.Assimp::VertexTriangleAdjacency", ptr %26, i32 0, i32 2
  store ptr null, ptr %124, align 8, !tbaa !22
  br label %125

125:                                              ; preds = %107, %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %126 = load ptr, ptr %13, align 8, !tbaa !5
  %127 = load i32, ptr %9, align 4, !tbaa !9
  %128 = zext i32 %127 to i64
  %129 = getelementptr inbounds i32, ptr %126, i64 %128
  store ptr %129, ptr %14, align 8, !tbaa !5
  %130 = load ptr, ptr %14, align 8, !tbaa !5
  %131 = getelementptr inbounds i32, ptr %130, i32 1
  store ptr %131, ptr %14, align 8, !tbaa !5
  store i32 0, ptr %130, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %132 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %132, ptr %15, align 8, !tbaa !5
  br label %133

133:                                              ; preds = %181, %125
  %134 = load ptr, ptr %15, align 8, !tbaa !5
  %135 = load ptr, ptr %11, align 8, !tbaa !5
  %136 = icmp ne ptr %134, %135
  br i1 %136, label %138, label %137

137:                                              ; preds = %133
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %184

138:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %139 = load ptr, ptr %15, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.aiFace, ptr %139, i32 0, i32 0
  %141 = load i32, ptr %140, align 8, !tbaa !13
  store i32 %141, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %142 = load ptr, ptr %15, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.aiFace, ptr %142, i32 0, i32 1
  %144 = load ptr, ptr %143, align 8, !tbaa !15
  store ptr %144, ptr %17, align 8, !tbaa !5
  %145 = load i32, ptr %16, align 4, !tbaa !9
  %146 = icmp ugt i32 %145, 0
  br i1 %146, label %147, label %156

147:                                              ; preds = %138
  %148 = load ptr, ptr %13, align 8, !tbaa !5
  %149 = load ptr, ptr %17, align 8, !tbaa !5
  %150 = getelementptr inbounds i32, ptr %149, i64 0
  %151 = load i32, ptr %150, align 4, !tbaa !9
  %152 = zext i32 %151 to i64
  %153 = getelementptr inbounds i32, ptr %148, i64 %152
  %154 = load i32, ptr %153, align 4, !tbaa !9
  %155 = add i32 %154, 1
  store i32 %155, ptr %153, align 4, !tbaa !9
  br label %156

156:                                              ; preds = %147, %138
  %157 = load i32, ptr %16, align 4, !tbaa !9
  %158 = icmp ugt i32 %157, 1
  br i1 %158, label %159, label %168

159:                                              ; preds = %156
  %160 = load ptr, ptr %13, align 8, !tbaa !5
  %161 = load ptr, ptr %17, align 8, !tbaa !5
  %162 = getelementptr inbounds i32, ptr %161, i64 1
  %163 = load i32, ptr %162, align 4, !tbaa !9
  %164 = zext i32 %163 to i64
  %165 = getelementptr inbounds i32, ptr %160, i64 %164
  %166 = load i32, ptr %165, align 4, !tbaa !9
  %167 = add i32 %166, 1
  store i32 %167, ptr %165, align 4, !tbaa !9
  br label %168

168:                                              ; preds = %159, %156
  %169 = load i32, ptr %16, align 4, !tbaa !9
  %170 = icmp ugt i32 %169, 2
  br i1 %170, label %171, label %180

171:                                              ; preds = %168
  %172 = load ptr, ptr %13, align 8, !tbaa !5
  %173 = load ptr, ptr %17, align 8, !tbaa !5
  %174 = getelementptr inbounds i32, ptr %173, i64 2
  %175 = load i32, ptr %174, align 4, !tbaa !9
  %176 = zext i32 %175 to i64
  %177 = getelementptr inbounds i32, ptr %172, i64 %176
  %178 = load i32, ptr %177, align 4, !tbaa !9
  %179 = add i32 %178, 1
  store i32 %179, ptr %177, align 4, !tbaa !9
  br label %180

180:                                              ; preds = %171, %168
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %181

181:                                              ; preds = %180
  %182 = load ptr, ptr %15, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.aiFace, ptr %182, i32 1
  store ptr %183, ptr %15, align 8, !tbaa !5
  br label %133, !llvm.loop !24

184:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %185 = getelementptr inbounds %"class.Assimp::VertexTriangleAdjacency", ptr %26, i32 0, i32 0
  %186 = load ptr, ptr %185, align 8, !tbaa !23
  store ptr %186, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %187 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %187, ptr %20, align 8, !tbaa !5
  br label %188

188:                                              ; preds = %201, %184
  %189 = load ptr, ptr %20, align 8, !tbaa !5
  %190 = load ptr, ptr %14, align 8, !tbaa !5
  %191 = icmp ne ptr %189, %190
  br i1 %191, label %193, label %192

192:                                              ; preds = %188
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %206

193:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %194 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %194, ptr %21, align 4, !tbaa !9
  %195 = load ptr, ptr %20, align 8, !tbaa !5
  %196 = load i32, ptr %195, align 4, !tbaa !9
  %197 = load i32, ptr %18, align 4, !tbaa !9
  %198 = add i32 %197, %196
  store i32 %198, ptr %18, align 4, !tbaa !9
  %199 = load i32, ptr %21, align 4, !tbaa !9
  %200 = load ptr, ptr %19, align 8, !tbaa !5
  store i32 %199, ptr %200, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %201

201:                                              ; preds = %193
  %202 = load ptr, ptr %20, align 8, !tbaa !5
  %203 = getelementptr inbounds i32, ptr %202, i32 1
  store ptr %203, ptr %20, align 8, !tbaa !5
  %204 = load ptr, ptr %19, align 8, !tbaa !5
  %205 = getelementptr inbounds i32, ptr %204, i32 1
  store ptr %205, ptr %19, align 8, !tbaa !5
  br label %188, !llvm.loop !25

206:                                              ; preds = %192
  %207 = getelementptr inbounds %"class.Assimp::VertexTriangleAdjacency", ptr %26, i32 0, i32 0
  %208 = load ptr, ptr %207, align 8, !tbaa !23
  store ptr %208, ptr %13, align 8, !tbaa !5
  %209 = load i32, ptr %18, align 4, !tbaa !9
  %210 = zext i32 %209 to i64
  %211 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %210, i64 4)
  %212 = extractvalue { i64, i1 } %211, 1
  %213 = extractvalue { i64, i1 } %211, 0
  %214 = select i1 %212, i64 -1, i64 %213
  %215 = call noalias noundef nonnull ptr @_Znam(i64 noundef %214) #8
  %216 = getelementptr inbounds %"class.Assimp::VertexTriangleAdjacency", ptr %26, i32 0, i32 1
  store ptr %215, ptr %216, align 8, !tbaa !26
  store i32 0, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %217 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %217, ptr %22, align 8, !tbaa !5
  br label %218

218:                                              ; preds = %281, %206
  %219 = load ptr, ptr %22, align 8, !tbaa !5
  %220 = load ptr, ptr %11, align 8, !tbaa !5
  %221 = icmp ne ptr %219, %220
  br i1 %221, label %223, label %222

222:                                              ; preds = %218
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %286

223:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %224 = load ptr, ptr %22, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.aiFace, ptr %224, i32 0, i32 0
  %226 = load i32, ptr %225, align 8, !tbaa !13
  store i32 %226, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %227 = load ptr, ptr %22, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.aiFace, ptr %227, i32 0, i32 1
  %229 = load ptr, ptr %228, align 8, !tbaa !15
  store ptr %229, ptr %24, align 8, !tbaa !5
  %230 = load i32, ptr %23, align 4, !tbaa !9
  %231 = icmp ugt i32 %230, 0
  br i1 %231, label %232, label %246

232:                                              ; preds = %223
  %233 = load i32, ptr %18, align 4, !tbaa !9
  %234 = getelementptr inbounds %"class.Assimp::VertexTriangleAdjacency", ptr %26, i32 0, i32 1
  %235 = load ptr, ptr %234, align 8, !tbaa !26
  %236 = load ptr, ptr %13, align 8, !tbaa !5
  %237 = load ptr, ptr %24, align 8, !tbaa !5
  %238 = getelementptr inbounds i32, ptr %237, i64 0
  %239 = load i32, ptr %238, align 4, !tbaa !9
  %240 = zext i32 %239 to i64
  %241 = getelementptr inbounds i32, ptr %236, i64 %240
  %242 = load i32, ptr %241, align 4, !tbaa !9
  %243 = add i32 %242, 1
  store i32 %243, ptr %241, align 4, !tbaa !9
  %244 = zext i32 %242 to i64
  %245 = getelementptr inbounds i32, ptr %235, i64 %244
  store i32 %233, ptr %245, align 4, !tbaa !9
  br label %246

246:                                              ; preds = %232, %223
  %247 = load i32, ptr %23, align 4, !tbaa !9
  %248 = icmp ugt i32 %247, 1
  br i1 %248, label %249, label %263

249:                                              ; preds = %246
  %250 = load i32, ptr %18, align 4, !tbaa !9
  %251 = getelementptr inbounds %"class.Assimp::VertexTriangleAdjacency", ptr %26, i32 0, i32 1
  %252 = load ptr, ptr %251, align 8, !tbaa !26
  %253 = load ptr, ptr %13, align 8, !tbaa !5
  %254 = load ptr, ptr %24, align 8, !tbaa !5
  %255 = getelementptr inbounds i32, ptr %254, i64 1
  %256 = load i32, ptr %255, align 4, !tbaa !9
  %257 = zext i32 %256 to i64
  %258 = getelementptr inbounds i32, ptr %253, i64 %257
  %259 = load i32, ptr %258, align 4, !tbaa !9
  %260 = add i32 %259, 1
  store i32 %260, ptr %258, align 4, !tbaa !9
  %261 = zext i32 %259 to i64
  %262 = getelementptr inbounds i32, ptr %252, i64 %261
  store i32 %250, ptr %262, align 4, !tbaa !9
  br label %263

263:                                              ; preds = %249, %246
  %264 = load i32, ptr %23, align 4, !tbaa !9
  %265 = icmp ugt i32 %264, 2
  br i1 %265, label %266, label %280

266:                                              ; preds = %263
  %267 = load i32, ptr %18, align 4, !tbaa !9
  %268 = getelementptr inbounds %"class.Assimp::VertexTriangleAdjacency", ptr %26, i32 0, i32 1
  %269 = load ptr, ptr %268, align 8, !tbaa !26
  %270 = load ptr, ptr %13, align 8, !tbaa !5
  %271 = load ptr, ptr %24, align 8, !tbaa !5
  %272 = getelementptr inbounds i32, ptr %271, i64 2
  %273 = load i32, ptr %272, align 4, !tbaa !9
  %274 = zext i32 %273 to i64
  %275 = getelementptr inbounds i32, ptr %270, i64 %274
  %276 = load i32, ptr %275, align 4, !tbaa !9
  %277 = add i32 %276, 1
  store i32 %277, ptr %275, align 4, !tbaa !9
  %278 = zext i32 %276 to i64
  %279 = getelementptr inbounds i32, ptr %269, i64 %278
  store i32 %267, ptr %279, align 4, !tbaa !9
  br label %280

280:                                              ; preds = %266, %263
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %281

281:                                              ; preds = %280
  %282 = load ptr, ptr %22, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.aiFace, ptr %282, i32 1
  store ptr %283, ptr %22, align 8, !tbaa !5
  %284 = load i32, ptr %18, align 4, !tbaa !9
  %285 = add i32 %284, 1
  store i32 %285, ptr %18, align 4, !tbaa !9
  br label %218, !llvm.loop !27

286:                                              ; preds = %222
  %287 = getelementptr inbounds %"class.Assimp::VertexTriangleAdjacency", ptr %26, i32 0, i32 0
  %288 = load ptr, ptr %287, align 8, !tbaa !23
  %289 = getelementptr inbounds i32, ptr %288, i32 -1
  store ptr %289, ptr %287, align 8, !tbaa !23
  %290 = getelementptr inbounds %"class.Assimp::VertexTriangleAdjacency", ptr %26, i32 0, i32 0
  %291 = load ptr, ptr %290, align 8, !tbaa !23
  store i32 0, ptr %291, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  ret void
}

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

declare void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef, ptr noundef, i32 noundef) #2

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

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

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTS6aiFace", !10, i64 0, !6, i64 8}
!15 = !{!14, !6, i64 8}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !10, i64 24}
!19 = !{!"_ZTSN6Assimp23VertexTriangleAdjacencyE", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!19, !6, i64 16}
!23 = !{!19, !6, i64 0}
!24 = distinct !{!24, !17}
!25 = distinct !{!25, !17}
!26 = !{!19, !6, i64 8}
!27 = distinct !{!27, !17}


; 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"

%struct.aiFace = type { i32, ptr }

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [124 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Assimp23VertexTriangleAdjacencyC2EP6aiFacejjb(ptr nocapture noundef nonnull writeonly align 8 dereferenceable(28) %0, ptr noundef readonly %1, i32 noundef %2, i32 noundef %3, i1 noundef zeroext %4) unnamed_addr #0 align 2 {
  %6 = alloca i32, align 4
  store i32 %3, ptr %6, align 4, !tbaa !5
  %7 = zext i32 %2 to i64
  %8 = getelementptr inbounds %struct.aiFace, ptr %1, i64 %7
  %9 = icmp ne i32 %3, 0
  %.not78 = icmp eq i32 %2, 0
  %or.cond = or i1 %9, %.not78
  br i1 %or.cond, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %5, %15
  %.079 = phi ptr [ %28, %15 ], [ %1, %5 ]
  %.not71 = icmp eq ptr %.079, null
  br i1 %.not71, label %10, label %11

10:                                               ; preds = %.lr.ph
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 60)
  br label %11

11:                                               ; preds = %10, %.lr.ph
  %12 = load i32, ptr %.079, align 8, !tbaa !9
  %13 = icmp eq i32 %12, 3
  br i1 %13, label %15, label %14

14:                                               ; preds = %11
  call void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 61)
  br label %15

15:                                               ; preds = %14, %11
  %16 = getelementptr inbounds i8, ptr %.079, i64 8
  %17 = load ptr, ptr %16, align 8, !tbaa !12
  %18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %19 = load i32, ptr %18, align 4, !tbaa !5
  store i32 %19, ptr %6, align 4, !tbaa !5
  %20 = load ptr, ptr %16, align 8, !tbaa !12
  %21 = getelementptr inbounds i8, ptr %20, i64 4
  %22 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %21)
  %23 = load i32, ptr %22, align 4, !tbaa !5
  store i32 %23, ptr %6, align 4, !tbaa !5
  %24 = load ptr, ptr %16, align 8, !tbaa !12
  %25 = getelementptr inbounds i8, ptr %24, i64 8
  %26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %25)
  %27 = load i32, ptr %26, align 4, !tbaa !5
  store i32 %27, ptr %6, align 4, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %.079, i64 16
  %.not = icmp eq ptr %28, %8
  br i1 %.not, label %.loopexit, label %.lr.ph, !llvm.loop !13

.loopexit:                                        ; preds = %15, %5
  %29 = phi i32 [ %3, %5 ], [ %27, %15 ]
  %30 = add i32 %29, 1
  %31 = getelementptr inbounds i8, ptr %0, i64 24
  store i32 %30, ptr %31, align 8, !tbaa !15
  br i1 %4, label %32, label %42

32:                                               ; preds = %.loopexit
  %33 = zext i32 %30 to i64
  %34 = shl nuw nsw i64 %33, 2
  %35 = call noalias noundef nonnull ptr @_Znam(i64 noundef %34) #5
  %36 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %35, ptr %36, align 8, !tbaa !17
  call void @llvm.memset.p0.i64(ptr nonnull align 4 %35, i8 0, i64 %34, i1 false)
  %37 = add i32 %29, 2
  %38 = zext i32 %37 to i64
  %39 = shl nuw nsw i64 %38, 2
  %40 = call noalias noundef nonnull ptr @_Znam(i64 noundef %39) #5
  %41 = getelementptr inbounds i8, ptr %40, i64 4
  br label %51

42:                                               ; preds = %.loopexit
  %43 = add i32 %29, 2
  %44 = zext i32 %43 to i64
  %45 = shl nuw nsw i64 %44, 2
  %46 = call noalias noundef nonnull ptr @_Znam(i64 noundef %45) #5
  %47 = getelementptr inbounds i8, ptr %46, i64 4
  %48 = zext i32 %30 to i64
  %49 = shl nuw nsw i64 %48, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 4 %47, i8 0, i64 %49, i1 false)
  %50 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr null, ptr %50, align 8, !tbaa !17
  br label %51

51:                                               ; preds = %42, %32
  %52 = phi ptr [ %41, %32 ], [ %47, %42 ]
  %.059 = phi ptr [ %35, %32 ], [ %47, %42 ]
  store ptr %52, ptr %0, align 8
  %53 = zext i32 %29 to i64
  %54 = getelementptr inbounds i32, ptr %.059, i64 %53
  %55 = getelementptr inbounds i8, ptr %54, i64 4
  store i32 0, ptr %54, align 4, !tbaa !5
  br i1 %.not78, label %._crit_edge, label %.lr.ph82

._crit_edge:                                      ; preds = %.thread72, %51
  %.not6783 = icmp eq ptr %.059, %55
  br i1 %.not6783, label %._crit_edge89, label %.lr.ph88.preheader

.lr.ph88.preheader:                               ; preds = %._crit_edge
  %56 = add nuw nsw i64 %53, 1
  %xtraiter = and i64 %56, 7
  %57 = icmp ult i32 %29, 7
  br i1 %57, label %._crit_edge89.loopexit.unr-lcssa, label %.lr.ph88.preheader.new

.lr.ph88.preheader.new:                           ; preds = %.lr.ph88.preheader
  %unroll_iter = and i64 %56, 8589934584
  br label %.lr.ph88

.lr.ph82:                                         ; preds = %51, %.thread72
  %.06481 = phi ptr [ %82, %.thread72 ], [ %1, %51 ]
  %58 = load i32, ptr %.06481, align 8, !tbaa !9
  %59 = getelementptr inbounds i8, ptr %.06481, i64 8
  %60 = load ptr, ptr %59, align 8, !tbaa !12
  %.not70 = icmp eq i32 %58, 0
  br i1 %.not70, label %.thread72, label %61

61:                                               ; preds = %.lr.ph82
  %62 = load i32, ptr %60, align 4, !tbaa !5
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds i32, ptr %.059, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = add i32 %65, 1
  store i32 %66, ptr %64, align 4, !tbaa !5
  %.not76 = icmp eq i32 %58, 1
  br i1 %.not76, label %.thread72, label %67

67:                                               ; preds = %61
  %68 = getelementptr inbounds i8, ptr %60, i64 4
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = zext i32 %69 to i64
  %71 = getelementptr inbounds i32, ptr %.059, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = add i32 %72, 1
  store i32 %73, ptr %71, align 4, !tbaa !5
  %74 = icmp ugt i32 %58, 2
  br i1 %74, label %75, label %.thread72

75:                                               ; preds = %67
  %76 = getelementptr inbounds i8, ptr %60, i64 8
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = zext i32 %77 to i64
  %79 = getelementptr inbounds i32, ptr %.059, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = add i32 %80, 1
  store i32 %81, ptr %79, align 4, !tbaa !5
  br label %.thread72

.thread72:                                        ; preds = %.lr.ph82, %61, %75, %67
  %82 = getelementptr inbounds i8, ptr %.06481, i64 16
  %.not66 = icmp eq ptr %82, %8
  br i1 %.not66, label %._crit_edge, label %.lr.ph82, !llvm.loop !18

._crit_edge89.loopexit.unr-lcssa:                 ; preds = %.lr.ph88, %.lr.ph88.preheader
  %.lcssa.ph = phi i32 [ poison, %.lr.ph88.preheader ], [ %120, %.lr.ph88 ]
  %.06186.unr = phi ptr [ %.059, %.lr.ph88.preheader ], [ %121, %.lr.ph88 ]
  %.06285.unr = phi ptr [ %52, %.lr.ph88.preheader ], [ %122, %.lr.ph88 ]
  %.06384.unr = phi i32 [ 0, %.lr.ph88.preheader ], [ %120, %.lr.ph88 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge89.loopexit, label %.lr.ph88.epil

.lr.ph88.epil:                                    ; preds = %._crit_edge89.loopexit.unr-lcssa, %.lr.ph88.epil
  %.06186.epil = phi ptr [ %85, %.lr.ph88.epil ], [ %.06186.unr, %._crit_edge89.loopexit.unr-lcssa ]
  %.06285.epil = phi ptr [ %86, %.lr.ph88.epil ], [ %.06285.unr, %._crit_edge89.loopexit.unr-lcssa ]
  %.06384.epil = phi i32 [ %84, %.lr.ph88.epil ], [ %.06384.unr, %._crit_edge89.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph88.epil ], [ 0, %._crit_edge89.loopexit.unr-lcssa ]
  %83 = load i32, ptr %.06186.epil, align 4, !tbaa !5
  %84 = add i32 %83, %.06384.epil
  store i32 %.06384.epil, ptr %.06285.epil, align 4, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %.06186.epil, i64 4
  %86 = getelementptr inbounds i8, ptr %.06285.epil, i64 4
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge89.loopexit, label %.lr.ph88.epil, !llvm.loop !19

._crit_edge89.loopexit:                           ; preds = %.lr.ph88.epil, %._crit_edge89.loopexit.unr-lcssa
  %.lcssa = phi i32 [ %.lcssa.ph, %._crit_edge89.loopexit.unr-lcssa ], [ %84, %.lr.ph88.epil ]
  %87 = zext i32 %.lcssa to i64
  %88 = shl nuw nsw i64 %87, 2
  br label %._crit_edge89

._crit_edge89:                                    ; preds = %._crit_edge89.loopexit, %._crit_edge
  %.063.lcssa = phi i64 [ 0, %._crit_edge ], [ %88, %._crit_edge89.loopexit ]
  %89 = call noalias noundef nonnull ptr @_Znam(i64 noundef %.063.lcssa) #5
  %90 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %89, ptr %90, align 8, !tbaa !21
  br i1 %.not78, label %._crit_edge95, label %.lr.ph94

.lr.ph88:                                         ; preds = %.lr.ph88, %.lr.ph88.preheader.new
  %.06186 = phi ptr [ %.059, %.lr.ph88.preheader.new ], [ %121, %.lr.ph88 ]
  %.06285 = phi ptr [ %52, %.lr.ph88.preheader.new ], [ %122, %.lr.ph88 ]
  %.06384 = phi i32 [ 0, %.lr.ph88.preheader.new ], [ %120, %.lr.ph88 ]
  %niter = phi i64 [ 0, %.lr.ph88.preheader.new ], [ %niter.next.7, %.lr.ph88 ]
  %91 = load i32, ptr %.06186, align 4, !tbaa !5
  %92 = add i32 %91, %.06384
  store i32 %.06384, ptr %.06285, align 4, !tbaa !5
  %93 = getelementptr inbounds i8, ptr %.06186, i64 4
  %94 = getelementptr inbounds i8, ptr %.06285, i64 4
  %95 = load i32, ptr %93, align 4, !tbaa !5
  %96 = add i32 %95, %92
  store i32 %92, ptr %94, align 4, !tbaa !5
  %97 = getelementptr inbounds i8, ptr %.06186, i64 8
  %98 = getelementptr inbounds i8, ptr %.06285, i64 8
  %99 = load i32, ptr %97, align 4, !tbaa !5
  %100 = add i32 %99, %96
  store i32 %96, ptr %98, align 4, !tbaa !5
  %101 = getelementptr inbounds i8, ptr %.06186, i64 12
  %102 = getelementptr inbounds i8, ptr %.06285, i64 12
  %103 = load i32, ptr %101, align 4, !tbaa !5
  %104 = add i32 %103, %100
  store i32 %100, ptr %102, align 4, !tbaa !5
  %105 = getelementptr inbounds i8, ptr %.06186, i64 16
  %106 = getelementptr inbounds i8, ptr %.06285, i64 16
  %107 = load i32, ptr %105, align 4, !tbaa !5
  %108 = add i32 %107, %104
  store i32 %104, ptr %106, align 4, !tbaa !5
  %109 = getelementptr inbounds i8, ptr %.06186, i64 20
  %110 = getelementptr inbounds i8, ptr %.06285, i64 20
  %111 = load i32, ptr %109, align 4, !tbaa !5
  %112 = add i32 %111, %108
  store i32 %108, ptr %110, align 4, !tbaa !5
  %113 = getelementptr inbounds i8, ptr %.06186, i64 24
  %114 = getelementptr inbounds i8, ptr %.06285, i64 24
  %115 = load i32, ptr %113, align 4, !tbaa !5
  %116 = add i32 %115, %112
  store i32 %112, ptr %114, align 4, !tbaa !5
  %117 = getelementptr inbounds i8, ptr %.06186, i64 28
  %118 = getelementptr inbounds i8, ptr %.06285, i64 28
  %119 = load i32, ptr %117, align 4, !tbaa !5
  %120 = add i32 %119, %116
  store i32 %116, ptr %118, align 4, !tbaa !5
  %121 = getelementptr inbounds i8, ptr %.06186, i64 32
  %122 = getelementptr inbounds i8, ptr %.06285, i64 32
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge89.loopexit.unr-lcssa, label %.lr.ph88, !llvm.loop !22

._crit_edge95:                                    ; preds = %.thread75, %._crit_edge89
  %123 = getelementptr inbounds i8, ptr %52, i64 -4
  store ptr %123, ptr %0, align 8, !tbaa !23
  store i32 0, ptr %123, align 4, !tbaa !5
  ret void

.lr.ph94:                                         ; preds = %._crit_edge89, %.thread75
  %.06092 = phi ptr [ %154, %.thread75 ], [ %1, %._crit_edge89 ]
  %.191 = phi i32 [ %155, %.thread75 ], [ 0, %._crit_edge89 ]
  %124 = load i32, ptr %.06092, align 8, !tbaa !9
  %125 = getelementptr inbounds i8, ptr %.06092, i64 8
  %126 = load ptr, ptr %125, align 8, !tbaa !12
  %.not69 = icmp eq i32 %124, 0
  br i1 %.not69, label %.thread75, label %127

127:                                              ; preds = %.lr.ph94
  %128 = load i32, ptr %126, align 4, !tbaa !5
  %129 = zext i32 %128 to i64
  %130 = getelementptr inbounds i32, ptr %52, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !5
  %132 = add i32 %131, 1
  store i32 %132, ptr %130, align 4, !tbaa !5
  %133 = zext i32 %131 to i64
  %134 = getelementptr inbounds i32, ptr %89, i64 %133
  store i32 %.191, ptr %134, align 4, !tbaa !5
  %.not77 = icmp eq i32 %124, 1
  br i1 %.not77, label %.thread75, label %135

135:                                              ; preds = %127
  %136 = getelementptr inbounds i8, ptr %126, i64 4
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = zext i32 %137 to i64
  %139 = getelementptr inbounds i32, ptr %52, i64 %138
  %140 = load i32, ptr %139, align 4, !tbaa !5
  %141 = add i32 %140, 1
  store i32 %141, ptr %139, align 4, !tbaa !5
  %142 = zext i32 %140 to i64
  %143 = getelementptr inbounds i32, ptr %89, i64 %142
  store i32 %.191, ptr %143, align 4, !tbaa !5
  %144 = icmp ugt i32 %124, 2
  br i1 %144, label %145, label %.thread75

145:                                              ; preds = %135
  %146 = getelementptr inbounds i8, ptr %126, i64 8
  %147 = load i32, ptr %146, align 4, !tbaa !5
  %148 = zext i32 %147 to i64
  %149 = getelementptr inbounds i32, ptr %52, i64 %148
  %150 = load i32, ptr %149, align 4, !tbaa !5
  %151 = add i32 %150, 1
  store i32 %151, ptr %149, align 4, !tbaa !5
  %152 = zext i32 %150 to i64
  %153 = getelementptr inbounds i32, ptr %89, i64 %152
  store i32 %.191, ptr %153, align 4, !tbaa !5
  br label %.thread75

.thread75:                                        ; preds = %.lr.ph94, %127, %145, %135
  %154 = getelementptr inbounds i8, ptr %.06092, i64 16
  %155 = add nuw i32 %.191, 1
  %.not68 = icmp eq ptr %154, %8
  br i1 %.not68, label %._crit_edge95, label %.lr.ph94, !llvm.loop !24
}

declare void @_ZN6Assimp17aiAssertViolationEPKcS1_i(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

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

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

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTS6aiFace", !6, i64 0, !11, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !6, i64 24}
!16 = !{!"_ZTSN6Assimp23VertexTriangleAdjacencyE", !11, i64 0, !11, i64 8, !11, i64 16, !6, i64 24}
!17 = !{!16, !11, i64 16}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.unroll.disable"}
!21 = !{!16, !11, i64 8}
!22 = distinct !{!22, !14}
!23 = !{!16, !11, i64 0}
!24 = distinct !{!24, !14}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass