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

; 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.Point3d = type { i8, i8, i8 }
%struct.ColorRgb = type { i8, i8, i8 }
%"class.__gnu_cxx::__normal_iterator.0" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.Animation_Police = type { %class.AnimationBase.base, double, %struct.Point3d, %struct.Point3d, i8, i32, i32, %"class.std::vector" }
%class.AnimationBase.base = type <{ ptr, i32, i8 }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<ColorRgb, std::allocator<ColorRgb>>::_Vector_impl" }
%"struct.std::_Vector_base<ColorRgb, std::allocator<ColorRgb>>::_Vector_impl" = type { %"struct.std::_Vector_base<ColorRgb, std::allocator<ColorRgb>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ColorRgb, std::allocator<ColorRgb>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN16Animation_Police10hasLedDataERSt6vectorI8ColorRgbSaIS1_EE(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) unnamed_addr #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca double, align 8
  %7 = alloca i32, align 4
  %8 = alloca %struct.Point3d, align 1
  %9 = alloca %struct.Point3d, align 1
  %10 = alloca i16, align 2
  %11 = alloca i16, align 2
  %12 = alloca i32, align 4
  %13 = alloca %struct.ColorRgb, align 1
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca %struct.ColorRgb, align 1
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca i32, align 4
  %21 = alloca %struct.ColorRgb, align 1
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %25 = load ptr, ptr %3, align 8
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %26) #7
  %28 = getelementptr inbounds %class.Animation_Police, ptr %25, i32 0, i32 7
  %29 = call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #7
  %30 = icmp ne i64 %27, %29
  br i1 %30, label %31, label %147

31:                                               ; preds = %2
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #7
  %34 = icmp ugt i64 %33, 1
  br i1 %34, label %35, label %147

35:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #7
  %38 = trunc i64 %37 to i32
  store i32 %38, ptr %5, align 4, !tbaa !9
  %39 = getelementptr inbounds %class.Animation_Police, ptr %25, i32 0, i32 7
  call void @_ZNSt6vectorI8ColorRgbSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  store double 1.000000e-01, ptr %6, align 8, !tbaa !11
  %40 = getelementptr inbounds %class.Animation_Police, ptr %25, i32 0, i32 1
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %40)
  %42 = load double, ptr %41, align 8, !tbaa !11
  %43 = getelementptr inbounds %class.Animation_Police, ptr %25, i32 0, i32 1
  store double %42, ptr %43, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %44 = load i32, ptr %5, align 4, !tbaa !9
  %45 = sdiv i32 %44, 2
  store i32 %45, ptr %7, align 4, !tbaa !9
  %46 = getelementptr inbounds %class.Animation_Police, ptr %25, i32 0, i32 5
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %46)
  %48 = load i32, ptr %47, align 4, !tbaa !9
  %49 = getelementptr inbounds %class.Animation_Police, ptr %25, i32 0, i32 5
  store i32 %48, ptr %49, align 8, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 3, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 3, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 2, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 2, ptr %11) #7
  %50 = getelementptr inbounds %class.Animation_Police, ptr %25, i32 0, i32 2
  %51 = getelementptr inbounds %struct.Point3d, ptr %50, i32 0, i32 0
  %52 = load i8, ptr %51, align 8, !tbaa !23
  %53 = getelementptr inbounds %class.Animation_Police, ptr %25, i32 0, i32 2
  %54 = getelementptr inbounds %struct.Point3d, ptr %53, i32 0, i32 1
  %55 = load i8, ptr %54, align 1, !tbaa !24
  %56 = getelementptr inbounds %class.Animation_Police, ptr %25, i32 0, i32 2
  %57 = getelementptr inbounds %struct.Point3d, ptr %56, i32 0, i32 2
  %58 = load i8, ptr %57, align 2, !tbaa !25
  %59 = getelementptr inbounds %struct.Point3d, ptr %8, i32 0, i32 1
  %60 = getelementptr inbounds %struct.Point3d, ptr %8, i32 0, i32 2
  call void @_ZN8ColorRgb7rgb2hsvEhhhRtRhS1_(i8 noundef zeroext %52, i8 noundef zeroext %55, i8 noundef zeroext %58, ptr noundef nonnull align 2 dereferenceable(2) %10, ptr noundef nonnull align 1 dereferenceable(1) %59, ptr noundef nonnull align 1 dereferenceable(1) %60)
  %61 = getelementptr inbounds %class.Animation_Police, ptr %25, i32 0, i32 3
  %62 = getelementptr inbounds %struct.Point3d, ptr %61, i32 0, i32 0
  %63 = load i8, ptr %62, align 1, !tbaa !26
  %64 = getelementptr inbounds %class.Animation_Police, ptr %25, i32 0, i32 3
  %65 = getelementptr inbounds %struct.Point3d, ptr %64, i32 0, i32 1
  %66 = load i8, ptr %65, align 1, !tbaa !27
  %67 = getelementptr inbounds %class.Animation_Police, ptr %25, i32 0, i32 3
  %68 = getelementptr inbounds %struct.Point3d, ptr %67, i32 0, i32 2
  %69 = load i8, ptr %68, align 1, !tbaa !28
  %70 = getelementptr inbounds %struct.Point3d, ptr %9, i32 0, i32 1
  %71 = getelementptr inbounds %struct.Point3d, ptr %9, i32 0, i32 2
  call void @_ZN8ColorRgb7rgb2hsvEhhhRtRhS1_(i8 noundef zeroext %63, i8 noundef zeroext %66, i8 noundef zeroext %69, ptr noundef nonnull align 2 dereferenceable(2) %11, ptr noundef nonnull align 1 dereferenceable(1) %70, ptr noundef nonnull align 1 dereferenceable(1) %71)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %72

72:                                               ; preds = %117, %35
  %73 = load i32, ptr %12, align 4, !tbaa !9
  %74 = load i32, ptr %5, align 4, !tbaa !9
  %75 = icmp slt i32 %73, %74
  br i1 %75, label %77, label %76

76:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %120

77:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 3, ptr %13) #7
  call void @_ZN8ColorRgbC2Ehhh(ptr noundef nonnull align 1 dereferenceable(3) %13, i8 noundef zeroext 0, i8 noundef zeroext 0, i8 noundef zeroext 0)
  %78 = load i32, ptr %12, align 4, !tbaa !9
  %79 = getelementptr inbounds %class.Animation_Police, ptr %25, i32 0, i32 5
  %80 = load i32, ptr %79, align 8, !tbaa !22
  %81 = icmp sle i32 %78, %80
  br i1 %81, label %82, label %91

82:                                               ; preds = %77
  %83 = load i16, ptr %10, align 2, !tbaa !29
  %84 = getelementptr inbounds %struct.Point3d, ptr %8, i32 0, i32 1
  %85 = load i8, ptr %84, align 1, !tbaa !31
  %86 = getelementptr inbounds %struct.Point3d, ptr %8, i32 0, i32 2
  %87 = load i8, ptr %86, align 1, !tbaa !32
  %88 = getelementptr inbounds %struct.ColorRgb, ptr %13, i32 0, i32 0
  %89 = getelementptr inbounds %struct.ColorRgb, ptr %13, i32 0, i32 1
  %90 = getelementptr inbounds %struct.ColorRgb, ptr %13, i32 0, i32 2
  call void @_ZN8ColorRgb7hsv2rgbEthhRhS0_S0_(i16 noundef zeroext %83, i8 noundef zeroext %85, i8 noundef zeroext %87, ptr noundef nonnull align 1 dereferenceable(1) %88, ptr noundef nonnull align 1 dereferenceable(1) %89, ptr noundef nonnull align 1 dereferenceable(1) %90)
  br label %115

91:                                               ; preds = %77
  %92 = load i32, ptr %12, align 4, !tbaa !9
  %93 = load i32, ptr %5, align 4, !tbaa !9
  %94 = sdiv i32 %93, 2
  %95 = sub nsw i32 %94, 1
  %96 = icmp sge i32 %92, %95
  br i1 %96, label %97, label %114

97:                                               ; preds = %91
  %98 = load i32, ptr %12, align 4, !tbaa !9
  %99 = load i32, ptr %5, align 4, !tbaa !9
  %100 = sdiv i32 %99, 2
  %101 = getelementptr inbounds %class.Animation_Police, ptr %25, i32 0, i32 5
  %102 = load i32, ptr %101, align 8, !tbaa !22
  %103 = add nsw i32 %100, %102
  %104 = icmp slt i32 %98, %103
  br i1 %104, label %105, label %114

105:                                              ; preds = %97
  %106 = load i16, ptr %11, align 2, !tbaa !29
  %107 = getelementptr inbounds %struct.Point3d, ptr %9, i32 0, i32 1
  %108 = load i8, ptr %107, align 1, !tbaa !31
  %109 = getelementptr inbounds %struct.Point3d, ptr %9, i32 0, i32 2
  %110 = load i8, ptr %109, align 1, !tbaa !32
  %111 = getelementptr inbounds %struct.ColorRgb, ptr %13, i32 0, i32 0
  %112 = getelementptr inbounds %struct.ColorRgb, ptr %13, i32 0, i32 1
  %113 = getelementptr inbounds %struct.ColorRgb, ptr %13, i32 0, i32 2
  call void @_ZN8ColorRgb7hsv2rgbEthhRhS0_S0_(i16 noundef zeroext %106, i8 noundef zeroext %108, i8 noundef zeroext %110, ptr noundef nonnull align 1 dereferenceable(1) %111, ptr noundef nonnull align 1 dereferenceable(1) %112, ptr noundef nonnull align 1 dereferenceable(1) %113)
  br label %114

114:                                              ; preds = %105, %97, %91
  br label %115

115:                                              ; preds = %114, %82
  %116 = getelementptr inbounds %class.Animation_Police, ptr %25, i32 0, i32 7
  call void @_ZNSt6vectorI8ColorRgbSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %116, ptr noundef nonnull align 1 dereferenceable(3) %13)
  call void @llvm.lifetime.end.p0(i64 3, ptr %13) #7
  br label %117

117:                                              ; preds = %115
  %118 = load i32, ptr %12, align 4, !tbaa !9
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %12, align 4, !tbaa !9
  br label %72, !llvm.loop !33

120:                                              ; preds = %76
  %121 = getelementptr inbounds %class.Animation_Police, ptr %25, i32 0, i32 6
  store i32 2, ptr %121, align 4, !tbaa !35
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %122 = getelementptr inbounds %class.Animation_Police, ptr %25, i32 0, i32 1
  %123 = load double, ptr %122, align 8, !tbaa !13
  %124 = load i32, ptr %5, align 4, !tbaa !9
  %125 = sitofp i32 %124 to double
  %126 = fdiv double %123, %125
  store double %126, ptr %14, align 8, !tbaa !11
  br label %127

127:                                              ; preds = %130, %120
  %128 = load double, ptr %14, align 8, !tbaa !11
  %129 = fcmp olt double %128, 5.000000e-02
  br i1 %129, label %130, label %136

130:                                              ; preds = %127
  %131 = getelementptr inbounds %class.Animation_Police, ptr %25, i32 0, i32 6
  %132 = load i32, ptr %131, align 4, !tbaa !35
  %133 = mul nsw i32 %132, 2
  store i32 %133, ptr %131, align 4, !tbaa !35
  %134 = load double, ptr %14, align 8, !tbaa !11
  %135 = fmul double %134, 2.000000e+00
  store double %135, ptr %14, align 8, !tbaa !11
  br label %127, !llvm.loop !36

136:                                              ; preds = %127
  %137 = load double, ptr %14, align 8, !tbaa !11
  %138 = fmul double %137, 1.000000e+03
  %139 = call double @llvm.round.f64(double %138)
  %140 = fptosi double %139 to i32
  call void @_ZN13AnimationBase12SetSleepTimeEi(ptr noundef nonnull align 8 dereferenceable(13) %25, i32 noundef %140)
  %141 = load i32, ptr %5, align 4, !tbaa !9
  %142 = getelementptr inbounds %class.Animation_Police, ptr %25, i32 0, i32 6
  %143 = load i32, ptr %142, align 4, !tbaa !35
  %144 = srem i32 %143, %141
  store i32 %144, ptr %142, align 4, !tbaa !35
  %145 = getelementptr inbounds %class.Animation_Police, ptr %25, i32 0, i32 7
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNSt6vectorI8ColorRgbSaIS0_EE4swapERS2_(ptr noundef nonnull align 8 dereferenceable(24) %145, ptr noundef nonnull align 8 dereferenceable(24) %146) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 3, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 3, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %147

147:                                              ; preds = %136, %31, %2
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %148) #7
  %150 = getelementptr inbounds %class.Animation_Police, ptr %25, i32 0, i32 7
  %151 = call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %150) #7
  %152 = icmp eq i64 %149, %151
  br i1 %152, label %153, label %204

153:                                              ; preds = %147
  %154 = getelementptr inbounds %class.Animation_Police, ptr %25, i32 0, i32 4
  %155 = load i8, ptr %154, align 2, !tbaa !37, !range !38, !noundef !39
  %156 = trunc i8 %155 to i1
  br i1 %156, label %157, label %180

157:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %158

158:                                              ; preds = %176, %157
  %159 = load i32, ptr %15, align 4, !tbaa !9
  %160 = getelementptr inbounds %class.Animation_Police, ptr %25, i32 0, i32 6
  %161 = load i32, ptr %160, align 4, !tbaa !35
  %162 = icmp slt i32 %159, %161
  br i1 %162, label %164, label %163

163:                                              ; preds = %158
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %179

164:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 3, ptr %16) #7
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %165) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %16, ptr align 1 %166, i64 3, i1 false), !tbaa.struct !40
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = call ptr @_ZNSt6vectorI8ColorRgbSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %168) #7
  %170 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %169, ptr %170, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPK8ColorRgbSt6vectorIS1_SaIS1_EEEC2IPS1_vEERKNS0_IT_S6_EE(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  %171 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %17, i32 0, i32 0
  %172 = load ptr, ptr %171, align 8
  %173 = call ptr @_ZNSt6vectorI8ColorRgbSaIS0_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS0_S2_EE(ptr noundef nonnull align 8 dereferenceable(24) %167, ptr %172)
  %174 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %173, ptr %174, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNSt6vectorI8ColorRgbSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %175, ptr noundef nonnull align 1 dereferenceable(3) %16)
  call void @llvm.lifetime.end.p0(i64 3, ptr %16) #7
  br label %176

176:                                              ; preds = %164
  %177 = load i32, ptr %15, align 4, !tbaa !9
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %15, align 4, !tbaa !9
  br label %158, !llvm.loop !42

179:                                              ; preds = %163
  br label %203

180:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %181

181:                                              ; preds = %199, %180
  %182 = load i32, ptr %20, align 4, !tbaa !9
  %183 = getelementptr inbounds %class.Animation_Police, ptr %25, i32 0, i32 6
  %184 = load i32, ptr %183, align 4, !tbaa !35
  %185 = icmp slt i32 %182, %184
  br i1 %185, label %187, label %186

186:                                              ; preds = %181
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %202

187:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 3, ptr %21) #7
  %188 = load ptr, ptr %4, align 8, !tbaa !5
  %189 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %188) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %21, ptr align 1 %189, i64 3, i1 false), !tbaa.struct !40
  %190 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZNSt6vectorI8ColorRgbSaIS0_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %190) #7
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %192 = load ptr, ptr %4, align 8, !tbaa !5
  %193 = call ptr @_ZNSt6vectorI8ColorRgbSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %192) #7
  %194 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %193, ptr %194, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPK8ColorRgbSt6vectorIS1_SaIS1_EEEC2IPS1_vEERKNS0_IT_S6_EE(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  %195 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.0", ptr %22, i32 0, i32 0
  %196 = load ptr, ptr %195, align 8
  %197 = call ptr @_ZNSt6vectorI8ColorRgbSaIS0_EE6insertEN9__gnu_cxx17__normal_iteratorIPKS0_S2_EERS5_(ptr noundef nonnull align 8 dereferenceable(24) %191, ptr %196, ptr noundef nonnull align 1 dereferenceable(3) %21)
  %198 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %197, ptr %198, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 3, ptr %21) #7
  br label %199

199:                                              ; preds = %187
  %200 = load i32, ptr %20, align 4, !tbaa !9
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %20, align 4, !tbaa !9
  br label %181, !llvm.loop !43

202:                                              ; preds = %186
  br label %203

203:                                              ; preds = %202, %179
  br label %204

204:                                              ; preds = %203, %147
  ret i1 true
}

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

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

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

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

declare void @_ZN8ColorRgb7rgb2hsvEhhhRtRhS1_(i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, ptr noundef nonnull align 2 dereferenceable(2), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #5

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

declare void @_ZN8ColorRgb7hsv2rgbEthhRhS0_S0_(i16 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #5

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.round.f64(double) #6

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

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

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

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #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 = { "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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !12, i64 16}
!14 = !{!"_ZTS16Animation_Police", !15, i64 0, !12, i64 16, !17, i64 24, !17, i64 27, !16, i64 30, !10, i64 32, !10, i64 36, !18, i64 40}
!15 = !{!"_ZTS13AnimationBase", !10, i64 8, !16, i64 12}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTS7Point3d", !7, i64 0, !7, i64 1, !7, i64 2}
!18 = !{!"_ZTSSt6vectorI8ColorRgbSaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseI8ColorRgbSaIS0_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI8ColorRgbSaIS0_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseI8ColorRgbSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!14, !10, i64 32}
!23 = !{!14, !7, i64 24}
!24 = !{!14, !7, i64 25}
!25 = !{!14, !7, i64 26}
!26 = !{!14, !7, i64 27}
!27 = !{!14, !7, i64 28}
!28 = !{!14, !7, i64 29}
!29 = !{!30, !30, i64 0}
!30 = !{!"short", !7, i64 0}
!31 = !{!17, !7, i64 1}
!32 = !{!17, !7, i64 2}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!14, !10, i64 36}
!36 = distinct !{!36, !34}
!37 = !{!14, !16, i64 30}
!38 = !{i8 0, i8 2}
!39 = !{}
!40 = !{i64 0, i64 1, !41, i64 1, i64 1, !41, i64 2, i64 1, !41}
!41 = !{!7, !7, i64 0}
!42 = distinct !{!42, !34}
!43 = distinct !{!43, !34}


; 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.Point3d = type { i8, i8, i8 }
%struct.ColorRgb = type { i8, i8, i8 }
%"class.__gnu_cxx::__normal_iterator.0" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

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

; Function Attrs: mustprogress 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) #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN16Animation_Police10hasLedDataERSt6vectorI8ColorRgbSaIS1_EE(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) unnamed_addr #2 align 2 {
  %3 = alloca double, align 8
  %4 = alloca i32, align 4
  %5 = alloca %struct.Point3d, align 1
  %6 = alloca %struct.Point3d, align 1
  %7 = alloca i16, align 2
  %8 = alloca i16, align 2
  %9 = alloca %struct.ColorRgb, align 1
  %10 = alloca %struct.ColorRgb, align 1
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %struct.ColorRgb, align 1
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.0", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = tail call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %17 = getelementptr inbounds i8, ptr %0, i64 40
  %18 = tail call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  %.not = icmp eq i64 %16, %18
  br i1 %.not, label %76, label %19

19:                                               ; preds = %2
  %20 = tail call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %21 = icmp ugt i64 %20, 1
  br i1 %21, label %22, label %76

22:                                               ; preds = %19
  %23 = tail call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %24 = trunc i64 %23 to i32
  tail call void @_ZNSt6vectorI8ColorRgbSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  store double 1.000000e-01, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %0, i64 16
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %25)
  %27 = load double, ptr %26, align 8, !tbaa !5
  store double %27, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  %28 = sdiv i32 %24, 2
  store i32 %28, ptr %4, align 4, !tbaa !20
  %29 = getelementptr inbounds i8, ptr %0, i64 32
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %29)
  %31 = load i32, ptr %30, align 4, !tbaa !20
  store i32 %31, ptr %29, align 8, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %8) #7
  %32 = getelementptr inbounds i8, ptr %0, i64 24
  %33 = load i8, ptr %32, align 8, !tbaa !22
  %34 = getelementptr inbounds i8, ptr %0, i64 25
  %35 = load i8, ptr %34, align 1, !tbaa !23
  %36 = getelementptr inbounds i8, ptr %0, i64 26
  %37 = load i8, ptr %36, align 2, !tbaa !24
  %38 = getelementptr inbounds i8, ptr %5, i64 1
  %39 = getelementptr inbounds i8, ptr %5, i64 2
  call void @_ZN8ColorRgb7rgb2hsvEhhhRtRhS1_(i8 noundef zeroext %33, i8 noundef zeroext %35, i8 noundef zeroext %37, ptr noundef nonnull align 2 dereferenceable(2) %7, ptr noundef nonnull align 1 dereferenceable(1) %38, ptr noundef nonnull align 1 dereferenceable(1) %39)
  %40 = getelementptr inbounds i8, ptr %0, i64 27
  %41 = load i8, ptr %40, align 1, !tbaa !25
  %42 = getelementptr inbounds i8, ptr %0, i64 28
  %43 = load i8, ptr %42, align 4, !tbaa !26
  %44 = getelementptr inbounds i8, ptr %0, i64 29
  %45 = load i8, ptr %44, align 1, !tbaa !27
  %46 = getelementptr inbounds i8, ptr %6, i64 1
  %47 = getelementptr inbounds i8, ptr %6, i64 2
  call void @_ZN8ColorRgb7rgb2hsvEhhhRtRhS1_(i8 noundef zeroext %41, i8 noundef zeroext %43, i8 noundef zeroext %45, ptr noundef nonnull align 2 dereferenceable(2) %8, ptr noundef nonnull align 1 dereferenceable(1) %46, ptr noundef nonnull align 1 dereferenceable(1) %47)
  %48 = icmp sgt i32 %24, 0
  br i1 %48, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %22
  %49 = getelementptr inbounds i8, ptr %9, i64 1
  %50 = getelementptr inbounds i8, ptr %9, i64 2
  %51 = add nsw i32 %28, -1
  br label %57

._crit_edge:                                      ; preds = %64, %22
  %52 = getelementptr inbounds i8, ptr %0, i64 36
  store i32 2, ptr %52, align 4, !tbaa !28
  %53 = load double, ptr %25, align 8, !tbaa !9
  %54 = sitofp i32 %24 to double
  %55 = fdiv double %53, %54
  %56 = fcmp olt double %55, 5.000000e-02
  br i1 %56, label %.lr.ph45, label %70

57:                                               ; preds = %.lr.ph, %64
  %.042 = phi i32 [ 0, %.lr.ph ], [ %65, %64 ]
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %9) #7
  call void @_ZN8ColorRgbC2Ehhh(ptr noundef nonnull align 1 dereferenceable(3) %9, i8 noundef zeroext 0, i8 noundef zeroext 0, i8 noundef zeroext 0)
  %58 = load i32, ptr %29, align 8, !tbaa !21
  %.not37 = icmp sgt i32 %.042, %58
  br i1 %.not37, label %59, label %.sink.split

59:                                               ; preds = %57
  %.not38 = icmp sge i32 %.042, %51
  %60 = add nsw i32 %58, %28
  %61 = icmp slt i32 %.042, %60
  %or.cond = select i1 %.not38, i1 %61, i1 false
  br i1 %or.cond, label %.sink.split, label %64

.sink.split:                                      ; preds = %59, %57
  %.sink58 = phi ptr [ %38, %57 ], [ %46, %59 ]
  %.sink57 = phi ptr [ %39, %57 ], [ %47, %59 ]
  %.sink.in = phi ptr [ %7, %57 ], [ %8, %59 ]
  %.sink = load i16, ptr %.sink.in, align 2, !tbaa !29
  %62 = load i8, ptr %.sink58, align 1, !tbaa !31
  %63 = load i8, ptr %.sink57, align 1, !tbaa !32
  call void @_ZN8ColorRgb7hsv2rgbEthhRhS0_S0_(i16 noundef zeroext %.sink, i8 noundef zeroext %62, i8 noundef zeroext %63, ptr noundef nonnull align 1 dereferenceable(1) %9, ptr noundef nonnull align 1 dereferenceable(1) %49, ptr noundef nonnull align 1 dereferenceable(1) %50)
  br label %64

64:                                               ; preds = %.sink.split, %59
  call void @_ZNSt6vectorI8ColorRgbSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 1 dereferenceable(3) %9)
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %9) #7
  %65 = add nuw nsw i32 %.042, 1
  %exitcond.not = icmp eq i32 %65, %24
  br i1 %exitcond.not, label %._crit_edge, label %57, !llvm.loop !33

.lr.ph45:                                         ; preds = %._crit_edge, %.lr.ph45
  %.03343 = phi double [ %68, %.lr.ph45 ], [ %55, %._crit_edge ]
  %66 = phi i32 [ %67, %.lr.ph45 ], [ 2, %._crit_edge ]
  %67 = shl nsw i32 %66, 1
  %68 = fmul double %.03343, 2.000000e+00
  %69 = fcmp olt double %68, 5.000000e-02
  br i1 %69, label %.lr.ph45, label %._crit_edge46, !llvm.loop !35

._crit_edge46:                                    ; preds = %.lr.ph45
  store i32 %67, ptr %52, align 4, !tbaa !28
  br label %70

70:                                               ; preds = %._crit_edge46, %._crit_edge
  %.033.lcssa = phi double [ %68, %._crit_edge46 ], [ %55, %._crit_edge ]
  %71 = fmul double %.033.lcssa, 1.000000e+03
  %72 = call double @llvm.round.f64(double %71)
  %73 = fptosi double %72 to i32
  call void @_ZN13AnimationBase12SetSleepTimeEi(ptr noundef nonnull align 8 dereferenceable(13) %0, i32 noundef %73)
  %74 = load i32, ptr %52, align 4, !tbaa !28
  %75 = srem i32 %74, %24
  store i32 %75, ptr %52, align 4, !tbaa !28
  call void @_ZNSt6vectorI8ColorRgbSaIS0_EE4swapERS2_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %5) #7
  br label %76

76:                                               ; preds = %70, %19, %2
  %77 = call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %78 = call noundef i64 @_ZNKSt6vectorI8ColorRgbSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #7
  %79 = icmp eq i64 %77, %78
  br i1 %79, label %80, label %.loopexit

80:                                               ; preds = %76
  %81 = getelementptr inbounds i8, ptr %0, i64 30
  %82 = load i8, ptr %81, align 2, !tbaa !36, !range !37, !noundef !38
  %83 = trunc nuw i8 %82 to i1
  %84 = getelementptr inbounds i8, ptr %0, i64 36
  %85 = load i32, ptr %84, align 4, !tbaa !28
  %86 = icmp sgt i32 %85, 0
  br i1 %83, label %.preheader, label %.preheader40

.preheader40:                                     ; preds = %80
  br i1 %86, label %.lr.ph48, label %.loopexit

.preheader:                                       ; preds = %80
  br i1 %86, label %.lr.ph50, label %.loopexit

.lr.ph50:                                         ; preds = %.preheader, %.lr.ph50
  %.03449 = phi i32 [ %91, %.lr.ph50 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %10) #7
  %87 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(3) %10, ptr noundef nonnull align 1 dereferenceable(3) %87, i64 3, i1 false), !tbaa.struct !39
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %88 = call ptr @_ZNSt6vectorI8ColorRgbSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %88, ptr %12, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPK8ColorRgbSt6vectorIS1_SaIS1_EEEC2IPS1_vEERKNS0_IT_S6_EE(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  %89 = load ptr, ptr %11, align 8
  %90 = call ptr @_ZNSt6vectorI8ColorRgbSaIS0_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS0_S2_EE(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr %89)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @_ZNSt6vectorI8ColorRgbSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 1 dereferenceable(3) %10)
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %10) #7
  %91 = add nuw nsw i32 %.03449, 1
  %92 = load i32, ptr %84, align 4, !tbaa !28
  %93 = icmp slt i32 %91, %92
  br i1 %93, label %.lr.ph50, label %.loopexit, !llvm.loop !41

.lr.ph48:                                         ; preds = %.preheader40, %.lr.ph48
  %.03247 = phi i32 [ %98, %.lr.ph48 ], [ 0, %.preheader40 ]
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %13) #7
  %94 = call noundef nonnull align 1 dereferenceable(3) ptr @_ZNSt6vectorI8ColorRgbSaIS0_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(3) %13, ptr noundef nonnull align 1 dereferenceable(3) %94, i64 3, i1 false), !tbaa.struct !39
  call void @_ZNSt6vectorI8ColorRgbSaIS0_EE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %95 = call ptr @_ZNSt6vectorI8ColorRgbSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %95, ptr %15, align 8
  call void @_ZN9__gnu_cxx17__normal_iteratorIPK8ColorRgbSt6vectorIS1_SaIS1_EEEC2IPS1_vEERKNS0_IT_S6_EE(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  %96 = load ptr, ptr %14, align 8
  %97 = call ptr @_ZNSt6vectorI8ColorRgbSaIS0_EE6insertEN9__gnu_cxx17__normal_iteratorIPKS0_S2_EERS5_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr %96, ptr noundef nonnull align 1 dereferenceable(3) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %13) #7
  %98 = add nuw nsw i32 %.03247, 1
  %99 = load i32, ptr %84, align 4, !tbaa !28
  %100 = icmp slt i32 %98, %99
  br i1 %100, label %.lr.ph48, label %.loopexit, !llvm.loop !42

.loopexit:                                        ; preds = %.lr.ph48, %.lr.ph50, %.preheader40, %.preheader, %76
  ret i1 true
}

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

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

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

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

declare void @_ZN8ColorRgb7rgb2hsvEhhhRtRhS1_(i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, ptr noundef nonnull align 2 dereferenceable(2), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #5

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

declare void @_ZN8ColorRgb7hsv2rgbEthhRhS0_S0_(i16 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.round.f64(double) #6

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #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 = { "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 #6 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 16}
!10 = !{!"_ZTS16Animation_Police", !11, i64 0, !6, i64 16, !14, i64 24, !14, i64 27, !13, i64 30, !12, i64 32, !12, i64 36, !15, i64 40}
!11 = !{!"_ZTS13AnimationBase", !12, i64 8, !13, i64 12}
!12 = !{!"int", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTS7Point3d", !7, i64 0, !7, i64 1, !7, i64 2}
!15 = !{!"_ZTSSt6vectorI8ColorRgbSaIS0_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseI8ColorRgbSaIS0_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseI8ColorRgbSaIS0_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseI8ColorRgbSaIS0_EE17_Vector_impl_dataE", !19, i64 0, !19, i64 8, !19, i64 16}
!19 = !{!"any pointer", !7, i64 0}
!20 = !{!12, !12, i64 0}
!21 = !{!10, !12, i64 32}
!22 = !{!10, !7, i64 24}
!23 = !{!10, !7, i64 25}
!24 = !{!10, !7, i64 26}
!25 = !{!10, !7, i64 27}
!26 = !{!10, !7, i64 28}
!27 = !{!10, !7, i64 29}
!28 = !{!10, !12, i64 36}
!29 = !{!30, !30, i64 0}
!30 = !{!"short", !7, i64 0}
!31 = !{!14, !7, i64 1}
!32 = !{!14, !7, i64 2}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = distinct !{!35, !34}
!36 = !{!10, !13, i64 30}
!37 = !{i8 0, i8 2}
!38 = !{}
!39 = !{i64 0, i64 1, !40, i64 1, i64 1, !40, i64 2, i64 1, !40}
!40 = !{!7, !7, i64 0}
!41 = distinct !{!41, !34}
!42 = distinct !{!42, !34}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass