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

; 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.Point2d = type { i32, i32 }
%"struct.Animation_Swirl::SwirlColor" = type { [4 x i8] }
%class.Animation_Waves = type { %class.AnimationBase.base, %struct.Point2d, %"class.std::vector", i32, %"class.std::vector.0", i64, double, i8, double, double, i8, i32, %"class.std::vector.5" }
%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 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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 }

@_ZTV15Animation_Waves = external dso_local unnamed_addr constant { [10 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15Animation_WavesC2Ev(ptr noundef nonnull align 8 dereferenceable(152) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %struct.Point2d, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"struct.Animation_Swirl::SwirlColor", align 1
  %7 = alloca %"struct.Animation_Swirl::SwirlColor", align 1
  %8 = alloca %"struct.Animation_Swirl::SwirlColor", align 1
  %9 = alloca %"struct.Animation_Swirl::SwirlColor", align 1
  %10 = alloca %"struct.Animation_Swirl::SwirlColor", align 1
  %11 = alloca %"struct.Animation_Swirl::SwirlColor", align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %12 = load ptr, ptr %2, align 8
  call void @_ZN13AnimationBaseC2Ev(ptr noundef nonnull align 8 dereferenceable(13) %12)
  store ptr getelementptr inbounds inrange(-16, 64) ({ [10 x ptr] }, ptr @_ZTV15Animation_Waves, i32 0, i32 0, i32 2), ptr %12, align 8, !tbaa !9
  %13 = getelementptr inbounds %class.Animation_Waves, ptr %12, i32 0, i32 1
  %14 = getelementptr inbounds %class.Animation_Waves, ptr %12, i32 0, i32 2
  call void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  %15 = getelementptr inbounds %class.Animation_Waves, ptr %12, i32 0, i32 4
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  %16 = getelementptr inbounds %class.Animation_Waves, ptr %12, i32 0, i32 12
  call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  %17 = getelementptr inbounds %class.Animation_Waves, ptr %12, i32 0, i32 6
  store double 9.000000e+01, ptr %17, align 8, !tbaa !11
  %18 = getelementptr inbounds %class.Animation_Waves, ptr %12, i32 0, i32 7
  store i8 0, ptr %18, align 8, !tbaa !31
  %19 = getelementptr inbounds %class.Animation_Waves, ptr %12, i32 0, i32 8
  store double -1.500000e-01, ptr %19, align 8, !tbaa !32
  %20 = getelementptr inbounds %class.Animation_Waves, ptr %12, i32 0, i32 9
  store double -2.500000e-01, ptr %20, align 8, !tbaa !33
  %21 = getelementptr inbounds %class.Animation_Waves, ptr %12, i32 0, i32 10
  store i8 0, ptr %21, align 8, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %22 = getelementptr inbounds %struct.Point2d, ptr %3, i32 0, i32 0
  store i32 0, ptr %22, align 4, !tbaa !35
  %23 = getelementptr inbounds %struct.Point2d, ptr %3, i32 0, i32 1
  store i32 0, ptr %23, align 4, !tbaa !36
  %24 = getelementptr inbounds %class.Animation_Waves, ptr %12, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 4 %3, i64 8, i1 false), !tbaa.struct !37
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  invoke void @_ZN13AnimationBase12SetSleepTimeEi(ptr noundef nonnull align 8 dereferenceable(13) %12, i32 noundef 100)
          to label %25 unwind label %103

25:                                               ; preds = %1
  %26 = getelementptr inbounds %class.Animation_Waves, ptr %12, i32 0, i32 12
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %27 = getelementptr inbounds %"struct.Animation_Swirl::SwirlColor", ptr %6, i32 0, i32 0
  store i8 -1, ptr %27, align 1, !tbaa !39
  %28 = getelementptr inbounds i8, ptr %27, i64 1
  store i8 0, ptr %28, align 1, !tbaa !39
  %29 = getelementptr inbounds i8, ptr %27, i64 2
  store i8 0, ptr %29, align 1, !tbaa !39
  %30 = getelementptr inbounds i8, ptr %27, i64 3
  %31 = getelementptr inbounds i8, ptr %27, i64 4
  br label %32

32:                                               ; preds = %32, %25
  %33 = phi ptr [ %30, %25 ], [ %34, %32 ]
  store i8 0, ptr %33, align 1, !tbaa !39
  %34 = getelementptr inbounds i8, ptr %33, i64 1
  %35 = icmp eq ptr %34, %31
  br i1 %35, label %36, label %32

36:                                               ; preds = %32
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 1 dereferenceable(4) %6)
          to label %37 unwind label %107

37:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %38 = getelementptr inbounds %class.Animation_Waves, ptr %12, i32 0, i32 12
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %39 = getelementptr inbounds %"struct.Animation_Swirl::SwirlColor", ptr %7, i32 0, i32 0
  store i8 -1, ptr %39, align 1, !tbaa !39
  %40 = getelementptr inbounds i8, ptr %39, i64 1
  store i8 -1, ptr %40, align 1, !tbaa !39
  %41 = getelementptr inbounds i8, ptr %39, i64 2
  store i8 0, ptr %41, align 1, !tbaa !39
  %42 = getelementptr inbounds i8, ptr %39, i64 3
  %43 = getelementptr inbounds i8, ptr %39, i64 4
  br label %44

44:                                               ; preds = %44, %37
  %45 = phi ptr [ %42, %37 ], [ %46, %44 ]
  store i8 0, ptr %45, align 1, !tbaa !39
  %46 = getelementptr inbounds i8, ptr %45, i64 1
  %47 = icmp eq ptr %46, %43
  br i1 %47, label %48, label %44

48:                                               ; preds = %44
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 1 dereferenceable(4) %7)
          to label %49 unwind label %111

49:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  %50 = getelementptr inbounds %class.Animation_Waves, ptr %12, i32 0, i32 12
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %51 = getelementptr inbounds %"struct.Animation_Swirl::SwirlColor", ptr %8, i32 0, i32 0
  store i8 0, ptr %51, align 1, !tbaa !39
  %52 = getelementptr inbounds i8, ptr %51, i64 1
  store i8 -1, ptr %52, align 1, !tbaa !39
  %53 = getelementptr inbounds i8, ptr %51, i64 2
  store i8 0, ptr %53, align 1, !tbaa !39
  %54 = getelementptr inbounds i8, ptr %51, i64 3
  %55 = getelementptr inbounds i8, ptr %51, i64 4
  br label %56

56:                                               ; preds = %56, %49
  %57 = phi ptr [ %54, %49 ], [ %58, %56 ]
  store i8 0, ptr %57, align 1, !tbaa !39
  %58 = getelementptr inbounds i8, ptr %57, i64 1
  %59 = icmp eq ptr %58, %55
  br i1 %59, label %60, label %56

60:                                               ; preds = %56
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %50, ptr noundef nonnull align 1 dereferenceable(4) %8)
          to label %61 unwind label %115

61:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %62 = getelementptr inbounds %class.Animation_Waves, ptr %12, i32 0, i32 12
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %63 = getelementptr inbounds %"struct.Animation_Swirl::SwirlColor", ptr %9, i32 0, i32 0
  store i8 0, ptr %63, align 1, !tbaa !39
  %64 = getelementptr inbounds i8, ptr %63, i64 1
  store i8 -1, ptr %64, align 1, !tbaa !39
  %65 = getelementptr inbounds i8, ptr %63, i64 2
  store i8 -1, ptr %65, align 1, !tbaa !39
  %66 = getelementptr inbounds i8, ptr %63, i64 3
  %67 = getelementptr inbounds i8, ptr %63, i64 4
  br label %68

68:                                               ; preds = %68, %61
  %69 = phi ptr [ %66, %61 ], [ %70, %68 ]
  store i8 0, ptr %69, align 1, !tbaa !39
  %70 = getelementptr inbounds i8, ptr %69, i64 1
  %71 = icmp eq ptr %70, %67
  br i1 %71, label %72, label %68

72:                                               ; preds = %68
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %62, ptr noundef nonnull align 1 dereferenceable(4) %9)
          to label %73 unwind label %119

73:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  %74 = getelementptr inbounds %class.Animation_Waves, ptr %12, i32 0, i32 12
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %75 = getelementptr inbounds %"struct.Animation_Swirl::SwirlColor", ptr %10, i32 0, i32 0
  store i8 0, ptr %75, align 1, !tbaa !39
  %76 = getelementptr inbounds i8, ptr %75, i64 1
  store i8 0, ptr %76, align 1, !tbaa !39
  %77 = getelementptr inbounds i8, ptr %75, i64 2
  store i8 -1, ptr %77, align 1, !tbaa !39
  %78 = getelementptr inbounds i8, ptr %75, i64 3
  %79 = getelementptr inbounds i8, ptr %75, i64 4
  br label %80

80:                                               ; preds = %80, %73
  %81 = phi ptr [ %78, %73 ], [ %82, %80 ]
  store i8 0, ptr %81, align 1, !tbaa !39
  %82 = getelementptr inbounds i8, ptr %81, i64 1
  %83 = icmp eq ptr %82, %79
  br i1 %83, label %84, label %80

84:                                               ; preds = %80
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %74, ptr noundef nonnull align 1 dereferenceable(4) %10)
          to label %85 unwind label %123

85:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  %86 = getelementptr inbounds %class.Animation_Waves, ptr %12, i32 0, i32 12
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %87 = getelementptr inbounds %"struct.Animation_Swirl::SwirlColor", ptr %11, i32 0, i32 0
  store i8 -1, ptr %87, align 1, !tbaa !39
  %88 = getelementptr inbounds i8, ptr %87, i64 1
  store i8 0, ptr %88, align 1, !tbaa !39
  %89 = getelementptr inbounds i8, ptr %87, i64 2
  store i8 -1, ptr %89, align 1, !tbaa !39
  %90 = getelementptr inbounds i8, ptr %87, i64 3
  %91 = getelementptr inbounds i8, ptr %87, i64 4
  br label %92

92:                                               ; preds = %92, %85
  %93 = phi ptr [ %90, %85 ], [ %94, %92 ]
  store i8 0, ptr %93, align 1, !tbaa !39
  %94 = getelementptr inbounds i8, ptr %93, i64 1
  %95 = icmp eq ptr %94, %91
  br i1 %95, label %96, label %92

96:                                               ; preds = %92
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %86, ptr noundef nonnull align 1 dereferenceable(4) %11)
          to label %97 unwind label %127

97:                                               ; preds = %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  %98 = getelementptr inbounds %class.Animation_Waves, ptr %12, i32 0, i32 3
  store i32 0, ptr %98, align 8, !tbaa !40
  %99 = getelementptr inbounds %class.Animation_Waves, ptr %12, i32 0, i32 4
  call void @_ZNSt6vectorIhSaIhEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %99) #5
  %100 = getelementptr inbounds %class.Animation_Waves, ptr %12, i32 0, i32 5
  store i64 0, ptr %100, align 8, !tbaa !41
  %101 = getelementptr inbounds %class.Animation_Waves, ptr %12, i32 0, i32 11
  store i32 0, ptr %101, align 4, !tbaa !42
  %102 = getelementptr inbounds %class.Animation_Waves, ptr %12, i32 0, i32 7
  store i8 0, ptr %102, align 8, !tbaa !31
  ret void

103:                                              ; preds = %1
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %4, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %5, align 4
  br label %131

107:                                              ; preds = %36
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %4, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %131

111:                                              ; preds = %48
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %4, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %131

115:                                              ; preds = %60
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %4, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %131

119:                                              ; preds = %72
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %4, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %131

123:                                              ; preds = %84
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %4, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %131

127:                                              ; preds = %96
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %4, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %131

131:                                              ; preds = %127, %123, %119, %115, %111, %107, %103
  call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #5
  call void @_ZN13AnimationBaseD2Ev(ptr noundef nonnull align 8 dereferenceable(13) %12) #5
  br label %132

132:                                              ; preds = %131
  %133 = load ptr, ptr %4, align 8
  %134 = load i32, ptr %5, align 4
  %135 = insertvalue { ptr, i32 } poison, ptr %133, 0
  %136 = insertvalue { ptr, i32 } %135, i32 %134, 1
  resume { ptr, i32 } %136
}

declare void @_ZN13AnimationBaseC2Ev(ptr noundef nonnull align 8 dereferenceable(13)) unnamed_addr #1

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

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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 = { "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 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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !26, i64 88}
!12 = !{!"_ZTS15Animation_Waves", !13, i64 0, !16, i64 16, !17, i64 24, !14, i64 48, !21, i64 56, !25, i64 80, !26, i64 88, !15, i64 96, !26, i64 104, !26, i64 112, !15, i64 120, !14, i64 124, !27, i64 128}
!13 = !{!"_ZTS13AnimationBase", !14, i64 8, !15, i64 12}
!14 = !{!"int", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTS7Point2d", !14, i64 0, !14, i64 4}
!17 = !{!"_ZTSSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIN15Animation_Swirl13SwirlGradientESaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN15Animation_Swirl13SwirlGradientESaIS1_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN15Animation_Swirl13SwirlGradientESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSSt6vectorIhSaIhEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"long long", !7, i64 0}
!26 = !{!"double", !7, i64 0}
!27 = !{!"_ZTSSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIN15Animation_Swirl10SwirlColorESaIS1_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN15Animation_Swirl10SwirlColorESaIS1_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIN15Animation_Swirl10SwirlColorESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!12, !15, i64 96}
!32 = !{!12, !26, i64 104}
!33 = !{!12, !26, i64 112}
!34 = !{!12, !15, i64 120}
!35 = !{!16, !14, i64 0}
!36 = !{!16, !14, i64 4}
!37 = !{i64 0, i64 4, !38, i64 4, i64 4, !38}
!38 = !{!14, !14, i64 0}
!39 = !{!7, !7, i64 0}
!40 = !{!12, !14, i64 48}
!41 = !{!12, !25, i64 80}
!42 = !{!12, !14, i64 124}


; 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.Animation_Swirl::SwirlColor" = type { [4 x i8] }

@_ZTV15Animation_Waves = external dso_local unnamed_addr constant { [10 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15Animation_WavesC2Ev(ptr noundef nonnull align 8 dereferenceable(152) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"struct.Animation_Swirl::SwirlColor", align 4
  %3 = alloca %"struct.Animation_Swirl::SwirlColor", align 4
  %4 = alloca %"struct.Animation_Swirl::SwirlColor", align 4
  %5 = alloca %"struct.Animation_Swirl::SwirlColor", align 4
  %6 = alloca %"struct.Animation_Swirl::SwirlColor", align 4
  %7 = alloca %"struct.Animation_Swirl::SwirlColor", align 4
  tail call void @_ZN13AnimationBaseC2Ev(ptr noundef nonnull align 8 dereferenceable(13) %0)
  store ptr getelementptr inbounds inrange(-16, 64) (i8, ptr @_ZTV15Animation_Waves, i64 16), ptr %0, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  %9 = getelementptr inbounds i8, ptr %0, i64 56
  tail call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  %10 = getelementptr inbounds i8, ptr %0, i64 128
  tail call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  %11 = getelementptr inbounds i8, ptr %0, i64 88
  store double 9.000000e+01, ptr %11, align 8, !tbaa !8
  %12 = getelementptr inbounds i8, ptr %0, i64 96
  store i8 0, ptr %12, align 8, !tbaa !30
  %13 = getelementptr inbounds i8, ptr %0, i64 104
  store <2 x double> <double -1.500000e-01, double -2.500000e-01>, ptr %13, align 8, !tbaa !31
  %14 = getelementptr inbounds i8, ptr %0, i64 120
  store i8 0, ptr %14, align 8, !tbaa !32
  %15 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 0, ptr %15, align 8, !tbaa !33
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 20
  store i32 0, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !33
  invoke void @_ZN13AnimationBase12SetSleepTimeEi(ptr noundef nonnull align 8 dereferenceable(13) %0, i32 noundef 100)
          to label %16 unwind label %26

16:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  store <4 x i8> <i8 -1, i8 0, i8 0, i8 0>, ptr %2, align 4, !tbaa !34
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 1 dereferenceable(4) %2)
          to label %17 unwind label %28

17:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  store <4 x i8> <i8 -1, i8 -1, i8 0, i8 0>, ptr %3, align 4, !tbaa !34
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 1 dereferenceable(4) %3)
          to label %18 unwind label %30

18:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  store <4 x i8> <i8 0, i8 -1, i8 0, i8 0>, ptr %4, align 4, !tbaa !34
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 1 dereferenceable(4) %4)
          to label %19 unwind label %32

19:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  store <4 x i8> <i8 0, i8 -1, i8 -1, i8 0>, ptr %5, align 4, !tbaa !34
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 1 dereferenceable(4) %5)
          to label %20 unwind label %34

20:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  store <4 x i8> <i8 0, i8 0, i8 -1, i8 0>, ptr %6, align 4, !tbaa !34
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 1 dereferenceable(4) %6)
          to label %21 unwind label %36

21:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  store <4 x i8> <i8 -1, i8 0, i8 -1, i8 0>, ptr %7, align 4, !tbaa !34
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 1 dereferenceable(4) %7)
          to label %22 unwind label %38

22:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  %23 = getelementptr inbounds i8, ptr %0, i64 48
  store i32 0, ptr %23, align 8, !tbaa !35
  call void @_ZNSt6vectorIhSaIhEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  %24 = getelementptr inbounds i8, ptr %0, i64 80
  store i64 0, ptr %24, align 8, !tbaa !36
  %25 = getelementptr inbounds i8, ptr %0, i64 124
  store i32 0, ptr %25, align 4, !tbaa !37
  store i8 0, ptr %12, align 8, !tbaa !30
  ret void

26:                                               ; preds = %1
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %40

28:                                               ; preds = %16
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  br label %40

30:                                               ; preds = %17
  %31 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  br label %40

32:                                               ; preds = %18
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  br label %40

34:                                               ; preds = %19
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  br label %40

36:                                               ; preds = %20
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  br label %40

38:                                               ; preds = %21
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  br label %40

40:                                               ; preds = %38, %36, %34, %32, %30, %28, %26
  %.pn = phi { ptr, i32 } [ %39, %38 ], [ %37, %36 ], [ %35, %34 ], [ %33, %32 ], [ %31, %30 ], [ %29, %28 ], [ %27, %26 ]
  call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @_ZNSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @_ZN13AnimationBaseD2Ev(ptr noundef nonnull align 8 dereferenceable(13) %0) #4
  resume { ptr, i32 } %.pn
}

declare void @_ZN13AnimationBaseC2Ev(ptr noundef nonnull align 8 dereferenceable(13)) unnamed_addr #1

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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 = { "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 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !25, i64 88}
!9 = !{!"_ZTS15Animation_Waves", !10, i64 0, !14, i64 16, !15, i64 24, !11, i64 48, !20, i64 56, !24, i64 80, !25, i64 88, !13, i64 96, !25, i64 104, !25, i64 112, !13, i64 120, !11, i64 124, !26, i64 128}
!10 = !{!"_ZTS13AnimationBase", !11, i64 8, !13, i64 12}
!11 = !{!"int", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"bool", !12, i64 0}
!14 = !{!"_ZTS7Point2d", !11, i64 0, !11, i64 4}
!15 = !{!"_ZTSSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIN15Animation_Swirl13SwirlGradientESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN15Animation_Swirl13SwirlGradientESaIS1_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN15Animation_Swirl13SwirlGradientESaIS1_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!19 = !{!"any pointer", !12, i64 0}
!20 = !{!"_ZTSSt6vectorIhSaIhEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!24 = !{!"long long", !12, i64 0}
!25 = !{!"double", !12, i64 0}
!26 = !{!"_ZTSSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIN15Animation_Swirl10SwirlColorESaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN15Animation_Swirl10SwirlColorESaIS1_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIN15Animation_Swirl10SwirlColorESaIS1_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!30 = !{!9, !13, i64 96}
!31 = !{!25, !25, i64 0}
!32 = !{!9, !13, i64 120}
!33 = !{!11, !11, i64 0}
!34 = !{!12, !12, i64 0}
!35 = !{!9, !11, i64 48}
!36 = !{!9, !24, i64 80}
!37 = !{!9, !11, i64 124}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass