; LLVM IR from zeux/meshoptimizer :: src (vcacheoptimizer)

; 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.meshopt_Allocator = type { [24 x ptr], i64 }
%"struct.meshopt::TriangleAdjacency" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [21 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [76 x i8], align 1
@__PRETTY_FUNCTION__._Z32meshopt_optimizeVertexCacheTablePjPKjmmPKN7meshopt16VertexScoreTableE = external hidden unnamed_addr constant [127 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z32meshopt_optimizeVertexCacheTablePjPKjmmPKN7meshopt16VertexScoreTableE(ptr noundef %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4) #0 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %class.meshopt_Allocator, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca %"struct.meshopt::TriangleAdjacency", align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i64, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i64, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca [40 x i32], align 16
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca i64, align 8
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i64, align 8
  %39 = alloca i64, align 8
  %40 = alloca i32, align 4
  %41 = alloca ptr, align 8
  %42 = alloca i64, align 8
  %43 = alloca i32, align 4
  %44 = alloca ptr, align 8
  %45 = alloca i64, align 8
  %46 = alloca i64, align 8
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca float, align 4
  %50 = alloca i64, align 8
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  %53 = alloca float, align 4
  %54 = alloca float, align 4
  %55 = alloca ptr, align 8
  %56 = alloca ptr, align 8
  %57 = alloca ptr, align 8
  %58 = alloca i32, align 4
  %59 = alloca float, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i64 %2, ptr %8, align 8, !tbaa !9
  store i64 %3, ptr %9, align 8, !tbaa !9
  store ptr %4, ptr %10, align 8, !tbaa !5
  %60 = load i64, ptr %8, align 8, !tbaa !9
  %61 = urem i64 %60, 3
  %62 = icmp eq i64 %61, 0
  br i1 %62, label %63, label %64

63:                                               ; preds = %5
  br label %66

64:                                               ; preds = %5
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 173, ptr noundef @__PRETTY_FUNCTION__._Z32meshopt_optimizeVertexCacheTablePjPKjmmPKN7meshopt16VertexScoreTableE) #6
  unreachable

65:                                               ; No predecessors!
  br label %66

66:                                               ; preds = %65, %63
  call void @llvm.lifetime.start.p0(i64 200, ptr %11) #7
  call void @_ZN17meshopt_AllocatorC2Ev(ptr noundef nonnull align 8 dereferenceable(200) %11)
  %67 = load i64, ptr %8, align 8, !tbaa !9
  %68 = icmp eq i64 %67, 0
  br i1 %68, label %72, label %69

69:                                               ; preds = %66
  %70 = load i64, ptr %9, align 8, !tbaa !9
  %71 = icmp eq i64 %70, 0
  br i1 %71, label %72, label %73

72:                                               ; preds = %69, %66
  store i32 1, ptr %12, align 4
  br label %583

73:                                               ; preds = %69
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = icmp eq ptr %74, %75
  br i1 %76, label %77, label %90

77:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %78 = load i64, ptr %8, align 8, !tbaa !9
  %79 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIjEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %11, i64 noundef %78)
          to label %80 unwind label %86

80:                                               ; preds = %77
  store ptr %79, ptr %13, align 8, !tbaa !5
  %81 = load ptr, ptr %13, align 8, !tbaa !5
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = load i64, ptr %8, align 8, !tbaa !9
  %84 = mul i64 %83, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %81, ptr align 4 %82, i64 %84, i1 false)
  %85 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %85, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %90

86:                                               ; preds = %77
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %14, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %590

90:                                               ; preds = %80, %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 16, ptr %16, align 4, !tbaa !11
  %91 = load i32, ptr %16, align 4, !tbaa !11
  %92 = zext i32 %91 to i64
  %93 = icmp ule i64 %92, 16
  br i1 %93, label %94, label %95

94:                                               ; preds = %90
  br label %97

95:                                               ; preds = %90
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 190, ptr noundef @__PRETTY_FUNCTION__._Z32meshopt_optimizeVertexCacheTablePjPKjmmPKN7meshopt16VertexScoreTableE) #6
  unreachable

96:                                               ; No predecessors!
  br label %97

97:                                               ; preds = %96, %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %98 = load i64, ptr %8, align 8, !tbaa !9
  %99 = udiv i64 %98, 3
  store i64 %99, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #7
  call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 24, i1 false)
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = load i64, ptr %8, align 8, !tbaa !9
  %102 = load i64, ptr %9, align 8, !tbaa !9
  invoke void @_ZN7meshoptL22buildTriangleAdjacencyERNS_17TriangleAdjacencyEPKjmmR17meshopt_Allocator(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef %100, i64 noundef %101, i64 noundef %102, ptr noundef nonnull align 8 dereferenceable(200) %11)
          to label %103 unwind label %119

103:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %104 = getelementptr inbounds %"struct.meshopt::TriangleAdjacency", ptr %18, i32 0, i32 0
  %105 = load ptr, ptr %104, align 8, !tbaa !13
  store ptr %105, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %106 = load i64, ptr %17, align 8, !tbaa !9
  %107 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIhEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %11, i64 noundef %106)
          to label %108 unwind label %123

108:                                              ; preds = %103
  store ptr %107, ptr %20, align 8, !tbaa !5
  %109 = load ptr, ptr %20, align 8, !tbaa !5
  %110 = load i64, ptr %17, align 8, !tbaa !9
  call void @llvm.memset.p0.i64(ptr align 1 %109, i8 0, i64 %110, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %111 = load i64, ptr %9, align 8, !tbaa !9
  %112 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIfEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %11, i64 noundef %111)
          to label %113 unwind label %127

113:                                              ; preds = %108
  store ptr %112, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %114

114:                                              ; preds = %142, %113
  %115 = load i64, ptr %22, align 8, !tbaa !9
  %116 = load i64, ptr %9, align 8, !tbaa !9
  %117 = icmp ult i64 %115, %116
  br i1 %117, label %131, label %118

118:                                              ; preds = %114
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %149

119:                                              ; preds = %97
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %14, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %15, align 4
  br label %589

123:                                              ; preds = %103
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %14, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %15, align 4
  br label %588

127:                                              ; preds = %108
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %14, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %15, align 4
  br label %587

131:                                              ; preds = %114
  %132 = load ptr, ptr %10, align 8, !tbaa !5
  %133 = load ptr, ptr %19, align 8, !tbaa !5
  %134 = load i64, ptr %22, align 8, !tbaa !9
  %135 = getelementptr inbounds i32, ptr %133, i64 %134
  %136 = load i32, ptr %135, align 4, !tbaa !11
  %137 = invoke noundef float @_ZN7meshoptL11vertexScoreEPKNS_16VertexScoreTableEij(ptr noundef %132, i32 noundef -1, i32 noundef %136)
          to label %138 unwind label %145

138:                                              ; preds = %131
  %139 = load ptr, ptr %21, align 8, !tbaa !5
  %140 = load i64, ptr %22, align 8, !tbaa !9
  %141 = getelementptr inbounds float, ptr %139, i64 %140
  store float %137, ptr %141, align 4, !tbaa !15
  br label %142

142:                                              ; preds = %138
  %143 = load i64, ptr %22, align 8, !tbaa !9
  %144 = add i64 %143, 1
  store i64 %144, ptr %22, align 8, !tbaa !9
  br label %114, !llvm.loop !17

145:                                              ; preds = %131
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %14, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %587

149:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %150 = load i64, ptr %17, align 8, !tbaa !9
  %151 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIfEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %11, i64 noundef %150)
          to label %152 unwind label %158

152:                                              ; preds = %149
  store ptr %151, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %153

153:                                              ; preds = %201, %152
  %154 = load i64, ptr %24, align 8, !tbaa !9
  %155 = load i64, ptr %17, align 8, !tbaa !9
  %156 = icmp ult i64 %154, %155
  br i1 %156, label %162, label %157

157:                                              ; preds = %153
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %204

158:                                              ; preds = %149
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %14, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %15, align 4
  br label %586

162:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %163 = load ptr, ptr %7, align 8, !tbaa !5
  %164 = load i64, ptr %24, align 8, !tbaa !9
  %165 = mul i64 %164, 3
  %166 = add i64 %165, 0
  %167 = getelementptr inbounds i32, ptr %163, i64 %166
  %168 = load i32, ptr %167, align 4, !tbaa !11
  store i32 %168, ptr %25, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  %170 = load i64, ptr %24, align 8, !tbaa !9
  %171 = mul i64 %170, 3
  %172 = add i64 %171, 1
  %173 = getelementptr inbounds i32, ptr %169, i64 %172
  %174 = load i32, ptr %173, align 4, !tbaa !11
  store i32 %174, ptr %26, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %175 = load ptr, ptr %7, align 8, !tbaa !5
  %176 = load i64, ptr %24, align 8, !tbaa !9
  %177 = mul i64 %176, 3
  %178 = add i64 %177, 2
  %179 = getelementptr inbounds i32, ptr %175, i64 %178
  %180 = load i32, ptr %179, align 4, !tbaa !11
  store i32 %180, ptr %27, align 4, !tbaa !11
  %181 = load ptr, ptr %21, align 8, !tbaa !5
  %182 = load i32, ptr %25, align 4, !tbaa !11
  %183 = zext i32 %182 to i64
  %184 = getelementptr inbounds float, ptr %181, i64 %183
  %185 = load float, ptr %184, align 4, !tbaa !15
  %186 = load ptr, ptr %21, align 8, !tbaa !5
  %187 = load i32, ptr %26, align 4, !tbaa !11
  %188 = zext i32 %187 to i64
  %189 = getelementptr inbounds float, ptr %186, i64 %188
  %190 = load float, ptr %189, align 4, !tbaa !15
  %191 = fadd float %185, %190
  %192 = load ptr, ptr %21, align 8, !tbaa !5
  %193 = load i32, ptr %27, align 4, !tbaa !11
  %194 = zext i32 %193 to i64
  %195 = getelementptr inbounds float, ptr %192, i64 %194
  %196 = load float, ptr %195, align 4, !tbaa !15
  %197 = fadd float %191, %196
  %198 = load ptr, ptr %23, align 8, !tbaa !5
  %199 = load i64, ptr %24, align 8, !tbaa !9
  %200 = getelementptr inbounds float, ptr %198, i64 %199
  store float %197, ptr %200, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %201

201:                                              ; preds = %162
  %202 = load i64, ptr %24, align 8, !tbaa !9
  %203 = add i64 %202, 1
  store i64 %203, ptr %24, align 8, !tbaa !9
  br label %153, !llvm.loop !19

204:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 160, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %205 = getelementptr inbounds [40 x i32], ptr %28, i64 0, i64 0
  store ptr %205, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %206 = getelementptr inbounds [40 x i32], ptr %28, i64 0, i64 0
  %207 = getelementptr inbounds i32, ptr %206, i64 16
  %208 = getelementptr inbounds i32, ptr %207, i64 4
  store ptr %208, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  store i64 0, ptr %31, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  store i32 0, ptr %32, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  store i32 1, ptr %33, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  store i32 0, ptr %34, align 4, !tbaa !11
  br label %209

209:                                              ; preds = %564, %204
  %210 = load i32, ptr %32, align 4, !tbaa !11
  %211 = icmp ne i32 %210, -1
  br i1 %211, label %212, label %566

212:                                              ; preds = %209
  %213 = load i32, ptr %34, align 4, !tbaa !11
  %214 = zext i32 %213 to i64
  %215 = load i64, ptr %17, align 8, !tbaa !9
  %216 = icmp ult i64 %214, %215
  br i1 %216, label %217, label %218

217:                                              ; preds = %212
  br label %220

218:                                              ; preds = %212
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 235, ptr noundef @__PRETTY_FUNCTION__._Z32meshopt_optimizeVertexCacheTablePjPKjmmPKN7meshopt16VertexScoreTableE) #6
  unreachable

219:                                              ; No predecessors!
  br label %220

220:                                              ; preds = %219, %217
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  %221 = load ptr, ptr %7, align 8, !tbaa !5
  %222 = load i32, ptr %32, align 4, !tbaa !11
  %223 = mul i32 %222, 3
  %224 = add i32 %223, 0
  %225 = zext i32 %224 to i64
  %226 = getelementptr inbounds i32, ptr %221, i64 %225
  %227 = load i32, ptr %226, align 4, !tbaa !11
  store i32 %227, ptr %35, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  %228 = load ptr, ptr %7, align 8, !tbaa !5
  %229 = load i32, ptr %32, align 4, !tbaa !11
  %230 = mul i32 %229, 3
  %231 = add i32 %230, 1
  %232 = zext i32 %231 to i64
  %233 = getelementptr inbounds i32, ptr %228, i64 %232
  %234 = load i32, ptr %233, align 4, !tbaa !11
  store i32 %234, ptr %36, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #7
  %235 = load ptr, ptr %7, align 8, !tbaa !5
  %236 = load i32, ptr %32, align 4, !tbaa !11
  %237 = mul i32 %236, 3
  %238 = add i32 %237, 2
  %239 = zext i32 %238 to i64
  %240 = getelementptr inbounds i32, ptr %235, i64 %239
  %241 = load i32, ptr %240, align 4, !tbaa !11
  store i32 %241, ptr %37, align 4, !tbaa !11
  %242 = load i32, ptr %35, align 4, !tbaa !11
  %243 = load ptr, ptr %6, align 8, !tbaa !5
  %244 = load i32, ptr %34, align 4, !tbaa !11
  %245 = mul i32 %244, 3
  %246 = add i32 %245, 0
  %247 = zext i32 %246 to i64
  %248 = getelementptr inbounds i32, ptr %243, i64 %247
  store i32 %242, ptr %248, align 4, !tbaa !11
  %249 = load i32, ptr %36, align 4, !tbaa !11
  %250 = load ptr, ptr %6, align 8, !tbaa !5
  %251 = load i32, ptr %34, align 4, !tbaa !11
  %252 = mul i32 %251, 3
  %253 = add i32 %252, 1
  %254 = zext i32 %253 to i64
  %255 = getelementptr inbounds i32, ptr %250, i64 %254
  store i32 %249, ptr %255, align 4, !tbaa !11
  %256 = load i32, ptr %37, align 4, !tbaa !11
  %257 = load ptr, ptr %6, align 8, !tbaa !5
  %258 = load i32, ptr %34, align 4, !tbaa !11
  %259 = mul i32 %258, 3
  %260 = add i32 %259, 2
  %261 = zext i32 %260 to i64
  %262 = getelementptr inbounds i32, ptr %257, i64 %261
  store i32 %256, ptr %262, align 4, !tbaa !11
  %263 = load i32, ptr %34, align 4, !tbaa !11
  %264 = add i32 %263, 1
  store i32 %264, ptr %34, align 4, !tbaa !11
  %265 = load ptr, ptr %20, align 8, !tbaa !5
  %266 = load i32, ptr %32, align 4, !tbaa !11
  %267 = zext i32 %266 to i64
  %268 = getelementptr inbounds i8, ptr %265, i64 %267
  store i8 1, ptr %268, align 1, !tbaa !20
  %269 = load ptr, ptr %23, align 8, !tbaa !5
  %270 = load i32, ptr %32, align 4, !tbaa !11
  %271 = zext i32 %270 to i64
  %272 = getelementptr inbounds float, ptr %269, i64 %271
  store float 0.000000e+00, ptr %272, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  store i64 0, ptr %38, align 8, !tbaa !9
  %273 = load i32, ptr %35, align 4, !tbaa !11
  %274 = load ptr, ptr %30, align 8, !tbaa !5
  %275 = load i64, ptr %38, align 8, !tbaa !9
  %276 = add i64 %275, 1
  store i64 %276, ptr %38, align 8, !tbaa !9
  %277 = getelementptr inbounds i32, ptr %274, i64 %275
  store i32 %273, ptr %277, align 4, !tbaa !11
  %278 = load i32, ptr %36, align 4, !tbaa !11
  %279 = load ptr, ptr %30, align 8, !tbaa !5
  %280 = load i64, ptr %38, align 8, !tbaa !9
  %281 = add i64 %280, 1
  store i64 %281, ptr %38, align 8, !tbaa !9
  %282 = getelementptr inbounds i32, ptr %279, i64 %280
  store i32 %278, ptr %282, align 4, !tbaa !11
  %283 = load i32, ptr %37, align 4, !tbaa !11
  %284 = load ptr, ptr %30, align 8, !tbaa !5
  %285 = load i64, ptr %38, align 8, !tbaa !9
  %286 = add i64 %285, 1
  store i64 %286, ptr %38, align 8, !tbaa !9
  %287 = getelementptr inbounds i32, ptr %284, i64 %285
  store i32 %283, ptr %287, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #7
  store i64 0, ptr %39, align 8, !tbaa !9
  br label %288

288:                                              ; preds = %319, %220
  %289 = load i64, ptr %39, align 8, !tbaa !9
  %290 = load i64, ptr %31, align 8, !tbaa !9
  %291 = icmp ult i64 %289, %290
  br i1 %291, label %293, label %292

292:                                              ; preds = %288
  store i32 10, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #7
  br label %322

293:                                              ; preds = %288
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #7
  %294 = load ptr, ptr %29, align 8, !tbaa !5
  %295 = load i64, ptr %39, align 8, !tbaa !9
  %296 = getelementptr inbounds i32, ptr %294, i64 %295
  %297 = load i32, ptr %296, align 4, !tbaa !11
  store i32 %297, ptr %40, align 4, !tbaa !11
  %298 = load i32, ptr %40, align 4, !tbaa !11
  %299 = load ptr, ptr %30, align 8, !tbaa !5
  %300 = load i64, ptr %38, align 8, !tbaa !9
  %301 = getelementptr inbounds i32, ptr %299, i64 %300
  store i32 %298, ptr %301, align 4, !tbaa !11
  %302 = load i32, ptr %40, align 4, !tbaa !11
  %303 = load i32, ptr %35, align 4, !tbaa !11
  %304 = icmp ne i32 %302, %303
  %305 = zext i1 %304 to i32
  %306 = load i32, ptr %40, align 4, !tbaa !11
  %307 = load i32, ptr %36, align 4, !tbaa !11
  %308 = icmp ne i32 %306, %307
  %309 = zext i1 %308 to i32
  %310 = and i32 %305, %309
  %311 = load i32, ptr %40, align 4, !tbaa !11
  %312 = load i32, ptr %37, align 4, !tbaa !11
  %313 = icmp ne i32 %311, %312
  %314 = zext i1 %313 to i32
  %315 = and i32 %310, %314
  %316 = sext i32 %315 to i64
  %317 = load i64, ptr %38, align 8, !tbaa !9
  %318 = add i64 %317, %316
  store i64 %318, ptr %38, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  br label %319

319:                                              ; preds = %293
  %320 = load i64, ptr %39, align 8, !tbaa !9
  %321 = add i64 %320, 1
  store i64 %321, ptr %39, align 8, !tbaa !9
  br label %288, !llvm.loop !21

322:                                              ; preds = %292
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #7
  %323 = load ptr, ptr %29, align 8, !tbaa !5
  store ptr %323, ptr %41, align 8, !tbaa !5
  %324 = load ptr, ptr %30, align 8, !tbaa !5
  store ptr %324, ptr %29, align 8, !tbaa !5
  %325 = load ptr, ptr %41, align 8, !tbaa !5
  store ptr %325, ptr %30, align 8, !tbaa !5
  %326 = load i64, ptr %38, align 8, !tbaa !9
  %327 = load i32, ptr %16, align 4, !tbaa !11
  %328 = zext i32 %327 to i64
  %329 = icmp ugt i64 %326, %328
  br i1 %329, label %330, label %333

330:                                              ; preds = %322
  %331 = load i32, ptr %16, align 4, !tbaa !11
  %332 = zext i32 %331 to i64
  br label %335

333:                                              ; preds = %322
  %334 = load i64, ptr %38, align 8, !tbaa !9
  br label %335

335:                                              ; preds = %333, %330
  %336 = phi i64 [ %332, %330 ], [ %334, %333 ]
  store i64 %336, ptr %31, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #7
  store i64 0, ptr %42, align 8, !tbaa !9
  br label %337

337:                                              ; preds = %406, %335
  %338 = load i64, ptr %42, align 8, !tbaa !9
  %339 = icmp ult i64 %338, 3
  br i1 %339, label %341, label %340

340:                                              ; preds = %337
  store i32 13, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  br label %409

341:                                              ; preds = %337
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #7
  %342 = load ptr, ptr %7, align 8, !tbaa !5
  %343 = load i32, ptr %32, align 4, !tbaa !11
  %344 = mul i32 %343, 3
  %345 = zext i32 %344 to i64
  %346 = load i64, ptr %42, align 8, !tbaa !9
  %347 = add i64 %345, %346
  %348 = getelementptr inbounds i32, ptr %342, i64 %347
  %349 = load i32, ptr %348, align 4, !tbaa !11
  store i32 %349, ptr %43, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #7
  %350 = getelementptr inbounds %"struct.meshopt::TriangleAdjacency", ptr %18, i32 0, i32 2
  %351 = load ptr, ptr %350, align 8, !tbaa !22
  %352 = getelementptr inbounds i32, ptr %351, i64 0
  %353 = getelementptr inbounds %"struct.meshopt::TriangleAdjacency", ptr %18, i32 0, i32 1
  %354 = load ptr, ptr %353, align 8, !tbaa !23
  %355 = load i32, ptr %43, align 4, !tbaa !11
  %356 = zext i32 %355 to i64
  %357 = getelementptr inbounds i32, ptr %354, i64 %356
  %358 = load i32, ptr %357, align 4, !tbaa !11
  %359 = zext i32 %358 to i64
  %360 = getelementptr inbounds i32, ptr %352, i64 %359
  store ptr %360, ptr %44, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #7
  %361 = getelementptr inbounds %"struct.meshopt::TriangleAdjacency", ptr %18, i32 0, i32 0
  %362 = load ptr, ptr %361, align 8, !tbaa !13
  %363 = load i32, ptr %43, align 4, !tbaa !11
  %364 = zext i32 %363 to i64
  %365 = getelementptr inbounds i32, ptr %362, i64 %364
  %366 = load i32, ptr %365, align 4, !tbaa !11
  %367 = zext i32 %366 to i64
  store i64 %367, ptr %45, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #7
  store i64 0, ptr %46, align 8, !tbaa !9
  br label %368

368:                                              ; preds = %401, %341
  %369 = load i64, ptr %46, align 8, !tbaa !9
  %370 = load i64, ptr %45, align 8, !tbaa !9
  %371 = icmp ult i64 %369, %370
  br i1 %371, label %373, label %372

372:                                              ; preds = %368
  store i32 16, ptr %12, align 4
  br label %404

373:                                              ; preds = %368
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #7
  %374 = load ptr, ptr %44, align 8, !tbaa !5
  %375 = load i64, ptr %46, align 8, !tbaa !9
  %376 = getelementptr inbounds i32, ptr %374, i64 %375
  %377 = load i32, ptr %376, align 4, !tbaa !11
  store i32 %377, ptr %47, align 4, !tbaa !11
  %378 = load i32, ptr %47, align 4, !tbaa !11
  %379 = load i32, ptr %32, align 4, !tbaa !11
  %380 = icmp eq i32 %378, %379
  br i1 %380, label %381, label %397

381:                                              ; preds = %373
  %382 = load ptr, ptr %44, align 8, !tbaa !5
  %383 = load i64, ptr %45, align 8, !tbaa !9
  %384 = sub i64 %383, 1
  %385 = getelementptr inbounds i32, ptr %382, i64 %384
  %386 = load i32, ptr %385, align 4, !tbaa !11
  %387 = load ptr, ptr %44, align 8, !tbaa !5
  %388 = load i64, ptr %46, align 8, !tbaa !9
  %389 = getelementptr inbounds i32, ptr %387, i64 %388
  store i32 %386, ptr %389, align 4, !tbaa !11
  %390 = getelementptr inbounds %"struct.meshopt::TriangleAdjacency", ptr %18, i32 0, i32 0
  %391 = load ptr, ptr %390, align 8, !tbaa !13
  %392 = load i32, ptr %43, align 4, !tbaa !11
  %393 = zext i32 %392 to i64
  %394 = getelementptr inbounds i32, ptr %391, i64 %393
  %395 = load i32, ptr %394, align 4, !tbaa !11
  %396 = add i32 %395, -1
  store i32 %396, ptr %394, align 4, !tbaa !11
  store i32 16, ptr %12, align 4
  br label %398

397:                                              ; preds = %373
  store i32 0, ptr %12, align 4
  br label %398

398:                                              ; preds = %397, %381
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #7
  %399 = load i32, ptr %12, align 4
  switch i32 %399, label %404 [
    i32 0, label %400
  ]

400:                                              ; preds = %398
  br label %401

401:                                              ; preds = %400
  %402 = load i64, ptr %46, align 8, !tbaa !9
  %403 = add i64 %402, 1
  store i64 %403, ptr %46, align 8, !tbaa !9
  br label %368, !llvm.loop !24

404:                                              ; preds = %398, %372
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #7
  br label %405

405:                                              ; preds = %404
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  br label %406

406:                                              ; preds = %405
  %407 = load i64, ptr %42, align 8, !tbaa !9
  %408 = add i64 %407, 1
  store i64 %408, ptr %42, align 8, !tbaa !9
  br label %337, !llvm.loop !25

409:                                              ; preds = %340
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #7
  store i32 -1, ptr %48, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #7
  store float 0.000000e+00, ptr %49, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #7
  store i64 0, ptr %50, align 8, !tbaa !9
  br label %410

410:                                              ; preds = %547, %409
  %411 = load i64, ptr %50, align 8, !tbaa !9
  %412 = load i64, ptr %38, align 8, !tbaa !9
  %413 = icmp ult i64 %411, %412
  br i1 %413, label %415, label %414

414:                                              ; preds = %410
  store i32 19, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #7
  br label %550

415:                                              ; preds = %410
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #7
  %416 = load ptr, ptr %29, align 8, !tbaa !5
  %417 = load i64, ptr %50, align 8, !tbaa !9
  %418 = getelementptr inbounds i32, ptr %416, i64 %417
  %419 = load i32, ptr %418, align 4, !tbaa !11
  store i32 %419, ptr %51, align 4, !tbaa !11
  %420 = getelementptr inbounds %"struct.meshopt::TriangleAdjacency", ptr %18, i32 0, i32 0
  %421 = load ptr, ptr %420, align 8, !tbaa !13
  %422 = load i32, ptr %51, align 4, !tbaa !11
  %423 = zext i32 %422 to i64
  %424 = getelementptr inbounds i32, ptr %421, i64 %423
  %425 = load i32, ptr %424, align 4, !tbaa !11
  %426 = icmp eq i32 %425, 0
  br i1 %426, label %427, label %428

427:                                              ; preds = %415
  store i32 21, ptr %12, align 4
  br label %544

428:                                              ; preds = %415
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #7
  %429 = load i64, ptr %50, align 8, !tbaa !9
  %430 = load i32, ptr %16, align 4, !tbaa !11
  %431 = zext i32 %430 to i64
  %432 = icmp uge i64 %429, %431
  br i1 %432, label %433, label %434

433:                                              ; preds = %428
  br label %437

434:                                              ; preds = %428
  %435 = load i64, ptr %50, align 8, !tbaa !9
  %436 = trunc i64 %435 to i32
  br label %437

437:                                              ; preds = %434, %433
  %438 = phi i32 [ -1, %433 ], [ %436, %434 ]
  store i32 %438, ptr %52, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #7
  %439 = load ptr, ptr %10, align 8, !tbaa !5
  %440 = load i32, ptr %52, align 4, !tbaa !11
  %441 = load ptr, ptr %19, align 8, !tbaa !5
  %442 = load i32, ptr %51, align 4, !tbaa !11
  %443 = zext i32 %442 to i64
  %444 = getelementptr inbounds i32, ptr %441, i64 %443
  %445 = load i32, ptr %444, align 4, !tbaa !11
  %446 = invoke noundef float @_ZN7meshoptL11vertexScoreEPKNS_16VertexScoreTableEij(ptr noundef %439, i32 noundef %440, i32 noundef %445)
          to label %447 unwind label %486

447:                                              ; preds = %437
  store float %446, ptr %53, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #7
  %448 = load float, ptr %53, align 4, !tbaa !15
  %449 = load ptr, ptr %21, align 8, !tbaa !5
  %450 = load i32, ptr %51, align 4, !tbaa !11
  %451 = zext i32 %450 to i64
  %452 = getelementptr inbounds float, ptr %449, i64 %451
  %453 = load float, ptr %452, align 4, !tbaa !15
  %454 = fsub float %448, %453
  store float %454, ptr %54, align 4, !tbaa !15
  %455 = load float, ptr %53, align 4, !tbaa !15
  %456 = load ptr, ptr %21, align 8, !tbaa !5
  %457 = load i32, ptr %51, align 4, !tbaa !11
  %458 = zext i32 %457 to i64
  %459 = getelementptr inbounds float, ptr %456, i64 %458
  store float %455, ptr %459, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #7
  %460 = getelementptr inbounds %"struct.meshopt::TriangleAdjacency", ptr %18, i32 0, i32 2
  %461 = load ptr, ptr %460, align 8, !tbaa !22
  %462 = getelementptr inbounds i32, ptr %461, i64 0
  %463 = getelementptr inbounds %"struct.meshopt::TriangleAdjacency", ptr %18, i32 0, i32 1
  %464 = load ptr, ptr %463, align 8, !tbaa !23
  %465 = load i32, ptr %51, align 4, !tbaa !11
  %466 = zext i32 %465 to i64
  %467 = getelementptr inbounds i32, ptr %464, i64 %466
  %468 = load i32, ptr %467, align 4, !tbaa !11
  %469 = zext i32 %468 to i64
  %470 = getelementptr inbounds i32, ptr %462, i64 %469
  store ptr %470, ptr %55, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #7
  %471 = load ptr, ptr %55, align 8, !tbaa !5
  %472 = getelementptr inbounds %"struct.meshopt::TriangleAdjacency", ptr %18, i32 0, i32 0
  %473 = load ptr, ptr %472, align 8, !tbaa !13
  %474 = load i32, ptr %51, align 4, !tbaa !11
  %475 = zext i32 %474 to i64
  %476 = getelementptr inbounds i32, ptr %473, i64 %475
  %477 = load i32, ptr %476, align 4, !tbaa !11
  %478 = zext i32 %477 to i64
  %479 = getelementptr inbounds i32, ptr %471, i64 %478
  store ptr %479, ptr %56, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #7
  %480 = load ptr, ptr %55, align 8, !tbaa !5
  store ptr %480, ptr %57, align 8, !tbaa !5
  br label %481

481:                                              ; preds = %540, %447
  %482 = load ptr, ptr %57, align 8, !tbaa !5
  %483 = load ptr, ptr %56, align 8, !tbaa !5
  %484 = icmp ne ptr %482, %483
  br i1 %484, label %490, label %485

485:                                              ; preds = %481
  store i32 22, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #7
  br label %543

486:                                              ; preds = %437
  %487 = landingpad { ptr, i32 }
          cleanup
  %488 = extractvalue { ptr, i32 } %487, 0
  store ptr %488, ptr %14, align 8
  %489 = extractvalue { ptr, i32 } %487, 1
  store i32 %489, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #7
  br label %565

490:                                              ; preds = %481
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #7
  %491 = load ptr, ptr %57, align 8, !tbaa !5
  %492 = load i32, ptr %491, align 4, !tbaa !11
  store i32 %492, ptr %58, align 4, !tbaa !11
  %493 = load ptr, ptr %20, align 8, !tbaa !5
  %494 = load i32, ptr %58, align 4, !tbaa !11
  %495 = zext i32 %494 to i64
  %496 = getelementptr inbounds i8, ptr %493, i64 %495
  %497 = load i8, ptr %496, align 1, !tbaa !20
  %498 = icmp ne i8 %497, 0
  %499 = xor i1 %498, true
  br i1 %499, label %500, label %501

500:                                              ; preds = %490
  br label %503

501:                                              ; preds = %490
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 320, ptr noundef @__PRETTY_FUNCTION__._Z32meshopt_optimizeVertexCacheTablePjPKjmmPKN7meshopt16VertexScoreTableE) #6
  unreachable

502:                                              ; No predecessors!
  br label %503

503:                                              ; preds = %502, %500
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #7
  %504 = load ptr, ptr %23, align 8, !tbaa !5
  %505 = load i32, ptr %58, align 4, !tbaa !11
  %506 = zext i32 %505 to i64
  %507 = getelementptr inbounds float, ptr %504, i64 %506
  %508 = load float, ptr %507, align 4, !tbaa !15
  %509 = load float, ptr %54, align 4, !tbaa !15
  %510 = fadd float %508, %509
  store float %510, ptr %59, align 4, !tbaa !15
  %511 = load float, ptr %59, align 4, !tbaa !15
  %512 = fcmp ogt float %511, 0.000000e+00
  br i1 %512, label %513, label %514

513:                                              ; preds = %503
  br label %516

514:                                              ; preds = %503
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 323, ptr noundef @__PRETTY_FUNCTION__._Z32meshopt_optimizeVertexCacheTablePjPKjmmPKN7meshopt16VertexScoreTableE) #6
  unreachable

515:                                              ; No predecessors!
  br label %516

516:                                              ; preds = %515, %513
  %517 = load float, ptr %49, align 4, !tbaa !15
  %518 = load float, ptr %59, align 4, !tbaa !15
  %519 = fcmp olt float %517, %518
  br i1 %519, label %520, label %522

520:                                              ; preds = %516
  %521 = load i32, ptr %58, align 4, !tbaa !11
  br label %524

522:                                              ; preds = %516
  %523 = load i32, ptr %48, align 4, !tbaa !11
  br label %524

524:                                              ; preds = %522, %520
  %525 = phi i32 [ %521, %520 ], [ %523, %522 ]
  store i32 %525, ptr %48, align 4, !tbaa !11
  %526 = load float, ptr %49, align 4, !tbaa !15
  %527 = load float, ptr %59, align 4, !tbaa !15
  %528 = fcmp olt float %526, %527
  br i1 %528, label %529, label %531

529:                                              ; preds = %524
  %530 = load float, ptr %59, align 4, !tbaa !15
  br label %533

531:                                              ; preds = %524
  %532 = load float, ptr %49, align 4, !tbaa !15
  br label %533

533:                                              ; preds = %531, %529
  %534 = phi float [ %530, %529 ], [ %532, %531 ]
  store float %534, ptr %49, align 4, !tbaa !15
  %535 = load float, ptr %59, align 4, !tbaa !15
  %536 = load ptr, ptr %23, align 8, !tbaa !5
  %537 = load i32, ptr %58, align 4, !tbaa !11
  %538 = zext i32 %537 to i64
  %539 = getelementptr inbounds float, ptr %536, i64 %538
  store float %535, ptr %539, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #7
  br label %540

540:                                              ; preds = %533
  %541 = load ptr, ptr %57, align 8, !tbaa !5
  %542 = getelementptr inbounds i32, ptr %541, i32 1
  store ptr %542, ptr %57, align 8, !tbaa !5
  br label %481, !llvm.loop !26

543:                                              ; preds = %485
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #7
  store i32 0, ptr %12, align 4
  br label %544

544:                                              ; preds = %543, %427
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #7
  %545 = load i32, ptr %12, align 4
  switch i32 %545, label %596 [
    i32 0, label %546
    i32 21, label %547
  ]

546:                                              ; preds = %544
  br label %547

547:                                              ; preds = %546, %544
  %548 = load i64, ptr %50, align 8, !tbaa !9
  %549 = add i64 %548, 1
  store i64 %549, ptr %50, align 8, !tbaa !9
  br label %410, !llvm.loop !27

550:                                              ; preds = %414
  %551 = load i32, ptr %48, align 4, !tbaa !11
  store i32 %551, ptr %32, align 4, !tbaa !11
  %552 = load i32, ptr %32, align 4, !tbaa !11
  %553 = icmp eq i32 %552, -1
  br i1 %553, label %554, label %564

554:                                              ; preds = %550
  %555 = load ptr, ptr %20, align 8, !tbaa !5
  %556 = getelementptr inbounds i8, ptr %555, i64 0
  %557 = load i64, ptr %17, align 8, !tbaa !9
  %558 = invoke noundef i32 @_ZN7meshoptL22getNextTriangleDeadEndERjPKhm(ptr noundef nonnull align 4 dereferenceable(4) %33, ptr noundef %556, i64 noundef %557)
          to label %559 unwind label %560

559:                                              ; preds = %554
  store i32 %558, ptr %32, align 4, !tbaa !11
  br label %564

560:                                              ; preds = %554
  %561 = landingpad { ptr, i32 }
          cleanup
  %562 = extractvalue { ptr, i32 } %561, 0
  store ptr %562, ptr %14, align 8
  %563 = extractvalue { ptr, i32 } %561, 1
  store i32 %563, ptr %15, align 4
  br label %565

564:                                              ; preds = %559, %550
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  br label %209, !llvm.loop !28

565:                                              ; preds = %560, %486
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr %28) #7
  br label %586

566:                                              ; preds = %209
  %567 = load i32, ptr %33, align 4, !tbaa !11
  %568 = zext i32 %567 to i64
  %569 = load i64, ptr %17, align 8, !tbaa !9
  %570 = icmp eq i64 %568, %569
  br i1 %570, label %571, label %572

571:                                              ; preds = %566
  br label %574

572:                                              ; preds = %566
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 341, ptr noundef @__PRETTY_FUNCTION__._Z32meshopt_optimizeVertexCacheTablePjPKjmmPKN7meshopt16VertexScoreTableE) #6
  unreachable

573:                                              ; No predecessors!
  br label %574

574:                                              ; preds = %573, %571
  %575 = load i32, ptr %34, align 4, !tbaa !11
  %576 = zext i32 %575 to i64
  %577 = load i64, ptr %17, align 8, !tbaa !9
  %578 = icmp eq i64 %576, %577
  br i1 %578, label %579, label %580

579:                                              ; preds = %574
  br label %582

580:                                              ; preds = %574
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 342, ptr noundef @__PRETTY_FUNCTION__._Z32meshopt_optimizeVertexCacheTablePjPKjmmPKN7meshopt16VertexScoreTableE) #6
  unreachable

581:                                              ; No predecessors!
  br label %582

582:                                              ; preds = %581, %579
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  store i32 0, ptr %12, align 4
  br label %583

583:                                              ; preds = %582, %72
  call void @_ZN17meshopt_AllocatorD2Ev(ptr noundef nonnull align 8 dereferenceable(200) %11) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr %11) #7
  %584 = load i32, ptr %12, align 4
  switch i32 %584, label %596 [
    i32 0, label %585
    i32 1, label %585
  ]

585:                                              ; preds = %583, %583
  ret void

586:                                              ; preds = %565, %158
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %587

587:                                              ; preds = %586, %145, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %588

588:                                              ; preds = %587, %123
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %589

589:                                              ; preds = %588, %119
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %590

590:                                              ; preds = %589, %86
  call void @_ZN17meshopt_AllocatorD2Ev(ptr noundef nonnull align 8 dereferenceable(200) %11) #7
  call void @llvm.lifetime.end.p0(i64 200, ptr %11) #7
  br label %591

591:                                              ; preds = %590
  %592 = load ptr, ptr %14, align 8
  %593 = load i32, ptr %15, align 4
  %594 = insertvalue { ptr, i32 } poison, ptr %592, 0
  %595 = insertvalue { ptr, i32 } %594, i32 %593, 1
  resume { ptr, i32 } %595

596:                                              ; preds = %583, %544
  unreachable
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

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

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

declare i32 @__gxx_personality_v0(...)

; 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) #4

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7meshoptL22buildTriangleAdjacencyERNS_17TriangleAdjacencyEPKjmmR17meshopt_Allocator(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i64 noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(200)) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef float @_ZN7meshoptL11vertexScoreEPKNS_16VertexScoreTableEij(ptr noundef, i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN7meshoptL22getNextTriangleDeadEndERjPKhm(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, i64 noundef) #3

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

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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { noreturn nounwind }
attributes #7 = { nounwind }

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

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


; 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.meshopt_Allocator = type { [24 x ptr], i64 }
%"struct.meshopt::TriangleAdjacency" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [21 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [76 x i8], align 1
@__PRETTY_FUNCTION__._Z32meshopt_optimizeVertexCacheTablePjPKjmmPKN7meshopt16VertexScoreTableE = external hidden unnamed_addr constant [127 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z32meshopt_optimizeVertexCacheTablePjPKjmmPKN7meshopt16VertexScoreTableE(ptr noundef writeonly %0, ptr noundef %1, i64 noundef %2, i64 noundef %3, ptr noundef %4) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %6 = alloca %class.meshopt_Allocator, align 8
  %7 = alloca %"struct.meshopt::TriangleAdjacency", align 8
  %8 = alloca [40 x i32], align 16
  %9 = alloca i32, align 4
  %10 = urem i64 %2, 3
  %11 = udiv i64 %2, 3
  %12 = icmp eq i64 %10, 0
  br i1 %12, label %14, label %13

13:                                               ; preds = %5
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 173, ptr noundef nonnull @__PRETTY_FUNCTION__._Z32meshopt_optimizeVertexCacheTablePjPKjmmPKN7meshopt16VertexScoreTableE) #7
  unreachable

14:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 200, ptr nonnull %6) #8
  call void @_ZN17meshopt_AllocatorC2Ev(ptr noundef nonnull align 8 dereferenceable(200) %6)
  %15 = icmp eq i64 %2, 0
  %16 = icmp eq i64 %3, 0
  %or.cond = or i1 %15, %16
  br i1 %or.cond, label %259, label %17

17:                                               ; preds = %14
  %18 = icmp eq ptr %0, %1
  br i1 %18, label %19, label %25

19:                                               ; preds = %17
  %20 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIjEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %6, i64 noundef %2)
          to label %21 unwind label %23

21:                                               ; preds = %19
  %22 = shl i64 %2, 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %1, i64 %22, i1 false)
  br label %25

23:                                               ; preds = %19
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %261

25:                                               ; preds = %17, %21
  %.0 = phi ptr [ %20, %21 ], [ %1, %17 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %7, i8 0, i64 24, i1 false)
  invoke void @_ZN7meshoptL22buildTriangleAdjacencyERNS_17TriangleAdjacencyEPKjmmR17meshopt_Allocator(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef %.0, i64 noundef %2, i64 noundef %3, ptr noundef nonnull align 8 dereferenceable(200) %6)
          to label %26 unwind label %32

26:                                               ; preds = %25
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIhEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %6, i64 noundef %11)
          to label %29 unwind label %34

29:                                               ; preds = %26
  call void @llvm.memset.p0.i64(ptr align 1 %28, i8 0, i64 %11, i1 false)
  %30 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIfEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %6, i64 noundef %3)
          to label %.lr.ph unwind label %36

._crit_edge:                                      ; preds = %.lr.ph
  %31 = invoke noundef ptr @_ZN17meshopt_Allocator8allocateIfEEPT_m(ptr noundef nonnull align 8 dereferenceable(200) %6, i64 noundef %11)
          to label %.preheader213 unwind label %46

.preheader213:                                    ; preds = %._crit_edge
  %.not257 = icmp ult i64 %2, 3
  br i1 %.not257, label %._crit_edge227, label %.lr.ph226

32:                                               ; preds = %25
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %260

34:                                               ; preds = %26
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %260

36:                                               ; preds = %29
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %260

.lr.ph:                                           ; preds = %29, %.lr.ph
  %.0179224 = phi i64 [ %42, %.lr.ph ], [ 0, %29 ]
  %38 = getelementptr inbounds i32, ptr %27, i64 %.0179224
  %39 = load i32, ptr %38, align 4, !tbaa !10
  %40 = call noundef float @_ZN7meshoptL11vertexScoreEPKNS_16VertexScoreTableEij(ptr noundef %4, i32 noundef -1, i32 noundef %39)
  %41 = getelementptr inbounds float, ptr %30, i64 %.0179224
  store float %40, ptr %41, align 4, !tbaa !12
  %42 = add nuw i64 %.0179224, 1
  %exitcond.not = icmp eq i64 %42, %3
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !14

._crit_edge227:                                   ; preds = %.lr.ph226, %.preheader213
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %8) #8
  %43 = getelementptr inbounds i8, ptr %8, i64 80
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #8
  store i32 1, ptr %9, align 4, !tbaa !10
  %44 = getelementptr inbounds i8, ptr %7, i64 16
  %45 = getelementptr inbounds i8, ptr %7, i64 8
  br label %70

46:                                               ; preds = %._crit_edge
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %260

.lr.ph226:                                        ; preds = %.preheader213, %.lr.ph226
  %.0180225 = phi i64 [ %69, %.lr.ph226 ], [ 0, %.preheader213 ]
  %48 = mul nuw i64 %.0180225, 3
  %49 = getelementptr inbounds i32, ptr %.0, i64 %48
  %50 = load i32, ptr %49, align 4, !tbaa !10
  %51 = add nuw i64 %48, 1
  %52 = getelementptr inbounds i32, ptr %.0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !10
  %54 = add nuw i64 %48, 2
  %55 = getelementptr inbounds i32, ptr %.0, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !10
  %57 = zext i32 %50 to i64
  %58 = getelementptr inbounds float, ptr %30, i64 %57
  %59 = load float, ptr %58, align 4, !tbaa !12
  %60 = zext i32 %53 to i64
  %61 = getelementptr inbounds float, ptr %30, i64 %60
  %62 = load float, ptr %61, align 4, !tbaa !12
  %63 = fadd float %59, %62
  %64 = zext i32 %56 to i64
  %65 = getelementptr inbounds float, ptr %30, i64 %64
  %66 = load float, ptr %65, align 4, !tbaa !12
  %67 = fadd float %63, %66
  %68 = getelementptr inbounds float, ptr %31, i64 %.0180225
  store float %67, ptr %68, align 4, !tbaa !12
  %69 = add nuw nsw i64 %.0180225, 1
  %exitcond267.not = icmp eq i64 %69, %11
  br i1 %exitcond267.not, label %._crit_edge227, label %.lr.ph226, !llvm.loop !16

70:                                               ; preds = %._crit_edge227, %248
  %.0181255 = phi ptr [ %8, %._crit_edge227 ], [ %.0182254, %248 ]
  %.0182254 = phi ptr [ %43, %._crit_edge227 ], [ %.0181255, %248 ]
  %.0190253 = phi i64 [ 0, %._crit_edge227 ], [ %199, %248 ]
  %.0192252 = phi i32 [ 0, %._crit_edge227 ], [ %.1193, %248 ]
  %.0194251 = phi i32 [ 0, %._crit_edge227 ], [ %96, %248 ]
  %71 = zext i32 %.0194251 to i64
  %72 = icmp ugt i64 %11, %71
  br i1 %72, label %74, label %73

73:                                               ; preds = %70
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 235, ptr noundef nonnull @__PRETTY_FUNCTION__._Z32meshopt_optimizeVertexCacheTablePjPKjmmPKN7meshopt16VertexScoreTableE) #7
  unreachable

74:                                               ; preds = %70
  %75 = mul i32 %.0192252, 3
  %76 = zext i32 %75 to i64
  %77 = getelementptr inbounds i32, ptr %.0, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !10
  %79 = add i32 %75, 1
  %80 = zext i32 %79 to i64
  %81 = getelementptr inbounds i32, ptr %.0, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !10
  %83 = add i32 %75, 2
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds i32, ptr %.0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !10
  %87 = mul i32 %.0194251, 3
  %88 = zext i32 %87 to i64
  %89 = getelementptr inbounds i32, ptr %0, i64 %88
  store i32 %78, ptr %89, align 4, !tbaa !10
  %90 = add i32 %87, 1
  %91 = zext i32 %90 to i64
  %92 = getelementptr inbounds i32, ptr %0, i64 %91
  store i32 %82, ptr %92, align 4, !tbaa !10
  %93 = add i32 %87, 2
  %94 = zext i32 %93 to i64
  %95 = getelementptr inbounds i32, ptr %0, i64 %94
  store i32 %86, ptr %95, align 4, !tbaa !10
  %96 = add i32 %.0194251, 1
  %97 = zext i32 %.0192252 to i64
  %98 = getelementptr inbounds i8, ptr %28, i64 %97
  store i8 1, ptr %98, align 1, !tbaa !17
  %99 = getelementptr inbounds float, ptr %31, i64 %97
  store float 0.000000e+00, ptr %99, align 4, !tbaa !12
  store i32 %78, ptr %.0182254, align 4, !tbaa !10
  %100 = getelementptr inbounds i8, ptr %.0182254, i64 4
  store i32 %82, ptr %100, align 4, !tbaa !10
  %101 = getelementptr inbounds i8, ptr %.0182254, i64 8
  store i32 %86, ptr %101, align 4, !tbaa !10
  %.not258 = icmp eq i64 %.0190253, 0
  br i1 %.not258, label %._crit_edge232, label %.lr.ph231.preheader

.lr.ph231.preheader:                              ; preds = %74
  %xtraiter = and i64 %.0190253, 1
  %102 = icmp eq i64 %.0190253, 1
  br i1 %102, label %._crit_edge232.loopexit.unr-lcssa, label %.lr.ph231.preheader.new

.lr.ph231.preheader.new:                          ; preds = %.lr.ph231.preheader
  %unroll_iter = and i64 %.0190253, 30
  br label %.lr.ph231

._crit_edge232.loopexit.unr-lcssa:                ; preds = %.lr.ph231, %.lr.ph231.preheader
  %.lcssa.ph = phi i64 [ poison, %.lr.ph231.preheader ], [ %145, %.lr.ph231 ]
  %.0195229.unr = phi i64 [ 3, %.lr.ph231.preheader ], [ %145, %.lr.ph231 ]
  %.0197228.unr = phi i64 [ 0, %.lr.ph231.preheader ], [ %146, %.lr.ph231 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge232, label %.lr.ph231.epil

.lr.ph231.epil:                                   ; preds = %._crit_edge232.loopexit.unr-lcssa
  %103 = getelementptr inbounds i32, ptr %.0181255, i64 %.0197228.unr
  %104 = load i32, ptr %103, align 4, !tbaa !10
  %105 = getelementptr inbounds i32, ptr %.0182254, i64 %.0195229.unr
  store i32 %104, ptr %105, align 4, !tbaa !10
  %106 = icmp ne i32 %104, %78
  %107 = icmp ne i32 %104, %82
  %108 = and i1 %106, %107
  %109 = icmp ne i32 %104, %86
  %110 = and i1 %109, %108
  %111 = zext i1 %110 to i64
  %112 = add i64 %.0195229.unr, %111
  br label %._crit_edge232

._crit_edge232:                                   ; preds = %.lr.ph231.epil, %._crit_edge232.loopexit.unr-lcssa, %74
  %.0195.lcssa = phi i64 [ 3, %74 ], [ %.lcssa.ph, %._crit_edge232.loopexit.unr-lcssa ], [ %112, %.lr.ph231.epil ]
  %113 = load ptr, ptr %44, align 8, !tbaa !18
  %114 = load ptr, ptr %45, align 8, !tbaa !19
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = load i32, ptr %77, align 4, !tbaa !10
  %117 = zext i32 %116 to i64
  %118 = getelementptr inbounds i32, ptr %114, i64 %117
  %119 = load i32, ptr %118, align 4, !tbaa !10
  %120 = zext i32 %119 to i64
  %121 = getelementptr inbounds i32, ptr %113, i64 %120
  %122 = getelementptr inbounds i32, ptr %115, i64 %117
  %123 = load i32, ptr %122, align 4, !tbaa !10
  %124 = zext i32 %123 to i64
  %.not259 = icmp eq i32 %123, 0
  br i1 %.not259, label %.loopexit212, label %.lr.ph235

.lr.ph231:                                        ; preds = %.lr.ph231, %.lr.ph231.preheader.new
  %.0195229 = phi i64 [ 3, %.lr.ph231.preheader.new ], [ %145, %.lr.ph231 ]
  %.0197228 = phi i64 [ 0, %.lr.ph231.preheader.new ], [ %146, %.lr.ph231 ]
  %niter = phi i64 [ 0, %.lr.ph231.preheader.new ], [ %niter.next.1, %.lr.ph231 ]
  %125 = getelementptr inbounds i32, ptr %.0181255, i64 %.0197228
  %126 = load i32, ptr %125, align 4, !tbaa !10
  %127 = getelementptr inbounds i32, ptr %.0182254, i64 %.0195229
  store i32 %126, ptr %127, align 4, !tbaa !10
  %128 = icmp ne i32 %126, %78
  %129 = icmp ne i32 %126, %82
  %130 = and i1 %128, %129
  %131 = icmp ne i32 %126, %86
  %132 = and i1 %131, %130
  %133 = zext i1 %132 to i64
  %134 = add i64 %.0195229, %133
  %135 = or disjoint i64 %.0197228, 1
  %136 = getelementptr inbounds i32, ptr %.0181255, i64 %135
  %137 = load i32, ptr %136, align 4, !tbaa !10
  %138 = getelementptr inbounds i32, ptr %.0182254, i64 %134
  store i32 %137, ptr %138, align 4, !tbaa !10
  %139 = icmp ne i32 %137, %78
  %140 = icmp ne i32 %137, %82
  %141 = and i1 %139, %140
  %142 = icmp ne i32 %137, %86
  %143 = and i1 %142, %141
  %144 = zext i1 %143 to i64
  %145 = add i64 %134, %144
  %146 = add nuw nsw i64 %.0197228, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge232.loopexit.unr-lcssa, label %.lr.ph231, !llvm.loop !20

.lr.ph235:                                        ; preds = %._crit_edge232, %.critedge
  %.0191233 = phi i64 [ %156, %.critedge ], [ 0, %._crit_edge232 ]
  %147 = getelementptr inbounds i32, ptr %121, i64 %.0191233
  %148 = load i32, ptr %147, align 4, !tbaa !10
  %.not211 = icmp eq i32 %148, %.0192252
  br i1 %.not211, label %149, label %.critedge

149:                                              ; preds = %.lr.ph235
  %150 = getelementptr inbounds i32, ptr %121, i64 %.0191233
  %151 = getelementptr i32, ptr %121, i64 %124
  %152 = getelementptr i8, ptr %151, i64 -4
  %153 = load i32, ptr %152, align 4, !tbaa !10
  store i32 %153, ptr %150, align 4, !tbaa !10
  %154 = load i32, ptr %122, align 4, !tbaa !10
  %155 = add i32 %154, -1
  store i32 %155, ptr %122, align 4, !tbaa !10
  br label %.loopexit212

.critedge:                                        ; preds = %.lr.ph235
  %156 = add nuw nsw i64 %.0191233, 1
  %exitcond269.not = icmp eq i64 %156, %124
  br i1 %exitcond269.not, label %.loopexit212, label %.lr.ph235, !llvm.loop !21

.loopexit212:                                     ; preds = %.critedge, %._crit_edge232, %149
  %157 = add nuw nsw i64 %76, 1
  %158 = getelementptr inbounds i32, ptr %.0, i64 %157
  %159 = load i32, ptr %158, align 4, !tbaa !10
  %160 = zext i32 %159 to i64
  %161 = getelementptr inbounds i32, ptr %114, i64 %160
  %162 = load i32, ptr %161, align 4, !tbaa !10
  %163 = zext i32 %162 to i64
  %164 = getelementptr inbounds i32, ptr %113, i64 %163
  %165 = getelementptr inbounds i32, ptr %115, i64 %160
  %166 = load i32, ptr %165, align 4, !tbaa !10
  %167 = zext i32 %166 to i64
  %.not259.1 = icmp eq i32 %166, 0
  br i1 %.not259.1, label %.loopexit212.1, label %.lr.ph235.1

.lr.ph235.1:                                      ; preds = %.loopexit212, %.critedge.1
  %.0191233.1 = phi i64 [ %170, %.critedge.1 ], [ 0, %.loopexit212 ]
  %168 = getelementptr inbounds i32, ptr %164, i64 %.0191233.1
  %169 = load i32, ptr %168, align 4, !tbaa !10
  %.not211.1 = icmp eq i32 %169, %.0192252
  br i1 %.not211.1, label %171, label %.critedge.1

.critedge.1:                                      ; preds = %.lr.ph235.1
  %170 = add nuw nsw i64 %.0191233.1, 1
  %exitcond269.1.not = icmp eq i64 %170, %167
  br i1 %exitcond269.1.not, label %.loopexit212.1, label %.lr.ph235.1, !llvm.loop !21

171:                                              ; preds = %.lr.ph235.1
  %172 = getelementptr inbounds i32, ptr %164, i64 %.0191233.1
  %173 = getelementptr i32, ptr %164, i64 %167
  %174 = getelementptr i8, ptr %173, i64 -4
  %175 = load i32, ptr %174, align 4, !tbaa !10
  store i32 %175, ptr %172, align 4, !tbaa !10
  %176 = load i32, ptr %165, align 4, !tbaa !10
  %177 = add i32 %176, -1
  store i32 %177, ptr %165, align 4, !tbaa !10
  br label %.loopexit212.1

.loopexit212.1:                                   ; preds = %.critedge.1, %171, %.loopexit212
  %178 = add nuw nsw i64 %76, 2
  %179 = getelementptr inbounds i32, ptr %.0, i64 %178
  %180 = load i32, ptr %179, align 4, !tbaa !10
  %181 = zext i32 %180 to i64
  %182 = getelementptr inbounds i32, ptr %114, i64 %181
  %183 = load i32, ptr %182, align 4, !tbaa !10
  %184 = zext i32 %183 to i64
  %185 = getelementptr inbounds i32, ptr %113, i64 %184
  %186 = getelementptr inbounds i32, ptr %115, i64 %181
  %187 = load i32, ptr %186, align 4, !tbaa !10
  %188 = zext i32 %187 to i64
  %.not259.2 = icmp eq i32 %187, 0
  br i1 %.not259.2, label %.loopexit212.2, label %.lr.ph235.2

.lr.ph235.2:                                      ; preds = %.loopexit212.1, %.critedge.2
  %.0191233.2 = phi i64 [ %191, %.critedge.2 ], [ 0, %.loopexit212.1 ]
  %189 = getelementptr inbounds i32, ptr %185, i64 %.0191233.2
  %190 = load i32, ptr %189, align 4, !tbaa !10
  %.not211.2 = icmp eq i32 %190, %.0192252
  br i1 %.not211.2, label %192, label %.critedge.2

.critedge.2:                                      ; preds = %.lr.ph235.2
  %191 = add nuw nsw i64 %.0191233.2, 1
  %exitcond269.2.not = icmp eq i64 %191, %188
  br i1 %exitcond269.2.not, label %.loopexit212.2, label %.lr.ph235.2, !llvm.loop !21

192:                                              ; preds = %.lr.ph235.2
  %193 = getelementptr inbounds i32, ptr %185, i64 %.0191233.2
  %194 = getelementptr i32, ptr %185, i64 %188
  %195 = getelementptr i8, ptr %194, i64 -4
  %196 = load i32, ptr %195, align 4, !tbaa !10
  store i32 %196, ptr %193, align 4, !tbaa !10
  %197 = load i32, ptr %186, align 4, !tbaa !10
  %198 = add i32 %197, -1
  store i32 %198, ptr %186, align 4, !tbaa !10
  br label %.loopexit212.2

.loopexit212.2:                                   ; preds = %.critedge.2, %192, %.loopexit212.1
  %199 = call i64 @llvm.umin.i64(i64 %.0195.lcssa, i64 16)
  %.not260 = icmp eq i64 %.0195.lcssa, 0
  br i1 %.not260, label %._crit_edge249.thread, label %.lr.ph248

._crit_edge249:                                   ; preds = %.loopexit
  %200 = icmp eq i32 %.2189, -1
  br i1 %200, label %._crit_edge249.thread, label %248

.lr.ph248:                                        ; preds = %.loopexit212.2, %.loopexit
  %201 = phi ptr [ %245, %.loopexit ], [ %115, %.loopexit212.2 ]
  %.0183247 = phi i64 [ %246, %.loopexit ], [ 0, %.loopexit212.2 ]
  %.0184246 = phi float [ %.2186, %.loopexit ], [ 0.000000e+00, %.loopexit212.2 ]
  %.0187245 = phi i32 [ %.2189, %.loopexit ], [ -1, %.loopexit212.2 ]
  %202 = getelementptr inbounds i32, ptr %.0182254, i64 %.0183247
  %203 = load i32, ptr %202, align 4, !tbaa !10
  %204 = zext i32 %203 to i64
  %205 = getelementptr inbounds i32, ptr %201, i64 %204
  %206 = load i32, ptr %205, align 4, !tbaa !10
  %207 = icmp eq i32 %206, 0
  br i1 %207, label %.loopexit, label %208

208:                                              ; preds = %.lr.ph248
  %209 = icmp ugt i64 %.0183247, 15
  %210 = trunc i64 %.0183247 to i32
  %211 = select i1 %209, i32 -1, i32 %210
  %212 = getelementptr inbounds i32, ptr %27, i64 %204
  %213 = load i32, ptr %212, align 4, !tbaa !10
  %214 = call noundef float @_ZN7meshoptL11vertexScoreEPKNS_16VertexScoreTableEij(ptr noundef %4, i32 noundef %211, i32 noundef %213)
  %215 = getelementptr inbounds float, ptr %30, i64 %204
  %216 = load float, ptr %215, align 4, !tbaa !12
  %217 = fsub float %214, %216
  store float %214, ptr %215, align 4, !tbaa !12
  %218 = load ptr, ptr %44, align 8, !tbaa !18
  %219 = load ptr, ptr %45, align 8, !tbaa !19
  %220 = getelementptr inbounds i32, ptr %219, i64 %204
  %221 = load i32, ptr %220, align 4, !tbaa !10
  %222 = zext i32 %221 to i64
  %223 = getelementptr inbounds i32, ptr %218, i64 %222
  %224 = load ptr, ptr %7, align 8, !tbaa !5
  %225 = getelementptr inbounds i32, ptr %224, i64 %204
  %226 = load i32, ptr %225, align 4, !tbaa !10
  %227 = zext i32 %226 to i64
  %228 = getelementptr inbounds i32, ptr %223, i64 %227
  %.not209237 = icmp eq i32 %226, 0
  br i1 %.not209237, label %.loopexit, label %.lr.ph242

.lr.ph242:                                        ; preds = %208, %240
  %.0173240 = phi ptr [ %244, %240 ], [ %223, %208 ]
  %.1185239 = phi float [ %243, %240 ], [ %.0184246, %208 ]
  %.1188238 = phi i32 [ %242, %240 ], [ %.0187245, %208 ]
  %229 = load i32, ptr %.0173240, align 4, !tbaa !10
  %230 = zext i32 %229 to i64
  %231 = getelementptr inbounds i8, ptr %28, i64 %230
  %232 = load i8, ptr %231, align 1, !tbaa !17
  %.not210 = icmp eq i8 %232, 0
  br i1 %.not210, label %234, label %233

233:                                              ; preds = %.lr.ph242
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 320, ptr noundef nonnull @__PRETTY_FUNCTION__._Z32meshopt_optimizeVertexCacheTablePjPKjmmPKN7meshopt16VertexScoreTableE) #7
  unreachable

234:                                              ; preds = %.lr.ph242
  %235 = getelementptr inbounds float, ptr %31, i64 %230
  %236 = load float, ptr %235, align 4, !tbaa !12
  %237 = fadd float %217, %236
  %238 = fcmp ogt float %237, 0.000000e+00
  br i1 %238, label %240, label %239

239:                                              ; preds = %234
  call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 323, ptr noundef nonnull @__PRETTY_FUNCTION__._Z32meshopt_optimizeVertexCacheTablePjPKjmmPKN7meshopt16VertexScoreTableE) #7
  unreachable

240:                                              ; preds = %234
  %241 = fcmp olt float %.1185239, %237
  %242 = select i1 %241, i32 %229, i32 %.1188238
  %243 = select i1 %241, float %237, float %.1185239
  store float %237, ptr %235, align 4, !tbaa !12
  %244 = getelementptr inbounds i8, ptr %.0173240, i64 4
  %.not209 = icmp eq ptr %244, %228
  br i1 %.not209, label %.loopexit, label %.lr.ph242, !llvm.loop !22

.loopexit:                                        ; preds = %240, %208, %.lr.ph248
  %245 = phi ptr [ %201, %.lr.ph248 ], [ %224, %208 ], [ %224, %240 ]
  %.2189 = phi i32 [ %.0187245, %.lr.ph248 ], [ %.0187245, %208 ], [ %242, %240 ]
  %.2186 = phi float [ %.0184246, %.lr.ph248 ], [ %.0184246, %208 ], [ %243, %240 ]
  %246 = add nuw i64 %.0183247, 1
  %exitcond271.not = icmp eq i64 %246, %.0195.lcssa
  br i1 %exitcond271.not, label %._crit_edge249, label %.lr.ph248, !llvm.loop !23

._crit_edge249.thread:                            ; preds = %.loopexit212.2, %._crit_edge249
  %247 = call noundef i32 @_ZN7meshoptL22getNextTriangleDeadEndERjPKhm(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef %28, i64 noundef %11)
  br label %248

248:                                              ; preds = %._crit_edge249.thread, %._crit_edge249
  %.1193 = phi i32 [ %247, %._crit_edge249.thread ], [ %.2189, %._crit_edge249 ]
  %.not = icmp eq i32 %.1193, -1
  br i1 %.not, label %249, label %70, !llvm.loop !24

249:                                              ; preds = %248
  %250 = load i32, ptr %9, align 4, !tbaa !10
  %251 = zext i32 %250 to i64
  %252 = icmp eq i64 %11, %251
  br i1 %252, label %254, label %253

253:                                              ; preds = %249
  call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 341, ptr noundef nonnull @__PRETTY_FUNCTION__._Z32meshopt_optimizeVertexCacheTablePjPKjmmPKN7meshopt16VertexScoreTableE) #7
  unreachable

254:                                              ; preds = %249
  %255 = zext i32 %96 to i64
  %256 = icmp eq i64 %11, %255
  br i1 %256, label %258, label %257

257:                                              ; preds = %254
  call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 342, ptr noundef nonnull @__PRETTY_FUNCTION__._Z32meshopt_optimizeVertexCacheTablePjPKjmmPKN7meshopt16VertexScoreTableE) #7
  unreachable

258:                                              ; preds = %254
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  br label %259

259:                                              ; preds = %14, %258
  call void @_ZN17meshopt_AllocatorD2Ev(ptr noundef nonnull align 8 dereferenceable(200) %6) #8
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %6) #8
  ret void

260:                                              ; preds = %34, %46, %36, %32
  %.pn.pn.pn = phi { ptr, i32 } [ %33, %32 ], [ %35, %34 ], [ %47, %46 ], [ %37, %36 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  br label %261

261:                                              ; preds = %260, %23
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %260 ], [ %24, %23 ]
  call void @_ZN17meshopt_AllocatorD2Ev(ptr noundef nonnull align 8 dereferenceable(200) %6) #8
  call void @llvm.lifetime.end.p0(i64 200, ptr nonnull %6) #8
  resume { ptr, i32 } %.pn.pn.pn.pn
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress 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) #4

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7meshoptL22buildTriangleAdjacencyERNS_17TriangleAdjacencyEPKjmmR17meshopt_Allocator(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i64 noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(200)) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef float @_ZN7meshoptL11vertexScoreEPKNS_16VertexScoreTableEij(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN7meshoptL22getNextTriangleDeadEndERjPKhm(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, i64 noundef) local_unnamed_addr #3

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umin.i64(i64, i64) #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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { noreturn nounwind }
attributes #8 = { 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 = !{!"_ZTSN7meshopt17TriangleAdjacencyE", !7, i64 0, !7, i64 8, !7, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"float", !8, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = !{!8, !8, i64 0}
!18 = !{!6, !7, i64 16}
!19 = !{!6, !7, i64 8}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !15}
!24 = distinct !{!24, !15}


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