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

; 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.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_QuatroBlue = type { %class.AnimationBaseMusic.base, i32, i32, [4 x i8] }
%class.AnimationBaseMusic.base = type <{ %class.AnimationBase.base, [3 x i8], %"class.std::function", %struct.MovingTarget }>

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN26Animation4Music_QuatroBlue8getImageER5ImageI8ColorRgbE(ptr noundef nonnull align 8 dereferenceable(116) %0, ptr noundef nonnull align 8 dereferenceable(20) %1) unnamed_addr #0 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 i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %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 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 = 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 %struct.ColorRgb, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %34 = load ptr, ptr %4, align 8
  %35 = getelementptr inbounds %class.AnimationBaseMusic, ptr %34, i32 0, i32 2
  %36 = call noundef zeroext i1 @_ZSteqIP18SoundCaptureResultJP18AnimationBaseMusicRjPbS5_S5_PiEEbRKSt8functionIFT_DpT0_EEDn(ptr noundef nonnull align 8 dereferenceable(32) %35, ptr null) #5
  br i1 %36, label %37, label %38

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

38:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #5
  store i8 0, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %39 = getelementptr inbounds %class.AnimationBaseMusic, ptr %34, i32 0, i32 2
  %40 = getelementptr inbounds %class.Animation4Music_QuatroBlue, ptr %34, i32 0, i32 1
  %41 = getelementptr inbounds %class.Animation4Music_QuatroBlue, ptr %34, i32 0, i32 2
  %42 = call noundef ptr @_ZNKSt8functionIFP18SoundCaptureResultP18AnimationBaseMusicRjPbS5_S5_PiEEclES3_S4_S5_S5_S5_S6_(ptr noundef nonnull align 8 dereferenceable(32) %39, ptr noundef %34, ptr noundef nonnull align 4 dereferenceable(4) %40, ptr noundef null, ptr noundef null, ptr noundef %6, ptr noundef %41)
  store ptr %42, ptr %7, align 8, !tbaa !5
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = icmp eq ptr %43, null
  br i1 %44, label %48, label %45

45:                                               ; preds = %38
  %46 = load i8, ptr %6, align 1, !tbaa !9, !range !11, !noundef !12
  %47 = trunc i8 %46 to i1
  br i1 %47, label %49, label %48

48:                                               ; preds = %45, %38
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %192

49:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds %class.Animation4Music_QuatroBlue, ptr %34, i32 0, i32 2
  %52 = load i32, ptr %51, align 8, !tbaa !13
  %53 = call noundef i32 @_ZN18SoundCaptureResult8getValueEi(ptr noundef nonnull align 4 dereferenceable(296) %50, i32 noundef %52)
  store i32 %53, ptr %9, align 4, !tbaa !22
  %54 = load i32, ptr %9, align 4, !tbaa !22
  %55 = icmp slt i32 %54, 0
  br i1 %55, label %56, label %57

56:                                               ; preds = %49
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %191

57:                                               ; preds = %49
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN5ImageI8ColorRgbE5clearEv(ptr noundef nonnull align 8 dereferenceable(20) %58)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %59)
  %61 = udiv i32 %60, 2
  store i32 %61, ptr %10, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %62 = load i32, ptr %10, align 4, !tbaa !22
  %63 = load i32, ptr %9, align 4, !tbaa !22
  %64 = mul nsw i32 %62, %63
  %65 = sdiv i32 %64, 255
  store i32 %65, ptr %12, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 255, ptr %13, align 4, !tbaa !22
  %66 = 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)
  %67 = load i32, ptr %66, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  store i32 %67, ptr %11, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %68 = load i32, ptr %10, align 4, !tbaa !22
  %69 = load i32, ptr %11, align 4, !tbaa !22
  %70 = sub nsw i32 %68, %69
  store i32 %70, ptr %15, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !22
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %72 = load i32, ptr %71, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  store i32 %72, ptr %14, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %73 = load i32, ptr %10, align 4, !tbaa !22
  %74 = load i32, ptr %11, align 4, !tbaa !22
  %75 = add nsw i32 %73, %74
  store i32 %75, ptr %18, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %76)
  %78 = sub nsw i32 %77, 1
  store i32 %78, ptr %19, align 4, !tbaa !22
  %79 = 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)
  %80 = load i32, ptr %79, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  store i32 %80, ptr %17, align 4, !tbaa !22
  %81 = load i32, ptr %17, align 4, !tbaa !22
  %82 = load i32, ptr %14, align 4, !tbaa !22
  %83 = icmp sgt i32 %81, %82
  br i1 %83, label %84, label %124

84:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %85)
  %87 = uitofp i32 %86 to double
  %88 = fmul double %87, 4.000000e-02
  %89 = fptosi double %88 to i32
  store i32 %89, ptr %20, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 3, ptr %21) #5
  call void @_ZN8ColorRgbC2Ehhh(ptr noundef nonnull align 1 dereferenceable(3) %21, i8 noundef zeroext 0, i8 noundef zeroext 0, i8 noundef zeroext -1)
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = load i32, ptr %14, align 4, !tbaa !22
  %92 = trunc i32 %91 to i16
  %93 = load i32, ptr %20, align 4, !tbaa !22
  %94 = trunc i32 %93 to i16
  %95 = load i32, ptr %17, align 4, !tbaa !22
  %96 = trunc i32 %95 to i16
  %97 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %21)
  %98 = trunc i32 %97 to i8
  %99 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %21)
  %100 = trunc i32 %99 to i8
  %101 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %21)
  %102 = trunc i32 %101 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientVBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %90, i16 noundef zeroext 0, i16 noundef zeroext %92, i16 noundef zeroext %94, i16 noundef zeroext %96, i8 noundef zeroext %98, i8 noundef zeroext %100, i8 noundef zeroext %102)
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %104)
  %106 = sub i32 %105, 1
  %107 = load i32, ptr %20, align 4, !tbaa !22
  %108 = sub i32 %106, %107
  %109 = trunc i32 %108 to i16
  %110 = load i32, ptr %14, align 4, !tbaa !22
  %111 = trunc i32 %110 to i16
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %112)
  %114 = sub i32 %113, 1
  %115 = trunc i32 %114 to i16
  %116 = load i32, ptr %17, align 4, !tbaa !22
  %117 = trunc i32 %116 to i16
  %118 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %21)
  %119 = trunc i32 %118 to i8
  %120 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %21)
  %121 = trunc i32 %120 to i8
  %122 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %21)
  %123 = trunc i32 %122 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientVBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %103, i16 noundef zeroext %109, i16 noundef zeroext %111, i16 noundef zeroext %115, i16 noundef zeroext %117, i8 noundef zeroext %119, i8 noundef zeroext %121, i8 noundef zeroext %123)
  call void @llvm.lifetime.end.p0(i64 3, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %124

124:                                              ; preds = %84, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %125)
  %127 = udiv i32 %126, 2
  store i32 %127, ptr %22, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %128 = load i32, ptr %22, align 4, !tbaa !22
  %129 = load i32, ptr %9, align 4, !tbaa !22
  %130 = mul nsw i32 %128, %129
  %131 = sdiv i32 %130, 255
  store i32 %131, ptr %24, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 255, ptr %25, align 4, !tbaa !22
  %132 = 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)
  %133 = load i32, ptr %132, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  store i32 %133, ptr %23, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %134 = load i32, ptr %22, align 4, !tbaa !22
  %135 = load i32, ptr %23, align 4, !tbaa !22
  %136 = sub nsw i32 %134, %135
  store i32 %136, ptr %27, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  store i32 0, ptr %28, align 4, !tbaa !22
  %137 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %27, ptr noundef nonnull align 4 dereferenceable(4) %28)
  %138 = load i32, ptr %137, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  store i32 %138, ptr %26, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  %139 = load i32, ptr %22, align 4, !tbaa !22
  %140 = load i32, ptr %23, align 4, !tbaa !22
  %141 = add nsw i32 %139, %140
  store i32 %141, ptr %30, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %142)
  %144 = sub nsw i32 %143, 1
  store i32 %144, ptr %31, align 4, !tbaa !22
  %145 = 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)
  %146 = load i32, ptr %145, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  store i32 %146, ptr %29, align 4, !tbaa !22
  %147 = load i32, ptr %29, align 4, !tbaa !22
  %148 = load i32, ptr %26, align 4, !tbaa !22
  %149 = icmp sgt i32 %147, %148
  br i1 %149, label %150, label %190

150:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %151)
  %153 = uitofp i32 %152 to double
  %154 = fmul double %153, 6.700000e-02
  %155 = fptosi double %154 to i32
  store i32 %155, ptr %32, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 3, ptr %33) #5
  call void @_ZN8ColorRgbC2Ehhh(ptr noundef nonnull align 1 dereferenceable(3) %33, i8 noundef zeroext 0, i8 noundef zeroext 0, i8 noundef zeroext -1)
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = load i32, ptr %26, align 4, !tbaa !22
  %158 = trunc i32 %157 to i16
  %159 = load i32, ptr %29, align 4, !tbaa !22
  %160 = trunc i32 %159 to i16
  %161 = load i32, ptr %32, align 4, !tbaa !22
  %162 = trunc i32 %161 to i16
  %163 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %33)
  %164 = trunc i32 %163 to i8
  %165 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %33)
  %166 = trunc i32 %165 to i8
  %167 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %33)
  %168 = trunc i32 %167 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientHBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %156, i16 noundef zeroext %158, i16 noundef zeroext 0, i16 noundef zeroext %160, i16 noundef zeroext %162, i8 noundef zeroext %164, i8 noundef zeroext %166, i8 noundef zeroext %168)
  %169 = load ptr, ptr %5, align 8, !tbaa !5
  %170 = load i32, ptr %26, align 4, !tbaa !22
  %171 = trunc i32 %170 to i16
  %172 = load ptr, ptr %5, align 8, !tbaa !5
  %173 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %172)
  %174 = sub i32 %173, 1
  %175 = load i32, ptr %32, align 4, !tbaa !22
  %176 = sub i32 %174, %175
  %177 = trunc i32 %176 to i16
  %178 = load i32, ptr %29, align 4, !tbaa !22
  %179 = trunc i32 %178 to i16
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  %181 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %180)
  %182 = sub i32 %181, 1
  %183 = trunc i32 %182 to i16
  %184 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %33)
  %185 = trunc i32 %184 to i8
  %186 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %33)
  %187 = trunc i32 %186 to i8
  %188 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %33)
  %189 = trunc i32 %188 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientHBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %169, i16 noundef zeroext %171, i16 noundef zeroext %177, i16 noundef zeroext %179, i16 noundef zeroext %183, i8 noundef zeroext %185, i8 noundef zeroext %187, i8 noundef zeroext %189)
  call void @llvm.lifetime.end.p0(i64 3, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  br label %190

190:                                              ; preds = %150, %124
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  store i1 true, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %191

191:                                              ; preds = %190, %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %192

192:                                              ; preds = %191, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  br label %193

193:                                              ; preds = %192, %37
  %194 = load i1, ptr %3, align 1
  ret i1 %194
}

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

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

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

declare noundef i32 @_ZN18SoundCaptureResult8getValueEi(ptr noundef nonnull align 4 dereferenceable(296), i32 noundef) #3

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

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

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

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

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

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

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

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) #3

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

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

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

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) #3

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !17, i64 112}
!14 = !{!"_ZTS26Animation4Music_QuatroBlue", !15, i64 0, !17, i64 108, !17, i64 112}
!15 = !{!"_ZTS18AnimationBaseMusic", !16, i64 0, !18, i64 16, !20, i64 48}
!16 = !{!"_ZTS13AnimationBase", !17, i64 8, !10, i64 12}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTSSt8functionIFP18SoundCaptureResultP18AnimationBaseMusicRjPbS5_S5_PiEE", !19, i64 0, !6, i64 24}
!19 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!20 = !{!"_ZTS12MovingTarget", !21, i64 0, !21, i64 3, !21, i64 6, !17, i64 12, !17, i64 16, !17, i64 20, !17, i64 24, !17, i64 28, !17, i64 32, !17, i64 36, !17, i64 40, !17, i64 44, !17, i64 48, !17, i64 52, !17, i64 56}
!21 = !{!"_ZTS8ColorRgb", !7, i64 0, !7, i64 1, !7, i64 2}
!22 = !{!17, !17, i64 0}


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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN26Animation4Music_QuatroBlue8getImageER5ImageI8ColorRgbE(ptr noundef nonnull align 8 dereferenceable(116) %0, ptr noundef nonnull align 8 dereferenceable(20) %1) unnamed_addr #0 align 2 {
  %3 = alloca i8, align 1
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.ColorRgb, align 1
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %struct.ColorRgb, align 1
  %18 = getelementptr inbounds i8, ptr %0, i64 16
  %19 = tail call noundef zeroext i1 @_ZSteqIP18SoundCaptureResultJP18AnimationBaseMusicRjPbS5_S5_PiEEbRKSt8functionIFT_DpT0_EEDn(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr null) #5
  br i1 %19, label %119, label %20

20:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #5
  store i8 0, ptr %3, align 1, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %0, i64 108
  %22 = getelementptr inbounds i8, ptr %0, i64 112
  %23 = call noundef ptr @_ZNKSt8functionIFP18SoundCaptureResultP18AnimationBaseMusicRjPbS5_S5_PiEEclES3_S4_S5_S5_S5_S6_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull %0, ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef null, ptr noundef null, ptr noundef nonnull %3, ptr noundef nonnull %22)
  %24 = icmp eq ptr %23, null
  br i1 %24, label %118, label %25

25:                                               ; preds = %20
  %26 = load i8, ptr %3, align 1, !tbaa !5, !range !9, !noundef !10
  %27 = trunc nuw i8 %26 to i1
  br i1 %27, label %28, label %118

28:                                               ; preds = %25
  %29 = load i32, ptr %22, align 8, !tbaa !11
  %30 = call noundef i32 @_ZN18SoundCaptureResult8getValueEi(ptr noundef nonnull align 4 dereferenceable(296) %23, i32 noundef %29)
  %31 = icmp sgt i32 %30, -1
  br i1 %31, label %32, label %118

32:                                               ; preds = %28
  call void @_ZN5ImageI8ColorRgbE5clearEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %33 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %34 = lshr i32 %33, 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  %35 = mul nuw nsw i32 %34, %30
  %36 = udiv i32 %35, 255
  store i32 %36, ptr %4, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 255, ptr %5, align 4, !tbaa !21
  %37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %38 = load i32, ptr %37, align 4, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %39 = sub nsw i32 %34, %38
  store i32 %39, ptr %6, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  store i32 0, ptr %7, align 4, !tbaa !21
  %40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %41 = load i32, ptr %40, align 4, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  %42 = add nsw i32 %38, %34
  store i32 %42, ptr %8, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  %43 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %44 = add nsw i32 %43, -1
  store i32 %44, ptr %9, align 4, !tbaa !21
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %46 = load i32, ptr %45, align 4, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  %47 = icmp sgt i32 %46, %41
  br i1 %47, label %48, label %75

48:                                               ; preds = %32
  %49 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %50 = uitofp i32 %49 to double
  %51 = fmul double %50, 4.000000e-02
  %52 = fptosi double %51 to i32
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %10) #5
  call void @_ZN8ColorRgbC2Ehhh(ptr noundef nonnull align 1 dereferenceable(3) %10, i8 noundef zeroext 0, i8 noundef zeroext 0, i8 noundef zeroext -1)
  %53 = trunc i32 %41 to i16
  %54 = trunc i32 %52 to i16
  %55 = trunc i32 %46 to i16
  %56 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %57 = trunc i32 %56 to i8
  %58 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %59 = trunc i32 %58 to i8
  %60 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %61 = trunc i32 %60 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientVBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext 0, i16 noundef zeroext %53, i16 noundef zeroext %54, i16 noundef zeroext %55, i8 noundef zeroext %57, i8 noundef zeroext %59, i8 noundef zeroext %61)
  %62 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %63 = xor i32 %52, -1
  %64 = add i32 %62, %63
  %65 = trunc i32 %64 to i16
  %66 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %67 = trunc i32 %66 to i16
  %68 = add i16 %67, -1
  %69 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %70 = trunc i32 %69 to i8
  %71 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %72 = trunc i32 %71 to i8
  %73 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %10)
  %74 = trunc i32 %73 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientVBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext %65, i16 noundef zeroext %53, i16 noundef zeroext %68, i16 noundef zeroext %55, i8 noundef zeroext %70, i8 noundef zeroext %72, i8 noundef zeroext %74)
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %10) #5
  br label %75

75:                                               ; preds = %48, %32
  %76 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %77 = lshr i32 %76, 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  %78 = mul nuw nsw i32 %77, %30
  %79 = udiv i32 %78, 255
  store i32 %79, ptr %11, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  store i32 255, ptr %12, align 4, !tbaa !21
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %81 = load i32, ptr %80, align 4, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #5
  %82 = sub nsw i32 %77, %81
  store i32 %82, ptr %13, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #5
  store i32 0, ptr %14, align 4, !tbaa !21
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %84 = load i32, ptr %83, align 4, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #5
  %85 = add nsw i32 %81, %77
  store i32 %85, ptr %15, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #5
  %86 = call noundef i32 @_ZNK5ImageI8ColorRgbE5widthEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %87 = add nsw i32 %86, -1
  store i32 %87, ptr %16, align 4, !tbaa !21
  %88 = 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)
  %89 = load i32, ptr %88, align 4, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  %90 = icmp sgt i32 %89, %84
  br i1 %90, label %91, label %118

91:                                               ; preds = %75
  %92 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %93 = uitofp i32 %92 to double
  %94 = fmul double %93, 6.700000e-02
  %95 = fptosi double %94 to i32
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %17) #5
  call void @_ZN8ColorRgbC2Ehhh(ptr noundef nonnull align 1 dereferenceable(3) %17, i8 noundef zeroext 0, i8 noundef zeroext 0, i8 noundef zeroext -1)
  %96 = trunc i32 %84 to i16
  %97 = trunc i32 %89 to i16
  %98 = trunc i32 %95 to i16
  %99 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %17)
  %100 = trunc i32 %99 to i8
  %101 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %17)
  %102 = trunc i32 %101 to i8
  %103 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %17)
  %104 = trunc i32 %103 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientHBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext %96, i16 noundef zeroext 0, i16 noundef zeroext %97, i16 noundef zeroext %98, i8 noundef zeroext %100, i8 noundef zeroext %102, i8 noundef zeroext %104)
  %105 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %106 = xor i32 %95, -1
  %107 = add i32 %105, %106
  %108 = trunc i32 %107 to i16
  %109 = call noundef i32 @_ZNK5ImageI8ColorRgbE6heightEv(ptr noundef nonnull align 8 dereferenceable(20) %1)
  %110 = trunc i32 %109 to i16
  %111 = add i16 %110, -1
  %112 = call noundef i32 @_ZN8ColorRgb3RedEv(ptr noundef nonnull align 1 dereferenceable(3) %17)
  %113 = trunc i32 %112 to i8
  %114 = call noundef i32 @_ZN8ColorRgb5GreenEv(ptr noundef nonnull align 1 dereferenceable(3) %17)
  %115 = trunc i32 %114 to i8
  %116 = call noundef i32 @_ZN8ColorRgb4BlueEv(ptr noundef nonnull align 1 dereferenceable(3) %17)
  %117 = trunc i32 %116 to i8
  call void @_ZN5ImageI8ColorRgbE12gradientHBoxEtttthhh(ptr noundef nonnull align 8 dereferenceable(20) %1, i16 noundef zeroext %96, i16 noundef zeroext %108, i16 noundef zeroext %97, i16 noundef zeroext %111, i8 noundef zeroext %113, i8 noundef zeroext %115, i8 noundef zeroext %117)
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %17) #5
  br label %118

118:                                              ; preds = %28, %91, %75, %20, %25
  %.1 = phi i1 [ false, %25 ], [ false, %20 ], [ true, %75 ], [ true, %91 ], [ false, %28 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #5
  br label %119

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

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

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

declare noundef i32 @_ZN18SoundCaptureResult8getValueEi(ptr noundef nonnull align 4 dereferenceable(296), i32 noundef) local_unnamed_addr #3

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

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

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

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

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

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

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

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 #3

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

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

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

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 #3

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !15, i64 112}
!12 = !{!"_ZTS26Animation4Music_QuatroBlue", !13, i64 0, !15, i64 108, !15, i64 112}
!13 = !{!"_ZTS18AnimationBaseMusic", !14, i64 0, !16, i64 16, !19, i64 48}
!14 = !{!"_ZTS13AnimationBase", !15, i64 8, !6, i64 12}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSSt8functionIFP18SoundCaptureResultP18AnimationBaseMusicRjPbS5_S5_PiEE", !17, i64 0, !18, i64 24}
!17 = !{!"_ZTSSt14_Function_base", !7, i64 0, !18, i64 16}
!18 = !{!"any pointer", !7, i64 0}
!19 = !{!"_ZTS12MovingTarget", !20, i64 0, !20, i64 3, !20, i64 6, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !15, i64 40, !15, i64 44, !15, i64 48, !15, i64 52, !15, i64 56}
!20 = !{!"_ZTS8ColorRgb", !7, i64 0, !7, i64 1, !7, i64 2}
!21 = !{!15, !15, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass