; LLVM IR from awawa-dev/HyperHDR :: sources/hyperimage/HyperImage.ll (ZN10HyperImage10radialFillEiidRKSt6vectorIhSaIhEE)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.ColorRgb = type { i8, i8, i8 }
%class.HyperImage = type { %class.Image, %struct.ColorRgb, [5 x i8] }
%class.Image = type <{ %"class.std::shared_ptr", i32, [4 x i8] }>
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK10HyperImage5widthEv(ptr noundef nonnull align 8 dereferenceable(27)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK10HyperImage6heightEv(ptr noundef nonnull align 8 dereferenceable(27)) #2 align 2

declare noundef ptr @_ZN5ImageI8ColorRgbE6rawMemEv(ptr noundef nonnull align 8 dereferenceable(20)) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10HyperImage10radialFillEiidRKSt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(27) %0, i32 noundef %1, i32 noundef %2, double noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4) #2 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca double, align 8
  %10 = alloca ptr, align 8
  %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 %struct.ColorRgb, align 1
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %struct.ColorRgb, align 1
  %25 = alloca i64, align 8
  %26 = alloca i32, align 4
  %27 = alloca %struct.ColorRgb, align 1
  %28 = alloca i32, align 4
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  %31 = alloca float, align 4
  %32 = alloca float, align 4
  %33 = alloca float, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store double %3, ptr %9, align 8, !tbaa !11
  store ptr %4, ptr %10, align 8, !tbaa !5
  %34 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %35 = getelementptr inbounds %class.HyperImage, ptr %34, i32 0, i32 0
  %36 = call noundef ptr @_ZN5ImageI8ColorRgbE6rawMemEv(ptr noundef nonnull align 8 dereferenceable(20) %35)
  store ptr %36, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %37 = call noundef i32 @_ZNK10HyperImage6heightEv(ptr noundef nonnull align 8 dereferenceable(27) %34)
  store i32 %37, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %38 = call noundef i32 @_ZNK10HyperImage5widthEv(ptr noundef nonnull align 8 dereferenceable(27) %34)
  store i32 %38, ptr %13, align 4, !tbaa !9
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  %40 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #7
  %41 = icmp ult i64 %40, 5
  br i1 %41, label %47, label %42

42:                                               ; preds = %5
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  %45 = urem i64 %44, 5
  %46 = icmp ne i64 %45, 0
  br i1 %46, label %47, label %48

47:                                               ; preds = %42, %5
  store i32 1, ptr %14, align 4
  br label %423

48:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %419, %48
  %50 = load i32, ptr %15, align 4, !tbaa !9
  %51 = load i32, ptr %12, align 4, !tbaa !9
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %49
  store i32 2, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %422

54:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %415, %54
  %56 = load i32, ptr %16, align 4, !tbaa !9
  %57 = load i32, ptr %13, align 4, !tbaa !9
  %58 = icmp slt i32 %56, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %418

60:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 3, ptr %17) #7
  call void @_ZN8ColorRgbC2Ev(ptr noundef nonnull align 1 dereferenceable(3) %17) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %61 = load i32, ptr %7, align 4, !tbaa !9
  %62 = load i32, ptr %16, align 4, !tbaa !9
  %63 = sub nsw i32 %61, %62
  %64 = sitofp i32 %63 to float
  store float %64, ptr %18, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %65 = load i32, ptr %8, align 4, !tbaa !9
  %66 = load i32, ptr %15, align 4, !tbaa !9
  %67 = sub nsw i32 %65, %66
  %68 = sitofp i32 %67 to float
  store float %68, ptr %19, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %69 = load float, ptr %18, align 4, !tbaa !13
  %70 = load float, ptr %18, align 4, !tbaa !13
  %71 = load float, ptr %19, align 4, !tbaa !13
  %72 = load float, ptr %19, align 4, !tbaa !13
  %73 = fmul float %71, %72
  %74 = call float @llvm.fmuladd.f32(float %69, float %70, float %73)
  store float %74, ptr %20, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !9
  %75 = load float, ptr %20, align 4, !tbaa !13
  %76 = fpext float %75 to double
  %77 = fcmp ogt double %76, 0.000000e+00
  br i1 %77, label %78, label %89

78:                                               ; preds = %60
  %79 = load float, ptr %20, align 4, !tbaa !13
  %80 = call noundef float @_ZSt4sqrtf(float noundef %79)
  %81 = fpext float %80 to double
  %82 = fmul double %81, 2.550000e+02
  %83 = load double, ptr %9, align 8, !tbaa !11
  %84 = fdiv double %82, %83
  %85 = call double @llvm.round.f64(double %84)
  %86 = fptosi double %85 to i32
  %87 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %86)
  %88 = zext i8 %87 to i32
  store i32 %88, ptr %21, align 4, !tbaa !9
  br label %89

89:                                               ; preds = %78, %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 3, ptr %24) #7
  call void @_ZN8ColorRgbC2Ev(ptr noundef nonnull align 1 dereferenceable(3) %24) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  store i64 0, ptr %25, align 8, !tbaa !15
  br label %90

90:                                               ; preds = %334, %89
  %91 = load i64, ptr %25, align 8, !tbaa !15
  %92 = load ptr, ptr %10, align 8, !tbaa !5
  %93 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %92) #7
  %94 = icmp ult i64 %91, %93
  br i1 %94, label %96, label %95

95:                                               ; preds = %90
  store i32 8, ptr %14, align 4
  br label %337

96:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %97 = load ptr, ptr %10, align 8, !tbaa !5
  %98 = load i64, ptr %25, align 8, !tbaa !15
  %99 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef %98) #7
  %100 = load i8, ptr %99, align 1, !tbaa !17
  %101 = zext i8 %100 to i32
  store i32 %101, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 3, ptr %27) #7
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  %103 = load i64, ptr %25, align 8, !tbaa !15
  %104 = add i64 %103, 1
  %105 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %102, i64 noundef %104) #7
  %106 = load i8, ptr %105, align 1, !tbaa !17
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  %108 = load i64, ptr %25, align 8, !tbaa !15
  %109 = add i64 %108, 2
  %110 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %109) #7
  %111 = load i8, ptr %110, align 1, !tbaa !17
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  %113 = load i64, ptr %25, align 8, !tbaa !15
  %114 = add i64 %113, 3
  %115 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %112, i64 noundef %114) #7
  %116 = load i8, ptr %115, align 1, !tbaa !17
  call void @_ZN8ColorRgbC2Ehhh(ptr noundef nonnull align 1 dereferenceable(3) %27, i8 noundef zeroext %106, i8 noundef zeroext %111, i8 noundef zeroext %116)
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = load i64, ptr %25, align 8, !tbaa !15
  %119 = add i64 %118, 4
  %120 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %117, i64 noundef %119) #7
  %121 = load i8, ptr %120, align 1, !tbaa !17
  %122 = zext i8 %121 to i32
  store i32 %122, ptr %28, align 4, !tbaa !9
  %123 = load i64, ptr %25, align 8, !tbaa !15
  %124 = icmp ugt i64 %123, 0
  br i1 %124, label %125, label %328

125:                                              ; preds = %96
  %126 = load i32, ptr %22, align 4, !tbaa !9
  %127 = load i32, ptr %21, align 4, !tbaa !9
  %128 = icmp sle i32 %126, %127
  br i1 %128, label %129, label %327

129:                                              ; preds = %125
  %130 = load i32, ptr %21, align 4, !tbaa !9
  %131 = load i32, ptr %26, align 4, !tbaa !9
  %132 = icmp sle i32 %130, %131
  br i1 %132, label %133, label %327

133:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %134 = load i32, ptr %26, align 4, !tbaa !9
  %135 = load i32, ptr %22, align 4, !tbaa !9
  %136 = sub nsw i32 %134, %135
  %137 = sitofp i32 %136 to float
  store float %137, ptr %29, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %138 = load i32, ptr %21, align 4, !tbaa !9
  %139 = load i32, ptr %22, align 4, !tbaa !9
  %140 = sub nsw i32 %138, %139
  %141 = sitofp i32 %140 to float
  %142 = load float, ptr %29, align 4, !tbaa !13
  %143 = fdiv float %141, %142
  store float %143, ptr %30, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  %144 = load float, ptr %30, align 4, !tbaa !13
  %145 = fpext float %144 to double
  %146 = fsub double 1.000000e+00, %145
  %147 = fptrunc double %146 to float
  store float %147, ptr %31, align 4, !tbaa !13
  %148 = load i32, ptr %28, align 4, !tbaa !9
  %149 = icmp sgt i32 %148, 0
  br i1 %149, label %150, label %216

150:                                              ; preds = %133
  %151 = load i32, ptr %23, align 4, !tbaa !9
  %152 = icmp sgt i32 %151, 0
  br i1 %152, label %153, label %216

153:                                              ; preds = %150
  %154 = getelementptr inbounds %struct.ColorRgb, ptr %24, i32 0, i32 0
  %155 = load i8, ptr %154, align 1, !tbaa !18
  %156 = zext i8 %155 to i32
  %157 = sitofp i32 %156 to float
  %158 = load float, ptr %31, align 4, !tbaa !13
  %159 = getelementptr inbounds %struct.ColorRgb, ptr %27, i32 0, i32 0
  %160 = load i8, ptr %159, align 1, !tbaa !18
  %161 = zext i8 %160 to i32
  %162 = sitofp i32 %161 to float
  %163 = load float, ptr %30, align 4, !tbaa !13
  %164 = fmul float %162, %163
  %165 = call float @llvm.fmuladd.f32(float %157, float %158, float %164)
  %166 = fptosi float %165 to i32
  %167 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %166)
  %168 = getelementptr inbounds %struct.ColorRgb, ptr %17, i32 0, i32 0
  store i8 %167, ptr %168, align 1, !tbaa !18
  %169 = getelementptr inbounds %struct.ColorRgb, ptr %24, i32 0, i32 1
  %170 = load i8, ptr %169, align 1, !tbaa !20
  %171 = zext i8 %170 to i32
  %172 = sitofp i32 %171 to float
  %173 = load float, ptr %31, align 4, !tbaa !13
  %174 = getelementptr inbounds %struct.ColorRgb, ptr %27, i32 0, i32 1
  %175 = load i8, ptr %174, align 1, !tbaa !20
  %176 = zext i8 %175 to i32
  %177 = sitofp i32 %176 to float
  %178 = load float, ptr %30, align 4, !tbaa !13
  %179 = fmul float %177, %178
  %180 = call float @llvm.fmuladd.f32(float %172, float %173, float %179)
  %181 = fptosi float %180 to i32
  %182 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %181)
  %183 = getelementptr inbounds %struct.ColorRgb, ptr %17, i32 0, i32 1
  store i8 %182, ptr %183, align 1, !tbaa !20
  %184 = getelementptr inbounds %struct.ColorRgb, ptr %24, i32 0, i32 2
  %185 = load i8, ptr %184, align 1, !tbaa !21
  %186 = zext i8 %185 to i32
  %187 = sitofp i32 %186 to float
  %188 = load float, ptr %31, align 4, !tbaa !13
  %189 = getelementptr inbounds %struct.ColorRgb, ptr %27, i32 0, i32 2
  %190 = load i8, ptr %189, align 1, !tbaa !21
  %191 = zext i8 %190 to i32
  %192 = sitofp i32 %191 to float
  %193 = load float, ptr %30, align 4, !tbaa !13
  %194 = fmul float %192, %193
  %195 = call float @llvm.fmuladd.f32(float %187, float %188, float %194)
  %196 = fptosi float %195 to i32
  %197 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %196)
  %198 = getelementptr inbounds %struct.ColorRgb, ptr %17, i32 0, i32 2
  store i8 %197, ptr %198, align 1, !tbaa !21
  %199 = load i32, ptr %28, align 4, !tbaa !9
  %200 = load i32, ptr %23, align 4, !tbaa !9
  %201 = icmp ne i32 %199, %200
  br i1 %201, label %202, label %215

202:                                              ; preds = %153
  %203 = load i32, ptr %28, align 4, !tbaa !9
  %204 = sitofp i32 %203 to float
  %205 = load float, ptr %30, align 4, !tbaa !13
  %206 = load i32, ptr %23, align 4, !tbaa !9
  %207 = sitofp i32 %206 to float
  %208 = load float, ptr %31, align 4, !tbaa !13
  %209 = fmul float %207, %208
  %210 = call float @llvm.fmuladd.f32(float %204, float %205, float %209)
  %211 = call noundef float @_ZSt5roundf(float noundef %210)
  %212 = fptosi float %211 to i32
  %213 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %212)
  %214 = zext i8 %213 to i32
  store i32 %214, ptr %23, align 4, !tbaa !9
  br label %215

215:                                              ; preds = %202, %153
  br label %326

216:                                              ; preds = %150, %133
  %217 = load i32, ptr %28, align 4, !tbaa !9
  %218 = icmp sgt i32 %217, 0
  br i1 %218, label %219, label %270

219:                                              ; preds = %216
  %220 = getelementptr inbounds %struct.ColorRgb, ptr %27, i32 0, i32 0
  %221 = load i8, ptr %220, align 1, !tbaa !18
  %222 = zext i8 %221 to i32
  %223 = sitofp i32 %222 to float
  %224 = load float, ptr %30, align 4, !tbaa !13
  %225 = fmul float %223, %224
  %226 = load i32, ptr %28, align 4, !tbaa !9
  %227 = sitofp i32 %226 to float
  %228 = fmul float %225, %227
  %229 = fpext float %228 to double
  %230 = fdiv double %229, 2.550000e+02
  %231 = fptosi double %230 to i32
  %232 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %231)
  %233 = getelementptr inbounds %struct.ColorRgb, ptr %17, i32 0, i32 0
  store i8 %232, ptr %233, align 1, !tbaa !18
  %234 = getelementptr inbounds %struct.ColorRgb, ptr %27, i32 0, i32 1
  %235 = load i8, ptr %234, align 1, !tbaa !20
  %236 = zext i8 %235 to i32
  %237 = sitofp i32 %236 to float
  %238 = load float, ptr %30, align 4, !tbaa !13
  %239 = fmul float %237, %238
  %240 = load i32, ptr %28, align 4, !tbaa !9
  %241 = sitofp i32 %240 to float
  %242 = fmul float %239, %241
  %243 = fpext float %242 to double
  %244 = fdiv double %243, 2.550000e+02
  %245 = fptosi double %244 to i32
  %246 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %245)
  %247 = getelementptr inbounds %struct.ColorRgb, ptr %17, i32 0, i32 1
  store i8 %246, ptr %247, align 1, !tbaa !20
  %248 = getelementptr inbounds %struct.ColorRgb, ptr %27, i32 0, i32 2
  %249 = load i8, ptr %248, align 1, !tbaa !21
  %250 = zext i8 %249 to i32
  %251 = sitofp i32 %250 to float
  %252 = load float, ptr %30, align 4, !tbaa !13
  %253 = fmul float %251, %252
  %254 = load i32, ptr %28, align 4, !tbaa !9
  %255 = sitofp i32 %254 to float
  %256 = fmul float %253, %255
  %257 = fpext float %256 to double
  %258 = fdiv double %257, 2.550000e+02
  %259 = fptosi double %258 to i32
  %260 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %259)
  %261 = getelementptr inbounds %struct.ColorRgb, ptr %17, i32 0, i32 2
  store i8 %260, ptr %261, align 1, !tbaa !21
  %262 = load i32, ptr %28, align 4, !tbaa !9
  %263 = sitofp i32 %262 to float
  %264 = load float, ptr %30, align 4, !tbaa !13
  %265 = fmul float %263, %264
  %266 = call noundef float @_ZSt5roundf(float noundef %265)
  %267 = fptosi float %266 to i32
  %268 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %267)
  %269 = zext i8 %268 to i32
  store i32 %269, ptr %23, align 4, !tbaa !9
  br label %325

270:                                              ; preds = %216
  %271 = load i32, ptr %23, align 4, !tbaa !9
  %272 = icmp sgt i32 %271, 0
  br i1 %272, label %273, label %324

273:                                              ; preds = %270
  %274 = getelementptr inbounds %struct.ColorRgb, ptr %24, i32 0, i32 0
  %275 = load i8, ptr %274, align 1, !tbaa !18
  %276 = zext i8 %275 to i32
  %277 = sitofp i32 %276 to float
  %278 = load float, ptr %31, align 4, !tbaa !13
  %279 = fmul float %277, %278
  %280 = load i32, ptr %23, align 4, !tbaa !9
  %281 = sitofp i32 %280 to float
  %282 = fmul float %279, %281
  %283 = fpext float %282 to double
  %284 = fdiv double %283, 2.550000e+02
  %285 = fptosi double %284 to i32
  %286 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %285)
  %287 = getelementptr inbounds %struct.ColorRgb, ptr %17, i32 0, i32 0
  store i8 %286, ptr %287, align 1, !tbaa !18
  %288 = getelementptr inbounds %struct.ColorRgb, ptr %24, i32 0, i32 1
  %289 = load i8, ptr %288, align 1, !tbaa !20
  %290 = zext i8 %289 to i32
  %291 = sitofp i32 %290 to float
  %292 = load float, ptr %31, align 4, !tbaa !13
  %293 = fmul float %291, %292
  %294 = load i32, ptr %23, align 4, !tbaa !9
  %295 = sitofp i32 %294 to float
  %296 = fmul float %293, %295
  %297 = fpext float %296 to double
  %298 = fdiv double %297, 2.550000e+02
  %299 = fptosi double %298 to i32
  %300 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %299)
  %301 = getelementptr inbounds %struct.ColorRgb, ptr %17, i32 0, i32 1
  store i8 %300, ptr %301, align 1, !tbaa !20
  %302 = getelementptr inbounds %struct.ColorRgb, ptr %24, i32 0, i32 2
  %303 = load i8, ptr %302, align 1, !tbaa !21
  %304 = zext i8 %303 to i32
  %305 = sitofp i32 %304 to float
  %306 = load float, ptr %31, align 4, !tbaa !13
  %307 = fmul float %305, %306
  %308 = load i32, ptr %23, align 4, !tbaa !9
  %309 = sitofp i32 %308 to float
  %310 = fmul float %307, %309
  %311 = fpext float %310 to double
  %312 = fdiv double %311, 2.550000e+02
  %313 = fptosi double %312 to i32
  %314 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %313)
  %315 = getelementptr inbounds %struct.ColorRgb, ptr %17, i32 0, i32 2
  store i8 %314, ptr %315, align 1, !tbaa !21
  %316 = load i32, ptr %23, align 4, !tbaa !9
  %317 = sitofp i32 %316 to float
  %318 = load float, ptr %31, align 4, !tbaa !13
  %319 = fmul float %317, %318
  %320 = call noundef float @_ZSt5roundf(float noundef %319)
  %321 = fptosi float %320 to i32
  %322 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %321)
  %323 = zext i8 %322 to i32
  store i32 %323, ptr %23, align 4, !tbaa !9
  br label %324

324:                                              ; preds = %273, %270
  br label %325

325:                                              ; preds = %324, %219
  br label %326

326:                                              ; preds = %325, %215
  store i32 8, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  br label %331

327:                                              ; preds = %129, %125
  br label %328

328:                                              ; preds = %327, %96
  %329 = load i32, ptr %26, align 4, !tbaa !9
  store i32 %329, ptr %22, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %24, ptr align 1 %27, i64 3, i1 false), !tbaa.struct !22
  %330 = load i32, ptr %28, align 4, !tbaa !9
  store i32 %330, ptr %23, align 4, !tbaa !9
  store i32 0, ptr %14, align 4
  br label %331

331:                                              ; preds = %328, %326
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 3, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  %332 = load i32, ptr %14, align 4
  switch i32 %332, label %337 [
    i32 0, label %333
  ]

333:                                              ; preds = %331
  br label %334

334:                                              ; preds = %333
  %335 = load i64, ptr %25, align 8, !tbaa !15
  %336 = add i64 %335, 5
  store i64 %336, ptr %25, align 8, !tbaa !15
  br label %90, !llvm.loop !23

337:                                              ; preds = %331, %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %338

338:                                              ; preds = %337
  %339 = load i32, ptr %23, align 4, !tbaa !9
  %340 = icmp eq i32 %339, 255
  br i1 %340, label %341, label %354

341:                                              ; preds = %338
  %342 = getelementptr inbounds %struct.ColorRgb, ptr %17, i32 0, i32 0
  %343 = load i8, ptr %342, align 1, !tbaa !18
  %344 = load ptr, ptr %11, align 8, !tbaa !5
  %345 = getelementptr inbounds i8, ptr %344, i64 0
  store i8 %343, ptr %345, align 1, !tbaa !17
  %346 = getelementptr inbounds %struct.ColorRgb, ptr %17, i32 0, i32 1
  %347 = load i8, ptr %346, align 1, !tbaa !20
  %348 = load ptr, ptr %11, align 8, !tbaa !5
  %349 = getelementptr inbounds i8, ptr %348, i64 1
  store i8 %347, ptr %349, align 1, !tbaa !17
  %350 = getelementptr inbounds %struct.ColorRgb, ptr %17, i32 0, i32 2
  %351 = load i8, ptr %350, align 1, !tbaa !21
  %352 = load ptr, ptr %11, align 8, !tbaa !5
  %353 = getelementptr inbounds i8, ptr %352, i64 2
  store i8 %351, ptr %353, align 1, !tbaa !17
  br label %412

354:                                              ; preds = %338
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  %355 = load i32, ptr %23, align 4, !tbaa !9
  %356 = sitofp i32 %355 to double
  %357 = fdiv double %356, 2.550000e+02
  %358 = fptrunc double %357 to float
  store float %358, ptr %32, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  %359 = load float, ptr %32, align 4, !tbaa !13
  %360 = fsub float 1.000000e+00, %359
  store float %360, ptr %33, align 4, !tbaa !13
  %361 = getelementptr inbounds %struct.ColorRgb, ptr %17, i32 0, i32 0
  %362 = load i8, ptr %361, align 1, !tbaa !18
  %363 = zext i8 %362 to i32
  %364 = sitofp i32 %363 to float
  %365 = load float, ptr %32, align 4, !tbaa !13
  %366 = load ptr, ptr %11, align 8, !tbaa !5
  %367 = getelementptr inbounds i8, ptr %366, i64 0
  %368 = load i8, ptr %367, align 1, !tbaa !17
  %369 = zext i8 %368 to i32
  %370 = sitofp i32 %369 to float
  %371 = load float, ptr %33, align 4, !tbaa !13
  %372 = fmul float %370, %371
  %373 = call float @llvm.fmuladd.f32(float %364, float %365, float %372)
  %374 = fptosi float %373 to i32
  %375 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %374)
  %376 = load ptr, ptr %11, align 8, !tbaa !5
  %377 = getelementptr inbounds i8, ptr %376, i64 0
  store i8 %375, ptr %377, align 1, !tbaa !17
  %378 = getelementptr inbounds %struct.ColorRgb, ptr %17, i32 0, i32 1
  %379 = load i8, ptr %378, align 1, !tbaa !20
  %380 = zext i8 %379 to i32
  %381 = sitofp i32 %380 to float
  %382 = load float, ptr %32, align 4, !tbaa !13
  %383 = load ptr, ptr %11, align 8, !tbaa !5
  %384 = getelementptr inbounds i8, ptr %383, i64 1
  %385 = load i8, ptr %384, align 1, !tbaa !17
  %386 = zext i8 %385 to i32
  %387 = sitofp i32 %386 to float
  %388 = load float, ptr %33, align 4, !tbaa !13
  %389 = fmul float %387, %388
  %390 = call float @llvm.fmuladd.f32(float %381, float %382, float %389)
  %391 = fptosi float %390 to i32
  %392 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %391)
  %393 = load ptr, ptr %11, align 8, !tbaa !5
  %394 = getelementptr inbounds i8, ptr %393, i64 1
  store i8 %392, ptr %394, align 1, !tbaa !17
  %395 = getelementptr inbounds %struct.ColorRgb, ptr %17, i32 0, i32 2
  %396 = load i8, ptr %395, align 1, !tbaa !21
  %397 = zext i8 %396 to i32
  %398 = sitofp i32 %397 to float
  %399 = load float, ptr %32, align 4, !tbaa !13
  %400 = load ptr, ptr %11, align 8, !tbaa !5
  %401 = getelementptr inbounds i8, ptr %400, i64 2
  %402 = load i8, ptr %401, align 1, !tbaa !17
  %403 = zext i8 %402 to i32
  %404 = sitofp i32 %403 to float
  %405 = load float, ptr %33, align 4, !tbaa !13
  %406 = fmul float %404, %405
  %407 = call float @llvm.fmuladd.f32(float %398, float %399, float %406)
  %408 = fptosi float %407 to i32
  %409 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %408)
  %410 = load ptr, ptr %11, align 8, !tbaa !5
  %411 = getelementptr inbounds i8, ptr %410, i64 2
  store i8 %409, ptr %411, align 1, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %412

412:                                              ; preds = %354, %341
  %413 = load ptr, ptr %11, align 8, !tbaa !5
  %414 = getelementptr inbounds i8, ptr %413, i64 3
  store ptr %414, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 3, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 3, ptr %17) #7
  br label %415

415:                                              ; preds = %412
  %416 = load i32, ptr %16, align 4, !tbaa !9
  %417 = add nsw i32 %416, 1
  store i32 %417, ptr %16, align 4, !tbaa !9
  br label %55, !llvm.loop !25

418:                                              ; preds = %59
  br label %419

419:                                              ; preds = %418
  %420 = load i32, ptr %15, align 4, !tbaa !9
  %421 = add nsw i32 %420, 1
  store i32 %421, ptr %15, align 4, !tbaa !9
  br label %49, !llvm.loop !26

422:                                              ; preds = %53
  store i32 0, ptr %14, align 4
  br label %423

423:                                              ; preds = %422, %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  %424 = load i32, ptr %14, align 4
  switch i32 %424, label %426 [
    i32 0, label %425
    i32 1, label %425
  ]

425:                                              ; preds = %423, %423
  ret void

426:                                              ; preds = %423
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8ColorRgbC2Ev(ptr noundef nonnull align 1 dereferenceable(3)) unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef) #6 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8ColorRgbC2Ehhh(ptr noundef nonnull align 1 dereferenceable(3), i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt5roundf(float noundef) #4

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !7, i64 0}
!19 = !{!"_ZTS8ColorRgb", !7, i64 0, !7, i64 1, !7, i64 2}
!20 = !{!19, !7, i64 1}
!21 = !{!19, !7, i64 2}
!22 = !{i64 0, i64 1, !17, i64 1, i64 1, !17, i64 2, i64 1, !17}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = distinct !{!26, !24}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.ColorRgb = type { i8, i8, i8 }

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK10HyperImage5widthEv(ptr noundef nonnull align 8 dereferenceable(27)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK10HyperImage6heightEv(ptr noundef nonnull align 8 dereferenceable(27)) local_unnamed_addr #2 align 2

declare noundef ptr @_ZN5ImageI8ColorRgbE6rawMemEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10HyperImage10radialFillEiidRKSt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(27) %0, i32 noundef %1, i32 noundef %2, double noundef %3, ptr noundef nonnull align 8 dereferenceable(24) %4) local_unnamed_addr #2 align 2 {
  %6 = alloca %struct.ColorRgb, align 1
  %7 = alloca %struct.ColorRgb, align 1
  %8 = alloca %struct.ColorRgb, align 1
  %9 = tail call noundef ptr @_ZN5ImageI8ColorRgbE6rawMemEv(ptr noundef nonnull align 8 dereferenceable(20) %0)
  %10 = tail call noundef i32 @_ZNK10HyperImage6heightEv(ptr noundef nonnull align 8 dereferenceable(27) %0)
  %11 = tail call noundef i32 @_ZNK10HyperImage5widthEv(ptr noundef nonnull align 8 dereferenceable(27) %0)
  %12 = tail call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %13 = icmp ult i64 %12, 5
  br i1 %13, label %.loopexit120, label %14

14:                                               ; preds = %5
  %15 = tail call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %16 = urem i64 %15, 5
  %.not = icmp eq i64 %16, 0
  %17 = icmp sgt i32 %10, 0
  %or.cond = and i1 %.not, %17
  br i1 %or.cond, label %.preheader.lr.ph, label %.loopexit120

.preheader.lr.ph:                                 ; preds = %14
  %18 = icmp sgt i32 %11, 0
  %19 = getelementptr inbounds i8, ptr %7, i64 1
  %20 = getelementptr inbounds i8, ptr %6, i64 1
  %21 = getelementptr inbounds i8, ptr %7, i64 2
  %22 = getelementptr inbounds i8, ptr %6, i64 2
  %23 = getelementptr inbounds i8, ptr %8, i64 1
  %24 = getelementptr inbounds i8, ptr %8, i64 2
  br i1 %18, label %.preheader.us, label %.loopexit120

.preheader.us:                                    ; preds = %.preheader.lr.ph, %._crit_edge.us
  %.0133.us = phi ptr [ %197, %._crit_edge.us ], [ %9, %.preheader.lr.ph ]
  %.099132.us = phi i32 [ %203, %._crit_edge.us ], [ 0, %.preheader.lr.ph ]
  %25 = sub nsw i32 %2, %.099132.us
  %26 = sitofp i32 %25 to float
  %27 = fmul float %26, %26
  br label %28

28:                                               ; preds = %.preheader.us, %196
  %.1129.us = phi ptr [ %.0133.us, %.preheader.us ], [ %197, %196 ]
  %.0100128.us = phi i32 [ 0, %.preheader.us ], [ %198, %196 ]
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %6) #7
  call void @_ZN8ColorRgbC2Ev(ptr noundef nonnull align 1 dereferenceable(3) %6) #7
  %29 = sub nsw i32 %1, %.0100128.us
  %30 = sitofp i32 %29 to float
  %31 = call float @llvm.fmuladd.f32(float %30, float %30, float %27)
  %32 = fcmp ogt float %31, 0.000000e+00
  br i1 %32, label %33, label %42

33:                                               ; preds = %28
  %34 = call noundef float @_ZSt4sqrtf(float noundef %31)
  %35 = fpext float %34 to double
  %36 = fmul double %35, 2.550000e+02
  %37 = fdiv double %36, %3
  %38 = call double @llvm.round.f64(double %37)
  %39 = fptosi double %38 to i32
  %40 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %39)
  %41 = zext i8 %40 to i32
  br label %42

42:                                               ; preds = %33, %28
  %.0101.us = phi i32 [ %41, %33 ], [ 0, %28 ]
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %7) #7
  call void @_ZN8ColorRgbC2Ev(ptr noundef nonnull align 1 dereferenceable(3) %7) #7
  %43 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %.not134 = icmp eq i64 %43, 0
  br i1 %.not134, label %.loopexit.us.thread, label %.lr.ph.us

.lr.ph.us:                                        ; preds = %42, %199
  %.0102127.us = phi i32 [ %46, %199 ], [ 0, %42 ]
  %.0104126.us = phi i32 [ %59, %199 ], [ 0, %42 ]
  %.0106125.us = phi i64 [ %200, %199 ], [ 0, %42 ]
  %44 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %.0106125.us) #7
  %45 = load i8, ptr %44, align 1, !tbaa !5
  %46 = zext i8 %45 to i32
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %8) #7
  %47 = add nuw i64 %.0106125.us, 1
  %48 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %47) #7
  %49 = load i8, ptr %48, align 1, !tbaa !5
  %50 = add i64 %.0106125.us, 2
  %51 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %50) #7
  %52 = load i8, ptr %51, align 1, !tbaa !5
  %53 = add i64 %.0106125.us, 3
  %54 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %53) #7
  %55 = load i8, ptr %54, align 1, !tbaa !5
  call void @_ZN8ColorRgbC2Ehhh(ptr noundef nonnull align 1 dereferenceable(3) %8, i8 noundef zeroext %49, i8 noundef zeroext %52, i8 noundef zeroext %55)
  %56 = add i64 %.0106125.us, 4
  %57 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %56) #7
  %58 = load i8, ptr %57, align 1, !tbaa !5
  %59 = zext i8 %58 to i32
  %.not110.us = icmp eq i64 %.0106125.us, 0
  %.not111.us = icmp ugt i32 %.0102127.us, %.0101.us
  %or.cond114.us = select i1 %.not110.us, i1 true, i1 %.not111.us
  %.not112.us = icmp ugt i32 %.0101.us, %46
  %or.cond115.us = select i1 %or.cond114.us, i1 true, i1 %.not112.us
  br i1 %or.cond115.us, label %199, label %60

60:                                               ; preds = %.lr.ph.us
  %61 = sub nsw i32 %46, %.0102127.us
  %62 = sitofp i32 %61 to float
  %63 = sub nsw i32 %.0101.us, %.0102127.us
  %64 = sitofp i32 %63 to float
  %65 = fdiv float %64, %62
  %66 = fsub float 1.000000e+00, %65
  %67 = icmp ne i8 %58, 0
  %68 = icmp ne i32 %.0104126.us, 0
  %or.cond.us = select i1 %67, i1 %68, i1 false
  br i1 %or.cond.us, label %125, label %69

69:                                               ; preds = %60
  br i1 %67, label %98, label %70

70:                                               ; preds = %69
  br i1 %68, label %71, label %.thread.us

71:                                               ; preds = %70
  %72 = load i8, ptr %7, align 1, !tbaa !8
  %73 = uitofp i8 %72 to float
  %74 = fmul float %66, %73
  %75 = uitofp nneg i32 %.0104126.us to float
  %76 = fmul float %74, %75
  %77 = fpext float %76 to double
  %78 = fdiv double %77, 2.550000e+02
  %79 = fptosi double %78 to i32
  %80 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %79)
  store i8 %80, ptr %6, align 1, !tbaa !8
  %81 = load i8, ptr %19, align 1, !tbaa !10
  %82 = uitofp i8 %81 to float
  %83 = fmul float %66, %82
  %84 = fmul float %83, %75
  %85 = fpext float %84 to double
  %86 = fdiv double %85, 2.550000e+02
  %87 = fptosi double %86 to i32
  %88 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %87)
  store i8 %88, ptr %20, align 1, !tbaa !10
  %89 = load i8, ptr %21, align 1, !tbaa !11
  %90 = uitofp i8 %89 to float
  %91 = fmul float %66, %90
  %92 = fmul float %91, %75
  %93 = fpext float %92 to double
  %94 = fdiv double %93, 2.550000e+02
  %95 = fptosi double %94 to i32
  %96 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %95)
  store i8 %96, ptr %22, align 1, !tbaa !11
  %97 = fmul float %66, %75
  br label %.thread.us.sink.split

98:                                               ; preds = %69
  %99 = load i8, ptr %8, align 1, !tbaa !8
  %100 = uitofp i8 %99 to float
  %101 = fmul float %65, %100
  %102 = uitofp i8 %58 to float
  %103 = fmul float %101, %102
  %104 = fpext float %103 to double
  %105 = fdiv double %104, 2.550000e+02
  %106 = fptosi double %105 to i32
  %107 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %106)
  store i8 %107, ptr %6, align 1, !tbaa !8
  %108 = load i8, ptr %23, align 1, !tbaa !10
  %109 = uitofp i8 %108 to float
  %110 = fmul float %65, %109
  %111 = fmul float %110, %102
  %112 = fpext float %111 to double
  %113 = fdiv double %112, 2.550000e+02
  %114 = fptosi double %113 to i32
  %115 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %114)
  store i8 %115, ptr %20, align 1, !tbaa !10
  %116 = load i8, ptr %24, align 1, !tbaa !11
  %117 = uitofp i8 %116 to float
  %118 = fmul float %65, %117
  %119 = fmul float %118, %102
  %120 = fpext float %119 to double
  %121 = fdiv double %120, 2.550000e+02
  %122 = fptosi double %121 to i32
  %123 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %122)
  store i8 %123, ptr %22, align 1, !tbaa !11
  %124 = fmul float %65, %102
  br label %.thread.us.sink.split

125:                                              ; preds = %60
  %126 = load i8, ptr %7, align 1, !tbaa !8
  %127 = uitofp i8 %126 to float
  %128 = load i8, ptr %8, align 1, !tbaa !8
  %129 = uitofp i8 %128 to float
  %130 = fmul float %65, %129
  %131 = call float @llvm.fmuladd.f32(float %127, float %66, float %130)
  %132 = fptosi float %131 to i32
  %133 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %132)
  store i8 %133, ptr %6, align 1, !tbaa !8
  %134 = load i8, ptr %19, align 1, !tbaa !10
  %135 = uitofp i8 %134 to float
  %136 = load i8, ptr %23, align 1, !tbaa !10
  %137 = uitofp i8 %136 to float
  %138 = fmul float %65, %137
  %139 = call float @llvm.fmuladd.f32(float %135, float %66, float %138)
  %140 = fptosi float %139 to i32
  %141 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %140)
  store i8 %141, ptr %20, align 1, !tbaa !10
  %142 = load i8, ptr %21, align 1, !tbaa !11
  %143 = uitofp i8 %142 to float
  %144 = load i8, ptr %24, align 1, !tbaa !11
  %145 = uitofp i8 %144 to float
  %146 = fmul float %65, %145
  %147 = call float @llvm.fmuladd.f32(float %143, float %66, float %146)
  %148 = fptosi float %147 to i32
  %149 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %148)
  store i8 %149, ptr %22, align 1, !tbaa !11
  %.not113.us = icmp eq i32 %.0104126.us, %59
  br i1 %.not113.us, label %.thread.us, label %150

150:                                              ; preds = %125
  %151 = uitofp i8 %58 to float
  %152 = uitofp nneg i32 %.0104126.us to float
  %153 = fmul float %66, %152
  %154 = call float @llvm.fmuladd.f32(float %151, float %65, float %153)
  br label %.thread.us.sink.split

.thread.us.sink.split:                            ; preds = %71, %98, %150
  %.sink156 = phi float [ %154, %150 ], [ %124, %98 ], [ %97, %71 ]
  %155 = call noundef float @_ZSt5roundf(float noundef %.sink156)
  %156 = fptosi float %155 to i32
  %157 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %156)
  %158 = zext i8 %157 to i32
  br label %.thread.us

.thread.us:                                       ; preds = %.thread.us.sink.split, %125, %70
  %.2.ph.us = phi i32 [ 0, %70 ], [ %.0104126.us, %125 ], [ %158, %.thread.us.sink.split ]
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %8) #7
  br label %.loopexit.us

.loopexit.us:                                     ; preds = %199, %.thread.us
  %.3.us = phi i32 [ %.2.ph.us, %.thread.us ], [ %59, %199 ]
  %159 = icmp eq i32 %.3.us, 255
  br i1 %159, label %190, label %.loopexit.us.thread

.loopexit.us.thread:                              ; preds = %42, %.loopexit.us
  %.3.us146 = phi i32 [ %.3.us, %.loopexit.us ], [ 0, %42 ]
  %160 = uitofp nneg i32 %.3.us146 to double
  %161 = fdiv double %160, 2.550000e+02
  %162 = fptrunc double %161 to float
  %163 = fsub float 1.000000e+00, %162
  %164 = load i8, ptr %6, align 1, !tbaa !8
  %165 = uitofp i8 %164 to float
  %166 = load i8, ptr %.1129.us, align 1, !tbaa !5
  %167 = uitofp i8 %166 to float
  %168 = fmul float %163, %167
  %169 = call float @llvm.fmuladd.f32(float %165, float %162, float %168)
  %170 = fptosi float %169 to i32
  %171 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %170)
  store i8 %171, ptr %.1129.us, align 1, !tbaa !5
  %172 = load i8, ptr %20, align 1, !tbaa !10
  %173 = uitofp i8 %172 to float
  %174 = getelementptr inbounds i8, ptr %.1129.us, i64 1
  %175 = load i8, ptr %174, align 1, !tbaa !5
  %176 = uitofp i8 %175 to float
  %177 = fmul float %163, %176
  %178 = call float @llvm.fmuladd.f32(float %173, float %162, float %177)
  %179 = fptosi float %178 to i32
  %180 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %179)
  store i8 %180, ptr %174, align 1, !tbaa !5
  %181 = load i8, ptr %22, align 1, !tbaa !11
  %182 = uitofp i8 %181 to float
  %183 = getelementptr inbounds i8, ptr %.1129.us, i64 2
  %184 = load i8, ptr %183, align 1, !tbaa !5
  %185 = uitofp i8 %184 to float
  %186 = fmul float %163, %185
  %187 = call float @llvm.fmuladd.f32(float %182, float %162, float %186)
  %188 = fptosi float %187 to i32
  %189 = call noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef %188)
  store i8 %189, ptr %183, align 1, !tbaa !5
  br label %196

190:                                              ; preds = %.loopexit.us
  %191 = load i8, ptr %6, align 1, !tbaa !8
  store i8 %191, ptr %.1129.us, align 1, !tbaa !5
  %192 = load i8, ptr %20, align 1, !tbaa !10
  %193 = getelementptr inbounds i8, ptr %.1129.us, i64 1
  store i8 %192, ptr %193, align 1, !tbaa !5
  %194 = load i8, ptr %22, align 1, !tbaa !11
  %195 = getelementptr inbounds i8, ptr %.1129.us, i64 2
  store i8 %194, ptr %195, align 1, !tbaa !5
  br label %196

196:                                              ; preds = %190, %.loopexit.us.thread
  %197 = getelementptr inbounds i8, ptr %.1129.us, i64 3
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %6) #7
  %198 = add nuw nsw i32 %.0100128.us, 1
  %exitcond.not = icmp eq i32 %198, %11
  br i1 %exitcond.not, label %._crit_edge.us, label %28, !llvm.loop !12

199:                                              ; preds = %.lr.ph.us
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(3) %7, ptr noundef nonnull align 1 dereferenceable(3) %8, i64 3, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %8) #7
  %200 = add i64 %.0106125.us, 5
  %201 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %202 = icmp ult i64 %200, %201
  br i1 %202, label %.lr.ph.us, label %.loopexit.us, !llvm.loop !15

._crit_edge.us:                                   ; preds = %196
  %203 = add nuw nsw i32 %.099132.us, 1
  %exitcond144.not = icmp eq i32 %203, %10
  br i1 %exitcond144.not, label %.loopexit120, label %.preheader.us, !llvm.loop !16

.loopexit120:                                     ; preds = %._crit_edge.us, %.preheader.lr.ph, %5, %14
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8ColorRgbC2Ev(ptr noundef nonnull align 1 dereferenceable(3)) unnamed_addr #4 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZN8ColorRgb5clampEi(i32 noundef) local_unnamed_addr #6 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8ColorRgbC2Ehhh(ptr noundef nonnull align 1 dereferenceable(3), i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt5roundf(float noundef) local_unnamed_addr #4

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


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