; LLVM IR from HANDS-FREE/OpenRE :: 3_OS/STM32F1/GUI/STemWin/Demo (GUIDEMO_ColorBar)

; 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.GUI_FONT = type { ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, %union.anon, i8, i8, i8 }
%union.anon = type { ptr }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [121 x i8], align 1
@GUI_FontRounded22 = external constant %struct.GUI_FONT, align 8
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@GUI_Font16_ASCII = external constant %struct.GUI_FONT, align 8
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@GUI_Font8_ASCII = external constant %struct.GUI_FONT, align 8
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @GUIDEMO_ColorBar() #0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca [80 x i8], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 80, ptr %3) #4
  call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 80, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %12 = call i32 @LCD_GetXSize()
  store i32 %12, ptr %6, align 4, !tbaa !5
  %13 = call i32 @LCD_GetYSize()
  store i32 %13, ptr %7, align 4, !tbaa !5
  call void @GUIDEMO_ShowIntro(ptr noundef @.str, ptr noundef @.str.1)
  call void @GUIDEMO_DrawBk(i32 noundef 1)
  call void @GUI_SetColor(i64 noundef 16777215)
  %14 = call ptr @GUI_SetFont(ptr noundef @GUI_FontRounded22)
  %15 = load i32, ptr %6, align 4, !tbaa !5
  %16 = ashr i32 %15, 1
  call void @GUI_DispStringHCenterAt(ptr noundef @.str.2, i32 noundef %16, i32 noundef 12)
  %17 = call ptr @GUI_SetFont(ptr noundef @GUI_Font16_ASCII)
  call void @GUI_DispStringAt(ptr noundef @.str.3, i32 noundef 1, i32 noundef 43)
  call void @GUI_DispStringAt(ptr noundef @.str.4, i32 noundef 1, i32 noundef 63)
  call void @GUI_DispStringAt(ptr noundef @.str.5, i32 noundef 1, i32 noundef 83)
  call void @GUI_DispStringAt(ptr noundef @.str.6, i32 noundef 1, i32 noundef 98)
  call void @GUI_DispStringAt(ptr noundef @.str.7, i32 noundef 1, i32 noundef 113)
  call void @GUI_DispStringAt(ptr noundef @.str.8, i32 noundef 1, i32 noundef 133)
  call void @GUI_DispStringAt(ptr noundef @.str.9, i32 noundef 1, i32 noundef 153)
  %18 = call ptr @GUI_SetFont(ptr noundef @GUI_Font8_ASCII)
  %19 = call i32 @LCD_GetBitsPerPixel()
  store i32 %19, ptr %5, align 4, !tbaa !5
  %20 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
  %21 = load i32, ptr %5, align 4, !tbaa !5
  call void @GUIDEMO_AddIntToString(ptr noundef %20, i32 noundef %21)
  %22 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
  call void @GUIDEMO_AddStringToString(ptr noundef %22, ptr noundef @.str.10)
  %23 = call i64 @LCD_GetDevCap(i32 noundef 9)
  %24 = trunc i64 %23 to i32
  store i32 %24, ptr %4, align 4, !tbaa !5
  %25 = load i32, ptr %4, align 4, !tbaa !5
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %27, label %32

27:                                               ; preds = %0
  %28 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
  call void @GUIDEMO_AddStringToString(ptr noundef %28, ptr noundef @.str.11)
  %29 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
  %30 = load i32, ptr %4, align 4, !tbaa !5
  call void @GUIDEMO_AddIntToString(ptr noundef %29, i32 noundef %30)
  %31 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
  call void @GUIDEMO_AddStringToString(ptr noundef %31, ptr noundef @.str.12)
  br label %32

32:                                               ; preds = %27, %0
  %33 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
  %34 = load i32, ptr %7, align 4, !tbaa !5
  %35 = sub nsw i32 %34, 25
  call void @GUI_DispStringAt(ptr noundef %33, i32 noundef 12, i32 noundef %35)
  %36 = call i32 @GUIDEMO_GetTime()
  store i32 %36, ptr %9, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %61, %60, %32
  %38 = call i32 @GUIDEMO_GetTime()
  %39 = load i32, ptr %9, align 4, !tbaa !5
  %40 = sub nsw i32 %38, %39
  %41 = icmp slt i32 %40, 6000
  br i1 %41, label %42, label %45

42:                                               ; preds = %37
  %43 = call i32 @GUIDEMO_CheckCancel()
  %44 = icmp eq i32 %43, 0
  br label %45

45:                                               ; preds = %42, %37
  %46 = phi i1 [ false, %37 ], [ %44, %42 ]
  br i1 %46, label %47, label %101

47:                                               ; preds = %45
  %48 = call i32 @GUIDEMO_GetTime()
  %49 = load i32, ptr %9, align 4, !tbaa !5
  %50 = sub nsw i32 %48, %49
  %51 = srem i32 %50, 2000
  store i32 %51, ptr %8, align 4, !tbaa !5
  %52 = load i32, ptr %8, align 4, !tbaa !5
  %53 = sdiv i32 %52, 1000
  store i32 %53, ptr %10, align 4, !tbaa !5
  %54 = load i32, ptr %10, align 4, !tbaa !5
  %55 = mul nsw i32 %54, 1000
  %56 = load i32, ptr %8, align 4, !tbaa !5
  %57 = sub nsw i32 %56, %55
  store i32 %57, ptr %8, align 4, !tbaa !5
  %58 = load i32, ptr %8, align 4, !tbaa !5
  %59 = icmp sgt i32 %58, 500
  br i1 %59, label %60, label %61

60:                                               ; preds = %47
  br label %37, !llvm.loop !9

61:                                               ; preds = %47
  %62 = load i32, ptr %8, align 4, !tbaa !5
  %63 = mul nsw i32 %62, 255
  %64 = sdiv i32 %63, 500
  %65 = load i32, ptr %10, align 4, !tbaa !5
  %66 = mul nsw i32 %65, 255
  %67 = xor i32 %64, %66
  store i32 %67, ptr %11, align 4, !tbaa !5
  %68 = load i32, ptr %11, align 4, !tbaa !5
  %69 = mul nsw i32 65793, %68
  %70 = add nsw i32 0, %69
  %71 = sext i32 %70 to i64
  store i64 %71, ptr %1, align 8, !tbaa !11
  %72 = load i64, ptr %1, align 8, !tbaa !11
  %73 = sub i64 16777215, %72
  store i64 %73, ptr %2, align 8, !tbaa !11
  %74 = load i32, ptr %6, align 4, !tbaa !5
  %75 = load i64, ptr %1, align 8, !tbaa !11
  call void @GUI_DrawGradientH(i32 noundef 60, i32 noundef 43, i32 noundef %74, i32 noundef 52, i64 noundef 255, i64 noundef %75)
  %76 = load i32, ptr %6, align 4, !tbaa !5
  %77 = load i64, ptr %2, align 8, !tbaa !11
  call void @GUI_DrawGradientH(i32 noundef 60, i32 noundef 53, i32 noundef %76, i32 noundef 62, i64 noundef 255, i64 noundef %77)
  %78 = load i32, ptr %6, align 4, !tbaa !5
  %79 = load i64, ptr %1, align 8, !tbaa !11
  call void @GUI_DrawGradientH(i32 noundef 60, i32 noundef 63, i32 noundef %78, i32 noundef 72, i64 noundef 65280, i64 noundef %79)
  %80 = load i32, ptr %6, align 4, !tbaa !5
  %81 = load i64, ptr %2, align 8, !tbaa !11
  call void @GUI_DrawGradientH(i32 noundef 60, i32 noundef 73, i32 noundef %80, i32 noundef 82, i64 noundef 65280, i64 noundef %81)
  %82 = load i32, ptr %6, align 4, !tbaa !5
  %83 = load i64, ptr %1, align 8, !tbaa !11
  call void @GUI_DrawGradientH(i32 noundef 60, i32 noundef 83, i32 noundef %82, i32 noundef 92, i64 noundef 16711680, i64 noundef %83)
  %84 = load i32, ptr %6, align 4, !tbaa !5
  %85 = load i64, ptr %2, align 8, !tbaa !11
  call void @GUI_DrawGradientH(i32 noundef 60, i32 noundef 93, i32 noundef %84, i32 noundef 102, i64 noundef 16711680, i64 noundef %85)
  %86 = load i32, ptr %6, align 4, !tbaa !5
  %87 = load i64, ptr %1, align 8, !tbaa !11
  call void @GUI_DrawGradientH(i32 noundef 60, i32 noundef 103, i32 noundef %86, i32 noundef 112, i64 noundef 8421504, i64 noundef %87)
  %88 = load i32, ptr %6, align 4, !tbaa !5
  %89 = load i64, ptr %2, align 8, !tbaa !11
  call void @GUI_DrawGradientH(i32 noundef 60, i32 noundef 113, i32 noundef %88, i32 noundef 122, i64 noundef 65535, i64 noundef %89)
  %90 = load i32, ptr %6, align 4, !tbaa !5
  %91 = load i64, ptr %1, align 8, !tbaa !11
  call void @GUI_DrawGradientH(i32 noundef 60, i32 noundef 123, i32 noundef %90, i32 noundef 132, i64 noundef 65535, i64 noundef %91)
  %92 = load i32, ptr %6, align 4, !tbaa !5
  %93 = load i64, ptr %2, align 8, !tbaa !11
  call void @GUI_DrawGradientH(i32 noundef 60, i32 noundef 133, i32 noundef %92, i32 noundef 142, i64 noundef 16776960, i64 noundef %93)
  %94 = load i32, ptr %6, align 4, !tbaa !5
  %95 = load i64, ptr %1, align 8, !tbaa !11
  call void @GUI_DrawGradientH(i32 noundef 60, i32 noundef 143, i32 noundef %94, i32 noundef 152, i64 noundef 16776960, i64 noundef %95)
  %96 = load i32, ptr %6, align 4, !tbaa !5
  %97 = load i64, ptr %2, align 8, !tbaa !11
  call void @GUI_DrawGradientH(i32 noundef 60, i32 noundef 153, i32 noundef %96, i32 noundef 162, i64 noundef 16711935, i64 noundef %97)
  %98 = load i32, ptr %6, align 4, !tbaa !5
  %99 = load i64, ptr %1, align 8, !tbaa !11
  call void @GUI_DrawGradientH(i32 noundef 60, i32 noundef 163, i32 noundef %98, i32 noundef 172, i64 noundef 16711935, i64 noundef %99)
  %100 = call i32 @GUI_Exec()
  br label %37, !llvm.loop !9

101:                                              ; preds = %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #4
  ret void
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

declare i32 @LCD_GetXSize() #3

declare i32 @LCD_GetYSize() #3

declare void @GUIDEMO_ShowIntro(ptr noundef, ptr noundef) #3

declare void @GUIDEMO_DrawBk(i32 noundef) #3

declare void @GUI_SetColor(i64 noundef) #3

declare ptr @GUI_SetFont(ptr noundef) #3

declare void @GUI_DispStringHCenterAt(ptr noundef, i32 noundef, i32 noundef) #3

declare void @GUI_DispStringAt(ptr noundef, i32 noundef, i32 noundef) #3

declare i32 @LCD_GetBitsPerPixel() #3

declare void @GUIDEMO_AddIntToString(ptr noundef, i32 noundef) #3

declare void @GUIDEMO_AddStringToString(ptr noundef, ptr noundef) #3

declare i64 @LCD_GetDevCap(i32 noundef) #3

declare i32 @GUIDEMO_GetTime() #3

declare i32 @GUIDEMO_CheckCancel() #3

declare void @GUI_DrawGradientH(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, i64 noundef) #3

declare i32 @GUI_Exec() #3

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}


; 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.GUI_FONT = type { ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, %union.anon, i8, i8, i8 }
%union.anon = type { ptr }

@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [121 x i8], align 1
@GUI_FontRounded22 = external constant %struct.GUI_FONT, align 8
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@GUI_Font16_ASCII = external constant %struct.GUI_FONT, align 8
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@GUI_Font8_ASCII = external constant %struct.GUI_FONT, align 8
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @GUIDEMO_ColorBar() local_unnamed_addr #0 {
  %1 = alloca [80 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %1) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(80) %1, i8 0, i64 80, i1 false)
  %2 = tail call i32 @LCD_GetXSize() #4
  %3 = tail call i32 @LCD_GetYSize() #4
  tail call void @GUIDEMO_ShowIntro(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1) #4
  tail call void @GUIDEMO_DrawBk(i32 noundef 1) #4
  tail call void @GUI_SetColor(i64 noundef 16777215) #4
  %4 = tail call ptr @GUI_SetFont(ptr noundef nonnull @GUI_FontRounded22) #4
  %5 = ashr i32 %2, 1
  tail call void @GUI_DispStringHCenterAt(ptr noundef nonnull @.str.2, i32 noundef %5, i32 noundef 12) #4
  %6 = tail call ptr @GUI_SetFont(ptr noundef nonnull @GUI_Font16_ASCII) #4
  tail call void @GUI_DispStringAt(ptr noundef nonnull @.str.3, i32 noundef 1, i32 noundef 43) #4
  tail call void @GUI_DispStringAt(ptr noundef nonnull @.str.4, i32 noundef 1, i32 noundef 63) #4
  tail call void @GUI_DispStringAt(ptr noundef nonnull @.str.5, i32 noundef 1, i32 noundef 83) #4
  tail call void @GUI_DispStringAt(ptr noundef nonnull @.str.6, i32 noundef 1, i32 noundef 98) #4
  tail call void @GUI_DispStringAt(ptr noundef nonnull @.str.7, i32 noundef 1, i32 noundef 113) #4
  tail call void @GUI_DispStringAt(ptr noundef nonnull @.str.8, i32 noundef 1, i32 noundef 133) #4
  tail call void @GUI_DispStringAt(ptr noundef nonnull @.str.9, i32 noundef 1, i32 noundef 153) #4
  %7 = tail call ptr @GUI_SetFont(ptr noundef nonnull @GUI_Font8_ASCII) #4
  %8 = tail call i32 @LCD_GetBitsPerPixel() #4
  call void @GUIDEMO_AddIntToString(ptr noundef nonnull %1, i32 noundef %8) #4
  call void @GUIDEMO_AddStringToString(ptr noundef nonnull %1, ptr noundef nonnull @.str.10) #4
  %9 = call i64 @LCD_GetDevCap(i32 noundef 9) #4
  %10 = trunc i64 %9 to i32
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %12, label %11

11:                                               ; preds = %0
  call void @GUIDEMO_AddStringToString(ptr noundef nonnull %1, ptr noundef nonnull @.str.11) #4
  call void @GUIDEMO_AddIntToString(ptr noundef nonnull %1, i32 noundef %10) #4
  call void @GUIDEMO_AddStringToString(ptr noundef nonnull %1, ptr noundef nonnull @.str.12) #4
  br label %12

12:                                               ; preds = %11, %0
  %13 = add nsw i32 %3, -25
  call void @GUI_DispStringAt(ptr noundef nonnull %1, i32 noundef 12, i32 noundef %13) #4
  %14 = call i32 @GUIDEMO_GetTime() #4
  %15 = call i32 @GUIDEMO_GetTime() #4
  %16 = sub nsw i32 %15, %14
  %17 = icmp slt i32 %16, 6000
  br i1 %17, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %12, %.backedge
  %18 = call i32 @GUIDEMO_CheckCancel() #4
  %19 = icmp eq i32 %18, 0
  br i1 %19, label %20, label %.critedge

20:                                               ; preds = %.lr.ph
  %21 = call i32 @GUIDEMO_GetTime() #4
  %22 = sub nsw i32 %21, %14
  %23 = srem i32 %22, 2000
  %.lhs.trunc = trunc nsw i32 %23 to i16
  %24 = sdiv i16 %.lhs.trunc, 1000
  %.sext = sext i16 %24 to i32
  %.neg = mul nsw i32 %.sext, -1000
  %25 = add nsw i32 %.neg, %23
  %26 = icmp sgt i32 %25, 500
  br i1 %26, label %.backedge, label %27

27:                                               ; preds = %20
  %28 = mul nsw i32 %25, 255
  %29 = sdiv i32 %28, 500
  %30 = mul nsw i32 %.sext, 255
  %31 = xor i32 %29, %30
  %32 = mul nsw i32 %31, 65793
  %33 = sext i32 %32 to i64
  %34 = sub nsw i64 16777215, %33
  call void @GUI_DrawGradientH(i32 noundef 60, i32 noundef 43, i32 noundef %2, i32 noundef 52, i64 noundef 255, i64 noundef %33) #4
  call void @GUI_DrawGradientH(i32 noundef 60, i32 noundef 53, i32 noundef %2, i32 noundef 62, i64 noundef 255, i64 noundef %34) #4
  call void @GUI_DrawGradientH(i32 noundef 60, i32 noundef 63, i32 noundef %2, i32 noundef 72, i64 noundef 65280, i64 noundef %33) #4
  call void @GUI_DrawGradientH(i32 noundef 60, i32 noundef 73, i32 noundef %2, i32 noundef 82, i64 noundef 65280, i64 noundef %34) #4
  call void @GUI_DrawGradientH(i32 noundef 60, i32 noundef 83, i32 noundef %2, i32 noundef 92, i64 noundef 16711680, i64 noundef %33) #4
  call void @GUI_DrawGradientH(i32 noundef 60, i32 noundef 93, i32 noundef %2, i32 noundef 102, i64 noundef 16711680, i64 noundef %34) #4
  call void @GUI_DrawGradientH(i32 noundef 60, i32 noundef 103, i32 noundef %2, i32 noundef 112, i64 noundef 8421504, i64 noundef %33) #4
  call void @GUI_DrawGradientH(i32 noundef 60, i32 noundef 113, i32 noundef %2, i32 noundef 122, i64 noundef 65535, i64 noundef %34) #4
  call void @GUI_DrawGradientH(i32 noundef 60, i32 noundef 123, i32 noundef %2, i32 noundef 132, i64 noundef 65535, i64 noundef %33) #4
  call void @GUI_DrawGradientH(i32 noundef 60, i32 noundef 133, i32 noundef %2, i32 noundef 142, i64 noundef 16776960, i64 noundef %34) #4
  call void @GUI_DrawGradientH(i32 noundef 60, i32 noundef 143, i32 noundef %2, i32 noundef 152, i64 noundef 16776960, i64 noundef %33) #4
  call void @GUI_DrawGradientH(i32 noundef 60, i32 noundef 153, i32 noundef %2, i32 noundef 162, i64 noundef 16711935, i64 noundef %34) #4
  call void @GUI_DrawGradientH(i32 noundef 60, i32 noundef 163, i32 noundef %2, i32 noundef 172, i64 noundef 16711935, i64 noundef %33) #4
  %35 = call i32 @GUI_Exec() #4
  br label %.backedge

.backedge:                                        ; preds = %27, %20
  %36 = call i32 @GUIDEMO_GetTime() #4
  %37 = sub nsw i32 %36, %14
  %38 = icmp slt i32 %37, 6000
  br i1 %38, label %.lr.ph, label %.critedge, !llvm.loop !5

.critedge:                                        ; preds = %.lr.ph, %.backedge, %12
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %1) #4
  ret void
}

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

declare i32 @LCD_GetXSize() local_unnamed_addr #3

declare i32 @LCD_GetYSize() local_unnamed_addr #3

declare void @GUIDEMO_ShowIntro(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @GUIDEMO_DrawBk(i32 noundef) local_unnamed_addr #3

declare void @GUI_SetColor(i64 noundef) local_unnamed_addr #3

declare ptr @GUI_SetFont(ptr noundef) local_unnamed_addr #3

declare void @GUI_DispStringHCenterAt(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @GUI_DispStringAt(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare i32 @LCD_GetBitsPerPixel() local_unnamed_addr #3

declare void @GUIDEMO_AddIntToString(ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @GUIDEMO_AddStringToString(ptr noundef, ptr noundef) local_unnamed_addr #3

declare i64 @LCD_GetDevCap(i32 noundef) local_unnamed_addr #3

declare i32 @GUIDEMO_GetTime() local_unnamed_addr #3

declare i32 @GUIDEMO_CheckCancel() local_unnamed_addr #3

declare void @GUI_DrawGradientH(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, i64 noundef) local_unnamed_addr #3

declare i32 @GUI_Exec() local_unnamed_addr #3

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass