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

; 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.ColorRgb = type { i8, i8, i8 }
%class.Animation_KnightRider = type <{ %class.AnimationBase.base, [3 x i8], double, double, %struct.Point3d, i8, i32, i32, i32, [75 x i8], [5 x i8] }>
%class.AnimationBase.base = type <{ ptr, i32, i8 }>
%struct.Point3d = type { i8, i8, i8 }

; 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 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 @_ZN21Animation_KnightRider4PlayER10HyperImage(ptr noundef nonnull align 8 dereferenceable(123) %0, ptr noundef nonnull align 8 dereferenceable(27) %1) unnamed_addr #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %struct.ColorRgb, align 1
  %10 = alloca %struct.ColorRgb, align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %11 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #4
  store i8 1, ptr %5, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !11
  br label %12

12:                                               ; preds = %174, %2
  %13 = load i32, ptr %6, align 4, !tbaa !11
  %14 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 6
  %15 = load i32, ptr %14, align 4, !tbaa !13
  %16 = icmp slt i32 %13, %15
  br i1 %16, label %18, label %17

17:                                               ; preds = %12
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %177

18:                                               ; preds = %12
  %19 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 8
  %20 = load i32, ptr %19, align 4, !tbaa !18
  %21 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 7
  %22 = load i32, ptr %21, align 8, !tbaa !19
  %23 = add nsw i32 %22, %20
  store i32 %23, ptr %21, align 8, !tbaa !19
  %24 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 7
  %25 = load i32, ptr %24, align 8, !tbaa !19
  %26 = icmp eq i32 %25, -1
  br i1 %26, label %27, label %30

27:                                               ; preds = %18
  %28 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 7
  store i32 1, ptr %28, align 8, !tbaa !19
  %29 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 8
  store i32 1, ptr %29, align 4, !tbaa !18
  br label %38

30:                                               ; preds = %18
  %31 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 7
  %32 = load i32, ptr %31, align 8, !tbaa !19
  %33 = icmp eq i32 %32, 25
  br i1 %33, label %34, label %37

34:                                               ; preds = %30
  %35 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 7
  store i32 23, ptr %35, align 8, !tbaa !19
  %36 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 8
  store i32 -1, ptr %36, align 4, !tbaa !18
  br label %37

37:                                               ; preds = %34, %30
  br label %38

38:                                               ; preds = %37, %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !11
  br label %39

39:                                               ; preds = %128, %38
  %40 = load i32, ptr %8, align 4, !tbaa !11
  %41 = icmp slt i32 %40, 25
  br i1 %41, label %43, label %42

42:                                               ; preds = %39
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %131

43:                                               ; preds = %39
  %44 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 3
  %45 = load double, ptr %44, align 8, !tbaa !20
  %46 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 9
  %47 = load i32, ptr %8, align 4, !tbaa !11
  %48 = mul nsw i32 3, %47
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [75 x i8], ptr %46, i64 0, i64 %49
  %51 = load i8, ptr %50, align 1, !tbaa !21
  %52 = zext i8 %51 to i32
  %53 = sitofp i32 %52 to double
  %54 = fmul double %45, %53
  %55 = fptosi double %54 to i32
  %56 = call noundef i32 @_ZN13AnimationBase5clampEiii(ptr noundef nonnull align 8 dereferenceable(13) %11, i32 noundef %55, i32 noundef 0, i32 noundef 255)
  %57 = trunc i32 %56 to i8
  %58 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 9
  %59 = load i32, ptr %8, align 4, !tbaa !11
  %60 = mul nsw i32 3, %59
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [75 x i8], ptr %58, i64 0, i64 %61
  store i8 %57, ptr %62, align 1, !tbaa !21
  %63 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 3
  %64 = load double, ptr %63, align 8, !tbaa !20
  %65 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 9
  %66 = load i32, ptr %8, align 4, !tbaa !11
  %67 = mul nsw i32 3, %66
  %68 = add nsw i32 %67, 1
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [75 x i8], ptr %65, i64 0, i64 %69
  %71 = load i8, ptr %70, align 1, !tbaa !21
  %72 = zext i8 %71 to i32
  %73 = sitofp i32 %72 to double
  %74 = fmul double %64, %73
  %75 = fptosi double %74 to i32
  %76 = call noundef i32 @_ZN13AnimationBase5clampEiii(ptr noundef nonnull align 8 dereferenceable(13) %11, i32 noundef %75, i32 noundef 0, i32 noundef 255)
  %77 = trunc i32 %76 to i8
  %78 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 9
  %79 = load i32, ptr %8, align 4, !tbaa !11
  %80 = mul nsw i32 3, %79
  %81 = add nsw i32 %80, 1
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [75 x i8], ptr %78, i64 0, i64 %82
  store i8 %77, ptr %83, align 1, !tbaa !21
  %84 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 3
  %85 = load double, ptr %84, align 8, !tbaa !20
  %86 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 9
  %87 = load i32, ptr %8, align 4, !tbaa !11
  %88 = mul nsw i32 3, %87
  %89 = add nsw i32 %88, 2
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [75 x i8], ptr %86, i64 0, i64 %90
  %92 = load i8, ptr %91, align 1, !tbaa !21
  %93 = zext i8 %92 to i32
  %94 = sitofp i32 %93 to double
  %95 = fmul double %85, %94
  %96 = fptosi double %95 to i32
  %97 = call noundef i32 @_ZN13AnimationBase5clampEiii(ptr noundef nonnull align 8 dereferenceable(13) %11, i32 noundef %96, i32 noundef 0, i32 noundef 255)
  %98 = trunc i32 %97 to i8
  %99 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 9
  %100 = load i32, ptr %8, align 4, !tbaa !11
  %101 = mul nsw i32 3, %100
  %102 = add nsw i32 %101, 2
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [75 x i8], ptr %99, i64 0, i64 %103
  store i8 %98, ptr %104, align 1, !tbaa !21
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 3, ptr %9) #4
  %106 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 9
  %107 = load i32, ptr %8, align 4, !tbaa !11
  %108 = mul nsw i32 3, %107
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [75 x i8], ptr %106, i64 0, i64 %109
  %111 = load i8, ptr %110, align 1, !tbaa !21
  %112 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 9
  %113 = load i32, ptr %8, align 4, !tbaa !11
  %114 = mul nsw i32 3, %113
  %115 = add nsw i32 %114, 1
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [75 x i8], ptr %112, i64 0, i64 %116
  %118 = load i8, ptr %117, align 1, !tbaa !21
  %119 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 9
  %120 = load i32, ptr %8, align 4, !tbaa !11
  %121 = mul nsw i32 3, %120
  %122 = add nsw i32 %121, 2
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [75 x i8], ptr %119, i64 0, i64 %123
  %125 = load i8, ptr %124, align 1, !tbaa !21
  call void @_ZN8ColorRgbC2Ehhh(ptr noundef nonnull align 1 dereferenceable(3) %9, i8 noundef zeroext %111, i8 noundef zeroext %118, i8 noundef zeroext %125)
  call void @_ZN10HyperImage6setPenERK8ColorRgb(ptr noundef nonnull align 8 dereferenceable(27) %105, ptr noundef nonnull align 1 dereferenceable(3) %9)
  call void @llvm.lifetime.end.p0(i64 3, ptr %9) #4
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = load i32, ptr %8, align 4, !tbaa !11
  call void @_ZN10HyperImage16drawVerticalLineEiii(ptr noundef nonnull align 8 dereferenceable(27) %126, i32 noundef %127, i32 noundef 0, i32 noundef 24)
  br label %128

128:                                              ; preds = %43
  %129 = load i32, ptr %8, align 4, !tbaa !11
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %8, align 4, !tbaa !11
  br label %39, !llvm.loop !22

131:                                              ; preds = %42
  %132 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 4
  %133 = getelementptr inbounds %struct.Point3d, ptr %132, i32 0, i32 0
  %134 = load i8, ptr %133, align 8, !tbaa !24
  %135 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 9
  %136 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 7
  %137 = load i32, ptr %136, align 8, !tbaa !19
  %138 = mul nsw i32 3, %137
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [75 x i8], ptr %135, i64 0, i64 %139
  store i8 %134, ptr %140, align 1, !tbaa !21
  %141 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 4
  %142 = getelementptr inbounds %struct.Point3d, ptr %141, i32 0, i32 1
  %143 = load i8, ptr %142, align 1, !tbaa !25
  %144 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 9
  %145 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 7
  %146 = load i32, ptr %145, align 8, !tbaa !19
  %147 = mul nsw i32 3, %146
  %148 = add nsw i32 %147, 1
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [75 x i8], ptr %144, i64 0, i64 %149
  store i8 %143, ptr %150, align 1, !tbaa !21
  %151 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 4
  %152 = getelementptr inbounds %struct.Point3d, ptr %151, i32 0, i32 2
  %153 = load i8, ptr %152, align 2, !tbaa !26
  %154 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 9
  %155 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 7
  %156 = load i32, ptr %155, align 8, !tbaa !19
  %157 = mul nsw i32 3, %156
  %158 = add nsw i32 %157, 2
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [75 x i8], ptr %154, i64 0, i64 %159
  store i8 %153, ptr %160, align 1, !tbaa !21
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 3, ptr %10) #4
  %162 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 4
  %163 = getelementptr inbounds %struct.Point3d, ptr %162, i32 0, i32 0
  %164 = load i8, ptr %163, align 8, !tbaa !24
  %165 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 4
  %166 = getelementptr inbounds %struct.Point3d, ptr %165, i32 0, i32 1
  %167 = load i8, ptr %166, align 1, !tbaa !25
  %168 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 4
  %169 = getelementptr inbounds %struct.Point3d, ptr %168, i32 0, i32 2
  %170 = load i8, ptr %169, align 2, !tbaa !26
  call void @_ZN8ColorRgbC2Ehhh(ptr noundef nonnull align 1 dereferenceable(3) %10, i8 noundef zeroext %164, i8 noundef zeroext %167, i8 noundef zeroext %170)
  call void @_ZN10HyperImage6setPenERK8ColorRgb(ptr noundef nonnull align 8 dereferenceable(27) %161, ptr noundef nonnull align 1 dereferenceable(3) %10)
  call void @llvm.lifetime.end.p0(i64 3, ptr %10) #4
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %172 = getelementptr inbounds %class.Animation_KnightRider, ptr %11, i32 0, i32 7
  %173 = load i32, ptr %172, align 8, !tbaa !19
  call void @_ZN10HyperImage16drawVerticalLineEiii(ptr noundef nonnull align 8 dereferenceable(27) %171, i32 noundef %173, i32 noundef 0, i32 noundef 24)
  br label %174

174:                                              ; preds = %131
  %175 = load i32, ptr %6, align 4, !tbaa !11
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %6, align 4, !tbaa !11
  br label %12, !llvm.loop !27

177:                                              ; preds = %17
  %178 = load i8, ptr %5, align 1, !tbaa !9, !range !28, !noundef !29
  %179 = trunc i8 %178 to i1
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #4
  ret i1 %179
}

declare noundef i32 @_ZN13AnimationBase5clampEiii(ptr noundef nonnull align 8 dereferenceable(13), i32 noundef, i32 noundef, i32 noundef) #2

declare void @_ZN10HyperImage6setPenERK8ColorRgb(ptr noundef nonnull align 8 dereferenceable(27), ptr noundef nonnull align 1 dereferenceable(3)) #2

; 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 @_ZN10HyperImage16drawVerticalLineEiii(ptr noundef nonnull align 8 dereferenceable(27), i32 noundef, i32 noundef, i32 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 36}
!14 = !{!"_ZTS21Animation_KnightRider", !15, i64 0, !16, i64 16, !16, i64 24, !17, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !7, i64 48}
!15 = !{!"_ZTS13AnimationBase", !12, i64 8, !10, i64 12}
!16 = !{!"double", !7, i64 0}
!17 = !{!"_ZTS7Point3d", !7, i64 0, !7, i64 1, !7, i64 2}
!18 = !{!14, !12, i64 44}
!19 = !{!14, !12, i64 40}
!20 = !{!14, !16, i64 24}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!14, !7, i64 32}
!25 = !{!14, !7, i64 33}
!26 = !{!14, !7, i64 34}
!27 = distinct !{!27, !23}
!28 = !{i8 0, i8 2}
!29 = !{}


; 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.ColorRgb = type { i8, i8, i8 }

; 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 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 @_ZN21Animation_KnightRider4PlayER10HyperImage(ptr noundef nonnull align 8 dereferenceable(123) %0, ptr noundef nonnull align 8 dereferenceable(27) %1) unnamed_addr #1 align 2 {
  %3 = alloca %struct.ColorRgb, align 1
  %4 = alloca %struct.ColorRgb, align 1
  %5 = getelementptr inbounds i8, ptr %0, i64 36
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %8 = getelementptr inbounds i8, ptr %0, i64 44
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = getelementptr inbounds i8, ptr %0, i64 24
  %11 = getelementptr inbounds i8, ptr %0, i64 48
  %12 = getelementptr inbounds i8, ptr %0, i64 32
  %13 = getelementptr inbounds i8, ptr %0, i64 33
  %14 = getelementptr inbounds i8, ptr %0, i64 34
  br label %15

._crit_edge:                                      ; preds = %21, %2
  ret i1 true

15:                                               ; preds = %.lr.ph, %21
  %.01922 = phi i32 [ 0, %.lr.ph ], [ %41, %21 ]
  %16 = load i32, ptr %8, align 4, !tbaa !14
  %17 = load i32, ptr %9, align 8, !tbaa !15
  %18 = add nsw i32 %17, %16
  store i32 %18, ptr %9, align 8, !tbaa !15
  switch i32 %18, label %.preheader [
    i32 -1, label %.sink.split
    i32 25, label %19
  ]

.preheader:                                       ; preds = %.sink.split, %15
  br label %44

19:                                               ; preds = %15
  br label %.sink.split

.sink.split:                                      ; preds = %15, %19
  %20 = phi <2 x i32> [ <i32 23, i32 -1>, %19 ], [ <i32 1, i32 1>, %15 ]
  store <2 x i32> %20, ptr %9, align 8, !tbaa !16
  br label %.preheader

21:                                               ; preds = %44
  %22 = load i8, ptr %12, align 8, !tbaa !17
  %23 = load i32, ptr %9, align 8, !tbaa !15
  %24 = mul nsw i32 %23, 3
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [75 x i8], ptr %11, i64 0, i64 %25
  store i8 %22, ptr %26, align 1, !tbaa !18
  %27 = load i8, ptr %13, align 1, !tbaa !19
  %28 = load i32, ptr %9, align 8, !tbaa !15
  %29 = mul nsw i32 %28, 3
  %30 = add nsw i32 %29, 1
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [75 x i8], ptr %11, i64 0, i64 %31
  store i8 %27, ptr %32, align 1, !tbaa !18
  %33 = load i8, ptr %14, align 2, !tbaa !20
  %34 = load i32, ptr %9, align 8, !tbaa !15
  %35 = mul nsw i32 %34, 3
  %36 = add nsw i32 %35, 2
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [75 x i8], ptr %11, i64 0, i64 %37
  store i8 %33, ptr %38, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %4) #4
  %39 = load i8, ptr %12, align 8, !tbaa !17
  call void @_ZN8ColorRgbC2Ehhh(ptr noundef nonnull align 1 dereferenceable(3) %4, i8 noundef zeroext %39, i8 noundef zeroext %27, i8 noundef zeroext %33)
  call void @_ZN10HyperImage6setPenERK8ColorRgb(ptr noundef nonnull align 8 dereferenceable(27) %1, ptr noundef nonnull align 1 dereferenceable(3) %4)
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %4) #4
  %40 = load i32, ptr %9, align 8, !tbaa !15
  call void @_ZN10HyperImage16drawVerticalLineEiii(ptr noundef nonnull align 8 dereferenceable(27) %1, i32 noundef %40, i32 noundef 0, i32 noundef 24)
  %41 = add nuw nsw i32 %.01922, 1
  %42 = load i32, ptr %5, align 4, !tbaa !5
  %43 = icmp slt i32 %41, %42
  br i1 %43, label %15, label %._crit_edge, !llvm.loop !21

44:                                               ; preds = %.preheader, %44
  %indvars.iv = phi i64 [ %indvars.iv.next, %44 ], [ 0, %.preheader ]
  %45 = load double, ptr %10, align 8, !tbaa !23
  %46 = mul nuw nsw i64 %indvars.iv, 3
  %47 = getelementptr inbounds [75 x i8], ptr %11, i64 0, i64 %46
  %48 = load i8, ptr %47, align 1, !tbaa !18
  %49 = uitofp i8 %48 to double
  %50 = fmul double %45, %49
  %51 = fptosi double %50 to i32
  %52 = call noundef i32 @_ZN13AnimationBase5clampEiii(ptr noundef nonnull align 8 dereferenceable(13) %0, i32 noundef %51, i32 noundef 0, i32 noundef 255)
  %53 = trunc i32 %52 to i8
  store i8 %53, ptr %47, align 1, !tbaa !18
  %54 = load double, ptr %10, align 8, !tbaa !23
  %55 = add nuw nsw i64 %46, 1
  %56 = getelementptr inbounds [75 x i8], ptr %11, i64 0, i64 %55
  %57 = load i8, ptr %56, align 1, !tbaa !18
  %58 = uitofp i8 %57 to double
  %59 = fmul double %54, %58
  %60 = fptosi double %59 to i32
  %61 = call noundef i32 @_ZN13AnimationBase5clampEiii(ptr noundef nonnull align 8 dereferenceable(13) %0, i32 noundef %60, i32 noundef 0, i32 noundef 255)
  %62 = trunc i32 %61 to i8
  store i8 %62, ptr %56, align 1, !tbaa !18
  %63 = load double, ptr %10, align 8, !tbaa !23
  %64 = add nuw nsw i64 %46, 2
  %65 = getelementptr inbounds [75 x i8], ptr %11, i64 0, i64 %64
  %66 = load i8, ptr %65, align 1, !tbaa !18
  %67 = uitofp i8 %66 to double
  %68 = fmul double %63, %67
  %69 = fptosi double %68 to i32
  %70 = call noundef i32 @_ZN13AnimationBase5clampEiii(ptr noundef nonnull align 8 dereferenceable(13) %0, i32 noundef %69, i32 noundef 0, i32 noundef 255)
  %71 = trunc i32 %70 to i8
  store i8 %71, ptr %65, align 1, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %3) #4
  %72 = load i8, ptr %47, align 1, !tbaa !18
  %73 = load i8, ptr %56, align 1, !tbaa !18
  call void @_ZN8ColorRgbC2Ehhh(ptr noundef nonnull align 1 dereferenceable(3) %3, i8 noundef zeroext %72, i8 noundef zeroext %73, i8 noundef zeroext %71)
  call void @_ZN10HyperImage6setPenERK8ColorRgb(ptr noundef nonnull align 8 dereferenceable(27) %1, ptr noundef nonnull align 1 dereferenceable(3) %3)
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %3) #4
  %74 = trunc nuw nsw i64 %indvars.iv to i32
  call void @_ZN10HyperImage16drawVerticalLineEiii(ptr noundef nonnull align 8 dereferenceable(27) %1, i32 noundef %74, i32 noundef 0, i32 noundef 24)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 25
  br i1 %exitcond.not, label %21, label %44, !llvm.loop !24
}

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

declare void @_ZN10HyperImage6setPenERK8ColorRgb(ptr noundef nonnull align 8 dereferenceable(27), ptr noundef nonnull align 1 dereferenceable(3)) local_unnamed_addr #2

; 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 @_ZN10HyperImage16drawVerticalLineEiii(ptr noundef nonnull align 8 dereferenceable(27), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { 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, !8, i64 36}
!6 = !{!"_ZTS21Animation_KnightRider", !7, i64 0, !12, i64 16, !12, i64 24, !13, i64 32, !8, i64 36, !8, i64 40, !8, i64 44, !9, i64 48}
!7 = !{!"_ZTS13AnimationBase", !8, i64 8, !11, i64 12}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{!"double", !9, i64 0}
!13 = !{!"_ZTS7Point3d", !9, i64 0, !9, i64 1, !9, i64 2}
!14 = !{!6, !8, i64 44}
!15 = !{!6, !8, i64 40}
!16 = !{!8, !8, i64 0}
!17 = !{!6, !9, i64 32}
!18 = !{!9, !9, i64 0}
!19 = !{!6, !9, i64 33}
!20 = !{!6, !9, i64 34}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!6, !12, i64 24}
!24 = distinct !{!24, !22}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass