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

; 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_AtomicSwirl = external dso_local unnamed_addr constant { [10 x ptr] }, align 8

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

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

31:                                               ; preds = %27
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 1 dereferenceable(4) %3)
          to label %32 unwind label %131

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

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

43:                                               ; preds = %39
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 1 dereferenceable(4) %6)
          to label %44 unwind label %135

44:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %45 = getelementptr inbounds %class.Animation_Swirl, ptr %14, i32 0, i32 15
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %46 = getelementptr inbounds %"struct.Animation_Swirl::SwirlColor", ptr %7, i32 0, i32 0
  store i8 0, ptr %46, align 1, !tbaa !29
  %47 = getelementptr inbounds i8, ptr %46, i64 1
  store i8 0, ptr %47, align 1, !tbaa !29
  %48 = getelementptr inbounds i8, ptr %46, i64 2
  store i8 0, ptr %48, align 1, !tbaa !29
  %49 = getelementptr inbounds i8, ptr %46, i64 3
  %50 = getelementptr inbounds i8, ptr %46, i64 4
  br label %51

51:                                               ; preds = %51, %44
  %52 = phi ptr [ %49, %44 ], [ %53, %51 ]
  store i8 0, ptr %52, align 1, !tbaa !29
  %53 = getelementptr inbounds i8, ptr %52, i64 1
  %54 = icmp eq ptr %53, %50
  br i1 %54, label %55, label %51

55:                                               ; preds = %51
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %45, ptr noundef nonnull align 1 dereferenceable(4) %7)
          to label %56 unwind label %139

56:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  %57 = getelementptr inbounds %class.Animation_Swirl, ptr %14, i32 0, i32 15
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %58 = getelementptr inbounds %"struct.Animation_Swirl::SwirlColor", ptr %8, i32 0, i32 0
  store i8 0, ptr %58, align 1, !tbaa !29
  %59 = getelementptr inbounds i8, ptr %58, i64 1
  store i8 0, ptr %59, align 1, !tbaa !29
  %60 = getelementptr inbounds i8, ptr %58, i64 2
  store i8 0, ptr %60, align 1, !tbaa !29
  %61 = getelementptr inbounds i8, ptr %58, i64 3
  %62 = getelementptr inbounds i8, ptr %58, i64 4
  br label %63

63:                                               ; preds = %63, %56
  %64 = phi ptr [ %61, %56 ], [ %65, %63 ]
  store i8 0, ptr %64, align 1, !tbaa !29
  %65 = getelementptr inbounds i8, ptr %64, i64 1
  %66 = icmp eq ptr %65, %62
  br i1 %66, label %67, label %63

67:                                               ; preds = %63
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %57, ptr noundef nonnull align 1 dereferenceable(4) %8)
          to label %68 unwind label %143

68:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %69 = getelementptr inbounds %class.Animation_Swirl, ptr %14, i32 0, i32 15
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %70 = getelementptr inbounds %"struct.Animation_Swirl::SwirlColor", ptr %9, i32 0, i32 0
  store i8 -1, ptr %70, align 1, !tbaa !29
  %71 = getelementptr inbounds i8, ptr %70, i64 1
  store i8 -1, ptr %71, align 1, !tbaa !29
  %72 = getelementptr inbounds i8, ptr %70, i64 2
  store i8 0, ptr %72, align 1, !tbaa !29
  %73 = getelementptr inbounds i8, ptr %70, i64 3
  %74 = getelementptr inbounds i8, ptr %70, i64 4
  br label %75

75:                                               ; preds = %75, %68
  %76 = phi ptr [ %73, %68 ], [ %77, %75 ]
  store i8 0, ptr %76, align 1, !tbaa !29
  %77 = getelementptr inbounds i8, ptr %76, i64 1
  %78 = icmp eq ptr %77, %74
  br i1 %78, label %79, label %75

79:                                               ; preds = %75
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %69, ptr noundef nonnull align 1 dereferenceable(4) %9)
          to label %80 unwind label %147

80:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  %81 = getelementptr inbounds %class.Animation_Swirl, ptr %14, i32 0, i32 15
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %82 = getelementptr inbounds %"struct.Animation_Swirl::SwirlColor", ptr %10, i32 0, i32 0
  store i8 0, ptr %82, align 1, !tbaa !29
  %83 = getelementptr inbounds i8, ptr %82, i64 1
  store i8 0, ptr %83, align 1, !tbaa !29
  %84 = getelementptr inbounds i8, ptr %82, i64 2
  store i8 0, ptr %84, align 1, !tbaa !29
  %85 = getelementptr inbounds i8, ptr %82, i64 3
  %86 = getelementptr inbounds i8, ptr %82, i64 4
  br label %87

87:                                               ; preds = %87, %80
  %88 = phi ptr [ %85, %80 ], [ %89, %87 ]
  store i8 0, ptr %88, align 1, !tbaa !29
  %89 = getelementptr inbounds i8, ptr %88, i64 1
  %90 = icmp eq ptr %89, %86
  br i1 %90, label %91, label %87

91:                                               ; preds = %87
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %81, ptr noundef nonnull align 1 dereferenceable(4) %10)
          to label %92 unwind label %151

92:                                               ; preds = %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  %93 = getelementptr inbounds %class.Animation_Swirl, ptr %14, i32 0, i32 15
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %94 = getelementptr inbounds %"struct.Animation_Swirl::SwirlColor", ptr %11, i32 0, i32 0
  store i8 0, ptr %94, align 1, !tbaa !29
  %95 = getelementptr inbounds i8, ptr %94, i64 1
  store i8 0, ptr %95, align 1, !tbaa !29
  %96 = getelementptr inbounds i8, ptr %94, i64 2
  store i8 0, ptr %96, align 1, !tbaa !29
  %97 = getelementptr inbounds i8, ptr %94, i64 3
  %98 = getelementptr inbounds i8, ptr %94, i64 4
  br label %99

99:                                               ; preds = %99, %92
  %100 = phi ptr [ %97, %92 ], [ %101, %99 ]
  store i8 0, ptr %100, align 1, !tbaa !29
  %101 = getelementptr inbounds i8, ptr %100, i64 1
  %102 = icmp eq ptr %101, %98
  br i1 %102, label %103, label %99

103:                                              ; preds = %99
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %93, ptr noundef nonnull align 1 dereferenceable(4) %11)
          to label %104 unwind label %155

104:                                              ; preds = %103
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  %105 = getelementptr inbounds %class.Animation_Swirl, ptr %14, i32 0, i32 15
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %106 = getelementptr inbounds %"struct.Animation_Swirl::SwirlColor", ptr %12, i32 0, i32 0
  store i8 -1, ptr %106, align 1, !tbaa !29
  %107 = getelementptr inbounds i8, ptr %106, i64 1
  store i8 -1, ptr %107, align 1, !tbaa !29
  %108 = getelementptr inbounds i8, ptr %106, i64 2
  store i8 0, ptr %108, align 1, !tbaa !29
  %109 = getelementptr inbounds i8, ptr %106, i64 3
  %110 = getelementptr inbounds i8, ptr %106, i64 4
  br label %111

111:                                              ; preds = %111, %104
  %112 = phi ptr [ %109, %104 ], [ %113, %111 ]
  store i8 0, ptr %112, align 1, !tbaa !29
  %113 = getelementptr inbounds i8, ptr %112, i64 1
  %114 = icmp eq ptr %113, %110
  br i1 %114, label %115, label %111

115:                                              ; preds = %111
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %105, ptr noundef nonnull align 1 dereferenceable(4) %12)
          to label %116 unwind label %159

116:                                              ; preds = %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  %117 = getelementptr inbounds %class.Animation_Swirl, ptr %14, i32 0, i32 15
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %118 = getelementptr inbounds %"struct.Animation_Swirl::SwirlColor", ptr %13, i32 0, i32 0
  store i8 0, ptr %118, align 1, !tbaa !29
  %119 = getelementptr inbounds i8, ptr %118, i64 1
  store i8 0, ptr %119, align 1, !tbaa !29
  %120 = getelementptr inbounds i8, ptr %118, i64 2
  store i8 0, ptr %120, align 1, !tbaa !29
  %121 = getelementptr inbounds i8, ptr %118, i64 3
  %122 = getelementptr inbounds i8, ptr %118, i64 4
  br label %123

123:                                              ; preds = %123, %116
  %124 = phi ptr [ %121, %116 ], [ %125, %123 ]
  store i8 0, ptr %124, align 1, !tbaa !29
  %125 = getelementptr inbounds i8, ptr %124, i64 1
  %126 = icmp eq ptr %125, %122
  br i1 %126, label %127, label %123

127:                                              ; preds = %123
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %117, ptr noundef nonnull align 1 dereferenceable(4) %13)
          to label %128 unwind label %163

128:                                              ; preds = %127
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  %129 = getelementptr inbounds %class.Animation_Swirl, ptr %14, i32 0, i32 14
  store i8 0, ptr %129, align 8, !tbaa !30
  %130 = getelementptr inbounds %class.Animation_Swirl, ptr %14, i32 0, i32 16
  store i8 0, ptr %130, align 8, !tbaa !31
  ret void

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

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

139:                                              ; preds = %55
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %4, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %167

143:                                              ; preds = %67
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %4, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %167

147:                                              ; preds = %79
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %4, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %167

151:                                              ; preds = %91
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %4, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %167

155:                                              ; preds = %103
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %4, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %167

159:                                              ; preds = %115
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %4, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %167

163:                                              ; preds = %127
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %4, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %167

167:                                              ; preds = %163, %159, %155, %151, %147, %143, %139, %135, %131
  call void @_ZN15Animation_SwirlD2Ev(ptr noundef nonnull align 8 dereferenceable(224) %14) #5
  br label %168

168:                                              ; preds = %167
  %169 = load ptr, ptr %4, align 8
  %170 = load i32, ptr %5, align 4
  %171 = insertvalue { ptr, i32 } poison, ptr %169, 0
  %172 = insertvalue { ptr, i32 } %171, i32 %170, 1
  resume { ptr, i32 } %172
}

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 104}
!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 120}
!27 = !{!12, !21, i64 128}
!28 = !{!12, !15, i64 112}
!29 = !{!7, !7, i64 0}
!30 = !{!12, !15, i64 136}
!31 = !{!12, !15, i64 168}


; 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_AtomicSwirl = external dso_local unnamed_addr constant { [10 x ptr] }, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN21Animation_AtomicSwirlC2Ev(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
  tail call void @_ZN15Animation_SwirlC2Ev(ptr noundef nonnull align 8 dereferenceable(224) %0)
  store ptr getelementptr inbounds inrange(-16, 64) (i8, ptr @_ZTV21Animation_AtomicSwirl, i64 16), ptr %0, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 144
  tail call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  %12 = getelementptr inbounds i8, ptr %0, i64 200
  tail call void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  %13 = getelementptr inbounds i8, ptr %0, i64 104
  store double 2.500000e+01, ptr %13, align 8, !tbaa !8
  %14 = getelementptr inbounds i8, ptr %0, i64 120
  store <2 x double> <double 5.000000e-01, double 5.000000e-01>, ptr %14, align 8, !tbaa !25
  %15 = getelementptr inbounds i8, ptr %0, i64 112
  store i8 0, ptr %15, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 0, ptr %2, align 4
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 1 dereferenceable(4) %2)
          to label %16 unwind label %27

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 -1, i8 -1, i8 0, i8 0>, ptr %3, align 4, !tbaa !27
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 1 dereferenceable(4) %3)
          to label %17 unwind label %29

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 i32 0, ptr %4, align 4
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 1 dereferenceable(4) %4)
          to label %18 unwind label %31

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 i32 0, ptr %5, align 4
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 1 dereferenceable(4) %5)
          to label %19 unwind label %33

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 -1, i8 0, i8 0>, ptr %6, align 4, !tbaa !27
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 1 dereferenceable(4) %6)
          to label %20 unwind label %35

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 i32 0, ptr %7, align 4
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 1 dereferenceable(4) %7)
          to label %21 unwind label %37

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) %11, ptr noundef nonnull align 1 dereferenceable(4) %8)
          to label %22 unwind label %39

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 -1, i8 0, i8 0>, ptr %9, align 4, !tbaa !27
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 1 dereferenceable(4) %9)
          to label %23 unwind label %41

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 i32 0, ptr %10, align 4
  invoke void @_ZNSt6vectorIN15Animation_Swirl10SwirlColorESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 1 dereferenceable(4) %10)
          to label %24 unwind label %43

24:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  %25 = getelementptr inbounds i8, ptr %0, i64 136
  store i8 0, ptr %25, align 8, !tbaa !28
  %26 = getelementptr inbounds i8, ptr %0, i64 168
  store i8 0, ptr %26, align 8, !tbaa !29
  ret void

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

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

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

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

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

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

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

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

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

45:                                               ; preds = %43, %41, %39, %37, %35, %33, %31, %29, %27
  %.pn = phi { ptr, i32 } [ %44, %43 ], [ %42, %41 ], [ %40, %39 ], [ %38, %37 ], [ %36, %35 ], [ %34, %33 ], [ %32, %31 ], [ %30, %29 ], [ %28, %27 ]
  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, !20, i64 104}
!9 = !{!"_ZTS15Animation_Swirl", !10, i64 0, !14, i64 16, !14, i64 24, !11, i64 32, !11, i64 36, !13, i64 40, !11, i64 44, !11, i64 48, !15, i64 56, !15, i64 80, !20, i64 104, !13, i64 112, !20, i64 120, !20, i64 128, !13, i64 136, !21, i64 144, !13, i64 168, !13, i64 169, !20, i64 176, !20, i64 184, !13, i64 192, !21, i64 200}
!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 = !{!"double", !12, 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", !19, i64 0, !19, i64 8, !19, i64 16}
!25 = !{!20, !20, i64 0}
!26 = !{!9, !13, i64 112}
!27 = !{!12, !12, i64 0}
!28 = !{!9, !13, i64 136}
!29 = !{!9, !13, i64 168}


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