; LLVM IR from awawa-dev/HyperHDR :: sources/effects (Animation4Music_WavesPulseFast)

; 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.__gnu_cxx::__normal_iterator.5" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.AnimationBaseMusic = type <{ %class.AnimationBase.base, [3 x i8], %"class.std::function", %struct.MovingTarget, [4 x i8] }>
%class.AnimationBase.base = type <{ ptr, i32, i8 }>
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%struct.MovingTarget = type { %struct.ColorRgb, %struct.ColorRgb, %struct.ColorRgb, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%class.Animation4Music_WavesPulseFast = type { %class.AnimationBaseMusic.base, i32, i32, %"class.std::vector" }
%class.AnimationBaseMusic.base = type <{ %class.AnimationBase.base, [3 x i8], %"class.std::function", %struct.MovingTarget }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<ColorRgb, std::allocator<ColorRgb>>::_Vector_impl" }
%"struct.std::_Vector_base<ColorRgb, std::allocator<ColorRgb>>::_Vector_impl" = type { %"struct.std::_Vector_base<ColorRgb, std::allocator<ColorRgb>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ColorRgb, std::allocator<ColorRgb>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

; 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 #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN30Animation4Music_WavesPulseFast8getImageER5ImageI8ColorRgbE(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef nonnull align 8 dereferenceable(20) %1) unnamed_addr #2 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %struct.ColorRgb, align 1
  %10 = alloca %struct.ColorRgb, align 1
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca %struct.ColorRgb, align 1
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca %struct.ColorRgb, align 1
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %52 = load ptr, ptr %4, align 8
  %53 = getelementptr inbounds %class.AnimationBaseMusic, ptr %52, i32 0, i32 2
  %54 = call noundef zeroext i1 @_ZSteqIP18SoundCaptureResultJP18AnimationBaseMusicRjPbS5_S5_PiEEbRKSt8functionIFT_DpT0_EEDn(ptr noundef nonnull align 8 dereferenceable(32) %53, ptr null) #6
  br i1 %54, label %55, label %56

55:                                               ; preds = %2
  store i1 false, ptr %3, align 1
  br label %536

56:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #6
  store i8 0, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %57 = getelementptr inbounds %class.AnimationBaseMusic, ptr %52, i32 0, i32 2
  %58 = getelementptr inbounds %class.Animation4Music_WavesPulseFast, ptr %52, i32 0, i32 1
  %59 = getelementptr inbounds %class.Animation4Music_WavesPulseFast, ptr %52, i32 0, i32 2
  %60 = call noundef ptr @_ZNKSt8functionIFP18SoundCaptureResultP18AnimationBaseMusicRjPbS5_S5_PiEEclES3_S4_S5_S5_S5_S6_(ptr noundef nonnull align 8 dereferenceable(32) %57, ptr noundef %52, ptr noundef nonnull align 4 dereferenceable(4) %58, ptr noundef null, ptr noundef null, ptr noundef %6, ptr noundef %59)
  store ptr %60, ptr %7, align 8, !tbaa !5
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = icmp eq ptr %61, null
  br i1 %62, label %66, label %63

63:                                               ; preds = %56
  %64 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %65 = trunc i8 %64 to i1
  br i1 %65, label %67, label %66

66:                                               ; preds = %63, %56
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %535

67:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 3, ptr %9) #6
  call void @_ZN8ColorRgbC2Ev(ptr noundef nonnull align 1 dereferenceable(3) %9) #6
  call void @llvm.lifetime.start.p0(i64 3, ptr %10) #6
  call void @_ZN8ColorRgbC2Ev(ptr noundef nonnull align 1 dereferenceable(3) %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN5ImageI8ColorRgbE5clearEv(ptr noundef nonnull align 8 dereferenceable(20) %68)
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = call noundef zeroext i1 @_ZN18SoundCaptureResult8GetStatsERjS0_R8ColorRgbPS1_S3_(ptr noundef nonnull align 4 dereferenceable(296) %69, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 1 dereferenceable(3) %9, ptr noundef %10, ptr noundef null)
  br i1 %70, label %72, label %71

71:                                               ; preds = %67
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %534

72:                                               ; preds = %67
  %73 = getelementptr inbounds %class.Animation4Music_WavesPulseFast, ptr %52, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %74 = getelementptr inbounds %class.Animation4Music_WavesPulseFast, ptr %52, i32 0, i32 3
  %75 = call ptr @_ZNSt6vectorI8ColorRgbSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %74) #6
  %76 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %75, ptr %76, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPK8ColorRgbSt6vectorIS1_SaIS1_EEEC2IPS1_vEERKNS0_IT_S6_EE(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  %77 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %13, i32 0, i32 0
  %78 = load ptr, ptr %77, align 8
  %79 = call ptr @_ZNSt6vectorI8ColorRgbSaIS0_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS0_S2_EE(ptr noundef nonnull align 8 dereferenceable(24) %73, ptr %78)
  %80 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %79, ptr %80, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  %81 = getelementptr inbounds %class.Animation4Music_WavesPulseFast, ptr %52, i32 0, i32 3
  call void @_ZNSt6vectorI8ColorRgbSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %81, ptr noundef nonnull align 1 dereferenceable(3) %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 15, ptr %17, align 4, !tbaa !13
  br label %82

82:                                               ; preds = %303, %72
  %83 = load i32, ptr %16, align 4, !tbaa !13
  %84 = load i32, ptr %17, align 4, !tbaa !13
  %85 = sdiv i32 %84, 2
  %86 = icmp sle i32 %83, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %82
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %306

88:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %89)
  %91 = load i32, ptr %17, align 4, !tbaa !13
  %92 = udiv i32 %90, %91
  store i32 %92, ptr %18, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %93)
  %95 = load i32, ptr %16, align 4, !tbaa !13
  %96 = mul i32 %94, %95
  %97 = load i32, ptr %17, align 4, !tbaa !13
  %98 = udiv i32 %96, %97
  store i32 %98, ptr %19, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %99)
  %101 = load i32, ptr %17, align 4, !tbaa !13
  %102 = load i32, ptr %16, align 4, !tbaa !13
  %103 = sub nsw i32 %101, %102
  %104 = mul i32 %100, %103
  %105 = load i32, ptr %17, align 4, !tbaa !13
  %106 = udiv i32 %104, %105
  store i32 %106, ptr %20, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %107)
  %109 = uitofp i32 %108 to double
  %110 = fmul double %109, 4.000000e-02
  %111 = fptosi double %110 to i32
  store i32 %111, ptr %21, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %112 = load i32, ptr %16, align 4, !tbaa !13
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds %class.Animation4Music_WavesPulseFast, ptr %52, i32 0, i32 3
  %115 = call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %114) #6
  %116 = sub i64 %115, 1
  %117 = mul i64 %113, %116
  %118 = load i32, ptr %17, align 4, !tbaa !13
  %119 = sdiv i32 %118, 2
  %120 = sext i32 %119 to i64
  %121 = udiv i64 %117, %120
  %122 = trunc i64 %121 to i32
  store i32 %122, ptr %24, align 4, !tbaa !13
  %123 = load i32, ptr %24, align 4, !tbaa !13
  %124 = getelementptr inbounds %class.Animation4Music_WavesPulseFast, ptr %52, i32 0, i32 3
  %125 = call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %124) #6
  %126 = sub i64 %125, 2
  %127 = trunc i64 %126 to i32
  %128 = icmp sgt i32 %123, %127
  br i1 %128, label %129, label %134

129:                                              ; preds = %88
  %130 = getelementptr inbounds %class.Animation4Music_WavesPulseFast, ptr %52, i32 0, i32 3
  %131 = call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %130) #6
  %132 = sub i64 %131, 2
  %133 = trunc i64 %132 to i32
  store i32 %133, ptr %24, align 4, !tbaa !13
  store i32 0, ptr %22, align 4, !tbaa !13
  store i32 100, ptr %23, align 4, !tbaa !13
  br label %154

134:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %135 = load i32, ptr %16, align 4, !tbaa !13
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds %class.Animation4Music_WavesPulseFast, ptr %52, i32 0, i32 3
  %138 = call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %137) #6
  %139 = sub i64 %138, 1
  %140 = mul i64 %136, %139
  %141 = load i32, ptr %17, align 4, !tbaa !13
  %142 = sdiv i32 %141, 2
  %143 = sext i32 %142 to i64
  %144 = urem i64 %140, %143
  %145 = trunc i64 %144 to i32
  %146 = mul nsw i32 %145, 100
  %147 = load i32, ptr %17, align 4, !tbaa !13
  %148 = sdiv i32 %147, 2
  %149 = sdiv i32 %146, %148
  store i32 %149, ptr %25, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 100, ptr %26, align 4, !tbaa !13
  %150 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %151 = load i32, ptr %150, align 4, !tbaa !13
  store i32 %151, ptr %23, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  %152 = load i32, ptr %23, align 4, !tbaa !13
  %153 = sub nsw i32 100, %152
  store i32 %153, ptr %22, align 4, !tbaa !13
  br label %154

154:                                              ; preds = %134, %129
  call void @llvm.lifetime.start.p0(i64 3, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %155 = getelementptr inbounds %class.Animation4Music_WavesPulseFast, ptr %52, i32 0, i32 3
  %156 = load i32, ptr %24, align 4, !tbaa !13
  %157 = sext i32 %156 to i64
  %158 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %155, i64 noundef %157) #6
  %159 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %158)
  %160 = load i32, ptr %22, align 4, !tbaa !13
  %161 = mul nsw i32 %159, %160
  %162 = getelementptr inbounds %class.Animation4Music_WavesPulseFast, ptr %52, i32 0, i32 3
  %163 = load i32, ptr %24, align 4, !tbaa !13
  %164 = add nsw i32 %163, 1
  %165 = sext i32 %164 to i64
  %166 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %162, i64 noundef %165) #6
  %167 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %166)
  %168 = load i32, ptr %23, align 4, !tbaa !13
  %169 = mul nsw i32 %167, %168
  %170 = add nsw i32 %161, %169
  %171 = sdiv i32 %170, 100
  store i32 %171, ptr %28, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  store i32 255, ptr %29, align 4, !tbaa !13
  %172 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %28, ptr noundef nonnull align 4 dereferenceable(4) %29)
  %173 = load i32, ptr %172, align 4, !tbaa !13
  %174 = trunc i32 %173 to i8
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %175 = getelementptr inbounds %class.Animation4Music_WavesPulseFast, ptr %52, i32 0, i32 3
  %176 = load i32, ptr %24, align 4, !tbaa !13
  %177 = sext i32 %176 to i64
  %178 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %175, i64 noundef %177) #6
  %179 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %178)
  %180 = load i32, ptr %22, align 4, !tbaa !13
  %181 = mul nsw i32 %179, %180
  %182 = getelementptr inbounds %class.Animation4Music_WavesPulseFast, ptr %52, i32 0, i32 3
  %183 = load i32, ptr %24, align 4, !tbaa !13
  %184 = add nsw i32 %183, 1
  %185 = sext i32 %184 to i64
  %186 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %182, i64 noundef %185) #6
  %187 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %186)
  %188 = load i32, ptr %23, align 4, !tbaa !13
  %189 = mul nsw i32 %187, %188
  %190 = add nsw i32 %181, %189
  %191 = sdiv i32 %190, 100
  store i32 %191, ptr %30, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  store i32 255, ptr %31, align 4, !tbaa !13
  %192 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %30, ptr noundef nonnull align 4 dereferenceable(4) %31)
  %193 = load i32, ptr %192, align 4, !tbaa !13
  %194 = trunc i32 %193 to i8
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  %195 = getelementptr inbounds %class.Animation4Music_WavesPulseFast, ptr %52, i32 0, i32 3
  %196 = load i32, ptr %24, align 4, !tbaa !13
  %197 = sext i32 %196 to i64
  %198 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %195, i64 noundef %197) #6
  %199 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %198)
  %200 = load i32, ptr %22, align 4, !tbaa !13
  %201 = mul nsw i32 %199, %200
  %202 = getelementptr inbounds %class.Animation4Music_WavesPulseFast, ptr %52, i32 0, i32 3
  %203 = load i32, ptr %24, align 4, !tbaa !13
  %204 = add nsw i32 %203, 1
  %205 = sext i32 %204 to i64
  %206 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %202, i64 noundef %205) #6
  %207 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %206)
  %208 = load i32, ptr %23, align 4, !tbaa !13
  %209 = mul nsw i32 %207, %208
  %210 = add nsw i32 %201, %209
  %211 = sdiv i32 %210, 100
  store i32 %211, ptr %32, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  store i32 255, ptr %33, align 4, !tbaa !13
  %212 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %32, ptr noundef nonnull align 4 dereferenceable(4) %33)
  %213 = load i32, ptr %212, align 4, !tbaa !13
  %214 = trunc i32 %213 to i8
  call void @_ZN8ColorRgbC2Ehhh(ptr noundef nonnull align 1 dereferenceable(3) %27, i8 noundef zeroext %174, i8 noundef zeroext %194, i8 noundef zeroext %214)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %10, ptr align 1 %27, i64 3, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 3, ptr %27) #6
  %215 = load ptr, ptr %5, align 8, !tbaa !5
  %216 = load i32, ptr %19, align 4, !tbaa !13
  %217 = trunc i32 %216 to i16
  %218 = load i32, ptr %21, align 4, !tbaa !13
  %219 = trunc i32 %218 to i16
  %220 = load i32, ptr %19, align 4, !tbaa !13
  %221 = load i32, ptr %18, align 4, !tbaa !13
  %222 = add nsw i32 %220, %221
  %223 = trunc i32 %222 to i16
  %224 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %225 = trunc i32 %224 to i8
  %226 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %227 = trunc i32 %226 to i8
  %228 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %229 = trunc i32 %228 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientVBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %215, i16 noundef zeroext 0, i16 noundef zeroext %217, i16 noundef zeroext %219, i16 noundef zeroext %223, i8 noundef zeroext %225, i8 noundef zeroext %227, i8 noundef zeroext %229)
  %230 = load i32, ptr %16, align 4, !tbaa !13
  %231 = load i32, ptr %17, align 4, !tbaa !13
  %232 = sdiv i32 %231, 2
  %233 = icmp ne i32 %230, %232
  br i1 %233, label %234, label %250

234:                                              ; preds = %154
  %235 = load ptr, ptr %5, align 8, !tbaa !5
  %236 = load i32, ptr %20, align 4, !tbaa !13
  %237 = trunc i32 %236 to i16
  %238 = load i32, ptr %21, align 4, !tbaa !13
  %239 = trunc i32 %238 to i16
  %240 = load i32, ptr %20, align 4, !tbaa !13
  %241 = load i32, ptr %18, align 4, !tbaa !13
  %242 = sub nsw i32 %240, %241
  %243 = trunc i32 %242 to i16
  %244 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %245 = trunc i32 %244 to i8
  %246 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %247 = trunc i32 %246 to i8
  %248 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %249 = trunc i32 %248 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientVBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %235, i16 noundef zeroext 0, i16 noundef zeroext %237, i16 noundef zeroext %239, i16 noundef zeroext %243, i8 noundef zeroext %245, i8 noundef zeroext %247, i8 noundef zeroext %249)
  br label %250

250:                                              ; preds = %234, %154
  %251 = load ptr, ptr %5, align 8, !tbaa !5
  %252 = load ptr, ptr %5, align 8, !tbaa !5
  %253 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %252)
  %254 = sub i32 %253, 1
  %255 = load i32, ptr %21, align 4, !tbaa !13
  %256 = sub i32 %254, %255
  %257 = trunc i32 %256 to i16
  %258 = load i32, ptr %19, align 4, !tbaa !13
  %259 = trunc i32 %258 to i16
  %260 = load ptr, ptr %5, align 8, !tbaa !5
  %261 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %260)
  %262 = sub i32 %261, 1
  %263 = trunc i32 %262 to i16
  %264 = load i32, ptr %19, align 4, !tbaa !13
  %265 = load i32, ptr %18, align 4, !tbaa !13
  %266 = add nsw i32 %264, %265
  %267 = trunc i32 %266 to i16
  %268 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %269 = trunc i32 %268 to i8
  %270 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %271 = trunc i32 %270 to i8
  %272 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %273 = trunc i32 %272 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientVBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %251, i16 noundef zeroext %257, i16 noundef zeroext %259, i16 noundef zeroext %263, i16 noundef zeroext %267, i8 noundef zeroext %269, i8 noundef zeroext %271, i8 noundef zeroext %273)
  %274 = load i32, ptr %16, align 4, !tbaa !13
  %275 = load i32, ptr %17, align 4, !tbaa !13
  %276 = sdiv i32 %275, 2
  %277 = icmp ne i32 %274, %276
  br i1 %277, label %278, label %302

278:                                              ; preds = %250
  %279 = load ptr, ptr %5, align 8, !tbaa !5
  %280 = load ptr, ptr %5, align 8, !tbaa !5
  %281 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %280)
  %282 = sub i32 %281, 1
  %283 = load i32, ptr %21, align 4, !tbaa !13
  %284 = sub i32 %282, %283
  %285 = trunc i32 %284 to i16
  %286 = load i32, ptr %20, align 4, !tbaa !13
  %287 = trunc i32 %286 to i16
  %288 = load ptr, ptr %5, align 8, !tbaa !5
  %289 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %288)
  %290 = sub i32 %289, 1
  %291 = trunc i32 %290 to i16
  %292 = load i32, ptr %20, align 4, !tbaa !13
  %293 = load i32, ptr %18, align 4, !tbaa !13
  %294 = sub nsw i32 %292, %293
  %295 = trunc i32 %294 to i16
  %296 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %297 = trunc i32 %296 to i8
  %298 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %299 = trunc i32 %298 to i8
  %300 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %301 = trunc i32 %300 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientVBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %279, i16 noundef zeroext %285, i16 noundef zeroext %287, i16 noundef zeroext %291, i16 noundef zeroext %295, i8 noundef zeroext %297, i8 noundef zeroext %299, i8 noundef zeroext %301)
  br label %302

302:                                              ; preds = %278, %250
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %303

303:                                              ; preds = %302
  %304 = load i32, ptr %16, align 4, !tbaa !13
  %305 = add nsw i32 %304, 1
  store i32 %305, ptr %16, align 4, !tbaa !13
  br label %82, !llvm.loop !17

306:                                              ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  store i32 0, ptr %34, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  store i32 27, ptr %35, align 4, !tbaa !13
  br label %307

307:                                              ; preds = %530, %306
  %308 = load i32, ptr %34, align 4, !tbaa !13
  %309 = load i32, ptr %35, align 4, !tbaa !13
  %310 = sdiv i32 %309, 2
  %311 = icmp sle i32 %308, %310
  br i1 %311, label %313, label %312

312:                                              ; preds = %307
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  br label %533

313:                                              ; preds = %307
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  %314 = load ptr, ptr %5, align 8, !tbaa !5
  %315 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %314)
  %316 = load i32, ptr %35, align 4, !tbaa !13
  %317 = udiv i32 %315, %316
  store i32 %317, ptr %36, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #6
  %318 = load ptr, ptr %5, align 8, !tbaa !5
  %319 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %318)
  %320 = load i32, ptr %34, align 4, !tbaa !13
  %321 = mul i32 %319, %320
  %322 = load i32, ptr %35, align 4, !tbaa !13
  %323 = udiv i32 %321, %322
  store i32 %323, ptr %37, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  %324 = load ptr, ptr %5, align 8, !tbaa !5
  %325 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %324)
  %326 = load i32, ptr %35, align 4, !tbaa !13
  %327 = load i32, ptr %34, align 4, !tbaa !13
  %328 = sub nsw i32 %326, %327
  %329 = mul i32 %325, %328
  %330 = load i32, ptr %35, align 4, !tbaa !13
  %331 = udiv i32 %329, %330
  store i32 %331, ptr %38, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #6
  %332 = load ptr, ptr %5, align 8, !tbaa !5
  %333 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %332)
  %334 = uitofp i32 %333 to double
  %335 = fmul double %334, 6.700000e-02
  %336 = fptosi double %335 to i32
  store i32 %336, ptr %39, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #6
  %337 = load i32, ptr %34, align 4, !tbaa !13
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds %class.Animation4Music_WavesPulseFast, ptr %52, i32 0, i32 3
  %340 = call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %339) #6
  %341 = sub i64 %340, 1
  %342 = mul i64 %338, %341
  %343 = load i32, ptr %35, align 4, !tbaa !13
  %344 = sdiv i32 %343, 2
  %345 = sext i32 %344 to i64
  %346 = udiv i64 %342, %345
  %347 = trunc i64 %346 to i32
  store i32 %347, ptr %42, align 4, !tbaa !13
  %348 = load i32, ptr %42, align 4, !tbaa !13
  %349 = getelementptr inbounds %class.Animation4Music_WavesPulseFast, ptr %52, i32 0, i32 3
  %350 = call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %349) #6
  %351 = sub i64 %350, 2
  %352 = trunc i64 %351 to i32
  %353 = icmp sgt i32 %348, %352
  br i1 %353, label %354, label %359

354:                                              ; preds = %313
  %355 = getelementptr inbounds %class.Animation4Music_WavesPulseFast, ptr %52, i32 0, i32 3
  %356 = call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %355) #6
  %357 = sub i64 %356, 2
  %358 = trunc i64 %357 to i32
  store i32 %358, ptr %42, align 4, !tbaa !13
  store i32 0, ptr %40, align 4, !tbaa !13
  store i32 100, ptr %41, align 4, !tbaa !13
  br label %379

359:                                              ; preds = %313
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #6
  %360 = load i32, ptr %34, align 4, !tbaa !13
  %361 = sext i32 %360 to i64
  %362 = getelementptr inbounds %class.Animation4Music_WavesPulseFast, ptr %52, i32 0, i32 3
  %363 = call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %362) #6
  %364 = sub i64 %363, 1
  %365 = mul i64 %361, %364
  %366 = load i32, ptr %35, align 4, !tbaa !13
  %367 = sdiv i32 %366, 2
  %368 = sext i32 %367 to i64
  %369 = urem i64 %365, %368
  %370 = trunc i64 %369 to i32
  %371 = mul nsw i32 %370, 100
  %372 = load i32, ptr %35, align 4, !tbaa !13
  %373 = sdiv i32 %372, 2
  %374 = sdiv i32 %371, %373
  store i32 %374, ptr %43, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #6
  store i32 100, ptr %44, align 4, !tbaa !13
  %375 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %43, ptr noundef nonnull align 4 dereferenceable(4) %44)
  %376 = load i32, ptr %375, align 4, !tbaa !13
  store i32 %376, ptr %41, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  %377 = load i32, ptr %41, align 4, !tbaa !13
  %378 = sub nsw i32 100, %377
  store i32 %378, ptr %40, align 4, !tbaa !13
  br label %379

379:                                              ; preds = %359, %354
  call void @llvm.lifetime.start.p0(i64 3, ptr %45) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #6
  %380 = getelementptr inbounds %class.Animation4Music_WavesPulseFast, ptr %52, i32 0, i32 3
  %381 = load i32, ptr %42, align 4, !tbaa !13
  %382 = sext i32 %381 to i64
  %383 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %380, i64 noundef %382) #6
  %384 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %383)
  %385 = load i32, ptr %40, align 4, !tbaa !13
  %386 = mul nsw i32 %384, %385
  %387 = getelementptr inbounds %class.Animation4Music_WavesPulseFast, ptr %52, i32 0, i32 3
  %388 = load i32, ptr %42, align 4, !tbaa !13
  %389 = add nsw i32 %388, 1
  %390 = sext i32 %389 to i64
  %391 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %387, i64 noundef %390) #6
  %392 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %391)
  %393 = load i32, ptr %41, align 4, !tbaa !13
  %394 = mul nsw i32 %392, %393
  %395 = add nsw i32 %386, %394
  %396 = sdiv i32 %395, 100
  store i32 %396, ptr %46, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #6
  store i32 255, ptr %47, align 4, !tbaa !13
  %397 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %46, ptr noundef nonnull align 4 dereferenceable(4) %47)
  %398 = load i32, ptr %397, align 4, !tbaa !13
  %399 = trunc i32 %398 to i8
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #6
  %400 = getelementptr inbounds %class.Animation4Music_WavesPulseFast, ptr %52, i32 0, i32 3
  %401 = load i32, ptr %42, align 4, !tbaa !13
  %402 = sext i32 %401 to i64
  %403 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %400, i64 noundef %402) #6
  %404 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %403)
  %405 = load i32, ptr %40, align 4, !tbaa !13
  %406 = mul nsw i32 %404, %405
  %407 = getelementptr inbounds %class.Animation4Music_WavesPulseFast, ptr %52, i32 0, i32 3
  %408 = load i32, ptr %42, align 4, !tbaa !13
  %409 = add nsw i32 %408, 1
  %410 = sext i32 %409 to i64
  %411 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %407, i64 noundef %410) #6
  %412 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %411)
  %413 = load i32, ptr %41, align 4, !tbaa !13
  %414 = mul nsw i32 %412, %413
  %415 = add nsw i32 %406, %414
  %416 = sdiv i32 %415, 100
  store i32 %416, ptr %48, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #6
  store i32 255, ptr %49, align 4, !tbaa !13
  %417 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %48, ptr noundef nonnull align 4 dereferenceable(4) %49)
  %418 = load i32, ptr %417, align 4, !tbaa !13
  %419 = trunc i32 %418 to i8
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #6
  %420 = getelementptr inbounds %class.Animation4Music_WavesPulseFast, ptr %52, i32 0, i32 3
  %421 = load i32, ptr %42, align 4, !tbaa !13
  %422 = sext i32 %421 to i64
  %423 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %420, i64 noundef %422) #6
  %424 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %423)
  %425 = load i32, ptr %40, align 4, !tbaa !13
  %426 = mul nsw i32 %424, %425
  %427 = getelementptr inbounds %class.Animation4Music_WavesPulseFast, ptr %52, i32 0, i32 3
  %428 = load i32, ptr %42, align 4, !tbaa !13
  %429 = add nsw i32 %428, 1
  %430 = sext i32 %429 to i64
  %431 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %427, i64 noundef %430) #6
  %432 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %431)
  %433 = load i32, ptr %41, align 4, !tbaa !13
  %434 = mul nsw i32 %432, %433
  %435 = add nsw i32 %426, %434
  %436 = sdiv i32 %435, 100
  store i32 %436, ptr %50, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #6
  store i32 255, ptr %51, align 4, !tbaa !13
  %437 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %50, ptr noundef nonnull align 4 dereferenceable(4) %51)
  %438 = load i32, ptr %437, align 4, !tbaa !13
  %439 = trunc i32 %438 to i8
  call void @_ZN8ColorRgbC2Ehhh(ptr noundef nonnull align 1 dereferenceable(3) %45, i8 noundef zeroext %399, i8 noundef zeroext %419, i8 noundef zeroext %439)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %10, ptr align 1 %45, i64 3, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 3, ptr %45) #6
  %440 = load ptr, ptr %5, align 8, !tbaa !5
  %441 = load i32, ptr %37, align 4, !tbaa !13
  %442 = trunc i32 %441 to i16
  %443 = load i32, ptr %37, align 4, !tbaa !13
  %444 = load i32, ptr %36, align 4, !tbaa !13
  %445 = add nsw i32 %443, %444
  %446 = add nsw i32 %445, 1
  %447 = trunc i32 %446 to i16
  %448 = load i32, ptr %39, align 4, !tbaa !13
  %449 = trunc i32 %448 to i16
  %450 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %451 = trunc i32 %450 to i8
  %452 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %453 = trunc i32 %452 to i8
  %454 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %455 = trunc i32 %454 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientHBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %440, i16 noundef zeroext %442, i16 noundef zeroext 0, i16 noundef zeroext %447, i16 noundef zeroext %449, i8 noundef zeroext %451, i8 noundef zeroext %453, i8 noundef zeroext %455)
  %456 = load i32, ptr %34, align 4, !tbaa !13
  %457 = load i32, ptr %35, align 4, !tbaa !13
  %458 = sdiv i32 %457, 2
  %459 = icmp ne i32 %456, %458
  br i1 %459, label %460, label %476

460:                                              ; preds = %379
  %461 = load ptr, ptr %5, align 8, !tbaa !5
  %462 = load i32, ptr %38, align 4, !tbaa !13
  %463 = trunc i32 %462 to i16
  %464 = load i32, ptr %38, align 4, !tbaa !13
  %465 = load i32, ptr %36, align 4, !tbaa !13
  %466 = sub nsw i32 %464, %465
  %467 = trunc i32 %466 to i16
  %468 = load i32, ptr %39, align 4, !tbaa !13
  %469 = trunc i32 %468 to i16
  %470 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %471 = trunc i32 %470 to i8
  %472 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %473 = trunc i32 %472 to i8
  %474 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %475 = trunc i32 %474 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientHBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %461, i16 noundef zeroext %463, i16 noundef zeroext 0, i16 noundef zeroext %467, i16 noundef zeroext %469, i8 noundef zeroext %471, i8 noundef zeroext %473, i8 noundef zeroext %475)
  br label %476

476:                                              ; preds = %460, %379
  %477 = load ptr, ptr %5, align 8, !tbaa !5
  %478 = load i32, ptr %37, align 4, !tbaa !13
  %479 = trunc i32 %478 to i16
  %480 = load ptr, ptr %5, align 8, !tbaa !5
  %481 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %480)
  %482 = sub i32 %481, 1
  %483 = load i32, ptr %39, align 4, !tbaa !13
  %484 = sub i32 %482, %483
  %485 = trunc i32 %484 to i16
  %486 = load i32, ptr %37, align 4, !tbaa !13
  %487 = load i32, ptr %36, align 4, !tbaa !13
  %488 = add nsw i32 %486, %487
  %489 = add nsw i32 %488, 1
  %490 = trunc i32 %489 to i16
  %491 = load ptr, ptr %5, align 8, !tbaa !5
  %492 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %491)
  %493 = sub i32 %492, 1
  %494 = trunc i32 %493 to i16
  %495 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %496 = trunc i32 %495 to i8
  %497 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %498 = trunc i32 %497 to i8
  %499 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %500 = trunc i32 %499 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientHBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %477, i16 noundef zeroext %479, i16 noundef zeroext %485, i16 noundef zeroext %490, i16 noundef zeroext %494, i8 noundef zeroext %496, i8 noundef zeroext %498, i8 noundef zeroext %500)
  %501 = load i32, ptr %34, align 4, !tbaa !13
  %502 = load i32, ptr %35, align 4, !tbaa !13
  %503 = sdiv i32 %502, 2
  %504 = icmp ne i32 %501, %503
  br i1 %504, label %505, label %529

505:                                              ; preds = %476
  %506 = load ptr, ptr %5, align 8, !tbaa !5
  %507 = load i32, ptr %38, align 4, !tbaa !13
  %508 = trunc i32 %507 to i16
  %509 = load ptr, ptr %5, align 8, !tbaa !5
  %510 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %509)
  %511 = sub i32 %510, 1
  %512 = load i32, ptr %39, align 4, !tbaa !13
  %513 = sub i32 %511, %512
  %514 = trunc i32 %513 to i16
  %515 = load i32, ptr %38, align 4, !tbaa !13
  %516 = load i32, ptr %36, align 4, !tbaa !13
  %517 = sub nsw i32 %515, %516
  %518 = trunc i32 %517 to i16
  %519 = load ptr, ptr %5, align 8, !tbaa !5
  %520 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %519)
  %521 = sub i32 %520, 1
  %522 = trunc i32 %521 to i16
  %523 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %524 = trunc i32 %523 to i8
  %525 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %526 = trunc i32 %525 to i8
  %527 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %528 = trunc i32 %527 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientHBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %506, i16 noundef zeroext %508, i16 noundef zeroext %514, i16 noundef zeroext %518, i16 noundef zeroext %522, i8 noundef zeroext %524, i8 noundef zeroext %526, i8 noundef zeroext %528)
  br label %529

529:                                              ; preds = %505, %476
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  br label %530

530:                                              ; preds = %529
  %531 = load i32, ptr %34, align 4, !tbaa !13
  %532 = add nsw i32 %531, 1
  store i32 %532, ptr %34, align 4, !tbaa !13
  br label %307, !llvm.loop !19

533:                                              ; preds = %312
  store i1 true, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %534

534:                                              ; preds = %533, %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 3, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 3, ptr %9) #6
  br label %535

535:                                              ; preds = %534, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #6
  br label %536

536:                                              ; preds = %535, %55
  %537 = load i1, ptr %3, align 1
  ret i1 %537
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIP18SoundCaptureResultJP18AnimationBaseMusicRjPbS5_S5_PiEEbRKSt8functionIFT_DpT0_EEDn(ptr noundef nonnull align 8 dereferenceable(32), ptr) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNKSt8functionIFP18SoundCaptureResultP18AnimationBaseMusicRjPbS5_S5_PiEEclES3_S4_S5_S5_S5_S6_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2 align 2

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

declare void @_ZN5ImageI8ColorRgbE5clearEv(ptr noundef nonnull align 8 dereferenceable(20)) #4

declare noundef zeroext i1 @_ZN18SoundCaptureResult8GetStatsERjS0_R8ColorRgbPS1_S3_(ptr noundef nonnull align 4 dereferenceable(296), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(3), ptr noundef, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt6vectorI8ColorRgbSaIS0_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS0_S2_EE(ptr noundef nonnull align 8 dereferenceable(24), ptr) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9__gnu_cxx17__normal_iteratorIPK8ColorRgbSt6vectorIS1_SaIS1_EEEC2IPS1_vEERKNS0_IT_S6_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI8ColorRgbSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(3)) #2 align 2

declare noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20)) #4

declare noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20)) #4

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

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

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

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

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

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

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

declare void @_ZN5ImageI8ColorRgbE12gradientVBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20), i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #4

declare void @_ZN5ImageI8ColorRgbE12gradientHBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20), i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{i64 0, i64 1, !16, i64 1, i64 1, !16, i64 2, i64 1, !16}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


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

%struct.ColorRgb = type { i8, i8, i8 }
%"class.__gnu_cxx::__normal_iterator.5" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

; 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 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 #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN30Animation4Music_WavesPulseFast8getImageER5ImageI8ColorRgbE(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef nonnull align 8 dereferenceable(20) %1) unnamed_addr #2 align 2 {
  %3 = alloca i8, align 1
  %4 = alloca %struct.ColorRgb, align 1
  %5 = alloca %struct.ColorRgb, align 1
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %struct.ColorRgb, align 1
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %struct.ColorRgb, align 1
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = getelementptr inbounds i8, ptr %0, i64 16
  %29 = tail call noundef zeroext i1 @_ZSteqIP18SoundCaptureResultJP18AnimationBaseMusicRjPbS5_S5_PiEEbRKSt8functionIFT_DpT0_EEDn(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr null) #6
  br i1 %29, label %298, label %30

30:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #6
  store i8 0, ptr %3, align 1, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %0, i64 108
  %32 = getelementptr inbounds i8, ptr %0, i64 112
  %33 = call noundef ptr @_ZNKSt8functionIFP18SoundCaptureResultP18AnimationBaseMusicRjPbS5_S5_PiEEclES3_S4_S5_S5_S5_S6_(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull %0, ptr noundef nonnull align 4 dereferenceable(4) %31, ptr noundef null, ptr noundef null, ptr noundef nonnull %3, ptr noundef nonnull %32)
  %34 = icmp eq ptr %33, null
  br i1 %34, label %297, label %35

35:                                               ; preds = %30
  %36 = load i8, ptr %3, align 1, !tbaa !5, !range !9, !noundef !10
  %37 = trunc nuw i8 %36 to i1
  br i1 %37, label %38, label %297

38:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %4) #6
  call void @_ZN8ColorRgbC2Ev(ptr noundef nonnull align 1 dereferenceable(3) %4) #6
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %5) #6
  call void @_ZN8ColorRgbC2Ev(ptr noundef nonnull align 1 dereferenceable(3) %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  call void @_ZN5ImageI8ColorRgbE5clearEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %39 = call noundef zeroext i1 @_ZN18SoundCaptureResult8GetStatsERjS0_R8ColorRgbPS1_S3_(ptr noundef nonnull align 4 dereferenceable(296) %33, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 1 dereferenceable(3) %4, ptr noundef nonnull %5, ptr noundef null)
  br i1 %39, label %40, label %.loopexit

40:                                               ; preds = %38
  %41 = getelementptr inbounds i8, ptr %0, i64 120
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %42 = call ptr @_ZNSt6vectorI8ColorRgbSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #6
  store ptr %42, ptr %9, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPK8ColorRgbSt6vectorIS1_SaIS1_EEEC2IPS1_vEERKNS0_IT_S6_EE(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %43 = load ptr, ptr %8, align 8
  %44 = call ptr @_ZNSt6vectorI8ColorRgbSaIS0_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS0_S2_EE(ptr noundef nonnull align 8 dereferenceable(24) %41, ptr %43)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @_ZNSt6vectorI8ColorRgbSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %41, ptr noundef nonnull align 1 dereferenceable(3) %5)
  br label %45

45:                                               ; preds = %155, %40
  %indvars.iv = phi i64 [ 0, %40 ], [ %indvars.iv.next, %155 ]
  %46 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %47 = udiv i32 %46, 15
  %48 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %49 = trunc nuw nsw i64 %indvars.iv to i32
  %50 = mul i32 %48, %49
  %51 = udiv i32 %50, 15
  %52 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %53 = trunc i64 %indvars.iv to i32
  %54 = sub i32 15, %53
  %55 = mul i32 %52, %54
  %56 = udiv i32 %55, 15
  %57 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %58 = uitofp i32 %57 to double
  %59 = fmul double %58, 4.000000e-02
  %60 = fptosi double %59 to i32
  %61 = call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #6
  %62 = add i64 %61, -1
  %63 = mul i64 %62, %indvars.iv
  %64 = udiv i64 %63, 7
  %65 = trunc i64 %64 to i32
  %66 = call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #6
  %67 = trunc i64 %66 to i32
  %68 = add i32 %67, -2
  %69 = icmp slt i32 %68, %65
  br i1 %69, label %70, label %74

70:                                               ; preds = %45
  %71 = call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #6
  %72 = trunc i64 %71 to i32
  %73 = add i32 %72, -2
  br label %84

74:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  %75 = call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #6
  %76 = add i64 %75, -1
  %77 = mul i64 %76, %indvars.iv
  %78 = urem i64 %77, 7
  %79 = trunc nuw nsw i64 %78 to i16
  %.lhs.trunc = mul nuw nsw i16 %79, 100
  %80 = udiv i16 %.lhs.trunc, 7
  %.zext = zext nneg i16 %80 to i32
  store i32 %.zext, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  store i32 100, ptr %11, align 4, !tbaa !11
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %82 = load i32, ptr %81, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  %83 = sub nsw i32 100, %82
  br label %84

84:                                               ; preds = %74, %70
  %.0131 = phi i32 [ %73, %70 ], [ %65, %74 ]
  %.0129 = phi i32 [ 100, %70 ], [ %82, %74 ]
  %.0128 = phi i32 [ 0, %70 ], [ %83, %74 ]
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  %85 = sext i32 %.0131 to i64
  %86 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %85) #6
  %87 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %86)
  %88 = mul nsw i32 %87, %.0128
  %89 = add nsw i32 %.0131, 1
  %90 = sext i32 %89 to i64
  %91 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %90) #6
  %92 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %91)
  %93 = mul nsw i32 %92, %.0129
  %94 = add nsw i32 %93, %88
  %95 = sdiv i32 %94, 100
  store i32 %95, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  store i32 255, ptr %14, align 4, !tbaa !11
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %97 = load i32, ptr %96, align 4, !tbaa !11
  %98 = trunc i32 %97 to i8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  %99 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %85) #6
  %100 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %99)
  %101 = mul nsw i32 %100, %.0128
  %102 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %90) #6
  %103 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %102)
  %104 = mul nsw i32 %103, %.0129
  %105 = add nsw i32 %104, %101
  %106 = sdiv i32 %105, 100
  store i32 %106, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  store i32 255, ptr %16, align 4, !tbaa !11
  %107 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %108 = load i32, ptr %107, align 4, !tbaa !11
  %109 = trunc i32 %108 to i8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #6
  %110 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %85) #6
  %111 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %110)
  %112 = mul nsw i32 %111, %.0128
  %113 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %90) #6
  %114 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %113)
  %115 = mul nsw i32 %114, %.0129
  %116 = add nsw i32 %115, %112
  %117 = sdiv i32 %116, 100
  store i32 %117, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #6
  store i32 255, ptr %18, align 4, !tbaa !11
  %118 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %119 = load i32, ptr %118, align 4, !tbaa !11
  %120 = trunc i32 %119 to i8
  call void @_ZN8ColorRgbC2Ehhh(ptr noundef nonnull align 1 dereferenceable(3) %12, i8 noundef zeroext %98, i8 noundef zeroext %109, i8 noundef zeroext %120)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(3) %5, ptr noundef nonnull align 1 dereferenceable(3) %12, i64 3, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %12) #6
  %121 = trunc i32 %51 to i16
  %122 = trunc i32 %60 to i16
  %123 = add nuw nsw i32 %51, %47
  %124 = trunc i32 %123 to i16
  %125 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %126 = trunc i32 %125 to i8
  %127 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %128 = trunc i32 %127 to i8
  %129 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %130 = trunc i32 %129 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientVBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext 0, i16 noundef zeroext %121, i16 noundef zeroext %122, i16 noundef zeroext %124, i8 noundef zeroext %126, i8 noundef zeroext %128, i8 noundef zeroext %130)
  %.not135 = icmp eq i64 %indvars.iv, 7
  br i1 %.not135, label %141, label %131

131:                                              ; preds = %84
  %132 = trunc i32 %56 to i16
  %133 = sub nsw i32 %56, %47
  %134 = trunc i32 %133 to i16
  %135 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %136 = trunc i32 %135 to i8
  %137 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %138 = trunc i32 %137 to i8
  %139 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %140 = trunc i32 %139 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientVBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext 0, i16 noundef zeroext %132, i16 noundef zeroext %122, i16 noundef zeroext %134, i8 noundef zeroext %136, i8 noundef zeroext %138, i8 noundef zeroext %140)
  br label %141

141:                                              ; preds = %131, %84
  %142 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %143 = xor i32 %60, -1
  %144 = add i32 %142, %143
  %145 = trunc i32 %144 to i16
  %146 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %147 = trunc i32 %146 to i16
  %148 = add i16 %147, -1
  %149 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %150 = trunc i32 %149 to i8
  %151 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %152 = trunc i32 %151 to i8
  %153 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %154 = trunc i32 %153 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientVBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext %145, i16 noundef zeroext %121, i16 noundef zeroext %148, i16 noundef zeroext %124, i8 noundef zeroext %150, i8 noundef zeroext %152, i8 noundef zeroext %154)
  br i1 %.not135, label %.preheader, label %155

155:                                              ; preds = %141
  %156 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %157 = add i32 %156, %143
  %158 = trunc i32 %157 to i16
  %159 = trunc i32 %56 to i16
  %160 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %161 = trunc i32 %160 to i16
  %162 = add i16 %161, -1
  %163 = sub nsw i32 %56, %47
  %164 = trunc i32 %163 to i16
  %165 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %166 = trunc i32 %165 to i8
  %167 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %168 = trunc i32 %167 to i8
  %169 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %170 = trunc i32 %169 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientVBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext %158, i16 noundef zeroext %159, i16 noundef zeroext %162, i16 noundef zeroext %164, i8 noundef zeroext %166, i8 noundef zeroext %168, i8 noundef zeroext %170)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  br label %45

.preheader:                                       ; preds = %141, %281
  %indvars.iv141 = phi i64 [ %indvars.iv.next142, %281 ], [ 0, %141 ]
  %171 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %172 = udiv i32 %171, 27
  %173 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %174 = trunc nuw nsw i64 %indvars.iv141 to i32
  %175 = mul i32 %173, %174
  %176 = udiv i32 %175, 27
  %177 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %178 = trunc i64 %indvars.iv141 to i32
  %179 = sub i32 27, %178
  %180 = mul i32 %177, %179
  %181 = udiv i32 %180, 27
  %182 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %183 = uitofp i32 %182 to double
  %184 = fmul double %183, 6.700000e-02
  %185 = fptosi double %184 to i32
  %186 = call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #6
  %187 = add i64 %186, -1
  %188 = mul i64 %187, %indvars.iv141
  %189 = udiv i64 %188, 13
  %190 = trunc i64 %189 to i32
  %191 = call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #6
  %192 = trunc i64 %191 to i32
  %193 = add i32 %192, -2
  %194 = icmp slt i32 %193, %190
  br i1 %194, label %195, label %199

195:                                              ; preds = %.preheader
  %196 = call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #6
  %197 = trunc i64 %196 to i32
  %198 = add i32 %197, -2
  br label %209

199:                                              ; preds = %.preheader
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #6
  %200 = call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #6
  %201 = add i64 %200, -1
  %202 = mul i64 %201, %indvars.iv141
  %203 = urem i64 %202, 13
  %204 = trunc nuw nsw i64 %203 to i16
  %.lhs.trunc136 = mul nuw nsw i16 %204, 100
  %205 = udiv i16 %.lhs.trunc136, 13
  %.zext137 = zext nneg i16 %205 to i32
  store i32 %.zext137, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #6
  store i32 100, ptr %20, align 4, !tbaa !11
  %206 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %207 = load i32, ptr %206, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #6
  %208 = sub nsw i32 100, %207
  br label %209

209:                                              ; preds = %199, %195
  %.0125 = phi i32 [ 0, %195 ], [ %208, %199 ]
  %.0124 = phi i32 [ 100, %195 ], [ %207, %199 ]
  %.0 = phi i32 [ %198, %195 ], [ %190, %199 ]
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %21) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #6
  %210 = sext i32 %.0 to i64
  %211 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %210) #6
  %212 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %211)
  %213 = mul nsw i32 %212, %.0125
  %214 = add nsw i32 %.0, 1
  %215 = sext i32 %214 to i64
  %216 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %215) #6
  %217 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %216)
  %218 = mul nsw i32 %217, %.0124
  %219 = add nsw i32 %218, %213
  %220 = sdiv i32 %219, 100
  store i32 %220, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #6
  store i32 255, ptr %23, align 4, !tbaa !11
  %221 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %222 = load i32, ptr %221, align 4, !tbaa !11
  %223 = trunc i32 %222 to i8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #6
  %224 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %210) #6
  %225 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %224)
  %226 = mul nsw i32 %225, %.0125
  %227 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %215) #6
  %228 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %227)
  %229 = mul nsw i32 %228, %.0124
  %230 = add nsw i32 %229, %226
  %231 = sdiv i32 %230, 100
  store i32 %231, ptr %24, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #6
  store i32 255, ptr %25, align 4, !tbaa !11
  %232 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %25)
  %233 = load i32, ptr %232, align 4, !tbaa !11
  %234 = trunc i32 %233 to i8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #6
  %235 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %210) #6
  %236 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %235)
  %237 = mul nsw i32 %236, %.0125
  %238 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %215) #6
  %239 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %238)
  %240 = mul nsw i32 %239, %.0124
  %241 = add nsw i32 %240, %237
  %242 = sdiv i32 %241, 100
  store i32 %242, ptr %26, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #6
  store i32 255, ptr %27, align 4, !tbaa !11
  %243 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %27)
  %244 = load i32, ptr %243, align 4, !tbaa !11
  %245 = trunc i32 %244 to i8
  call void @_ZN8ColorRgbC2Ehhh(ptr noundef nonnull align 1 dereferenceable(3) %21, i8 noundef zeroext %223, i8 noundef zeroext %234, i8 noundef zeroext %245)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(3) %5, ptr noundef nonnull align 1 dereferenceable(3) %21, i64 3, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %21) #6
  %246 = trunc i32 %176 to i16
  %247 = add nuw nsw i32 %176, %172
  %248 = trunc i32 %247 to i16
  %249 = add i16 %248, 1
  %250 = trunc i32 %185 to i16
  %251 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %252 = trunc i32 %251 to i8
  %253 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %254 = trunc i32 %253 to i8
  %255 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %256 = trunc i32 %255 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientHBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext %246, i16 noundef zeroext 0, i16 noundef zeroext %249, i16 noundef zeroext %250, i8 noundef zeroext %252, i8 noundef zeroext %254, i8 noundef zeroext %256)
  %.not = icmp eq i64 %indvars.iv141, 13
  br i1 %.not, label %267, label %257

257:                                              ; preds = %209
  %258 = trunc i32 %181 to i16
  %259 = sub nsw i32 %181, %172
  %260 = trunc i32 %259 to i16
  %261 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %262 = trunc i32 %261 to i8
  %263 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %264 = trunc i32 %263 to i8
  %265 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %266 = trunc i32 %265 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientHBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext %258, i16 noundef zeroext 0, i16 noundef zeroext %260, i16 noundef zeroext %250, i8 noundef zeroext %262, i8 noundef zeroext %264, i8 noundef zeroext %266)
  br label %267

267:                                              ; preds = %257, %209
  %268 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %269 = xor i32 %185, -1
  %270 = add i32 %268, %269
  %271 = trunc i32 %270 to i16
  %272 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %273 = trunc i32 %272 to i16
  %274 = add i16 %273, -1
  %275 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %276 = trunc i32 %275 to i8
  %277 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %278 = trunc i32 %277 to i8
  %279 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %280 = trunc i32 %279 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientHBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext %246, i16 noundef zeroext %271, i16 noundef zeroext %249, i16 noundef zeroext %274, i8 noundef zeroext %276, i8 noundef zeroext %278, i8 noundef zeroext %280)
  br i1 %.not, label %.loopexit, label %281

281:                                              ; preds = %267
  %282 = trunc i32 %181 to i16
  %283 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %284 = add i32 %283, %269
  %285 = trunc i32 %284 to i16
  %286 = sub nsw i32 %181, %172
  %287 = trunc i32 %286 to i16
  %288 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %289 = trunc i32 %288 to i16
  %290 = add i16 %289, -1
  %291 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %292 = trunc i32 %291 to i8
  %293 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %294 = trunc i32 %293 to i8
  %295 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %5)
  %296 = trunc i32 %295 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientHBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext %282, i16 noundef zeroext %285, i16 noundef zeroext %287, i16 noundef zeroext %290, i8 noundef zeroext %292, i8 noundef zeroext %294, i8 noundef zeroext %296)
  %indvars.iv.next142 = add nuw nsw i64 %indvars.iv141, 1
  br label %.preheader

.loopexit:                                        ; preds = %267, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %4) #6
  br label %297

297:                                              ; preds = %30, %35, %.loopexit
  %.1 = phi i1 [ %39, %.loopexit ], [ false, %35 ], [ false, %30 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #6
  br label %298

298:                                              ; preds = %2, %297
  %.2 = phi i1 [ %.1, %297 ], [ false, %2 ]
  ret i1 %.2
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIP18SoundCaptureResultJP18AnimationBaseMusicRjPbS5_S5_PiEEbRKSt8functionIFT_DpT0_EEDn(ptr noundef nonnull align 8 dereferenceable(32), ptr) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNKSt8functionIFP18SoundCaptureResultP18AnimationBaseMusicRjPbS5_S5_PiEEclES3_S4_S5_S5_S5_S6_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2 align 2

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

declare void @_ZN5ImageI8ColorRgbE5clearEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #4

declare noundef zeroext i1 @_ZN18SoundCaptureResult8GetStatsERjS0_R8ColorRgbPS1_S3_(ptr noundef nonnull align 4 dereferenceable(296), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(3), ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_ZNSt6vectorI8ColorRgbSaIS0_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS0_S2_EE(ptr noundef nonnull align 8 dereferenceable(24), ptr) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9__gnu_cxx17__normal_iteratorIPK8ColorRgbSt6vectorIS1_SaIS1_EEEC2IPS1_vEERKNS0_IT_S6_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI8ColorRgbSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(3)) local_unnamed_addr #2 align 2

declare noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #4

declare noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #4

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

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

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

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

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

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

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

declare void @_ZN5ImageI8ColorRgbE12gradientVBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20), i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #4

declare void @_ZN5ImageI8ColorRgbE12gradientHBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20), i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i16 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #4

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass