; LLVM IR from thalium/icebox :: third_party/virtualbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal (Output8bitPixel)

; 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.EFI_GRAPHICS_OUTPUT_BLT_PIXEL = type { i8, i8, i8, i8 }
%struct._EFI_IMAGE_INPUT = type { i32, i16, i16, ptr }
%struct._EFI_HII_IMAGE_PALETTE_INFO = type <{ i16, [1 x %struct._EFI_HII_RGB_PIXEL] }>
%struct._EFI_HII_RGB_PIXEL = type { i8, i8, i8 }

@.str = external hidden unnamed_addr constant [147 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1

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

declare zeroext i8 @DebugAssertEnabled() #1

declare void @DebugAssert(ptr noundef, i64 noundef, ptr noundef) #1

declare ptr @CopyMem(ptr noundef, ptr noundef, i64 noundef) #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @CopyRgbToGopPixel(ptr noundef, ptr noundef, i64 noundef) #2

declare ptr @AllocateZeroPool(i64 noundef) #1

declare ptr @ZeroMem(ptr noundef, i64 noundef) #1

declare void @FreePool(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @Output8bitPixel(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i16, align 2
  %8 = alloca i16, align 2
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca [256 x %struct.EFI_GRAPHICS_OUTPUT_BLT_PIXEL], align 16
  %12 = alloca ptr, align 8
  %13 = alloca i16, align 2
  %14 = alloca i16, align 2
  %15 = alloca i8, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 2, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 1024, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 2, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 2, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #4
  br label %16

16:                                               ; preds = %3
  %17 = call zeroext i8 @DebugAssertEnabled()
  %18 = icmp ne i8 %17, 0
  br i1 %18, label %19, label %30

19:                                               ; preds = %16
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %28

22:                                               ; preds = %19
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %25, label %28

25:                                               ; preds = %22
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %29, label %28

28:                                               ; preds = %25, %22, %19
  call void @DebugAssert(ptr noundef @.str, i64 noundef 431, ptr noundef @.str.5)
  br label %29

29:                                               ; preds = %28, %25
  br label %30

30:                                               ; preds = %29, %16
  br label %31

31:                                               ; preds = %30
  br label %32

32:                                               ; preds = %31
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct._EFI_IMAGE_INPUT, ptr %33, i32 0, i32 3
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  store ptr %35, ptr %10, align 8, !tbaa !5
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = call ptr @CopyMem(ptr noundef %13, ptr noundef %36, i64 noundef 2)
  %38 = load i16, ptr %13, align 2, !tbaa !13
  %39 = zext i16 %38 to i64
  %40 = add i64 %39, 2
  %41 = trunc i64 %40 to i16
  store i16 %41, ptr %13, align 2, !tbaa !13
  %42 = load i16, ptr %13, align 2, !tbaa !13
  %43 = zext i16 %42 to i64
  %44 = call ptr @AllocateZeroPool(i64 noundef %43)
  store ptr %44, ptr %12, align 8, !tbaa !5
  br label %45

45:                                               ; preds = %32
  %46 = call zeroext i8 @DebugAssertEnabled()
  %47 = icmp ne i8 %46, 0
  br i1 %47, label %48, label %53

48:                                               ; preds = %45
  %49 = load ptr, ptr %12, align 8, !tbaa !5
  %50 = icmp ne ptr %49, null
  br i1 %50, label %52, label %51

51:                                               ; preds = %48
  call void @DebugAssert(ptr noundef @.str, i64 noundef 441, ptr noundef @.str.6)
  br label %52

52:                                               ; preds = %51, %48
  br label %53

53:                                               ; preds = %52, %45
  br label %54

54:                                               ; preds = %53
  br label %55

55:                                               ; preds = %54
  %56 = load ptr, ptr %12, align 8, !tbaa !5
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = load i16, ptr %13, align 2, !tbaa !13
  %59 = zext i16 %58 to i64
  %60 = call ptr @CopyMem(ptr noundef %56, ptr noundef %57, i64 noundef %59)
  %61 = load ptr, ptr %12, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct._EFI_HII_IMAGE_PALETTE_INFO, ptr %61, i32 0, i32 0
  %63 = load i16, ptr %62, align 1, !tbaa !14
  %64 = zext i16 %63 to i64
  %65 = udiv i64 %64, 3
  %66 = trunc i64 %65 to i16
  store i16 %66, ptr %14, align 2, !tbaa !13
  %67 = getelementptr inbounds [256 x %struct.EFI_GRAPHICS_OUTPUT_BLT_PIXEL], ptr %11, i64 0, i64 0
  %68 = call ptr @ZeroMem(ptr noundef %67, i64 noundef 1024)
  %69 = getelementptr inbounds [256 x %struct.EFI_GRAPHICS_OUTPUT_BLT_PIXEL], ptr %11, i64 0, i64 0
  %70 = load ptr, ptr %12, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct._EFI_HII_IMAGE_PALETTE_INFO, ptr %70, i32 0, i32 1
  %72 = getelementptr inbounds [1 x %struct._EFI_HII_RGB_PIXEL], ptr %71, i64 0, i64 0
  %73 = load i16, ptr %14, align 2, !tbaa !13
  %74 = zext i16 %73 to i64
  call void @CopyRgbToGopPixel(ptr noundef %69, ptr noundef %72, i64 noundef %74)
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  call void @FreePool(ptr noundef %75)
  store i16 0, ptr %8, align 2, !tbaa !13
  br label %76

76:                                               ; preds = %123, %55
  %77 = load i16, ptr %8, align 2, !tbaa !13
  %78 = zext i16 %77 to i32
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct._EFI_IMAGE_INPUT, ptr %79, i32 0, i32 2
  %81 = load i16, ptr %80, align 2, !tbaa !16
  %82 = zext i16 %81 to i32
  %83 = icmp slt i32 %78, %82
  br i1 %83, label %84, label %126

84:                                               ; preds = %76
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct._EFI_IMAGE_INPUT, ptr %85, i32 0, i32 1
  %87 = load i16, ptr %86, align 4, !tbaa !17
  %88 = zext i16 %87 to i32
  %89 = load i16, ptr %8, align 2, !tbaa !13
  %90 = zext i16 %89 to i32
  %91 = mul nsw i32 %88, %90
  %92 = sext i32 %91 to i64
  store i64 %92, ptr %9, align 8, !tbaa !18
  store i16 0, ptr %7, align 2, !tbaa !13
  br label %93

93:                                               ; preds = %119, %84
  %94 = load i16, ptr %7, align 2, !tbaa !13
  %95 = zext i16 %94 to i32
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct._EFI_IMAGE_INPUT, ptr %96, i32 0, i32 1
  %98 = load i16, ptr %97, align 4, !tbaa !17
  %99 = zext i16 %98 to i32
  %100 = icmp slt i32 %95, %99
  br i1 %100, label %101, label %122

101:                                              ; preds = %93
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = load i64, ptr %9, align 8, !tbaa !18
  %104 = getelementptr inbounds i8, ptr %102, i64 %103
  %105 = load i16, ptr %7, align 2, !tbaa !13
  %106 = zext i16 %105 to i32
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds i8, ptr %104, i64 %107
  %109 = load i8, ptr %108, align 1, !tbaa !20
  store i8 %109, ptr %15, align 1, !tbaa !20
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = load i64, ptr %9, align 8, !tbaa !18
  %112 = load i16, ptr %7, align 2, !tbaa !13
  %113 = zext i16 %112 to i64
  %114 = add i64 %111, %113
  %115 = getelementptr inbounds %struct.EFI_GRAPHICS_OUTPUT_BLT_PIXEL, ptr %110, i64 %114
  %116 = load i8, ptr %15, align 1, !tbaa !20
  %117 = zext i8 %116 to i64
  %118 = getelementptr inbounds [256 x %struct.EFI_GRAPHICS_OUTPUT_BLT_PIXEL], ptr %11, i64 0, i64 %117
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %115, ptr align 4 %118, i64 4, i1 false), !tbaa.struct !21
  br label %119

119:                                              ; preds = %101
  %120 = load i16, ptr %7, align 2, !tbaa !13
  %121 = add i16 %120, 1
  store i16 %121, ptr %7, align 2, !tbaa !13
  br label %93, !llvm.loop !22

122:                                              ; preds = %93
  br label %123

123:                                              ; preds = %122
  %124 = load i16, ptr %8, align 2, !tbaa !13
  %125 = add i16 %124, 1
  store i16 %125, ptr %8, align 2, !tbaa !13
  br label %76, !llvm.loop !24

126:                                              ; preds = %76
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 1024, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %7) #4
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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/C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"_EFI_IMAGE_INPUT", !11, i64 0, !12, i64 4, !12, i64 6, !6, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!15, !12, i64 0}
!15 = !{!"_EFI_HII_IMAGE_PALETTE_INFO", !12, i64 0, !7, i64 2}
!16 = !{!10, !12, i64 6}
!17 = !{!10, !12, i64 4}
!18 = !{!19, !19, i64 0}
!19 = !{!"long long", !7, i64 0}
!20 = !{!7, !7, i64 0}
!21 = !{i64 0, i64 1, !20, i64 1, i64 1, !20, i64 2, i64 1, !20, i64 3, i64 1, !20}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}


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

@.str = external hidden unnamed_addr constant [147 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1

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

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #1

declare void @DebugAssert(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare ptr @CopyMem(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #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: nounwind uwtable
declare dso_local void @CopyRgbToGopPixel(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare ptr @AllocateZeroPool(i64 noundef) local_unnamed_addr #1

declare ptr @ZeroMem(ptr noundef, i64 noundef) local_unnamed_addr #1

declare void @FreePool(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @Output8bitPixel(ptr noundef readonly %0, ptr noundef readonly %1, ptr noundef %2) local_unnamed_addr #2 {
  %4 = alloca [256 x %struct.EFI_GRAPHICS_OUTPUT_BLT_PIXEL], align 16
  %5 = alloca i16, align 2
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %5) #3
  %6 = tail call zeroext i8 @DebugAssertEnabled() #3
  %.not = icmp eq i8 %6, 0
  br i1 %.not, label %12, label %7

7:                                                ; preds = %3
  %8 = icmp ne ptr %0, null
  %9 = icmp ne ptr %1, null
  %or.cond = and i1 %8, %9
  %10 = icmp ne ptr %2, null
  %or.cond3 = and i1 %or.cond, %10
  br i1 %or.cond3, label %12, label %11

11:                                               ; preds = %7
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 431, ptr noundef nonnull @.str.5) #3
  br label %12

12:                                               ; preds = %11, %7, %3
  %13 = getelementptr inbounds i8, ptr %0, i64 8
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  %15 = call ptr @CopyMem(ptr noundef nonnull %5, ptr noundef %2, i64 noundef 2) #3
  %16 = load i16, ptr %5, align 2, !tbaa !12
  %17 = add i16 %16, 2
  store i16 %17, ptr %5, align 2, !tbaa !12
  %18 = zext i16 %17 to i64
  %19 = call ptr @AllocateZeroPool(i64 noundef %18) #3
  %20 = call zeroext i8 @DebugAssertEnabled() #3
  %21 = icmp eq i8 %20, 0
  %22 = icmp ne ptr %19, null
  %or.cond5 = select i1 %21, i1 true, i1 %22
  br i1 %or.cond5, label %24, label %23

23:                                               ; preds = %12
  call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 441, ptr noundef nonnull @.str.6) #3
  br label %24

24:                                               ; preds = %23, %12
  %25 = load i16, ptr %5, align 2, !tbaa !12
  %26 = zext i16 %25 to i64
  %27 = call ptr @CopyMem(ptr noundef %19, ptr noundef %2, i64 noundef %26) #3
  %28 = load i16, ptr %19, align 1, !tbaa !13
  %29 = udiv i16 %28, 3
  %30 = call ptr @ZeroMem(ptr noundef nonnull %4, i64 noundef 1024) #3
  %31 = getelementptr inbounds i8, ptr %19, i64 2
  %32 = zext nneg i16 %29 to i64
  call void @CopyRgbToGopPixel(ptr noundef nonnull %4, ptr noundef nonnull %31, i64 noundef %32)
  call void @FreePool(ptr noundef nonnull %19) #3
  %33 = getelementptr inbounds i8, ptr %0, i64 6
  %34 = load i16, ptr %33, align 2, !tbaa !15
  %.not39 = icmp eq i16 %34, 0
  br i1 %.not39, label %._crit_edge38, label %.lr.ph37

.lr.ph37:                                         ; preds = %24
  %35 = getelementptr inbounds i8, ptr %0, i64 4
  %36 = load i16, ptr %35, align 4, !tbaa !16
  %.not40 = icmp eq i16 %36, 0
  br i1 %.not40, label %._crit_edge38, label %.lr.ph37.split

.lr.ph37.split:                                   ; preds = %.lr.ph37, %._crit_edge
  %37 = phi i16 [ %54, %._crit_edge ], [ %34, %.lr.ph37 ]
  %38 = phi i16 [ %55, %._crit_edge ], [ %36, %.lr.ph37 ]
  %39 = phi i16 [ %56, %._crit_edge ], [ 1, %.lr.ph37 ]
  %indvars.iv44 = phi i64 [ %indvars.iv.next45, %._crit_edge ], [ 0, %.lr.ph37 ]
  %.not41 = icmp eq i16 %39, 0
  br i1 %.not41, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph37.split
  %40 = zext i16 %38 to i64
  %41 = mul nuw nsw i64 %indvars.iv44, %40
  %42 = getelementptr inbounds i8, ptr %1, i64 %41
  %43 = getelementptr inbounds %struct.EFI_GRAPHICS_OUTPUT_BLT_PIXEL, ptr %14, i64 %41
  br label %44

44:                                               ; preds = %.lr.ph, %44
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %44 ]
  %45 = getelementptr inbounds i8, ptr %42, i64 %indvars.iv
  %46 = load i8, ptr %45, align 1, !tbaa !17
  %47 = getelementptr inbounds %struct.EFI_GRAPHICS_OUTPUT_BLT_PIXEL, ptr %43, i64 %indvars.iv
  %48 = zext i8 %46 to i64
  %49 = getelementptr inbounds [256 x %struct.EFI_GRAPHICS_OUTPUT_BLT_PIXEL], ptr %4, i64 0, i64 %48
  %50 = load i32, ptr %49, align 4
  store i32 %50, ptr %47, align 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %51 = load i16, ptr %35, align 4, !tbaa !16
  %52 = zext i16 %51 to i64
  %53 = icmp ult i64 %indvars.iv.next, %52
  br i1 %53, label %44, label %._crit_edge.loopexit, !llvm.loop !18

._crit_edge.loopexit:                             ; preds = %44
  %.pre = load i16, ptr %33, align 2, !tbaa !15
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph37.split
  %54 = phi i16 [ %.pre, %._crit_edge.loopexit ], [ %37, %.lr.ph37.split ]
  %55 = phi i16 [ %51, %._crit_edge.loopexit ], [ %38, %.lr.ph37.split ]
  %56 = phi i16 [ %51, %._crit_edge.loopexit ], [ 0, %.lr.ph37.split ]
  %indvars.iv.next45 = add nuw nsw i64 %indvars.iv44, 1
  %57 = zext i16 %54 to i64
  %58 = icmp ult i64 %indvars.iv.next45, %57
  br i1 %58, label %.lr.ph37.split, label %._crit_edge38, !llvm.loop !20

._crit_edge38:                                    ; preds = %._crit_edge, %.lr.ph37, %24
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %4) #3
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !11, i64 8}
!6 = !{!"_EFI_IMAGE_INPUT", !7, i64 0, !10, i64 4, !10, i64 6, !11, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!10, !10, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_EFI_HII_IMAGE_PALETTE_INFO", !10, i64 0, !8, i64 2}
!15 = !{!6, !10, i64 6}
!16 = !{!6, !10, i64 4}
!17 = !{!8, !8, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19, !21}
!21 = !{!"llvm.loop.unswitch.partial.disable"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass