; LLVM IR from awawa-dev/HyperHDR :: sources/effects/Animation_Swirl.ll (ZN15Animation_Swirl4InitER10HyperImagei)

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

%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<Animation_Swirl::SwirlColor, std::allocator<Animation_Swirl::SwirlColor>>::_Vector_impl" }
%"struct.std::_Vector_base<Animation_Swirl::SwirlColor, std::allocator<Animation_Swirl::SwirlColor>>::_Vector_impl" = type { %"struct.std::_Vector_base<Animation_Swirl::SwirlColor, std::allocator<Animation_Swirl::SwirlColor>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Animation_Swirl::SwirlColor, std::allocator<Animation_Swirl::SwirlColor>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Point2d = type { i32, i32 }
%"struct.Animation_Swirl::SwirlGradient" = type { [5 x i8] }
%class.Animation_Swirl = type { %class.AnimationBase.base, %struct.Point2d, %struct.Point2d, i32, i32, i8, i32, i32, %"class.std::vector", %"class.std::vector", double, i8, double, double, i8, %"class.std::vector.0", i8, i8, double, double, i8, %"class.std::vector.0" }
%class.AnimationBase.base = type <{ ptr, i32, i8 }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Animation_Swirl::SwirlGradient, std::allocator<Animation_Swirl::SwirlGradient>>::_Vector_impl" }
%"struct.std::_Vector_base<Animation_Swirl::SwirlGradient, std::allocator<Animation_Swirl::SwirlGradient>>::_Vector_impl" = type { %"struct.std::_Vector_base<Animation_Swirl::SwirlGradient, std::allocator<Animation_Swirl::SwirlGradient>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Animation_Swirl::SwirlGradient, std::allocator<Animation_Swirl::SwirlGradient>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

declare void @_ZN13AnimationBase12SetSleepTimeEi(ptr noundef nonnull align 8 dereferenceable(13), i32 noundef) #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN15Animation_Swirl8getPointERK10HyperImagebdd(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef nonnull align 8 dereferenceable(27), i1 noundef zeroext, double noundef, double noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN15Animation_Swirl8getSTimeEiid(ptr noundef nonnull align 8 dereferenceable(224), i32 noundef, i32 noundef, double noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15Animation_Swirl13buildGradientERSt6vectorINS_13SwirlGradientESaIS1_EEbS0_INS_10SwirlColorESaIS5_EEb(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext, ptr noundef, i1 noundef zeroext) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15Animation_Swirl4InitER10HyperImagei(ptr noundef nonnull align 8 dereferenceable(224) %0, ptr noundef nonnull align 8 dereferenceable(27) %1, i32 noundef %2) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector.0", align 8
  %8 = alloca %"class.std::vector.0", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca double, align 8
  %12 = alloca i8, align 1
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca i8, align 1
  %21 = alloca %struct.Point2d, align 4
  %22 = alloca %struct.Point2d, align 4
  %23 = alloca %"class.std::vector.0", align 8
  %24 = alloca double, align 8
  %25 = alloca %"struct.Animation_Swirl::SwirlGradient", align 1
  %26 = alloca %"struct.Animation_Swirl::SwirlGradient", align 1
  %27 = alloca %"struct.Animation_Swirl::SwirlGradient", align 1
  %28 = alloca %"struct.Animation_Swirl::SwirlGradient", align 1
  %29 = alloca %"struct.Animation_Swirl::SwirlGradient", align 1
  %30 = alloca %"struct.Animation_Swirl::SwirlGradient", align 1
  %31 = alloca %"struct.Animation_Swirl::SwirlGradient", align 1
  %32 = alloca %"struct.Animation_Swirl::SwirlGradient", align 1
  %33 = alloca %"struct.Animation_Swirl::SwirlGradient", align 1
  %34 = alloca %"struct.Animation_Swirl::SwirlGradient", align 1
  %35 = alloca %"struct.Animation_Swirl::SwirlGradient", align 1
  %36 = alloca %"struct.Animation_Swirl::SwirlGradient", align 1
  %37 = alloca %"struct.Animation_Swirl::SwirlGradient", align 1
  %38 = alloca %"class.std::vector.0", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %39 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #5
  call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #5
  call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN10HyperImage6resizeEii(ptr noundef nonnull align 8 dereferenceable(27) %40, i32 noundef 80, i32 noundef 45)
          to label %41 unwind label %119

41:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %42 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 10
  %43 = load double, ptr %42, align 8, !tbaa !11
  store double %43, ptr %11, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #5
  %44 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 11
  %45 = load i8, ptr %44, align 8, !tbaa !26, !range !27, !noundef !28
  %46 = trunc i8 %45 to i1
  %47 = zext i1 %46 to i8
  store i8 %47, ptr %12, align 1, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %48 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 12
  %49 = load double, ptr %48, align 8, !tbaa !30
  store double %49, ptr %13, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %50 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 13
  %51 = load double, ptr %50, align 8, !tbaa !31
  store double %51, ptr %14, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  %52 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 14
  %53 = load i8, ptr %52, align 8, !tbaa !32, !range !27, !noundef !28
  %54 = trunc i8 %53 to i1
  %55 = zext i1 %54 to i8
  store i8 %55, ptr %15, align 1, !tbaa !29
  %56 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 15
  %57 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %56)
          to label %58 unwind label %123

58:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #5
  %59 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 16
  %60 = load i8, ptr %59, align 8, !tbaa !33, !range !27, !noundef !28
  %61 = trunc i8 %60 to i1
  %62 = zext i1 %61 to i8
  store i8 %62, ptr %16, align 1, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #5
  %63 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 17
  %64 = load i8, ptr %63, align 1, !tbaa !34, !range !27, !noundef !28
  %65 = trunc i8 %64 to i1
  %66 = zext i1 %65 to i8
  store i8 %66, ptr %17, align 1, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %67 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 18
  %68 = load double, ptr %67, align 8, !tbaa !35
  store double %68, ptr %18, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %69 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 19
  %70 = load double, ptr %69, align 8, !tbaa !36
  store double %70, ptr %19, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #5
  %71 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 20
  %72 = load i8, ptr %71, align 8, !tbaa !37, !range !27, !noundef !28
  %73 = trunc i8 %72 to i1
  %74 = zext i1 %73 to i8
  store i8 %74, ptr %20, align 1, !tbaa !29
  %75 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 21
  %76 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %75)
          to label %77 unwind label %127

77:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = load i8, ptr %15, align 1, !tbaa !29, !range !27, !noundef !28
  %80 = trunc i8 %79 to i1
  %81 = load double, ptr %13, align 8, !tbaa !25
  %82 = load double, ptr %14, align 8, !tbaa !25
  %83 = invoke i64 @_ZN15Animation_Swirl8getPointERK10HyperImagebdd(ptr noundef nonnull align 8 dereferenceable(224) %39, ptr noundef nonnull align 8 dereferenceable(27) %78, i1 noundef zeroext %80, double noundef %81, double noundef %82)
          to label %84 unwind label %131

84:                                               ; preds = %77
  store i64 %83, ptr %21, align 4
  %85 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %85, ptr align 4 %21, i64 8, i1 false), !tbaa.struct !38
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = load i8, ptr %20, align 1, !tbaa !29, !range !27, !noundef !28
  %88 = trunc i8 %87 to i1
  %89 = load double, ptr %18, align 8, !tbaa !25
  %90 = load double, ptr %19, align 8, !tbaa !25
  %91 = invoke i64 @_ZN15Animation_Swirl8getPointERK10HyperImagebdd(ptr noundef nonnull align 8 dereferenceable(224) %39, ptr noundef nonnull align 8 dereferenceable(27) %86, i1 noundef zeroext %88, double noundef %89, double noundef %90)
          to label %92 unwind label %135

92:                                               ; preds = %84
  store i64 %91, ptr %22, align 4
  %93 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %93, ptr align 4 %22, i64 8, i1 false), !tbaa.struct !38
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  %94 = load i32, ptr %6, align 4, !tbaa !9
  %95 = load double, ptr %11, align 8, !tbaa !25
  %96 = fptosi double %95 to i32
  %97 = invoke noundef i32 @_ZN15Animation_Swirl8getSTimeEiid(ptr noundef nonnull align 8 dereferenceable(224) %39, i32 noundef %94, i32 noundef %96, double noundef 3.600000e+02)
          to label %98 unwind label %127

98:                                               ; preds = %92
  invoke void @_ZN13AnimationBase12SetSleepTimeEi(ptr noundef nonnull align 8 dereferenceable(13) %39, i32 noundef %97)
          to label %99 unwind label %127

99:                                               ; preds = %98
  %100 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 3
  store i32 0, ptr %100, align 8, !tbaa !39
  %101 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 4
  store i32 0, ptr %101, align 4, !tbaa !40
  %102 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 5
  store i8 0, ptr %102, align 8, !tbaa !41
  %103 = load i8, ptr %12, align 1, !tbaa !29, !range !27, !noundef !28
  %104 = trunc i8 %103 to i1
  %105 = zext i1 %104 to i64
  %106 = select i1 %104, i32 -1, i32 1
  %107 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 6
  store i32 %106, ptr %107, align 4, !tbaa !42
  %108 = load i8, ptr %17, align 1, !tbaa !29, !range !27, !noundef !28
  %109 = trunc i8 %108 to i1
  %110 = zext i1 %109 to i64
  %111 = select i1 %109, i32 -1, i32 1
  %112 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 7
  store i32 %111, ptr %112, align 8, !tbaa !43
  %113 = call noundef i64 @_ZNKSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  %114 = icmp ugt i64 %113, 1
  br i1 %114, label %115, label %143

115:                                              ; preds = %99
  %116 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 8
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %117 unwind label %127

117:                                              ; preds = %115
  invoke void @_ZN15Animation_Swirl13buildGradientERSt6vectorINS_13SwirlGradientESaIS1_EEbS0_INS_10SwirlColorESaIS5_EEb(ptr noundef nonnull align 8 dereferenceable(224) %39, ptr noundef nonnull align 8 dereferenceable(24) %116, i1 noundef zeroext false, ptr noundef %23, i1 noundef zeroext true)
          to label %118 unwind label %139

118:                                              ; preds = %117
  call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  br label %321

119:                                              ; preds = %3
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %9, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %10, align 4
  br label %339

123:                                              ; preds = %41
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %9, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %10, align 4
  br label %338

127:                                              ; preds = %327, %115, %98, %92, %58
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %9, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %10, align 4
  br label %337

131:                                              ; preds = %77
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %9, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %337

135:                                              ; preds = %84
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %9, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %337

139:                                              ; preds = %117
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %9, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %10, align 4
  call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #5
  br label %337

143:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  store double 2.125000e+01, ptr %24, align 8, !tbaa !25
  %144 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 5, ptr %25) #5
  %145 = getelementptr inbounds %"struct.Animation_Swirl::SwirlGradient", ptr %25, i32 0, i32 0
  store i8 0, ptr %145, align 1, !tbaa !44
  %146 = getelementptr inbounds i8, ptr %145, i64 1
  store i8 -1, ptr %146, align 1, !tbaa !44
  %147 = getelementptr inbounds i8, ptr %145, i64 2
  store i8 0, ptr %147, align 1, !tbaa !44
  %148 = getelementptr inbounds i8, ptr %145, i64 3
  store i8 0, ptr %148, align 1, !tbaa !44
  %149 = getelementptr inbounds i8, ptr %145, i64 4
  store i8 -1, ptr %149, align 1, !tbaa !44
  invoke void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %144, ptr noundef nonnull align 1 dereferenceable(5) %25)
          to label %150 unwind label %268

150:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 5, ptr %25) #5
  %151 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 5, ptr %26) #5
  %152 = getelementptr inbounds %"struct.Animation_Swirl::SwirlGradient", ptr %26, i32 0, i32 0
  %153 = load double, ptr %24, align 8, !tbaa !25
  %154 = fmul double %153, 8.000000e-01
  %155 = fptoui double %154 to i8
  store i8 %155, ptr %152, align 1, !tbaa !44
  %156 = getelementptr inbounds i8, ptr %152, i64 1
  store i8 -1, ptr %156, align 1, !tbaa !44
  %157 = getelementptr inbounds i8, ptr %152, i64 2
  store i8 -128, ptr %157, align 1, !tbaa !44
  %158 = getelementptr inbounds i8, ptr %152, i64 3
  store i8 0, ptr %158, align 1, !tbaa !44
  %159 = getelementptr inbounds i8, ptr %152, i64 4
  store i8 -1, ptr %159, align 1, !tbaa !44
  invoke void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %151, ptr noundef nonnull align 1 dereferenceable(5) %26)
          to label %160 unwind label %272

160:                                              ; preds = %150
  call void @llvm.lifetime.end.p0(i64 5, ptr %26) #5
  %161 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 5, ptr %27) #5
  %162 = getelementptr inbounds %"struct.Animation_Swirl::SwirlGradient", ptr %27, i32 0, i32 0
  %163 = load double, ptr %24, align 8, !tbaa !25
  %164 = fmul double %163, 2.200000e+00
  %165 = fptoui double %164 to i8
  store i8 %165, ptr %162, align 1, !tbaa !44
  %166 = getelementptr inbounds i8, ptr %162, i64 1
  store i8 -1, ptr %166, align 1, !tbaa !44
  %167 = getelementptr inbounds i8, ptr %162, i64 2
  store i8 -1, ptr %167, align 1, !tbaa !44
  %168 = getelementptr inbounds i8, ptr %162, i64 3
  store i8 0, ptr %168, align 1, !tbaa !44
  %169 = getelementptr inbounds i8, ptr %162, i64 4
  store i8 -1, ptr %169, align 1, !tbaa !44
  invoke void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %161, ptr noundef nonnull align 1 dereferenceable(5) %27)
          to label %170 unwind label %276

170:                                              ; preds = %160
  call void @llvm.lifetime.end.p0(i64 5, ptr %27) #5
  %171 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 5, ptr %28) #5
  %172 = getelementptr inbounds %"struct.Animation_Swirl::SwirlGradient", ptr %28, i32 0, i32 0
  %173 = load double, ptr %24, align 8, !tbaa !25
  %174 = fmul double %173, 3.500000e+00
  %175 = fptoui double %174 to i8
  store i8 %175, ptr %172, align 1, !tbaa !44
  %176 = getelementptr inbounds i8, ptr %172, i64 1
  store i8 -128, ptr %176, align 1, !tbaa !44
  %177 = getelementptr inbounds i8, ptr %172, i64 2
  store i8 -1, ptr %177, align 1, !tbaa !44
  %178 = getelementptr inbounds i8, ptr %172, i64 3
  store i8 0, ptr %178, align 1, !tbaa !44
  %179 = getelementptr inbounds i8, ptr %172, i64 4
  store i8 -1, ptr %179, align 1, !tbaa !44
  invoke void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %171, ptr noundef nonnull align 1 dereferenceable(5) %28)
          to label %180 unwind label %280

180:                                              ; preds = %170
  call void @llvm.lifetime.end.p0(i64 5, ptr %28) #5
  %181 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 5, ptr %29) #5
  %182 = getelementptr inbounds %"struct.Animation_Swirl::SwirlGradient", ptr %29, i32 0, i32 0
  %183 = load double, ptr %24, align 8, !tbaa !25
  %184 = fmul double %183, 4.300000e+00
  %185 = fptoui double %184 to i8
  store i8 %185, ptr %182, align 1, !tbaa !44
  %186 = getelementptr inbounds i8, ptr %182, i64 1
  store i8 0, ptr %186, align 1, !tbaa !44
  %187 = getelementptr inbounds i8, ptr %182, i64 2
  store i8 -1, ptr %187, align 1, !tbaa !44
  %188 = getelementptr inbounds i8, ptr %182, i64 3
  store i8 0, ptr %188, align 1, !tbaa !44
  %189 = getelementptr inbounds i8, ptr %182, i64 4
  store i8 -1, ptr %189, align 1, !tbaa !44
  invoke void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %181, ptr noundef nonnull align 1 dereferenceable(5) %29)
          to label %190 unwind label %284

190:                                              ; preds = %180
  call void @llvm.lifetime.end.p0(i64 5, ptr %29) #5
  %191 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 5, ptr %30) #5
  %192 = getelementptr inbounds %"struct.Animation_Swirl::SwirlGradient", ptr %30, i32 0, i32 0
  %193 = load double, ptr %24, align 8, !tbaa !25
  %194 = fmul double %193, 5.100000e+00
  %195 = fptoui double %194 to i8
  store i8 %195, ptr %192, align 1, !tbaa !44
  %196 = getelementptr inbounds i8, ptr %192, i64 1
  store i8 0, ptr %196, align 1, !tbaa !44
  %197 = getelementptr inbounds i8, ptr %192, i64 2
  store i8 -1, ptr %197, align 1, !tbaa !44
  %198 = getelementptr inbounds i8, ptr %192, i64 3
  store i8 -128, ptr %198, align 1, !tbaa !44
  %199 = getelementptr inbounds i8, ptr %192, i64 4
  store i8 -1, ptr %199, align 1, !tbaa !44
  invoke void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %191, ptr noundef nonnull align 1 dereferenceable(5) %30)
          to label %200 unwind label %288

200:                                              ; preds = %190
  call void @llvm.lifetime.end.p0(i64 5, ptr %30) #5
  %201 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 5, ptr %31) #5
  %202 = getelementptr inbounds %"struct.Animation_Swirl::SwirlGradient", ptr %31, i32 0, i32 0
  %203 = load double, ptr %24, align 8, !tbaa !25
  %204 = fmul double %203, 6.000000e+00
  %205 = fptoui double %204 to i8
  store i8 %205, ptr %202, align 1, !tbaa !44
  %206 = getelementptr inbounds i8, ptr %202, i64 1
  store i8 0, ptr %206, align 1, !tbaa !44
  %207 = getelementptr inbounds i8, ptr %202, i64 2
  store i8 -1, ptr %207, align 1, !tbaa !44
  %208 = getelementptr inbounds i8, ptr %202, i64 3
  store i8 -1, ptr %208, align 1, !tbaa !44
  %209 = getelementptr inbounds i8, ptr %202, i64 4
  store i8 -1, ptr %209, align 1, !tbaa !44
  invoke void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %201, ptr noundef nonnull align 1 dereferenceable(5) %31)
          to label %210 unwind label %292

210:                                              ; preds = %200
  call void @llvm.lifetime.end.p0(i64 5, ptr %31) #5
  %211 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 5, ptr %32) #5
  %212 = getelementptr inbounds %"struct.Animation_Swirl::SwirlGradient", ptr %32, i32 0, i32 0
  %213 = load double, ptr %24, align 8, !tbaa !25
  %214 = fmul double %213, 6.900000e+00
  %215 = fptoui double %214 to i8
  store i8 %215, ptr %212, align 1, !tbaa !44
  %216 = getelementptr inbounds i8, ptr %212, i64 1
  store i8 0, ptr %216, align 1, !tbaa !44
  %217 = getelementptr inbounds i8, ptr %212, i64 2
  store i8 -128, ptr %217, align 1, !tbaa !44
  %218 = getelementptr inbounds i8, ptr %212, i64 3
  store i8 -1, ptr %218, align 1, !tbaa !44
  %219 = getelementptr inbounds i8, ptr %212, i64 4
  store i8 -1, ptr %219, align 1, !tbaa !44
  invoke void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %211, ptr noundef nonnull align 1 dereferenceable(5) %32)
          to label %220 unwind label %296

220:                                              ; preds = %210
  call void @llvm.lifetime.end.p0(i64 5, ptr %32) #5
  %221 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 5, ptr %33) #5
  %222 = getelementptr inbounds %"struct.Animation_Swirl::SwirlGradient", ptr %33, i32 0, i32 0
  %223 = load double, ptr %24, align 8, !tbaa !25
  %224 = fmul double %223, 7.900000e+00
  %225 = fptoui double %224 to i8
  store i8 %225, ptr %222, align 1, !tbaa !44
  %226 = getelementptr inbounds i8, ptr %222, i64 1
  store i8 0, ptr %226, align 1, !tbaa !44
  %227 = getelementptr inbounds i8, ptr %222, i64 2
  store i8 0, ptr %227, align 1, !tbaa !44
  %228 = getelementptr inbounds i8, ptr %222, i64 3
  store i8 -1, ptr %228, align 1, !tbaa !44
  %229 = getelementptr inbounds i8, ptr %222, i64 4
  store i8 -1, ptr %229, align 1, !tbaa !44
  invoke void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %221, ptr noundef nonnull align 1 dereferenceable(5) %33)
          to label %230 unwind label %300

230:                                              ; preds = %220
  call void @llvm.lifetime.end.p0(i64 5, ptr %33) #5
  %231 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 5, ptr %34) #5
  %232 = getelementptr inbounds %"struct.Animation_Swirl::SwirlGradient", ptr %34, i32 0, i32 0
  %233 = load double, ptr %24, align 8, !tbaa !25
  %234 = fmul double %233, 8.900000e+00
  %235 = fptoui double %234 to i8
  store i8 %235, ptr %232, align 1, !tbaa !44
  %236 = getelementptr inbounds i8, ptr %232, i64 1
  store i8 -128, ptr %236, align 1, !tbaa !44
  %237 = getelementptr inbounds i8, ptr %232, i64 2
  store i8 0, ptr %237, align 1, !tbaa !44
  %238 = getelementptr inbounds i8, ptr %232, i64 3
  store i8 -1, ptr %238, align 1, !tbaa !44
  %239 = getelementptr inbounds i8, ptr %232, i64 4
  store i8 -1, ptr %239, align 1, !tbaa !44
  invoke void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %231, ptr noundef nonnull align 1 dereferenceable(5) %34)
          to label %240 unwind label %304

240:                                              ; preds = %230
  call void @llvm.lifetime.end.p0(i64 5, ptr %34) #5
  %241 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 5, ptr %35) #5
  %242 = getelementptr inbounds %"struct.Animation_Swirl::SwirlGradient", ptr %35, i32 0, i32 0
  %243 = load double, ptr %24, align 8, !tbaa !25
  %244 = fmul double %243, 1.000000e+01
  %245 = fptoui double %244 to i8
  store i8 %245, ptr %242, align 1, !tbaa !44
  %246 = getelementptr inbounds i8, ptr %242, i64 1
  store i8 -1, ptr %246, align 1, !tbaa !44
  %247 = getelementptr inbounds i8, ptr %242, i64 2
  store i8 0, ptr %247, align 1, !tbaa !44
  %248 = getelementptr inbounds i8, ptr %242, i64 3
  store i8 -1, ptr %248, align 1, !tbaa !44
  %249 = getelementptr inbounds i8, ptr %242, i64 4
  store i8 -1, ptr %249, align 1, !tbaa !44
  invoke void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %241, ptr noundef nonnull align 1 dereferenceable(5) %35)
          to label %250 unwind label %308

250:                                              ; preds = %240
  call void @llvm.lifetime.end.p0(i64 5, ptr %35) #5
  %251 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 5, ptr %36) #5
  %252 = getelementptr inbounds %"struct.Animation_Swirl::SwirlGradient", ptr %36, i32 0, i32 0
  %253 = load double, ptr %24, align 8, !tbaa !25
  %254 = fmul double %253, 1.100000e+01
  %255 = fptoui double %254 to i8
  store i8 %255, ptr %252, align 1, !tbaa !44
  %256 = getelementptr inbounds i8, ptr %252, i64 1
  store i8 -1, ptr %256, align 1, !tbaa !44
  %257 = getelementptr inbounds i8, ptr %252, i64 2
  store i8 0, ptr %257, align 1, !tbaa !44
  %258 = getelementptr inbounds i8, ptr %252, i64 3
  store i8 -128, ptr %258, align 1, !tbaa !44
  %259 = getelementptr inbounds i8, ptr %252, i64 4
  store i8 -1, ptr %259, align 1, !tbaa !44
  invoke void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %251, ptr noundef nonnull align 1 dereferenceable(5) %36)
          to label %260 unwind label %312

260:                                              ; preds = %250
  call void @llvm.lifetime.end.p0(i64 5, ptr %36) #5
  %261 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 8
  call void @llvm.lifetime.start.p0(i64 5, ptr %37) #5
  %262 = getelementptr inbounds %"struct.Animation_Swirl::SwirlGradient", ptr %37, i32 0, i32 0
  store i8 -1, ptr %262, align 1, !tbaa !44
  %263 = getelementptr inbounds i8, ptr %262, i64 1
  store i8 -1, ptr %263, align 1, !tbaa !44
  %264 = getelementptr inbounds i8, ptr %262, i64 2
  store i8 0, ptr %264, align 1, !tbaa !44
  %265 = getelementptr inbounds i8, ptr %262, i64 3
  store i8 0, ptr %265, align 1, !tbaa !44
  %266 = getelementptr inbounds i8, ptr %262, i64 4
  store i8 -1, ptr %266, align 1, !tbaa !44
  invoke void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %261, ptr noundef nonnull align 1 dereferenceable(5) %37)
          to label %267 unwind label %316

267:                                              ; preds = %260
  call void @llvm.lifetime.end.p0(i64 5, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %321

268:                                              ; preds = %143
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %9, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 5, ptr %25) #5
  br label %320

272:                                              ; preds = %150
  %273 = landingpad { ptr, i32 }
          cleanup
  %274 = extractvalue { ptr, i32 } %273, 0
  store ptr %274, ptr %9, align 8
  %275 = extractvalue { ptr, i32 } %273, 1
  store i32 %275, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 5, ptr %26) #5
  br label %320

276:                                              ; preds = %160
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %9, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 5, ptr %27) #5
  br label %320

280:                                              ; preds = %170
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %9, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 5, ptr %28) #5
  br label %320

284:                                              ; preds = %180
  %285 = landingpad { ptr, i32 }
          cleanup
  %286 = extractvalue { ptr, i32 } %285, 0
  store ptr %286, ptr %9, align 8
  %287 = extractvalue { ptr, i32 } %285, 1
  store i32 %287, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 5, ptr %29) #5
  br label %320

288:                                              ; preds = %190
  %289 = landingpad { ptr, i32 }
          cleanup
  %290 = extractvalue { ptr, i32 } %289, 0
  store ptr %290, ptr %9, align 8
  %291 = extractvalue { ptr, i32 } %289, 1
  store i32 %291, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 5, ptr %30) #5
  br label %320

292:                                              ; preds = %200
  %293 = landingpad { ptr, i32 }
          cleanup
  %294 = extractvalue { ptr, i32 } %293, 0
  store ptr %294, ptr %9, align 8
  %295 = extractvalue { ptr, i32 } %293, 1
  store i32 %295, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 5, ptr %31) #5
  br label %320

296:                                              ; preds = %210
  %297 = landingpad { ptr, i32 }
          cleanup
  %298 = extractvalue { ptr, i32 } %297, 0
  store ptr %298, ptr %9, align 8
  %299 = extractvalue { ptr, i32 } %297, 1
  store i32 %299, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 5, ptr %32) #5
  br label %320

300:                                              ; preds = %220
  %301 = landingpad { ptr, i32 }
          cleanup
  %302 = extractvalue { ptr, i32 } %301, 0
  store ptr %302, ptr %9, align 8
  %303 = extractvalue { ptr, i32 } %301, 1
  store i32 %303, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 5, ptr %33) #5
  br label %320

304:                                              ; preds = %230
  %305 = landingpad { ptr, i32 }
          cleanup
  %306 = extractvalue { ptr, i32 } %305, 0
  store ptr %306, ptr %9, align 8
  %307 = extractvalue { ptr, i32 } %305, 1
  store i32 %307, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 5, ptr %34) #5
  br label %320

308:                                              ; preds = %240
  %309 = landingpad { ptr, i32 }
          cleanup
  %310 = extractvalue { ptr, i32 } %309, 0
  store ptr %310, ptr %9, align 8
  %311 = extractvalue { ptr, i32 } %309, 1
  store i32 %311, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 5, ptr %35) #5
  br label %320

312:                                              ; preds = %250
  %313 = landingpad { ptr, i32 }
          cleanup
  %314 = extractvalue { ptr, i32 } %313, 0
  store ptr %314, ptr %9, align 8
  %315 = extractvalue { ptr, i32 } %313, 1
  store i32 %315, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 5, ptr %36) #5
  br label %320

316:                                              ; preds = %260
  %317 = landingpad { ptr, i32 }
          cleanup
  %318 = extractvalue { ptr, i32 } %317, 0
  store ptr %318, ptr %9, align 8
  %319 = extractvalue { ptr, i32 } %317, 1
  store i32 %319, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 5, ptr %37) #5
  br label %320

320:                                              ; preds = %316, %312, %308, %304, %300, %296, %292, %288, %284, %280, %276, %272, %268
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %337

321:                                              ; preds = %267, %118
  %322 = load i8, ptr %16, align 1, !tbaa !29, !range !27, !noundef !28
  %323 = trunc i8 %322 to i1
  br i1 %323, label %324, label %336

324:                                              ; preds = %321
  %325 = call noundef i64 @_ZNKSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  %326 = icmp ugt i64 %325, 1
  br i1 %326, label %327, label %336

327:                                              ; preds = %324
  %328 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 5
  store i8 1, ptr %328, align 8, !tbaa !41
  %329 = getelementptr inbounds %class.Animation_Swirl, ptr %39, i32 0, i32 9
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %330 unwind label %127

330:                                              ; preds = %327
  invoke void @_ZN15Animation_Swirl13buildGradientERSt6vectorINS_13SwirlGradientESaIS1_EEbS0_INS_10SwirlColorESaIS5_EEb(ptr noundef nonnull align 8 dereferenceable(224) %39, ptr noundef nonnull align 8 dereferenceable(24) %329, i1 noundef zeroext true, ptr noundef %38, i1 noundef zeroext true)
          to label %331 unwind label %332

331:                                              ; preds = %330
  call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %38) #5
  br label %336

332:                                              ; preds = %330
  %333 = landingpad { ptr, i32 }
          cleanup
  %334 = extractvalue { ptr, i32 } %333, 0
  store ptr %334, ptr %9, align 8
  %335 = extractvalue { ptr, i32 } %333, 1
  store i32 %335, ptr %10, align 4
  call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %38) #5
  br label %337

336:                                              ; preds = %331, %324, %321
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #5
  call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #5
  ret void

337:                                              ; preds = %332, %320, %139, %135, %131, %127
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #5
  br label %338

338:                                              ; preds = %337, %123
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %339

339:                                              ; preds = %338, %119
  call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #5
  call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #5
  br label %340

340:                                              ; preds = %339
  %341 = load ptr, ptr %9, align 8
  %342 = load i32, ptr %10, align 4
  %343 = insertvalue { ptr, i32 } poison, ptr %341, 0
  %344 = insertvalue { ptr, i32 } %343, i32 %342, 1
  resume { ptr, i32 } %344
}

declare void @_ZN10HyperImage6resizeEii(ptr noundef nonnull align 8 dereferenceable(27), i32 noundef, i32 noundef) #3

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree 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 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 = !{!"int", !7, i64 0}
!11 = !{!12, !20, i64 104}
!12 = !{!"_ZTS15Animation_Swirl", !13, i64 0, !15, i64 16, !15, i64 24, !10, i64 32, !10, i64 36, !14, i64 40, !10, i64 44, !10, i64 48, !16, i64 56, !16, i64 80, !20, i64 104, !14, i64 112, !20, i64 120, !20, i64 128, !14, i64 136, !21, i64 144, !14, i64 168, !14, i64 169, !20, i64 176, !20, i64 184, !14, i64 192, !21, i64 200}
!13 = !{!"_ZTS13AnimationBase", !10, i64 8, !14, i64 12}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTS7Point2d", !10, i64 0, !10, i64 4}
!16 = !{!"_ZTSSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIN15Animation_Swirl13SwirlGradientESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN15Animation_Swirl13SwirlGradientESaIS1_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN15Animation_Swirl13SwirlGradientESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"double", !7, i64 0}
!21 = !{!"_ZTSSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIN15Animation_Swirl10SwirlColorESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIN15Animation_Swirl10SwirlColorESaIS1_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN15Animation_Swirl10SwirlColorESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!20, !20, i64 0}
!26 = !{!12, !14, i64 112}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!14, !14, i64 0}
!30 = !{!12, !20, i64 120}
!31 = !{!12, !20, i64 128}
!32 = !{!12, !14, i64 136}
!33 = !{!12, !14, i64 168}
!34 = !{!12, !14, i64 169}
!35 = !{!12, !20, i64 176}
!36 = !{!12, !20, i64 184}
!37 = !{!12, !14, i64 192}
!38 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!39 = !{!12, !10, i64 32}
!40 = !{!12, !10, i64 36}
!41 = !{!12, !14, i64 40}
!42 = !{!12, !10, i64 44}
!43 = !{!12, !10, i64 48}
!44 = !{!7, !7, 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"

%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<Animation_Swirl::SwirlColor, std::allocator<Animation_Swirl::SwirlColor>>::_Vector_impl" }
%"struct.std::_Vector_base<Animation_Swirl::SwirlColor, std::allocator<Animation_Swirl::SwirlColor>>::_Vector_impl" = type { %"struct.std::_Vector_base<Animation_Swirl::SwirlColor, std::allocator<Animation_Swirl::SwirlColor>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Animation_Swirl::SwirlColor, std::allocator<Animation_Swirl::SwirlColor>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Animation_Swirl::SwirlGradient" = type { [5 x i8] }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

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

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

declare void @_ZN13AnimationBase12SetSleepTimeEi(ptr noundef nonnull align 8 dereferenceable(13), i32 noundef) local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZN15Animation_Swirl8getPointERK10HyperImagebdd(ptr noundef nonnull align 8 dereferenceable(224), ptr noundef nonnull align 8 dereferenceable(27), i1 noundef zeroext, double noundef, double noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN15Animation_Swirl8getSTimeEiid(ptr noundef nonnull align 8 dereferenceable(224), i32 noundef, i32 noundef, double noundef) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15Animation_Swirl4InitER10HyperImagei(ptr noundef nonnull align 8 dereferenceable(224) %0, ptr noundef nonnull align 8 dereferenceable(27) %1, i32 noundef %2) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector.0", align 8
  %5 = alloca %"class.std::vector.0", align 8
  %6 = alloca %"class.std::vector.0", align 8
  %7 = alloca %"struct.Animation_Swirl::SwirlGradient", align 4
  %8 = alloca %"struct.Animation_Swirl::SwirlGradient", align 4
  %9 = alloca %"struct.Animation_Swirl::SwirlGradient", align 4
  %10 = alloca %"struct.Animation_Swirl::SwirlGradient", align 4
  %11 = alloca %"struct.Animation_Swirl::SwirlGradient", align 4
  %12 = alloca %"struct.Animation_Swirl::SwirlGradient", align 4
  %13 = alloca %"struct.Animation_Swirl::SwirlGradient", align 4
  %14 = alloca %"struct.Animation_Swirl::SwirlGradient", align 1
  %15 = alloca %"struct.Animation_Swirl::SwirlGradient", align 4
  %16 = alloca %"struct.Animation_Swirl::SwirlGradient", align 1
  %17 = alloca %"struct.Animation_Swirl::SwirlGradient", align 4
  %18 = alloca %"struct.Animation_Swirl::SwirlGradient", align 4
  %19 = alloca %"struct.Animation_Swirl::SwirlGradient", align 4
  %20 = alloca %"class.std::vector.0", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  invoke void @_ZN10HyperImage6resizeEii(ptr noundef nonnull align 8 dereferenceable(27) %1, i32 noundef 80, i32 noundef 45)
          to label %21 unwind label %75

21:                                               ; preds = %3
  %22 = getelementptr inbounds i8, ptr %0, i64 104
  %23 = load double, ptr %22, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %0, i64 112
  %25 = load i8, ptr %24, align 8, !tbaa !23, !range !24, !noundef !25
  %26 = trunc nuw i8 %25 to i1
  %27 = getelementptr inbounds i8, ptr %0, i64 120
  %28 = load double, ptr %27, align 8, !tbaa !26
  %29 = getelementptr inbounds i8, ptr %0, i64 128
  %30 = load double, ptr %29, align 8, !tbaa !27
  %31 = getelementptr inbounds i8, ptr %0, i64 136
  %32 = load i8, ptr %31, align 8, !tbaa !28, !range !24, !noundef !25
  %33 = trunc nuw i8 %32 to i1
  %34 = getelementptr inbounds i8, ptr %0, i64 144
  %35 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %34)
          to label %36 unwind label %77

36:                                               ; preds = %21
  %37 = getelementptr inbounds i8, ptr %0, i64 168
  %38 = load i8, ptr %37, align 8, !tbaa !29, !range !24, !noundef !25
  %39 = trunc nuw i8 %38 to i1
  %40 = getelementptr inbounds i8, ptr %0, i64 169
  %41 = load i8, ptr %40, align 1, !tbaa !30, !range !24, !noundef !25
  %42 = trunc nuw i8 %41 to i1
  %43 = getelementptr inbounds i8, ptr %0, i64 176
  %44 = load double, ptr %43, align 8, !tbaa !31
  %45 = getelementptr inbounds i8, ptr %0, i64 184
  %46 = load double, ptr %45, align 8, !tbaa !32
  %47 = getelementptr inbounds i8, ptr %0, i64 192
  %48 = load i8, ptr %47, align 8, !tbaa !33, !range !24, !noundef !25
  %49 = trunc nuw i8 %48 to i1
  %50 = getelementptr inbounds i8, ptr %0, i64 200
  %51 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EEaSERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %50)
          to label %52 unwind label %79

52:                                               ; preds = %36
  %53 = invoke i64 @_ZN15Animation_Swirl8getPointERK10HyperImagebdd(ptr noundef nonnull align 8 dereferenceable(224) %0, ptr noundef nonnull align 8 dereferenceable(27) %1, i1 noundef zeroext %33, double noundef %28, double noundef %30)
          to label %54 unwind label %81

54:                                               ; preds = %52
  %55 = getelementptr inbounds i8, ptr %0, i64 16
  store i64 %53, ptr %55, align 8
  %56 = invoke i64 @_ZN15Animation_Swirl8getPointERK10HyperImagebdd(ptr noundef nonnull align 8 dereferenceable(224) %0, ptr noundef nonnull align 8 dereferenceable(27) %1, i1 noundef zeroext %49, double noundef %44, double noundef %46)
          to label %57 unwind label %83

57:                                               ; preds = %54
  %58 = getelementptr inbounds i8, ptr %0, i64 24
  store i64 %56, ptr %58, align 8
  %59 = fptosi double %23 to i32
  %60 = invoke noundef i32 @_ZN15Animation_Swirl8getSTimeEiid(ptr noundef nonnull align 8 dereferenceable(224) %0, i32 noundef %2, i32 noundef %59, double noundef 3.600000e+02)
          to label %61 unwind label %79

61:                                               ; preds = %57
  invoke void @_ZN13AnimationBase12SetSleepTimeEi(ptr noundef nonnull align 8 dereferenceable(13) %0, i32 noundef %60)
          to label %62 unwind label %79

62:                                               ; preds = %61
  %63 = getelementptr inbounds i8, ptr %0, i64 32
  %64 = getelementptr inbounds i8, ptr %0, i64 40
  %65 = select i1 %26, i32 -1, i32 1
  %66 = getelementptr inbounds i8, ptr %0, i64 44
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(9) %63, i8 0, i64 9, i1 false)
  store i32 %65, ptr %66, align 4, !tbaa !34
  %67 = select i1 %42, i32 -1, i32 1
  %68 = getelementptr inbounds i8, ptr %0, i64 48
  store i32 %67, ptr %68, align 8, !tbaa !35
  %69 = call noundef i64 @_ZNKSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %70 = icmp ugt i64 %69, 1
  br i1 %70, label %71, label %87

71:                                               ; preds = %62
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %72 unwind label %79

72:                                               ; preds = %71
  %73 = getelementptr inbounds i8, ptr %0, i64 56
  invoke void @_ZN15Animation_Swirl13buildGradientERSt6vectorINS_13SwirlGradientESaIS1_EEbS0_INS_10SwirlColorESaIS5_EEb(ptr noundef nonnull align 8 dereferenceable(224) %0, ptr noundef nonnull align 8 dereferenceable(24) %73, i1 noundef zeroext false, ptr noundef nonnull %6, i1 noundef zeroext true)
          to label %74 unwind label %85

74:                                               ; preds = %72
  call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  br label %141

75:                                               ; preds = %3
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %152

77:                                               ; preds = %21
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %152

79:                                               ; preds = %145, %71, %61, %57, %36
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %152

81:                                               ; preds = %52
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %152

83:                                               ; preds = %54
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %152

85:                                               ; preds = %72
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  br label %152

87:                                               ; preds = %62
  %88 = getelementptr inbounds i8, ptr %0, i64 56
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %7) #5
  store <4 x i8> <i8 0, i8 -1, i8 0, i8 0>, ptr %7, align 4, !tbaa !36
  %89 = getelementptr inbounds i8, ptr %7, i64 4
  store i8 -1, ptr %89, align 4, !tbaa !36
  invoke void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %88, ptr noundef nonnull align 1 dereferenceable(5) %7)
          to label %90 unwind label %115

90:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %8) #5
  store <4 x i8> <i8 17, i8 -1, i8 -128, i8 0>, ptr %8, align 4, !tbaa !36
  %91 = getelementptr inbounds i8, ptr %8, i64 4
  store i8 -1, ptr %91, align 4, !tbaa !36
  invoke void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %88, ptr noundef nonnull align 1 dereferenceable(5) %8)
          to label %92 unwind label %117

92:                                               ; preds = %90
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %9) #5
  store <4 x i8> <i8 46, i8 -1, i8 -1, i8 0>, ptr %9, align 4, !tbaa !36
  %93 = getelementptr inbounds i8, ptr %9, i64 4
  store i8 -1, ptr %93, align 4, !tbaa !36
  invoke void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %88, ptr noundef nonnull align 1 dereferenceable(5) %9)
          to label %94 unwind label %119

94:                                               ; preds = %92
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %10) #5
  store <4 x i8> <i8 74, i8 -128, i8 -1, i8 0>, ptr %10, align 4, !tbaa !36
  %95 = getelementptr inbounds i8, ptr %10, i64 4
  store i8 -1, ptr %95, align 4, !tbaa !36
  invoke void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %88, ptr noundef nonnull align 1 dereferenceable(5) %10)
          to label %96 unwind label %121

96:                                               ; preds = %94
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %11) #5
  store <4 x i8> <i8 91, i8 0, i8 -1, i8 0>, ptr %11, align 4, !tbaa !36
  %97 = getelementptr inbounds i8, ptr %11, i64 4
  store i8 -1, ptr %97, align 4, !tbaa !36
  invoke void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %88, ptr noundef nonnull align 1 dereferenceable(5) %11)
          to label %98 unwind label %123

98:                                               ; preds = %96
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %12) #5
  store <4 x i8> <i8 108, i8 0, i8 -1, i8 -128>, ptr %12, align 4, !tbaa !36
  %99 = getelementptr inbounds i8, ptr %12, i64 4
  store i8 -1, ptr %99, align 4, !tbaa !36
  invoke void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %88, ptr noundef nonnull align 1 dereferenceable(5) %12)
          to label %100 unwind label %125

100:                                              ; preds = %98
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %13) #5
  store <4 x i8> <i8 127, i8 0, i8 -1, i8 -1>, ptr %13, align 4, !tbaa !36
  %101 = getelementptr inbounds i8, ptr %13, i64 4
  store i8 -1, ptr %101, align 4, !tbaa !36
  invoke void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %88, ptr noundef nonnull align 1 dereferenceable(5) %13)
          to label %102 unwind label %127

102:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %14) #5
  store i8 -110, ptr %14, align 1, !tbaa !36
  %103 = getelementptr inbounds i8, ptr %14, i64 1
  store <4 x i8> <i8 0, i8 -128, i8 -1, i8 -1>, ptr %103, align 1, !tbaa !36
  invoke void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %88, ptr noundef nonnull align 1 dereferenceable(5) %14)
          to label %104 unwind label %129

104:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %15) #5
  store <4 x i8> <i8 -89, i8 0, i8 0, i8 -1>, ptr %15, align 4, !tbaa !36
  %105 = getelementptr inbounds i8, ptr %15, i64 4
  store i8 -1, ptr %105, align 4, !tbaa !36
  invoke void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %88, ptr noundef nonnull align 1 dereferenceable(5) %15)
          to label %106 unwind label %131

106:                                              ; preds = %104
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %16) #5
  store i8 -67, ptr %16, align 1, !tbaa !36
  %107 = getelementptr inbounds i8, ptr %16, i64 1
  store <4 x i8> <i8 -128, i8 0, i8 -1, i8 -1>, ptr %107, align 1, !tbaa !36
  invoke void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %88, ptr noundef nonnull align 1 dereferenceable(5) %16)
          to label %108 unwind label %133

108:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %17) #5
  store <4 x i8> <i8 -44, i8 -1, i8 0, i8 -1>, ptr %17, align 4, !tbaa !36
  %109 = getelementptr inbounds i8, ptr %17, i64 4
  store i8 -1, ptr %109, align 4, !tbaa !36
  invoke void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %88, ptr noundef nonnull align 1 dereferenceable(5) %17)
          to label %110 unwind label %135

110:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %18) #5
  store <4 x i8> <i8 -23, i8 -1, i8 0, i8 -128>, ptr %18, align 4, !tbaa !36
  %111 = getelementptr inbounds i8, ptr %18, i64 4
  store i8 -1, ptr %111, align 4, !tbaa !36
  invoke void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %88, ptr noundef nonnull align 1 dereferenceable(5) %18)
          to label %112 unwind label %137

112:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %18) #5
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %19) #5
  store <4 x i8> <i8 -1, i8 -1, i8 0, i8 0>, ptr %19, align 4, !tbaa !36
  %113 = getelementptr inbounds i8, ptr %19, i64 4
  store i8 -1, ptr %113, align 4, !tbaa !36
  invoke void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %88, ptr noundef nonnull align 1 dereferenceable(5) %19)
          to label %114 unwind label %139

114:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %19) #5
  br label %141

115:                                              ; preds = %87
  %116 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %7) #5
  br label %152

117:                                              ; preds = %90
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %8) #5
  br label %152

119:                                              ; preds = %92
  %120 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %9) #5
  br label %152

121:                                              ; preds = %94
  %122 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %10) #5
  br label %152

123:                                              ; preds = %96
  %124 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %11) #5
  br label %152

125:                                              ; preds = %98
  %126 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %12) #5
  br label %152

127:                                              ; preds = %100
  %128 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %13) #5
  br label %152

129:                                              ; preds = %102
  %130 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %14) #5
  br label %152

131:                                              ; preds = %104
  %132 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %15) #5
  br label %152

133:                                              ; preds = %106
  %134 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %16) #5
  br label %152

135:                                              ; preds = %108
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %17) #5
  br label %152

137:                                              ; preds = %110
  %138 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %18) #5
  br label %152

139:                                              ; preds = %112
  %140 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %19) #5
  br label %152

141:                                              ; preds = %114, %74
  br i1 %39, label %142, label %151

142:                                              ; preds = %141
  %143 = call noundef i64 @_ZNKSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  %144 = icmp ugt i64 %143, 1
  br i1 %144, label %145, label %151

145:                                              ; preds = %142
  store i8 1, ptr %64, align 8, !tbaa !37
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %146 unwind label %79

146:                                              ; preds = %145
  %147 = getelementptr inbounds i8, ptr %0, i64 80
  invoke void @_ZN15Animation_Swirl13buildGradientERSt6vectorINS_13SwirlGradientESaIS1_EEbS0_INS_10SwirlColorESaIS5_EEb(ptr noundef nonnull align 8 dereferenceable(224) %0, ptr noundef nonnull align 8 dereferenceable(24) %147, i1 noundef zeroext true, ptr noundef nonnull %20, i1 noundef zeroext true)
          to label %148 unwind label %149

148:                                              ; preds = %146
  call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  br label %151

149:                                              ; preds = %146
  %150 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #5
  br label %152

151:                                              ; preds = %148, %142, %141
  call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  ret void

152:                                              ; preds = %77, %115, %117, %119, %121, %123, %125, %127, %129, %131, %133, %135, %137, %139, %149, %85, %83, %81, %79, %75
  %.pn33.pn.pn = phi { ptr, i32 } [ %76, %75 ], [ %78, %77 ], [ %150, %149 ], [ %80, %79 ], [ %86, %85 ], [ %84, %83 ], [ %82, %81 ], [ %140, %139 ], [ %138, %137 ], [ %136, %135 ], [ %134, %133 ], [ %132, %131 ], [ %130, %129 ], [ %128, %127 ], [ %126, %125 ], [ %124, %123 ], [ %122, %121 ], [ %120, %119 ], [ %118, %117 ], [ %116, %115 ]
  call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn33.pn.pn
}

declare void @_ZN10HyperImage6resizeEii(ptr noundef nonnull align 8 dereferenceable(27), i32 noundef, i32 noundef) local_unnamed_addr #2

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !18, i64 104}
!6 = !{!"_ZTS15Animation_Swirl", !7, i64 0, !12, i64 16, !12, i64 24, !8, i64 32, !8, i64 36, !11, i64 40, !8, i64 44, !8, i64 48, !13, i64 56, !13, i64 80, !18, i64 104, !11, i64 112, !18, i64 120, !18, i64 128, !11, i64 136, !19, i64 144, !11, i64 168, !11, i64 169, !18, i64 176, !18, i64 184, !11, i64 192, !19, i64 200}
!7 = !{!"_ZTS13AnimationBase", !8, i64 8, !11, i64 12}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{!"_ZTS7Point2d", !8, i64 0, !8, i64 4}
!13 = !{!"_ZTSSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIN15Animation_Swirl13SwirlGradientESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN15Animation_Swirl13SwirlGradientESaIS1_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN15Animation_Swirl13SwirlGradientESaIS1_EE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!17 = !{!"any pointer", !9, i64 0}
!18 = !{!"double", !9, i64 0}
!19 = !{!"_ZTSSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIN15Animation_Swirl10SwirlColorESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN15Animation_Swirl10SwirlColorESaIS1_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIN15Animation_Swirl10SwirlColorESaIS1_EE17_Vector_impl_dataE", !17, i64 0, !17, i64 8, !17, i64 16}
!23 = !{!6, !11, i64 112}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!6, !18, i64 120}
!27 = !{!6, !18, i64 128}
!28 = !{!6, !11, i64 136}
!29 = !{!6, !11, i64 168}
!30 = !{!6, !11, i64 169}
!31 = !{!6, !18, i64 176}
!32 = !{!6, !18, i64 184}
!33 = !{!6, !11, i64 192}
!34 = !{!6, !8, i64 44}
!35 = !{!6, !8, i64 48}
!36 = !{!9, !9, i64 0}
!37 = !{!6, !11, i64 40}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass