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

; 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.Animation_Swirl::SwirlColor" = type { [4 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 }>
%struct.Point2d = type { i32, i32 }
%"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<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 }

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN21Animation_DoubleSwirlC2Ev(ptr noundef nonnull align 8 dereferenceable(224) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"struct.Animation_Swirl::SwirlColor", align 1
  %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
  %12 = alloca %"struct.Animation_Swirl::SwirlColor", align 1
  %13 = alloca %"struct.Animation_Swirl::SwirlColor", align 1
  %14 = alloca %"struct.Animation_Swirl::SwirlColor", align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %15 = load ptr, ptr %2, align 8
  call void @_ZN15Animation_SwirlC2Ev(ptr noundef nonnull align 8 dereferenceable(224) %15)
  store ptr getelementptr inbounds inrange(-16, 64) ({ [10 x ptr] }, ptr @_ZTV21Animation_DoubleSwirl, i32 0, i32 0, i32 2), ptr %15, align 8, !tbaa !9
  %16 = getelementptr inbounds %class.Animation_Swirl, ptr %15, i32 0, i32 15
  call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #5
  %17 = getelementptr inbounds %class.Animation_Swirl, ptr %15, i32 0, i32 21
  call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #5
  %18 = getelementptr inbounds %class.Animation_Swirl, ptr %15, i32 0, i32 12
  store double 5.000000e-01, ptr %18, align 8, !tbaa !11
  %19 = getelementptr inbounds %class.Animation_Swirl, ptr %15, i32 0, i32 18
  store double 5.000000e-01, ptr %19, align 8, !tbaa !26
  %20 = getelementptr inbounds %class.Animation_Swirl, ptr %15, i32 0, i32 13
  store double 5.000000e-01, ptr %20, align 8, !tbaa !27
  %21 = getelementptr inbounds %class.Animation_Swirl, ptr %15, i32 0, i32 19
  store double 5.000000e-01, ptr %21, align 8, !tbaa !28
  %22 = getelementptr inbounds %class.Animation_Swirl, ptr %15, i32 0, i32 15
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  %23 = getelementptr inbounds %"struct.Animation_Swirl::SwirlColor", ptr %3, i32 0, i32 0
  store i8 -1, ptr %23, align 1, !tbaa !29
  %24 = getelementptr inbounds i8, ptr %23, i64 1
  store i8 0, ptr %24, align 1, !tbaa !29
  %25 = getelementptr inbounds i8, ptr %23, i64 2
  store i8 0, ptr %25, align 1, !tbaa !29
  %26 = getelementptr inbounds i8, ptr %23, i64 3
  %27 = getelementptr inbounds i8, ptr %23, i64 4
  br label %28

28:                                               ; preds = %28, %1
  %29 = phi ptr [ %26, %1 ], [ %30, %28 ]
  store i8 0, ptr %29, align 1, !tbaa !29
  %30 = getelementptr inbounds i8, ptr %29, i64 1
  %31 = icmp eq ptr %30, %27
  br i1 %31, label %32, label %28

32:                                               ; preds = %28
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 1 dereferenceable(4) %3)
          to label %33 unwind label %100

33:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  %34 = getelementptr inbounds %class.Animation_Swirl, ptr %15, i32 0, i32 15
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %35 = getelementptr inbounds %"struct.Animation_Swirl::SwirlColor", ptr %6, i32 0, i32 0
  store i8 20, ptr %35, align 1, !tbaa !29
  %36 = getelementptr inbounds i8, ptr %35, i64 1
  store i8 0, ptr %36, align 1, !tbaa !29
  %37 = getelementptr inbounds i8, ptr %35, i64 2
  store i8 -1, ptr %37, align 1, !tbaa !29
  %38 = getelementptr inbounds i8, ptr %35, i64 3
  %39 = getelementptr inbounds i8, ptr %35, i64 4
  br label %40

40:                                               ; preds = %40, %33
  %41 = phi ptr [ %38, %33 ], [ %42, %40 ]
  store i8 0, ptr %41, align 1, !tbaa !29
  %42 = getelementptr inbounds i8, ptr %41, i64 1
  %43 = icmp eq ptr %42, %39
  br i1 %43, label %44, label %40

44:                                               ; preds = %40
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 1 dereferenceable(4) %6)
          to label %45 unwind label %104

45:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %46 = getelementptr inbounds %class.Animation_Swirl, ptr %15, i32 0, i32 21
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %47 = getelementptr inbounds %"struct.Animation_Swirl::SwirlColor", ptr %7, i32 0, i32 0
  store i8 -1, ptr %47, align 1, !tbaa !29
  %48 = getelementptr inbounds i8, ptr %47, i64 1
  store i8 0, ptr %48, align 1, !tbaa !29
  %49 = getelementptr inbounds i8, ptr %47, i64 2
  store i8 0, ptr %49, align 1, !tbaa !29
  %50 = getelementptr inbounds i8, ptr %47, i64 3
  store i8 0, ptr %50, align 1, !tbaa !29
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %46, ptr noundef nonnull align 1 dereferenceable(4) %7)
          to label %51 unwind label %108

51:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  %52 = getelementptr inbounds %class.Animation_Swirl, ptr %15, i32 0, i32 21
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %53 = getelementptr inbounds %"struct.Animation_Swirl::SwirlColor", ptr %8, i32 0, i32 0
  store i8 -1, ptr %53, align 1, !tbaa !29
  %54 = getelementptr inbounds i8, ptr %53, i64 1
  store i8 0, ptr %54, align 1, !tbaa !29
  %55 = getelementptr inbounds i8, ptr %53, i64 2
  store i8 0, ptr %55, align 1, !tbaa !29
  %56 = getelementptr inbounds i8, ptr %53, i64 3
  store i8 0, ptr %56, align 1, !tbaa !29
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %52, ptr noundef nonnull align 1 dereferenceable(4) %8)
          to label %57 unwind label %112

57:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %58 = getelementptr inbounds %class.Animation_Swirl, ptr %15, i32 0, i32 21
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %59 = getelementptr inbounds %"struct.Animation_Swirl::SwirlColor", ptr %9, i32 0, i32 0
  store i8 -1, ptr %59, align 1, !tbaa !29
  %60 = getelementptr inbounds i8, ptr %59, i64 1
  store i8 0, ptr %60, align 1, !tbaa !29
  %61 = getelementptr inbounds i8, ptr %59, i64 2
  store i8 0, ptr %61, align 1, !tbaa !29
  %62 = getelementptr inbounds i8, ptr %59, i64 3
  store i8 0, ptr %62, align 1, !tbaa !29
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %58, ptr noundef nonnull align 1 dereferenceable(4) %9)
          to label %63 unwind label %116

63:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  %64 = getelementptr inbounds %class.Animation_Swirl, ptr %15, i32 0, i32 21
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %65 = getelementptr inbounds %"struct.Animation_Swirl::SwirlColor", ptr %10, i32 0, i32 0
  store i8 0, ptr %65, align 1, !tbaa !29
  %66 = getelementptr inbounds i8, ptr %65, i64 1
  store i8 0, ptr %66, align 1, !tbaa !29
  %67 = getelementptr inbounds i8, ptr %65, i64 2
  store i8 0, ptr %67, align 1, !tbaa !29
  %68 = getelementptr inbounds i8, ptr %65, i64 3
  store i8 1, ptr %68, align 1, !tbaa !29
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %64, ptr noundef nonnull align 1 dereferenceable(4) %10)
          to label %69 unwind label %120

69:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  %70 = getelementptr inbounds %class.Animation_Swirl, ptr %15, i32 0, i32 21
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %71 = getelementptr inbounds %"struct.Animation_Swirl::SwirlColor", ptr %11, i32 0, i32 0
  store i8 0, ptr %71, align 1, !tbaa !29
  %72 = getelementptr inbounds i8, ptr %71, i64 1
  store i8 0, ptr %72, align 1, !tbaa !29
  %73 = getelementptr inbounds i8, ptr %71, i64 2
  store i8 0, ptr %73, align 1, !tbaa !29
  %74 = getelementptr inbounds i8, ptr %71, i64 3
  store i8 0, ptr %74, align 1, !tbaa !29
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %70, ptr noundef nonnull align 1 dereferenceable(4) %11)
          to label %75 unwind label %124

75:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  %76 = getelementptr inbounds %class.Animation_Swirl, ptr %15, i32 0, i32 21
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %77 = getelementptr inbounds %"struct.Animation_Swirl::SwirlColor", ptr %12, i32 0, i32 0
  store i8 -1, ptr %77, align 1, !tbaa !29
  %78 = getelementptr inbounds i8, ptr %77, i64 1
  store i8 0, ptr %78, align 1, !tbaa !29
  %79 = getelementptr inbounds i8, ptr %77, i64 2
  store i8 0, ptr %79, align 1, !tbaa !29
  %80 = getelementptr inbounds i8, ptr %77, i64 3
  store i8 0, ptr %80, align 1, !tbaa !29
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %76, ptr noundef nonnull align 1 dereferenceable(4) %12)
          to label %81 unwind label %128

81:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  %82 = getelementptr inbounds %class.Animation_Swirl, ptr %15, i32 0, i32 21
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %83 = getelementptr inbounds %"struct.Animation_Swirl::SwirlColor", ptr %13, i32 0, i32 0
  store i8 -1, ptr %83, align 1, !tbaa !29
  %84 = getelementptr inbounds i8, ptr %83, i64 1
  store i8 0, ptr %84, align 1, !tbaa !29
  %85 = getelementptr inbounds i8, ptr %83, i64 2
  store i8 0, ptr %85, align 1, !tbaa !29
  %86 = getelementptr inbounds i8, ptr %83, i64 3
  store i8 0, ptr %86, align 1, !tbaa !29
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %82, ptr noundef nonnull align 1 dereferenceable(4) %13)
          to label %87 unwind label %132

87:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  %88 = getelementptr inbounds %class.Animation_Swirl, ptr %15, i32 0, i32 21
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %89 = getelementptr inbounds %"struct.Animation_Swirl::SwirlColor", ptr %14, i32 0, i32 0
  store i8 0, ptr %89, align 1, !tbaa !29
  %90 = getelementptr inbounds i8, ptr %89, i64 1
  store i8 0, ptr %90, align 1, !tbaa !29
  %91 = getelementptr inbounds i8, ptr %89, i64 2
  store i8 0, ptr %91, align 1, !tbaa !29
  %92 = getelementptr inbounds i8, ptr %89, i64 3
  store i8 1, ptr %92, align 1, !tbaa !29
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %88, ptr noundef nonnull align 1 dereferenceable(4) %14)
          to label %93 unwind label %136

93:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  %94 = getelementptr inbounds %class.Animation_Swirl, ptr %15, i32 0, i32 16
  store i8 1, ptr %94, align 8, !tbaa !30
  %95 = getelementptr inbounds %class.Animation_Swirl, ptr %15, i32 0, i32 14
  store i8 0, ptr %95, align 8, !tbaa !31
  %96 = getelementptr inbounds %class.Animation_Swirl, ptr %15, i32 0, i32 20
  store i8 0, ptr %96, align 8, !tbaa !32
  %97 = getelementptr inbounds %class.Animation_Swirl, ptr %15, i32 0, i32 11
  store i8 0, ptr %97, align 8, !tbaa !33
  %98 = getelementptr inbounds %class.Animation_Swirl, ptr %15, i32 0, i32 17
  store i8 1, ptr %98, align 1, !tbaa !34
  %99 = getelementptr inbounds %class.Animation_Swirl, ptr %15, i32 0, i32 10
  store double 2.500000e+01, ptr %99, align 8, !tbaa !35
  ret void

100:                                              ; preds = %32
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %4, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %140

104:                                              ; preds = %44
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %4, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %140

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

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

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

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

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

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

132:                                              ; preds = %81
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %4, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %140

136:                                              ; preds = %87
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %4, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %140

140:                                              ; preds = %136, %132, %128, %124, %120, %116, %112, %108, %104, %100
  call void @_ZN15Animation_SwirlD2Ev(ptr noundef nonnull align 8 dereferenceable(224) %15) #5
  br label %141

141:                                              ; preds = %140
  %142 = load ptr, ptr %4, align 8
  %143 = load i32, ptr %5, align 4
  %144 = insertvalue { ptr, i32 } poison, ptr %142, 0
  %145 = insertvalue { ptr, i32 } %144, i32 %143, 1
  resume { ptr, i32 } %145
}

declare void @_ZN15Animation_SwirlC2Ev(ptr noundef nonnull align 8 dereferenceable(224)) unnamed_addr #1

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

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #3

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN15Animation_SwirlD2Ev(ptr noundef nonnull align 8 dereferenceable(224)) unnamed_addr #4 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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, !21, i64 120}
!12 = !{!"_ZTS15Animation_Swirl", !13, i64 0, !16, i64 16, !16, i64 24, !14, i64 32, !14, i64 36, !15, i64 40, !14, i64 44, !14, i64 48, !17, i64 56, !17, i64 80, !21, i64 104, !15, i64 112, !21, i64 120, !21, i64 128, !15, i64 136, !22, i64 144, !15, i64 168, !15, i64 169, !21, i64 176, !21, i64 184, !15, i64 192, !22, i64 200}
!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 = !{!"double", !7, i64 0}
!22 = !{!"_ZTSSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIN15Animation_Swirl10SwirlColorESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIN15Animation_Swirl10SwirlColorESaIS1_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN15Animation_Swirl10SwirlColorESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!12, !21, i64 176}
!27 = !{!12, !21, i64 128}
!28 = !{!12, !21, i64 184}
!29 = !{!7, !7, i64 0}
!30 = !{!12, !15, i64 168}
!31 = !{!12, !15, i64 136}
!32 = !{!12, !15, i64 192}
!33 = !{!12, !15, i64 112}
!34 = !{!12, !15, i64 169}
!35 = !{!12, !21, i64 104}


; 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] }

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN21Animation_DoubleSwirlC2Ev(ptr noundef nonnull align 8 dereferenceable(224) %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
  %8 = alloca %"struct.Animation_Swirl::SwirlColor", align 4
  %9 = alloca %"struct.Animation_Swirl::SwirlColor", align 4
  %10 = alloca %"struct.Animation_Swirl::SwirlColor", align 4
  %11 = alloca %"struct.Animation_Swirl::SwirlColor", align 4
  tail call void @_ZN15Animation_SwirlC2Ev(ptr noundef nonnull align 8 dereferenceable(224) %0)
  store ptr getelementptr inbounds inrange(-16, 64) (i8, ptr @_ZTV21Animation_DoubleSwirl, i64 16), ptr %0, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 144
  tail call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  %13 = getelementptr inbounds i8, ptr %0, i64 200
  tail call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  %14 = getelementptr inbounds i8, ptr %0, i64 120
  %15 = getelementptr inbounds i8, ptr %0, i64 176
  store <2 x double> <double 5.000000e-01, double 5.000000e-01>, ptr %14, align 8, !tbaa !8
  store <2 x double> <double 5.000000e-01, double 5.000000e-01>, ptr %15, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store <4 x i8> <i8 -1, i8 0, i8 0, i8 0>, ptr %2, align 4, !tbaa !11
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 1 dereferenceable(4) %2)
          to label %16 unwind label %32

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

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

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

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

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

21:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  store i32 0, ptr %8, align 4
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 1 dereferenceable(4) %8)
          to label %22 unwind label %44

22:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  store <4 x i8> <i8 -1, i8 0, i8 0, i8 0>, ptr %9, align 4, !tbaa !11
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 1 dereferenceable(4) %9)
          to label %23 unwind label %46

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

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

25:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  %26 = getelementptr inbounds i8, ptr %0, i64 168
  store i8 1, ptr %26, align 8, !tbaa !12
  %27 = getelementptr inbounds i8, ptr %0, i64 136
  store i8 0, ptr %27, align 8, !tbaa !27
  %28 = getelementptr inbounds i8, ptr %0, i64 192
  store i8 0, ptr %28, align 8, !tbaa !28
  %29 = getelementptr inbounds i8, ptr %0, i64 112
  store i8 0, ptr %29, align 8, !tbaa !29
  %30 = getelementptr inbounds i8, ptr %0, i64 169
  store i8 1, ptr %30, align 1, !tbaa !30
  %31 = getelementptr inbounds i8, ptr %0, i64 104
  store double 2.500000e+01, ptr %31, align 8, !tbaa !31
  ret void

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

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

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

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

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

42:                                               ; preds = %20
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  br label %52

44:                                               ; preds = %21
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  br label %52

46:                                               ; preds = %22
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  br label %52

48:                                               ; preds = %23
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  br label %52

50:                                               ; preds = %24
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  br label %52

52:                                               ; preds = %50, %48, %46, %44, %42, %40, %38, %36, %34, %32
  %.pn = phi { ptr, i32 } [ %51, %50 ], [ %49, %48 ], [ %47, %46 ], [ %45, %44 ], [ %43, %42 ], [ %41, %40 ], [ %39, %38 ], [ %37, %36 ], [ %35, %34 ], [ %33, %32 ]
  call void @_ZN15Animation_SwirlD2Ev(ptr noundef nonnull align 8 dereferenceable(224) %0) #5
  resume { ptr, i32 } %.pn
}

declare void @_ZN15Animation_SwirlC2Ev(ptr noundef nonnull align 8 dereferenceable(224)) unnamed_addr #1

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

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #3

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN15Animation_SwirlD2Ev(ptr noundef nonnull align 8 dereferenceable(224)) unnamed_addr #4 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"double", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!13, !16, i64 168}
!13 = !{!"_ZTS15Animation_Swirl", !14, i64 0, !17, i64 16, !17, i64 24, !15, i64 32, !15, i64 36, !16, i64 40, !15, i64 44, !15, i64 48, !18, i64 56, !18, i64 80, !9, i64 104, !16, i64 112, !9, i64 120, !9, i64 128, !16, i64 136, !23, i64 144, !16, i64 168, !16, i64 169, !9, i64 176, !9, i64 184, !16, i64 192, !23, i64 200}
!14 = !{!"_ZTS13AnimationBase", !15, i64 8, !16, i64 12}
!15 = !{!"int", !10, i64 0}
!16 = !{!"bool", !10, i64 0}
!17 = !{!"_ZTS7Point2d", !15, i64 0, !15, i64 4}
!18 = !{!"_ZTSSt6vectorIN15Animation_Swirl13SwirlGradientESaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIN15Animation_Swirl13SwirlGradientESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN15Animation_Swirl13SwirlGradientESaIS1_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIN15Animation_Swirl13SwirlGradientESaIS1_EE17_Vector_impl_dataE", !22, i64 0, !22, i64 8, !22, i64 16}
!22 = !{!"any pointer", !10, i64 0}
!23 = !{!"_ZTSSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIN15Animation_Swirl10SwirlColorESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN15Animation_Swirl10SwirlColorESaIS1_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN15Animation_Swirl10SwirlColorESaIS1_EE17_Vector_impl_dataE", !22, i64 0, !22, i64 8, !22, i64 16}
!27 = !{!13, !16, i64 136}
!28 = !{!13, !16, i64 192}
!29 = !{!13, !16, i64 112}
!30 = !{!13, !16, i64 169}
!31 = !{!13, !9, i64 104}


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