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

; 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_WavesPulse = 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 @_ZN26Animation4Music_WavesPulse8getImageER5ImageI8ColorRgbE(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 i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %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 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 %struct.ColorRgb, align 1
  %27 = alloca i32, align 4
  %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 %struct.ColorRgb, align 1
  %45 = alloca i32, align 4
  %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
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %51 = load ptr, ptr %4, align 8
  %52 = getelementptr inbounds %class.AnimationBaseMusic, ptr %51, i32 0, i32 2
  %53 = call noundef zeroext i1 @_ZSteqIP18SoundCaptureResultJP18AnimationBaseMusicRjPbS5_S5_PiEEbRKSt8functionIFT_DpT0_EEDn(ptr noundef nonnull align 8 dereferenceable(32) %52, ptr null) #6
  br i1 %53, label %54, label %55

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

55:                                               ; 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
  %56 = getelementptr inbounds %class.AnimationBaseMusic, ptr %51, i32 0, i32 2
  %57 = getelementptr inbounds %class.Animation4Music_WavesPulse, ptr %51, i32 0, i32 1
  %58 = getelementptr inbounds %class.Animation4Music_WavesPulse, ptr %51, i32 0, i32 2
  %59 = call noundef ptr @_ZNKSt8functionIFP18SoundCaptureResultP18AnimationBaseMusicRjPbS5_S5_PiEEclES3_S4_S5_S5_S5_S6_(ptr noundef nonnull align 8 dereferenceable(32) %56, ptr noundef %51, ptr noundef nonnull align 4 dereferenceable(4) %57, ptr noundef %6, ptr noundef null, ptr noundef null, ptr noundef %58)
  store ptr %59, ptr %7, align 8, !tbaa !5
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = icmp eq ptr %60, null
  br i1 %61, label %65, label %62

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

65:                                               ; preds = %62, %55
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %534

66:                                               ; preds = %62
  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 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN5ImageI8ColorRgbE5clearEv(ptr noundef nonnull align 8 dereferenceable(20) %67)
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = call noundef zeroext i1 @_ZN18SoundCaptureResult8GetStatsERjS0_R8ColorRgbPS1_S3_(ptr noundef nonnull align 4 dereferenceable(296) %68, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 1 dereferenceable(3) %9, ptr noundef null, ptr noundef null)
  br i1 %69, label %71, label %70

70:                                               ; preds = %66
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %533

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

81:                                               ; preds = %302, %71
  %82 = load i32, ptr %15, align 4, !tbaa !13
  %83 = load i32, ptr %16, align 4, !tbaa !13
  %84 = sdiv i32 %83, 2
  %85 = icmp sle i32 %82, %84
  br i1 %85, label %87, label %86

86:                                               ; preds = %81
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %305

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

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

133:                                              ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %134 = load i32, ptr %15, align 4, !tbaa !13
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds %class.Animation4Music_WavesPulse, ptr %51, i32 0, i32 3
  %137 = call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %136) #6
  %138 = sub i64 %137, 1
  %139 = mul i64 %135, %138
  %140 = load i32, ptr %16, align 4, !tbaa !13
  %141 = sdiv i32 %140, 2
  %142 = sext i32 %141 to i64
  %143 = urem i64 %139, %142
  %144 = trunc i64 %143 to i32
  %145 = mul nsw i32 %144, 100
  %146 = load i32, ptr %16, align 4, !tbaa !13
  %147 = sdiv i32 %146, 2
  %148 = sdiv i32 %145, %147
  store i32 %148, ptr %24, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 100, ptr %25, align 4, !tbaa !13
  %149 = 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)
  %150 = load i32, ptr %149, align 4, !tbaa !13
  store i32 %150, ptr %22, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  %151 = load i32, ptr %22, align 4, !tbaa !13
  %152 = sub nsw i32 100, %151
  store i32 %152, ptr %21, align 4, !tbaa !13
  br label %153

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

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

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

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

301:                                              ; preds = %277, %249
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %302

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

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

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

311:                                              ; preds = %306
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %532

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

353:                                              ; preds = %312
  %354 = getelementptr inbounds %class.Animation4Music_WavesPulse, ptr %51, i32 0, i32 3
  %355 = call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %354) #6
  %356 = sub i64 %355, 2
  %357 = trunc i64 %356 to i32
  store i32 %357, ptr %41, align 4, !tbaa !13
  store i32 0, ptr %39, align 4, !tbaa !13
  store i32 100, ptr %40, align 4, !tbaa !13
  br label %378

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

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

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

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

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

528:                                              ; preds = %504, %475
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  br label %529

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

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

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

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

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

; 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 @_ZN26Animation4Music_WavesPulse8getImageER5ImageI8ColorRgbE(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 i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %struct.ColorRgb, align 1
  %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 i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %struct.ColorRgb, align 1
  %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 = getelementptr inbounds i8, ptr %0, i64 16
  %28 = tail call noundef zeroext i1 @_ZSteqIP18SoundCaptureResultJP18AnimationBaseMusicRjPbS5_S5_PiEEbRKSt8functionIFT_DpT0_EEDn(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr null) #6
  br i1 %28, label %297, label %29

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

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

37:                                               ; preds = %34
  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 4, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  call void @_ZN5ImageI8ColorRgbE5clearEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %38 = call noundef zeroext i1 @_ZN18SoundCaptureResult8GetStatsERjS0_R8ColorRgbPS1_S3_(ptr noundef nonnull align 4 dereferenceable(296) %32, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 1 dereferenceable(3) %4, ptr noundef null, ptr noundef null)
  br i1 %38, label %39, label %.loopexit

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

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

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

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

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

130:                                              ; preds = %83
  %131 = trunc i32 %55 to i16
  %132 = sub nsw i32 %55, %46
  %133 = trunc i32 %132 to i16
  %134 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %135 = trunc i32 %134 to i8
  %136 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %137 = trunc i32 %136 to i8
  %138 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %139 = trunc i32 %138 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientVBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext 0, i16 noundef zeroext %131, i16 noundef zeroext %121, i16 noundef zeroext %133, i8 noundef zeroext %135, i8 noundef zeroext %137, i8 noundef zeroext %139)
  br label %140

140:                                              ; preds = %130, %83
  %141 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %142 = xor i32 %59, -1
  %143 = add i32 %141, %142
  %144 = trunc i32 %143 to i16
  %145 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %146 = trunc i32 %145 to i16
  %147 = add i16 %146, -1
  %148 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %149 = trunc i32 %148 to i8
  %150 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %151 = trunc i32 %150 to i8
  %152 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %153 = trunc i32 %152 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientVBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext %144, i16 noundef zeroext %120, i16 noundef zeroext %147, i16 noundef zeroext %123, i8 noundef zeroext %149, i8 noundef zeroext %151, i8 noundef zeroext %153)
  br i1 %.not135, label %.preheader, label %154

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

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

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

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

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

256:                                              ; preds = %208
  %257 = trunc i32 %180 to i16
  %258 = sub nsw i32 %180, %171
  %259 = trunc i32 %258 to i16
  %260 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %261 = trunc i32 %260 to i8
  %262 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %263 = trunc i32 %262 to i8
  %264 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %265 = trunc i32 %264 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientHBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext %257, i16 noundef zeroext 0, i16 noundef zeroext %259, i16 noundef zeroext %249, i8 noundef zeroext %261, i8 noundef zeroext %263, i8 noundef zeroext %265)
  br label %266

266:                                              ; preds = %256, %208
  %267 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %268 = xor i32 %184, -1
  %269 = add i32 %267, %268
  %270 = trunc i32 %269 to i16
  %271 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %272 = trunc i32 %271 to i16
  %273 = add i16 %272, -1
  %274 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %275 = trunc i32 %274 to i8
  %276 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %277 = trunc i32 %276 to i8
  %278 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %4)
  %279 = trunc i32 %278 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientHBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext %245, i16 noundef zeroext %270, i16 noundef zeroext %248, i16 noundef zeroext %273, i8 noundef zeroext %275, i8 noundef zeroext %277, i8 noundef zeroext %279)
  br i1 %.not, label %.loopexit, label %280

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

.loopexit:                                        ; preds = %266, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %4) #6
  br label %296

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

297:                                              ; preds = %2, %296
  %.2 = phi i1 [ %.1, %296 ], [ 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