; LLVM IR from facebookresearch/habitat-sim :: src/deps/basis-universal/encoder (basisu_enc)

; 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.basisu::image_metrics" = type { float, float, float, float, float, float }

@.str.4 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [54 x i8], align 1
@__PRETTY_FUNCTION__._ZN6basisu13image_metrics4calcERKNS_5imageES3_jjbb = external hidden unnamed_addr constant [95 x i8], align 1

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu5image9get_widthEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu5image10get_heightEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(4) ptr @_ZNK6basisu5imageclEjj(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef) #3 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN6basisu7maximumIfEET_S1_S1_(float noundef, float noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6basisu13image_metrics4calcERKNS_5imageES3_jjbb(ptr noundef nonnull align 4 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %2, i32 noundef %3, i32 noundef %4, i1 noundef zeroext %5, i1 noundef zeroext %6) #4 align 2 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca [256 x double], align 16
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca i32, align 4
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store i32 %3, ptr %11, align 4, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !9
  %29 = zext i1 %5 to i8
  store i8 %29, ptr %13, align 1, !tbaa !11
  %30 = zext i1 %6 to i8
  store i8 %30, ptr %14, align 1, !tbaa !11
  %31 = load ptr, ptr %8, align 8
  %32 = load i32, ptr %11, align 4, !tbaa !9
  %33 = icmp ult i32 %32, 4
  br i1 %33, label %34, label %39

34:                                               ; preds = %7
  %35 = load i32, ptr %11, align 4, !tbaa !9
  %36 = load i32, ptr %12, align 4, !tbaa !9
  %37 = add i32 %35, %36
  %38 = icmp ule i32 %37, 4
  br label %39

39:                                               ; preds = %34, %7
  %40 = phi i1 [ false, %7 ], [ %38, %34 ]
  br i1 %40, label %41, label %42

41:                                               ; preds = %39
  br label %44

42:                                               ; preds = %39
  call void @__assert_fail(ptr noundef @.str.29, ptr noundef @.str.4, i32 noundef 1411, ptr noundef @__PRETTY_FUNCTION__._ZN6basisu13image_metrics4calcERKNS_5imageES3_jjbb) #7
  unreachable

43:                                               ; No predecessors!
  br label %44

44:                                               ; preds = %43, %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %45 = load ptr, ptr %9, align 8, !tbaa !5
  %46 = call noundef i32 @_ZNK6basisu5image9get_widthEv(ptr noundef nonnull align 8 dereferenceable(32) %45)
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = call noundef i32 @_ZNK6basisu5image9get_widthEv(ptr noundef nonnull align 8 dereferenceable(32) %47)
  %49 = call noundef i32 @_ZN6basisu7minimumIjEET_S1_S1_(i32 noundef %46, i32 noundef %48)
  store i32 %49, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = call noundef i32 @_ZNK6basisu5image10get_heightEv(ptr noundef nonnull align 8 dereferenceable(32) %50)
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = call noundef i32 @_ZNK6basisu5image10get_heightEv(ptr noundef nonnull align 8 dereferenceable(32) %52)
  %54 = call noundef i32 @_ZN6basisu7minimumIjEET_S1_S1_(i32 noundef %51, i32 noundef %53)
  store i32 %54, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %17) #8
  call void @_ZN6basisu9clear_objIA256_dEEvRT_(ptr noundef nonnull align 8 dereferenceable(2048) %17)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %139, %44
  %56 = load i32, ptr %18, align 4, !tbaa !9
  %57 = load i32, ptr %16, align 4, !tbaa !9
  %58 = icmp ult i32 %56, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  store i32 2, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %142

60:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %135, %60
  %62 = load i32, ptr %20, align 4, !tbaa !9
  %63 = load i32, ptr %15, align 4, !tbaa !9
  %64 = icmp ult i32 %62, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %61
  store i32 5, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %138

66:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = load i32, ptr %20, align 4, !tbaa !9
  %69 = load i32, ptr %18, align 4, !tbaa !9
  %70 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZNK6basisu5imageclEjj(ptr noundef nonnull align 8 dereferenceable(32) %67, i32 noundef %68, i32 noundef %69)
  store ptr %70, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = load i32, ptr %20, align 4, !tbaa !9
  %73 = load i32, ptr %18, align 4, !tbaa !9
  %74 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZNK6basisu5imageclEjj(ptr noundef nonnull align 8 dereferenceable(32) %71, i32 noundef %72, i32 noundef %73)
  store ptr %74, ptr %22, align 8, !tbaa !5
  %75 = load i32, ptr %12, align 4, !tbaa !9
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %77, label %108

77:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %78

78:                                               ; preds = %104, %77
  %79 = load i32, ptr %23, align 4, !tbaa !9
  %80 = load i32, ptr %12, align 4, !tbaa !9
  %81 = icmp ult i32 %79, %80
  br i1 %81, label %83, label %82

82:                                               ; preds = %78
  store i32 8, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %107

83:                                               ; preds = %78
  %84 = load ptr, ptr %21, align 8, !tbaa !5
  %85 = load i32, ptr %11, align 4, !tbaa !9
  %86 = load i32, ptr %23, align 4, !tbaa !9
  %87 = add i32 %85, %86
  %88 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %84, i32 noundef %87)
  %89 = load i8, ptr %88, align 1, !tbaa !13
  %90 = zext i8 %89 to i32
  %91 = load ptr, ptr %22, align 8, !tbaa !5
  %92 = load i32, ptr %11, align 4, !tbaa !9
  %93 = load i32, ptr %23, align 4, !tbaa !9
  %94 = add i32 %92, %93
  %95 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %91, i32 noundef %94)
  %96 = load i8, ptr %95, align 1, !tbaa !13
  %97 = zext i8 %96 to i32
  %98 = sub nsw i32 %90, %97
  %99 = call noundef i32 @_ZN6basisu4iabsEi(i32 noundef %98)
  %100 = zext i32 %99 to i64
  %101 = getelementptr inbounds [256 x double], ptr %17, i64 0, i64 %100
  %102 = load double, ptr %101, align 8, !tbaa !14
  %103 = fadd double %102, 1.000000e+00
  store double %103, ptr %101, align 8, !tbaa !14
  br label %104

104:                                              ; preds = %83
  %105 = load i32, ptr %23, align 4, !tbaa !9
  %106 = add i32 %105, 1
  store i32 %106, ptr %23, align 4, !tbaa !9
  br label %78, !llvm.loop !16

107:                                              ; preds = %82
  br label %134

108:                                              ; preds = %66
  %109 = load i8, ptr %14, align 1, !tbaa !11, !range !18, !noundef !19
  %110 = trunc i8 %109 to i1
  br i1 %110, label %111, label %122

111:                                              ; preds = %108
  %112 = load ptr, ptr %21, align 8, !tbaa !5
  %113 = call noundef i32 @_ZNK6basisu10color_rgba12get_601_lumaEv(ptr noundef nonnull align 1 dereferenceable(4) %112)
  %114 = load ptr, ptr %22, align 8, !tbaa !5
  %115 = call noundef i32 @_ZNK6basisu10color_rgba12get_601_lumaEv(ptr noundef nonnull align 1 dereferenceable(4) %114)
  %116 = sub nsw i32 %113, %115
  %117 = call noundef i32 @_ZN6basisu4iabsEi(i32 noundef %116)
  %118 = zext i32 %117 to i64
  %119 = getelementptr inbounds [256 x double], ptr %17, i64 0, i64 %118
  %120 = load double, ptr %119, align 8, !tbaa !14
  %121 = fadd double %120, 1.000000e+00
  store double %121, ptr %119, align 8, !tbaa !14
  br label %133

122:                                              ; preds = %108
  %123 = load ptr, ptr %21, align 8, !tbaa !5
  %124 = call noundef i32 @_ZNK6basisu10color_rgba12get_709_lumaEv(ptr noundef nonnull align 1 dereferenceable(4) %123)
  %125 = load ptr, ptr %22, align 8, !tbaa !5
  %126 = call noundef i32 @_ZNK6basisu10color_rgba12get_709_lumaEv(ptr noundef nonnull align 1 dereferenceable(4) %125)
  %127 = sub nsw i32 %124, %126
  %128 = call noundef i32 @_ZN6basisu4iabsEi(i32 noundef %127)
  %129 = zext i32 %128 to i64
  %130 = getelementptr inbounds [256 x double], ptr %17, i64 0, i64 %129
  %131 = load double, ptr %130, align 8, !tbaa !14
  %132 = fadd double %131, 1.000000e+00
  store double %132, ptr %130, align 8, !tbaa !14
  br label %133

133:                                              ; preds = %122, %111
  br label %134

134:                                              ; preds = %133, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %135

135:                                              ; preds = %134
  %136 = load i32, ptr %20, align 4, !tbaa !9
  %137 = add i32 %136, 1
  store i32 %137, ptr %20, align 4, !tbaa !9
  br label %61, !llvm.loop !20

138:                                              ; preds = %65
  br label %139

139:                                              ; preds = %138
  %140 = load i32, ptr %18, align 4, !tbaa !9
  %141 = add i32 %140, 1
  store i32 %141, ptr %18, align 4, !tbaa !9
  br label %55, !llvm.loop !21

142:                                              ; preds = %59
  %143 = getelementptr inbounds %"class.basisu::image_metrics", ptr %31, i32 0, i32 0
  store float 0.000000e+00, ptr %143, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  store double 0.000000e+00, ptr %24, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  store double 0.000000e+00, ptr %25, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %144

144:                                              ; preds = %177, %142
  %145 = load i32, ptr %26, align 4, !tbaa !9
  %146 = icmp ult i32 %145, 256
  br i1 %146, label %148, label %147

147:                                              ; preds = %144
  store i32 11, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %180

148:                                              ; preds = %144
  %149 = load i32, ptr %26, align 4, !tbaa !9
  %150 = zext i32 %149 to i64
  %151 = getelementptr inbounds [256 x double], ptr %17, i64 0, i64 %150
  %152 = load double, ptr %151, align 8, !tbaa !14
  %153 = fcmp une double %152, 0.000000e+00
  br i1 %153, label %154, label %176

154:                                              ; preds = %148
  %155 = getelementptr inbounds %"class.basisu::image_metrics", ptr %31, i32 0, i32 0
  %156 = load float, ptr %155, align 4, !tbaa !22
  %157 = load i32, ptr %26, align 4, !tbaa !9
  %158 = uitofp i32 %157 to float
  %159 = call noundef float @_ZN6basisu7maximumIfEET_S1_S1_(float noundef %156, float noundef %158)
  %160 = getelementptr inbounds %"class.basisu::image_metrics", ptr %31, i32 0, i32 0
  store float %159, ptr %160, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %161 = load i32, ptr %26, align 4, !tbaa !9
  %162 = uitofp i32 %161 to double
  %163 = load i32, ptr %26, align 4, !tbaa !9
  %164 = zext i32 %163 to i64
  %165 = getelementptr inbounds [256 x double], ptr %17, i64 0, i64 %164
  %166 = load double, ptr %165, align 8, !tbaa !14
  %167 = fmul double %162, %166
  store double %167, ptr %27, align 8, !tbaa !14
  %168 = load double, ptr %27, align 8, !tbaa !14
  %169 = load double, ptr %24, align 8, !tbaa !14
  %170 = fadd double %169, %168
  store double %170, ptr %24, align 8, !tbaa !14
  %171 = load i32, ptr %26, align 4, !tbaa !9
  %172 = uitofp i32 %171 to double
  %173 = load double, ptr %27, align 8, !tbaa !14
  %174 = load double, ptr %25, align 8, !tbaa !14
  %175 = call double @llvm.fmuladd.f64(double %172, double %173, double %174)
  store double %175, ptr %25, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %176

176:                                              ; preds = %154, %148
  br label %177

177:                                              ; preds = %176
  %178 = load i32, ptr %26, align 4, !tbaa !9
  %179 = add i32 %178, 1
  store i32 %179, ptr %26, align 4, !tbaa !9
  br label %144, !llvm.loop !25

180:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %181 = load i32, ptr %15, align 4, !tbaa !9
  %182 = uitofp i32 %181 to double
  %183 = load i32, ptr %16, align 4, !tbaa !9
  %184 = uitofp i32 %183 to double
  %185 = fmul double %182, %184
  store double %185, ptr %28, align 8, !tbaa !14
  %186 = load i8, ptr %13, align 1, !tbaa !11, !range !18, !noundef !19
  %187 = trunc i8 %186 to i1
  br i1 %187, label %188, label %194

188:                                              ; preds = %180
  %189 = load i32, ptr %12, align 4, !tbaa !9
  %190 = call noundef i32 @_ZN6basisu5clampIjEET_S1_S1_S1_(i32 noundef %189, i32 noundef 1, i32 noundef 4)
  %191 = uitofp i32 %190 to double
  %192 = load double, ptr %28, align 8, !tbaa !14
  %193 = fmul double %192, %191
  store double %193, ptr %28, align 8, !tbaa !14
  br label %194

194:                                              ; preds = %188, %180
  %195 = load double, ptr %24, align 8, !tbaa !14
  %196 = load double, ptr %28, align 8, !tbaa !14
  %197 = fdiv double %195, %196
  %198 = call noundef double @_ZN6basisu5clampIdEET_S1_S1_S1_(double noundef %197, double noundef 0.000000e+00, double noundef 2.550000e+02)
  %199 = fptrunc double %198 to float
  %200 = getelementptr inbounds %"class.basisu::image_metrics", ptr %31, i32 0, i32 1
  store float %199, ptr %200, align 4, !tbaa !26
  %201 = load double, ptr %25, align 8, !tbaa !14
  %202 = load double, ptr %28, align 8, !tbaa !14
  %203 = fdiv double %201, %202
  %204 = call noundef double @_ZN6basisu5clampIdEET_S1_S1_S1_(double noundef %203, double noundef 0.000000e+00, double noundef 6.502500e+04)
  %205 = fptrunc double %204 to float
  %206 = getelementptr inbounds %"class.basisu::image_metrics", ptr %31, i32 0, i32 2
  store float %205, ptr %206, align 4, !tbaa !27
  %207 = getelementptr inbounds %"class.basisu::image_metrics", ptr %31, i32 0, i32 2
  %208 = load float, ptr %207, align 4, !tbaa !27
  %209 = call noundef float @_ZSt4sqrtf(float noundef %208)
  %210 = getelementptr inbounds %"class.basisu::image_metrics", ptr %31, i32 0, i32 3
  store float %209, ptr %210, align 4, !tbaa !28
  %211 = getelementptr inbounds %"class.basisu::image_metrics", ptr %31, i32 0, i32 3
  %212 = load float, ptr %211, align 4, !tbaa !28
  %213 = fcmp une float %212, 0.000000e+00
  br i1 %213, label %214, label %223

214:                                              ; preds = %194
  %215 = getelementptr inbounds %"class.basisu::image_metrics", ptr %31, i32 0, i32 3
  %216 = load float, ptr %215, align 4, !tbaa !28
  %217 = fpext float %216 to double
  %218 = fdiv double 2.550000e+02, %217
  %219 = call double @log10(double noundef %218) #8
  %220 = fmul double %219, 2.000000e+01
  %221 = call noundef double @_ZN6basisu5clampIdEET_S1_S1_S1_(double noundef %220, double noundef 0.000000e+00, double noundef 1.000000e+02)
  %222 = fptrunc double %221 to float
  br label %224

223:                                              ; preds = %194
  br label %224

224:                                              ; preds = %223, %214
  %225 = phi float [ %222, %214 ], [ 1.000000e+02, %223 ]
  %226 = getelementptr inbounds %"class.basisu::image_metrics", ptr %31, i32 0, i32 4
  store float %225, ptr %226, align 4, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 2048, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu9clear_objIA256_dEEvRT_(ptr noundef nonnull align 8 dereferenceable(2048)) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6basisu4iabsEi(i32 noundef) #2

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN6basisu5clampIdEET_S1_S1_S1_(double noundef, double noundef, double noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) #2

; Function Attrs: nounwind
declare double @log10(double noundef) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = !{!23, !24, i64 0}
!23 = !{!"_ZTSN6basisu13image_metricsE", !24, i64 0, !24, i64 4, !24, i64 8, !24, i64 12, !24, i64 16, !24, i64 20}
!24 = !{!"float", !7, i64 0}
!25 = distinct !{!25, !17}
!26 = !{!23, !24, i64 4}
!27 = !{!23, !24, i64 8}
!28 = !{!23, !24, i64 12}
!29 = !{!23, !24, i64 16}


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

@.str.4 = external hidden unnamed_addr constant [110 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [54 x i8], align 1
@__PRETTY_FUNCTION__._ZN6basisu13image_metrics4calcERKNS_5imageES3_jjbb = external hidden unnamed_addr constant [95 x i8], align 1

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu5image9get_widthEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6basisu5image10get_heightEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 1 dereferenceable(4) ptr @_ZNK6basisu5imageclEjj(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZN6basisu7maximumIfEET_S1_S1_(float noundef, float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6basisu13image_metrics4calcERKNS_5imageES3_jjbb(ptr nocapture noundef nonnull writeonly align 4 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull align 8 dereferenceable(32) %2, i32 noundef %3, i32 noundef %4, i1 noundef zeroext %5, i1 noundef zeroext %6) local_unnamed_addr #4 align 2 {
  %8 = alloca [256 x double], align 16
  %9 = icmp ult i32 %3, 4
  %10 = add i32 %4, %3
  %11 = icmp ult i32 %10, 5
  %12 = and i1 %9, %11
  br i1 %12, label %14, label %13

13:                                               ; preds = %7
  tail call void @__assert_fail(ptr noundef nonnull @.str.29, ptr noundef nonnull @.str.4, i32 noundef 1411, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN6basisu13image_metrics4calcERKNS_5imageES3_jjbb) #7
  unreachable

14:                                               ; preds = %7
  %15 = tail call noundef i32 @_ZNK6basisu5image9get_widthEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %16 = tail call noundef i32 @_ZNK6basisu5image9get_widthEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %17 = tail call noundef i32 @_ZN6basisu7minimumIjEET_S1_S1_(i32 noundef %15, i32 noundef %16)
  %18 = tail call noundef i32 @_ZNK6basisu5image10get_heightEv(ptr noundef nonnull align 8 dereferenceable(32) %1)
  %19 = tail call noundef i32 @_ZNK6basisu5image10get_heightEv(ptr noundef nonnull align 8 dereferenceable(32) %2)
  %20 = tail call noundef i32 @_ZN6basisu7minimumIjEET_S1_S1_(i32 noundef %18, i32 noundef %19)
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %8) #8
  call void @_ZN6basisu9clear_objIA256_dEEvRT_(ptr noundef nonnull align 8 dereferenceable(2048) %8)
  %.not81 = icmp eq i32 %20, 0
  %.not82 = icmp eq i32 %17, 0
  %or.cond = or i1 %.not81, %.not82
  br i1 %or.cond, label %._crit_edge71, label %.preheader65.lr.ph.split.us

.preheader65.lr.ph.split.us:                      ; preds = %14
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %.preheader65.lr.ph.split.us.split.us, label %.preheader65.us

.preheader65.lr.ph.split.us.split.us:             ; preds = %.preheader65.lr.ph.split.us
  br i1 %6, label %.preheader65.us.us.us, label %.preheader65.us.us

.preheader65.us.us.us:                            ; preds = %.preheader65.lr.ph.split.us.split.us, %._crit_edge.split.us.split.us.us.us.us
  %.05468.us.us.us = phi i32 [ %33, %._crit_edge.split.us.split.us.us.us.us ], [ 0, %.preheader65.lr.ph.split.us.split.us ]
  br label %21

21:                                               ; preds = %21, %.preheader65.us.us.us
  %.06067.us.us.us.us.us = phi i32 [ 0, %.preheader65.us.us.us ], [ %32, %21 ]
  %22 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZNK6basisu5imageclEjj(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %.06067.us.us.us.us.us, i32 noundef %.05468.us.us.us)
  %23 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZNK6basisu5imageclEjj(ptr noundef nonnull align 8 dereferenceable(32) %2, i32 noundef %.06067.us.us.us.us.us, i32 noundef %.05468.us.us.us)
  %24 = call noundef i32 @_ZNK6basisu10color_rgba12get_601_lumaEv(ptr noundef nonnull align 1 dereferenceable(4) %22)
  %25 = call noundef i32 @_ZNK6basisu10color_rgba12get_601_lumaEv(ptr noundef nonnull align 1 dereferenceable(4) %23)
  %26 = sub nsw i32 %24, %25
  %27 = call noundef i32 @_ZN6basisu4iabsEi(i32 noundef %26)
  %28 = zext i32 %27 to i64
  %29 = getelementptr inbounds [256 x double], ptr %8, i64 0, i64 %28
  %30 = load double, ptr %29, align 8, !tbaa !5
  %31 = fadd double %30, 1.000000e+00
  store double %31, ptr %29, align 8, !tbaa !5
  %32 = add nuw i32 %.06067.us.us.us.us.us, 1
  %exitcond90.not = icmp eq i32 %32, %17
  br i1 %exitcond90.not, label %._crit_edge.split.us.split.us.us.us.us, label %21, !llvm.loop !9

._crit_edge.split.us.split.us.us.us.us:           ; preds = %21
  %33 = add nuw i32 %.05468.us.us.us, 1
  %exitcond91.not = icmp eq i32 %33, %20
  br i1 %exitcond91.not, label %._crit_edge71, label %.preheader65.us.us.us, !llvm.loop !11

.preheader65.us.us:                               ; preds = %.preheader65.lr.ph.split.us.split.us, %._crit_edge.split.us.split.us76.us
  %.05468.us.us = phi i32 [ %46, %._crit_edge.split.us.split.us76.us ], [ 0, %.preheader65.lr.ph.split.us.split.us ]
  br label %34

34:                                               ; preds = %.preheader65.us.us, %34
  %.06067.us.us75.us = phi i32 [ 0, %.preheader65.us.us ], [ %45, %34 ]
  %35 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZNK6basisu5imageclEjj(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %.06067.us.us75.us, i32 noundef %.05468.us.us)
  %36 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZNK6basisu5imageclEjj(ptr noundef nonnull align 8 dereferenceable(32) %2, i32 noundef %.06067.us.us75.us, i32 noundef %.05468.us.us)
  %37 = call noundef i32 @_ZNK6basisu10color_rgba12get_709_lumaEv(ptr noundef nonnull align 1 dereferenceable(4) %35)
  %38 = call noundef i32 @_ZNK6basisu10color_rgba12get_709_lumaEv(ptr noundef nonnull align 1 dereferenceable(4) %36)
  %39 = sub nsw i32 %37, %38
  %40 = call noundef i32 @_ZN6basisu4iabsEi(i32 noundef %39)
  %41 = zext i32 %40 to i64
  %42 = getelementptr inbounds [256 x double], ptr %8, i64 0, i64 %41
  %43 = load double, ptr %42, align 8, !tbaa !5
  %44 = fadd double %43, 1.000000e+00
  store double %44, ptr %42, align 8, !tbaa !5
  %45 = add nuw i32 %.06067.us.us75.us, 1
  %exitcond88.not = icmp eq i32 %45, %17
  br i1 %exitcond88.not, label %._crit_edge.split.us.split.us76.us, label %34, !llvm.loop !9

._crit_edge.split.us.split.us76.us:               ; preds = %34
  %46 = add nuw i32 %.05468.us.us, 1
  %exitcond89.not = icmp eq i32 %46, %20
  br i1 %exitcond89.not, label %._crit_edge71, label %.preheader65.us.us, !llvm.loop !11

.preheader65.us:                                  ; preds = %.preheader65.lr.ph.split.us, %._crit_edge.split.us73
  %.05468.us = phi i32 [ %65, %._crit_edge.split.us73 ], [ 0, %.preheader65.lr.ph.split.us ]
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader65.us, %.loopexit.us
  %.06067.us72 = phi i32 [ 0, %.preheader65.us ], [ %64, %.loopexit.us ]
  %47 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZNK6basisu5imageclEjj(ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %.06067.us72, i32 noundef %.05468.us)
  %48 = call noundef nonnull align 1 dereferenceable(4) ptr @_ZNK6basisu5imageclEjj(ptr noundef nonnull align 8 dereferenceable(32) %2, i32 noundef %.06067.us72, i32 noundef %.05468.us)
  br label %49

49:                                               ; preds = %49, %.preheader.us
  %.05966.us = phi i32 [ 0, %.preheader.us ], [ %63, %49 ]
  %50 = add i32 %.05966.us, %3
  %51 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %47, i32 noundef %50)
  %52 = load i8, ptr %51, align 1, !tbaa !12
  %53 = zext i8 %52 to i32
  %54 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %48, i32 noundef %50)
  %55 = load i8, ptr %54, align 1, !tbaa !12
  %56 = zext i8 %55 to i32
  %57 = sub nsw i32 %53, %56
  %58 = call noundef i32 @_ZN6basisu4iabsEi(i32 noundef %57)
  %59 = zext i32 %58 to i64
  %60 = getelementptr inbounds [256 x double], ptr %8, i64 0, i64 %59
  %61 = load double, ptr %60, align 8, !tbaa !5
  %62 = fadd double %61, 1.000000e+00
  store double %62, ptr %60, align 8, !tbaa !5
  %63 = add nuw i32 %.05966.us, 1
  %exitcond.not = icmp eq i32 %63, %4
  br i1 %exitcond.not, label %.loopexit.us, label %49, !llvm.loop !13

.loopexit.us:                                     ; preds = %49
  %64 = add nuw i32 %.06067.us72, 1
  %exitcond86.not = icmp eq i32 %64, %17
  br i1 %exitcond86.not, label %._crit_edge.split.us73, label %.preheader.us, !llvm.loop !9

._crit_edge.split.us73:                           ; preds = %.loopexit.us
  %65 = add nuw i32 %.05468.us, 1
  %exitcond87.not = icmp eq i32 %65, %20
  br i1 %exitcond87.not, label %._crit_edge71, label %.preheader65.us, !llvm.loop !11

._crit_edge71:                                    ; preds = %._crit_edge.split.us73, %._crit_edge.split.us.split.us76.us, %._crit_edge.split.us.split.us.us.us.us, %14
  store float 0.000000e+00, ptr %0, align 4, !tbaa !14
  br label %70

66:                                               ; preds = %84
  %67 = uitofp i32 %17 to double
  %68 = uitofp i32 %20 to double
  %69 = fmul double %67, %68
  br i1 %5, label %86, label %90

70:                                               ; preds = %._crit_edge71, %84
  %71 = phi float [ 0.000000e+00, %._crit_edge71 ], [ %85, %84 ]
  %indvars.iv = phi i64 [ 0, %._crit_edge71 ], [ %indvars.iv.next, %84 ]
  %.05679 = phi double [ 0.000000e+00, %._crit_edge71 ], [ %.1, %84 ]
  %.05778 = phi double [ 0.000000e+00, %._crit_edge71 ], [ %.158, %84 ]
  %72 = getelementptr inbounds [256 x double], ptr %8, i64 0, i64 %indvars.iv
  %73 = load double, ptr %72, align 8, !tbaa !5
  %74 = fcmp une double %73, 0.000000e+00
  br i1 %74, label %75, label %84

75:                                               ; preds = %70
  %76 = trunc nuw nsw i64 %indvars.iv to i32
  %77 = uitofp nneg i32 %76 to float
  %78 = call noundef float @_ZN6basisu7maximumIfEET_S1_S1_(float noundef %71, float noundef %77)
  store float %78, ptr %0, align 4, !tbaa !14
  %79 = uitofp nneg i32 %76 to double
  %80 = load double, ptr %72, align 8, !tbaa !5
  %81 = fmul double %80, %79
  %82 = fadd double %.05778, %81
  %83 = call double @llvm.fmuladd.f64(double %79, double %81, double %.05679)
  br label %84

84:                                               ; preds = %70, %75
  %85 = phi float [ %78, %75 ], [ %71, %70 ]
  %.158 = phi double [ %82, %75 ], [ %.05778, %70 ]
  %.1 = phi double [ %83, %75 ], [ %.05679, %70 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond93.not = icmp eq i64 %indvars.iv.next, 256
  br i1 %exitcond93.not, label %66, label %70, !llvm.loop !17

86:                                               ; preds = %66
  %87 = call noundef i32 @_ZN6basisu5clampIjEET_S1_S1_S1_(i32 noundef %4, i32 noundef 1, i32 noundef 4)
  %88 = uitofp i32 %87 to double
  %89 = fmul double %69, %88
  br label %90

90:                                               ; preds = %86, %66
  %.0 = phi double [ %89, %86 ], [ %69, %66 ]
  %91 = fdiv double %.158, %.0
  %92 = call noundef double @_ZN6basisu5clampIdEET_S1_S1_S1_(double noundef %91, double noundef 0.000000e+00, double noundef 2.550000e+02)
  %93 = fptrunc double %92 to float
  %94 = getelementptr inbounds i8, ptr %0, i64 4
  store float %93, ptr %94, align 4, !tbaa !18
  %95 = fdiv double %.1, %.0
  %96 = call noundef double @_ZN6basisu5clampIdEET_S1_S1_S1_(double noundef %95, double noundef 0.000000e+00, double noundef 6.502500e+04)
  %97 = fptrunc double %96 to float
  %98 = getelementptr inbounds i8, ptr %0, i64 8
  store float %97, ptr %98, align 4, !tbaa !19
  %99 = call noundef float @_ZSt4sqrtf(float noundef %97)
  %100 = getelementptr inbounds i8, ptr %0, i64 12
  store float %99, ptr %100, align 4, !tbaa !20
  %101 = fcmp une float %99, 0.000000e+00
  br i1 %101, label %102, label %109

102:                                              ; preds = %90
  %103 = fpext float %99 to double
  %104 = fdiv double 2.550000e+02, %103
  %105 = call double @log10(double noundef %104) #8
  %106 = fmul double %105, 2.000000e+01
  %107 = call noundef double @_ZN6basisu5clampIdEET_S1_S1_S1_(double noundef %106, double noundef 0.000000e+00, double noundef 1.000000e+02)
  %108 = fptrunc double %107 to float
  br label %109

109:                                              ; preds = %90, %102
  %110 = phi float [ %108, %102 ], [ 1.000000e+02, %90 ]
  %111 = getelementptr inbounds i8, ptr %0, i64 16
  store float %110, ptr %111, align 4, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %8) #8
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6basisu9clear_objIA256_dEEvRT_(ptr noundef nonnull align 8 dereferenceable(2048)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6basisu4iabsEi(i32 noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN6basisu5clampIdEET_S1_S1_S1_(double noundef, double noundef, double noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt4sqrtf(float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @log10(double noundef) local_unnamed_addr #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !10}
!14 = !{!15, !16, i64 0}
!15 = !{!"_ZTSN6basisu13image_metricsE", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12, !16, i64 16, !16, i64 20}
!16 = !{!"float", !7, i64 0}
!17 = distinct !{!17, !10}
!18 = !{!15, !16, i64 4}
!19 = !{!15, !16, i64 8}
!20 = !{!15, !16, i64 12}
!21 = !{!15, !16, i64 16}


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