; LLVM IR from KonajuGames/libsquish :: clusterfit.ll (ZN6squish10ClusterFit17ConstructOrderingERKNS_4Vec3Ei)

; 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.squish::Vec4" = type { <4 x float> }
%"class.squish::ColourFit" = type <{ ptr, ptr, i32, [4 x i8] }>
%"class.squish::ClusterFit" = type { %"class.squish::ColourFit.base", i32, %"class.squish::Vec3", [128 x i8], [16 x %"class.squish::Vec4"], %"class.squish::Vec4", %"class.squish::Vec4", %"class.squish::Vec4" }
%"class.squish::ColourFit.base" = type <{ ptr, ptr, i32 }>
%"class.squish::Vec3" = type { float, float, float }

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6squish4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 16 dereferenceable(16), float noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6squish9ColourSet8GetCountEv(ptr noundef nonnull align 4 dereferenceable(325)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6squish9ColourSet9GetPointsEv(ptr noundef nonnull align 4 dereferenceable(325)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK6squish9ColourSet10GetWeightsEv(ptr noundef nonnull align 4 dereferenceable(325)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6squish10ClusterFit17ConstructOrderingERKNS_4Vec3Ei(ptr noundef nonnull align 16 dereferenceable(480) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef %2) #3 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca [16 x float], align 16
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i8, align 1
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"class.squish::Vec4", align 16
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %"class.squish::Vec4", align 16
  %26 = alloca %"class.squish::Vec4", align 16
  %27 = alloca %"class.squish::Vec4", align 16
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  %28 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %29 = getelementptr inbounds %"class.squish::ColourFit", ptr %28, i32 0, i32 1
  %30 = load ptr, ptr %29, align 8, !tbaa !11
  %31 = call noundef i32 @_ZNK6squish9ColourSet8GetCountEv(ptr noundef nonnull align 4 dereferenceable(325) %30)
  store i32 %31, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %32 = getelementptr inbounds %"class.squish::ColourFit", ptr %28, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !11
  %34 = call noundef ptr @_ZNK6squish9ColourSet9GetPointsEv(ptr noundef nonnull align 4 dereferenceable(325) %33)
  store ptr %34, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %35 = getelementptr inbounds %"class.squish::ClusterFit", ptr %28, i32 0, i32 3
  %36 = getelementptr inbounds [128 x i8], ptr %35, i64 0, i64 0
  %37 = load i32, ptr %7, align 4, !tbaa !9
  %38 = mul nsw i32 16, %37
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds i8, ptr %36, i64 %39
  store ptr %40, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %62, %3
  %42 = load i32, ptr %12, align 4, !tbaa !9
  %43 = load i32, ptr %8, align 4, !tbaa !9
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %65

46:                                               ; preds = %41
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = load i32, ptr %12, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds %"class.squish::Vec3", ptr %47, i64 %49
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = call noundef float @_ZN6squish3DotERKNS_4Vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %50, ptr noundef nonnull align 4 dereferenceable(12) %51)
  %53 = load i32, ptr %12, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [16 x float], ptr %10, i64 0, i64 %54
  store float %52, ptr %55, align 4, !tbaa !13
  %56 = load i32, ptr %12, align 4, !tbaa !9
  %57 = trunc i32 %56 to i8
  %58 = load ptr, ptr %11, align 8, !tbaa !5
  %59 = load i32, ptr %12, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds i8, ptr %58, i64 %60
  store i8 %57, ptr %61, align 1, !tbaa !15
  br label %62

62:                                               ; preds = %46
  %63 = load i32, ptr %12, align 4, !tbaa !9
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %12, align 4, !tbaa !9
  br label %41, !llvm.loop !16

65:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %66

66:                                               ; preds = %111, %65
  %67 = load i32, ptr %13, align 4, !tbaa !9
  %68 = load i32, ptr %8, align 4, !tbaa !9
  %69 = icmp slt i32 %67, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %66
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %114

71:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %72 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %72, ptr %15, align 4, !tbaa !9
  br label %73

73:                                               ; preds = %107, %71
  %74 = load i32, ptr %15, align 4, !tbaa !9
  %75 = icmp sgt i32 %74, 0
  br i1 %75, label %76, label %87

76:                                               ; preds = %73
  %77 = load i32, ptr %15, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [16 x float], ptr %10, i64 0, i64 %78
  %80 = load float, ptr %79, align 4, !tbaa !13
  %81 = load i32, ptr %15, align 4, !tbaa !9
  %82 = sub nsw i32 %81, 1
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [16 x float], ptr %10, i64 0, i64 %83
  %85 = load float, ptr %84, align 4, !tbaa !13
  %86 = fcmp olt float %80, %85
  br label %87

87:                                               ; preds = %76, %73
  %88 = phi i1 [ false, %73 ], [ %86, %76 ]
  br i1 %88, label %90, label %89

89:                                               ; preds = %87
  store i32 8, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %110

90:                                               ; preds = %87
  %91 = load i32, ptr %15, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [16 x float], ptr %10, i64 0, i64 %92
  %94 = load i32, ptr %15, align 4, !tbaa !9
  %95 = sub nsw i32 %94, 1
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [16 x float], ptr %10, i64 0, i64 %96
  call void @_ZSt4swapIfENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %93, ptr noundef nonnull align 4 dereferenceable(4) %97) #5
  %98 = load ptr, ptr %11, align 8, !tbaa !5
  %99 = load i32, ptr %15, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds i8, ptr %98, i64 %100
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  %103 = load i32, ptr %15, align 4, !tbaa !9
  %104 = sub nsw i32 %103, 1
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds i8, ptr %102, i64 %105
  call void @_ZSt4swapIhENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %101, ptr noundef nonnull align 1 dereferenceable(1) %106) #5
  br label %107

107:                                              ; preds = %90
  %108 = load i32, ptr %15, align 4, !tbaa !9
  %109 = add nsw i32 %108, -1
  store i32 %109, ptr %15, align 4, !tbaa !9
  br label %73, !llvm.loop !18

110:                                              ; preds = %89
  br label %111

111:                                              ; preds = %110
  %112 = load i32, ptr %13, align 4, !tbaa !9
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %13, align 4, !tbaa !9
  br label %66, !llvm.loop !19

114:                                              ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %115

115:                                              ; preds = %160, %114
  %116 = load i32, ptr %16, align 4, !tbaa !9
  %117 = load i32, ptr %7, align 4, !tbaa !9
  %118 = icmp slt i32 %116, %117
  br i1 %118, label %120, label %119

119:                                              ; preds = %115
  store i32 11, ptr %14, align 4
  br label %163

120:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %121 = getelementptr inbounds %"class.squish::ClusterFit", ptr %28, i32 0, i32 3
  %122 = getelementptr inbounds [128 x i8], ptr %121, i64 0, i64 0
  %123 = load i32, ptr %16, align 4, !tbaa !9
  %124 = mul nsw i32 16, %123
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds i8, ptr %122, i64 %125
  store ptr %126, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #5
  store i8 1, ptr %18, align 1, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %148, %120
  %128 = load i32, ptr %19, align 4, !tbaa !9
  %129 = load i32, ptr %8, align 4, !tbaa !9
  %130 = icmp slt i32 %128, %129
  br i1 %130, label %132, label %131

131:                                              ; preds = %127
  store i32 14, ptr %14, align 4
  br label %151

132:                                              ; preds = %127
  %133 = load ptr, ptr %11, align 8, !tbaa !5
  %134 = load i32, ptr %19, align 4, !tbaa !9
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds i8, ptr %133, i64 %135
  %137 = load i8, ptr %136, align 1, !tbaa !15
  %138 = zext i8 %137 to i32
  %139 = load ptr, ptr %17, align 8, !tbaa !5
  %140 = load i32, ptr %19, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds i8, ptr %139, i64 %141
  %143 = load i8, ptr %142, align 1, !tbaa !15
  %144 = zext i8 %143 to i32
  %145 = icmp ne i32 %138, %144
  br i1 %145, label %146, label %147

146:                                              ; preds = %132
  store i8 0, ptr %18, align 1, !tbaa !20
  store i32 14, ptr %14, align 4
  br label %151

147:                                              ; preds = %132
  br label %148

148:                                              ; preds = %147
  %149 = load i32, ptr %19, align 4, !tbaa !9
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %19, align 4, !tbaa !9
  br label %127, !llvm.loop !22

151:                                              ; preds = %146, %131
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %152

152:                                              ; preds = %151
  %153 = load i8, ptr %18, align 1, !tbaa !20, !range !23, !noundef !24
  %154 = trunc i8 %153 to i1
  br i1 %154, label %155, label %156

155:                                              ; preds = %152
  store i1 false, ptr %4, align 1
  store i32 1, ptr %14, align 4
  br label %157

156:                                              ; preds = %152
  store i32 0, ptr %14, align 4
  br label %157

157:                                              ; preds = %156, %155
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  %158 = load i32, ptr %14, align 4
  switch i32 %158, label %163 [
    i32 0, label %159
  ]

159:                                              ; preds = %157
  br label %160

160:                                              ; preds = %159
  %161 = load i32, ptr %16, align 4, !tbaa !9
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %16, align 4, !tbaa !9
  br label %115, !llvm.loop !25

163:                                              ; preds = %157, %119
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  %164 = load i32, ptr %14, align 4
  switch i32 %164, label %217 [
    i32 11, label %165
  ]

165:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %166 = getelementptr inbounds %"class.squish::ColourFit", ptr %28, i32 0, i32 1
  %167 = load ptr, ptr %166, align 8, !tbaa !11
  %168 = call noundef ptr @_ZNK6squish9ColourSet9GetPointsEv(ptr noundef nonnull align 4 dereferenceable(325) %167)
  store ptr %168, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %169 = getelementptr inbounds %"class.squish::ColourFit", ptr %28, i32 0, i32 1
  %170 = load ptr, ptr %169, align 8, !tbaa !11
  %171 = call noundef ptr @_ZNK6squish9ColourSet10GetWeightsEv(ptr noundef nonnull align 4 dereferenceable(325) %170)
  store ptr %171, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #5
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %22, float noundef 0.000000e+00)
  %172 = getelementptr inbounds %"class.squish::ClusterFit", ptr %28, i32 0, i32 5
  %173 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4aSERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %172, ptr noundef nonnull align 16 dereferenceable(16) %22)
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %174

174:                                              ; preds = %213, %165
  %175 = load i32, ptr %23, align 4, !tbaa !9
  %176 = load i32, ptr %8, align 4, !tbaa !9
  %177 = icmp slt i32 %175, %176
  br i1 %177, label %179, label %178

178:                                              ; preds = %174
  store i32 17, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %216

179:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %180 = load ptr, ptr %11, align 8, !tbaa !5
  %181 = load i32, ptr %23, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds i8, ptr %180, i64 %182
  %184 = load i8, ptr %183, align 1, !tbaa !15
  %185 = zext i8 %184 to i32
  store i32 %185, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  %186 = load ptr, ptr %20, align 8, !tbaa !5
  %187 = load i32, ptr %24, align 4, !tbaa !9
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds %"class.squish::Vec3", ptr %186, i64 %188
  %190 = call noundef float @_ZNK6squish4Vec31XEv(ptr noundef nonnull align 4 dereferenceable(12) %189)
  %191 = load ptr, ptr %20, align 8, !tbaa !5
  %192 = load i32, ptr %24, align 4, !tbaa !9
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds %"class.squish::Vec3", ptr %191, i64 %193
  %195 = call noundef float @_ZNK6squish4Vec31YEv(ptr noundef nonnull align 4 dereferenceable(12) %194)
  %196 = load ptr, ptr %20, align 8, !tbaa !5
  %197 = load i32, ptr %24, align 4, !tbaa !9
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds %"class.squish::Vec3", ptr %196, i64 %198
  %200 = call noundef float @_ZNK6squish4Vec31ZEv(ptr noundef nonnull align 4 dereferenceable(12) %199)
  call void @_ZN6squish4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16) %25, float noundef %190, float noundef %195, float noundef %200, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #5
  %201 = load ptr, ptr %21, align 8, !tbaa !5
  %202 = load i32, ptr %24, align 4, !tbaa !9
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds float, ptr %201, i64 %203
  %205 = load float, ptr %204, align 4, !tbaa !13
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %26, float noundef %205)
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #5
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind writable sret(%"class.squish::Vec4") align 16 %27, ptr noundef nonnull align 16 dereferenceable(16) %25, ptr noundef nonnull align 16 dereferenceable(16) %26)
  %206 = getelementptr inbounds %"class.squish::ClusterFit", ptr %28, i32 0, i32 4
  %207 = load i32, ptr %23, align 4, !tbaa !9
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [16 x %"class.squish::Vec4"], ptr %206, i64 0, i64 %208
  %210 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4aSERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %209, ptr noundef nonnull align 16 dereferenceable(16) %27)
  %211 = getelementptr inbounds %"class.squish::ClusterFit", ptr %28, i32 0, i32 5
  %212 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4pLERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %211, ptr noundef nonnull align 16 dereferenceable(16) %27)
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %213

213:                                              ; preds = %179
  %214 = load i32, ptr %23, align 4, !tbaa !9
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %23, align 4, !tbaa !9
  br label %174, !llvm.loop !26

216:                                              ; preds = %178
  store i1 true, ptr %4, align 1
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %217

217:                                              ; preds = %216, %163
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %218 = load i1, ptr %4, align 1
  ret i1 %218
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN6squish3DotERKNS_4Vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6squish4Vec31XEv(ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6squish4Vec31YEv(ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6squish4Vec31ZEv(ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind noalias writable sret(%"class.squish::Vec4") align 16, ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) #1

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

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

!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, !6, i64 8}
!12 = !{!"_ZTSN6squish9ColourFitE", !6, i64 8, !10, i64 16}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = !{!21, !21, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = distinct !{!22, !17}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = distinct !{!25, !17}
!26 = distinct !{!26, !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"

%"class.squish::Vec4" = type { <4 x float> }
%"class.squish::Vec3" = type { float, float, float }

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6squish4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 16 dereferenceable(16), float noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6squish9ColourSet8GetCountEv(ptr noundef nonnull align 4 dereferenceable(325)) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN6squish10ClusterFit17ConstructOrderingERKNS_4Vec3Ei(ptr noundef nonnull align 16 dereferenceable(480) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef %2) local_unnamed_addr #3 align 2 {
  %4 = alloca [16 x float], align 16
  %5 = alloca %"class.squish::Vec4", align 16
  %6 = alloca %"class.squish::Vec4", align 16
  %7 = alloca %"class.squish::Vec4", align 16
  %8 = alloca %"class.squish::Vec4", align 16
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = tail call noundef i32 @_ZNK6squish9ColourSet8GetCountEv(ptr noundef nonnull align 4 dereferenceable(325) %10)
  %12 = load ptr, ptr %9, align 8, !tbaa !5
  %13 = tail call noundef ptr @_ZNK6squish9ColourSet9GetPointsEv(ptr noundef nonnull align 4 dereferenceable(325) %12)
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #5
  %14 = getelementptr inbounds i8, ptr %0, i64 36
  %15 = shl nsw i32 %2, 4
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds i8, ptr %14, i64 %16
  %18 = icmp sgt i32 %11, 0
  br i1 %18, label %.lr.ph.preheader, label %.preheader

.lr.ph.preheader:                                 ; preds = %3
  %wide.trip.count = zext nneg i32 %11 to i64
  br label %.lr.ph

.preheader72:                                     ; preds = %.lr.ph
  br i1 %18, label %.preheader71.preheader, label %.preheader

.preheader71.preheader:                           ; preds = %.preheader72
  %wide.trip.count103 = zext nneg i32 %11 to i64
  br label %.preheader71

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %19 = getelementptr inbounds %"class.squish::Vec3", ptr %13, i64 %indvars.iv
  %20 = tail call noundef float @_ZN6squish3DotERKNS_4Vec3ES2_(ptr noundef nonnull align 4 dereferenceable(12) %19, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %21 = getelementptr inbounds [16 x float], ptr %4, i64 0, i64 %indvars.iv
  store float %20, ptr %21, align 4, !tbaa !11
  %22 = trunc i64 %indvars.iv to i8
  %23 = getelementptr inbounds i8, ptr %17, i64 %indvars.iv
  store i8 %22, ptr %23, align 1, !tbaa !13
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader72, label %.lr.ph, !llvm.loop !14

.preheader71:                                     ; preds = %.preheader71.preheader, %.critedge
  %indvars.iv96 = phi i64 [ 0, %.preheader71.preheader ], [ %indvars.iv.next97, %.critedge ]
  %24 = and i64 %indvars.iv96, 4294967295
  %.not = icmp eq i64 %24, 0
  br i1 %.not, label %.critedge, label %.lr.ph77

.preheader:                                       ; preds = %.critedge, %3, %.preheader72
  %.not6685 = icmp slt i32 %2, 1
  br i1 %.not6685, label %.critedge69, label %.lr.ph88

.lr.ph88:                                         ; preds = %.preheader
  br i1 %18, label %.lr.ph82.us.preheader, label %.critedge68

.lr.ph82.us.preheader:                            ; preds = %.lr.ph88
  %25 = zext nneg i32 %2 to i64
  %wide.trip.count113 = zext nneg i32 %2 to i64
  %wide.trip.count109 = zext nneg i32 %11 to i64
  br label %.lr.ph82.us

.lr.ph82.us:                                      ; preds = %.lr.ph82.us.preheader, %34
  %indvars.iv111 = phi i64 [ 0, %.lr.ph82.us.preheader ], [ %indvars.iv.next112, %34 ]
  %.not6687.us = phi i1 [ false, %.lr.ph82.us.preheader ], [ %.not66.us, %34 ]
  %26 = shl nsw i64 %indvars.iv111, 4
  %27 = getelementptr inbounds i8, ptr %14, i64 %26
  br label %29

28:                                               ; preds = %29
  %indvars.iv.next106 = add nuw nsw i64 %indvars.iv105, 1
  %exitcond110.not = icmp eq i64 %indvars.iv.next106, %wide.trip.count109
  br i1 %exitcond110.not, label %.critedge68, label %29, !llvm.loop !16

29:                                               ; preds = %.lr.ph82.us, %28
  %indvars.iv105 = phi i64 [ 0, %.lr.ph82.us ], [ %indvars.iv.next106, %28 ]
  %30 = getelementptr inbounds i8, ptr %17, i64 %indvars.iv105
  %31 = load i8, ptr %30, align 1, !tbaa !13
  %32 = getelementptr inbounds i8, ptr %27, i64 %indvars.iv105
  %33 = load i8, ptr %32, align 1, !tbaa !13
  %.not.us = icmp eq i8 %31, %33
  br i1 %.not.us, label %28, label %34

34:                                               ; preds = %29
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %.not66.us = icmp uge i64 %indvars.iv.next112, %25
  %exitcond114 = icmp eq i64 %indvars.iv.next112, %wide.trip.count113
  br i1 %exitcond114, label %.critedge69, label %.lr.ph82.us, !llvm.loop !17

.lr.ph77:                                         ; preds = %.preheader71, %41
  %indvars.iv98 = phi i64 [ %indvars.iv.next99, %41 ], [ %indvars.iv96, %.preheader71 ]
  %35 = getelementptr inbounds [16 x float], ptr %4, i64 0, i64 %indvars.iv98
  %36 = load float, ptr %35, align 4, !tbaa !11
  %indvars.iv.next99 = add nsw i64 %indvars.iv98, -1
  %37 = and i64 %indvars.iv.next99, 4294967295
  %38 = getelementptr inbounds [16 x float], ptr %4, i64 0, i64 %37
  %39 = load float, ptr %38, align 4, !tbaa !11
  %40 = fcmp olt float %36, %39
  br i1 %40, label %41, label %.critedge

.critedge:                                        ; preds = %.lr.ph77, %41, %.preheader71
  %indvars.iv.next97 = add nuw nsw i64 %indvars.iv96, 1
  %exitcond104.not = icmp eq i64 %indvars.iv.next97, %wide.trip.count103
  br i1 %exitcond104.not, label %.preheader, label %.preheader71, !llvm.loop !18

41:                                               ; preds = %.lr.ph77
  call void @_ZSt4swapIfENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %35, ptr noundef nonnull align 4 dereferenceable(4) %38) #5
  %42 = getelementptr inbounds i8, ptr %17, i64 %indvars.iv98
  %43 = getelementptr inbounds i8, ptr %17, i64 %37
  call void @_ZSt4swapIhENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 1 dereferenceable(1) %42, ptr noundef nonnull align 1 dereferenceable(1) %43) #5
  %44 = icmp sgt i64 %indvars.iv98, 1
  br i1 %44, label %.lr.ph77, label %.critedge, !llvm.loop !19

.critedge69:                                      ; preds = %34, %.preheader
  %.not66.lcssa = phi i1 [ true, %.preheader ], [ %.not66.us, %34 ]
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = call noundef ptr @_ZNK6squish9ColourSet9GetPointsEv(ptr noundef nonnull align 4 dereferenceable(325) %45)
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = call noundef ptr @_ZNK6squish9ColourSet10GetWeightsEv(ptr noundef nonnull align 4 dereferenceable(325) %47)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %5, float noundef 0.000000e+00)
  %49 = getelementptr inbounds i8, ptr %0, i64 432
  %50 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4aSERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %49, ptr noundef nonnull align 16 dereferenceable(16) %5)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br i1 %18, label %.lr.ph92, label %.critedge68

.lr.ph92:                                         ; preds = %.critedge69
  %51 = getelementptr inbounds i8, ptr %0, i64 176
  %wide.trip.count119 = zext nneg i32 %11 to i64
  br label %52

52:                                               ; preds = %.lr.ph92, %52
  %indvars.iv115 = phi i64 [ 0, %.lr.ph92 ], [ %indvars.iv.next116, %52 ]
  %53 = getelementptr inbounds i8, ptr %17, i64 %indvars.iv115
  %54 = load i8, ptr %53, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  %55 = zext i8 %54 to i64
  %56 = getelementptr inbounds %"class.squish::Vec3", ptr %46, i64 %55
  %57 = call noundef float @_ZNK6squish4Vec31XEv(ptr noundef nonnull align 4 dereferenceable(12) %56)
  %58 = call noundef float @_ZNK6squish4Vec31YEv(ptr noundef nonnull align 4 dereferenceable(12) %56)
  %59 = call noundef float @_ZNK6squish4Vec31ZEv(ptr noundef nonnull align 4 dereferenceable(12) %56)
  call void @_ZN6squish4Vec4C2Effff(ptr noundef nonnull align 16 dereferenceable(16) %6, float noundef %57, float noundef %58, float noundef %59, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %60 = getelementptr inbounds float, ptr %48, i64 %55
  %61 = load float, ptr %60, align 4, !tbaa !11
  call void @_ZN6squish4Vec4C2Ef(ptr noundef nonnull align 16 dereferenceable(16) %7, float noundef %61)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  call void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind nonnull writable sret(%"class.squish::Vec4") align 16 %8, ptr noundef nonnull align 16 dereferenceable(16) %6, ptr noundef nonnull align 16 dereferenceable(16) %7)
  %62 = getelementptr inbounds [16 x %"class.squish::Vec4"], ptr %51, i64 0, i64 %indvars.iv115
  %63 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4aSERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %62, ptr noundef nonnull align 16 dereferenceable(16) %8)
  %64 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN6squish4Vec4pLERKS0_(ptr noundef nonnull align 16 dereferenceable(16) %49, ptr noundef nonnull align 16 dereferenceable(16) %8)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  %indvars.iv.next116 = add nuw nsw i64 %indvars.iv115, 1
  %exitcond120.not = icmp eq i64 %indvars.iv.next116, %wide.trip.count119
  br i1 %exitcond120.not, label %.critedge68, label %52, !llvm.loop !20

.critedge68:                                      ; preds = %28, %52, %.lr.ph88, %.critedge69
  %.not6674 = phi i1 [ %.not66.lcssa, %.critedge69 ], [ false, %.lr.ph88 ], [ %.not66.lcssa, %52 ], [ %.not6687.us, %28 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #5
  ret i1 %.not6674
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6squish4Vec31XEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6squish4Vec31YEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK6squish4Vec31ZEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6squishmlERKNS_4Vec4ES2_(ptr dead_on_unwind noalias writable sret(%"class.squish::Vec4") align 16, ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #1

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

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

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


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