; LLVM IR from thalium/icebox :: third_party/virtualbox/src/VBox/Devices/EFI/Firmware/ShellPkg/Library (ShellCommandConsistMappingInitialize)

; 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_BOOT_SERVICES = type { %struct.EFI_TABLE_HEADER, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.EFI_TABLE_HEADER = type { i64, i32, i32, i32, i32 }

@.str = external hidden unnamed_addr constant [155 x i8], align 1
@gBS = external global ptr, align 8
@.str.20 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [20 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 ptr @AllocateZeroPool(i64 noundef) #1

declare zeroext i8 @DebugAssertEnabled() #1

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

declare void @FreePool(ptr 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 ptr @GetHIDevicePath(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i64 @ShellCommandConsistMappingInitialize(ptr noundef %0) #2 {
  %2 = alloca i64, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  store ptr null, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr @gBS, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %13, i32 0, i32 37
  %15 = load ptr, ptr %14, align 8, !tbaa !9
  %16 = call i64 %15(i32 noundef 0, ptr noundef null, ptr noundef null, ptr noundef %5, ptr noundef %4)
  store i64 %16, ptr %11, align 8, !tbaa !14
  br label %17

17:                                               ; preds = %1
  %18 = call zeroext i8 @DebugAssertEnabled()
  %19 = icmp ne i8 %18, 0
  br i1 %19, label %20, label %40

20:                                               ; preds = %17
  %21 = load i64, ptr %11, align 8, !tbaa !14
  %22 = icmp slt i64 %21, 0
  br i1 %22, label %23, label %39

23:                                               ; preds = %20
  br label %24

24:                                               ; preds = %23
  %25 = call zeroext i8 @DebugPrintEnabled()
  %26 = icmp ne i8 %25, 0
  br i1 %26, label %27, label %36

27:                                               ; preds = %24
  br label %28

28:                                               ; preds = %27
  %29 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 2147483648)
  %30 = icmp ne i8 %29, 0
  br i1 %30, label %31, label %33

31:                                               ; preds = %28
  %32 = load i64, ptr %11, align 8, !tbaa !14
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 2147483648, ptr noundef @.str.20, i64 noundef %32)
  br label %33

33:                                               ; preds = %31, %28
  br label %34

34:                                               ; preds = %33
  br label %35

35:                                               ; preds = %34
  br label %36

36:                                               ; preds = %35, %24
  br label %37

37:                                               ; preds = %36
  br label %38

38:                                               ; preds = %37
  call void @DebugAssert(ptr noundef @.str, i64 noundef 1260, ptr noundef @.str.21)
  br label %39

39:                                               ; preds = %38, %20
  br label %40

40:                                               ; preds = %39, %17
  br label %41

41:                                               ; preds = %40
  br label %42

42:                                               ; preds = %41
  %43 = load i64, ptr %5, align 8, !tbaa !14
  %44 = add i64 %43, 1
  %45 = mul i64 %44, 8
  %46 = call ptr @AllocateZeroPool(i64 noundef %45)
  store ptr %46, ptr %7, align 8, !tbaa !5
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = icmp eq ptr %47, null
  br i1 %48, label %49, label %50

49:                                               ; preds = %42
  store i64 -9223372036854775799, ptr %2, align 8
  store i32 1, ptr %12, align 4
  br label %125

50:                                               ; preds = %42
  store i64 0, ptr %6, align 8, !tbaa !14
  br label %51

51:                                               ; preds = %101, %50
  %52 = load i64, ptr %6, align 8, !tbaa !14
  %53 = load i64, ptr %5, align 8, !tbaa !14
  %54 = icmp ult i64 %52, %53
  br i1 %54, label %55, label %104

55:                                               ; preds = %51
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = load i64, ptr %6, align 8, !tbaa !14
  %58 = getelementptr inbounds ptr, ptr %56, i64 %57
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  %60 = call ptr @DevicePathFromHandle(ptr noundef %59)
  store ptr %60, ptr %8, align 8, !tbaa !5
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = icmp eq ptr %61, null
  br i1 %62, label %63, label %64

63:                                               ; preds = %55
  br label %101

64:                                               ; preds = %55
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = call ptr @GetHIDevicePath(ptr noundef %65)
  store ptr %66, ptr %9, align 8, !tbaa !5
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = icmp eq ptr %67, null
  br i1 %68, label %69, label %70

69:                                               ; preds = %64
  br label %101

70:                                               ; preds = %64
  store i64 0, ptr %10, align 8, !tbaa !14
  br label %71

71:                                               ; preds = %86, %70
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = load i64, ptr %10, align 8, !tbaa !14
  %74 = getelementptr inbounds ptr, ptr %72, i64 %73
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  %76 = icmp ne ptr %75, null
  br i1 %76, label %77, label %89

77:                                               ; preds = %71
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = load i64, ptr %10, align 8, !tbaa !14
  %80 = getelementptr inbounds ptr, ptr %78, i64 %79
  %81 = call i64 @DevicePathCompare(ptr noundef %80, ptr noundef %9)
  %82 = icmp eq i64 %81, 0
  br i1 %82, label %83, label %85

83:                                               ; preds = %77
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  call void @FreePool(ptr noundef %84)
  br label %89

85:                                               ; preds = %77
  br label %86

86:                                               ; preds = %85
  %87 = load i64, ptr %10, align 8, !tbaa !14
  %88 = add i64 %87, 1
  store i64 %88, ptr %10, align 8, !tbaa !14
  br label %71, !llvm.loop !15

89:                                               ; preds = %83, %71
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = load i64, ptr %10, align 8, !tbaa !14
  %92 = getelementptr inbounds ptr, ptr %90, i64 %91
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  %94 = icmp eq ptr %93, null
  br i1 %94, label %95, label %100

95:                                               ; preds = %89
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = load i64, ptr %10, align 8, !tbaa !14
  %99 = getelementptr inbounds ptr, ptr %97, i64 %98
  store ptr %96, ptr %99, align 8, !tbaa !5
  br label %100

100:                                              ; preds = %95, %89
  br label %101

101:                                              ; preds = %100, %69, %63
  %102 = load i64, ptr %6, align 8, !tbaa !14
  %103 = add i64 %102, 1
  store i64 %103, ptr %6, align 8, !tbaa !14
  br label %51, !llvm.loop !17

104:                                              ; preds = %51
  store i64 0, ptr %10, align 8, !tbaa !14
  br label %105

105:                                              ; preds = %112, %104
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  %107 = load i64, ptr %10, align 8, !tbaa !14
  %108 = getelementptr inbounds ptr, ptr %106, i64 %107
  %109 = load ptr, ptr %108, align 8, !tbaa !5
  %110 = icmp ne ptr %109, null
  br i1 %110, label %111, label %115

111:                                              ; preds = %105
  br label %112

112:                                              ; preds = %111
  %113 = load i64, ptr %10, align 8, !tbaa !14
  %114 = add i64 %113, 1
  store i64 %114, ptr %10, align 8, !tbaa !14
  br label %105, !llvm.loop !18

115:                                              ; preds = %105
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %117 = load i64, ptr %10, align 8, !tbaa !14
  call void @PerformQuickSort(ptr noundef %116, i64 noundef %117, i64 noundef 8, ptr noundef @DevicePathCompare)
  %118 = load ptr, ptr %7, align 8, !tbaa !5
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %118, ptr %119, align 8, !tbaa !5
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = icmp ne ptr %120, null
  br i1 %121, label %122, label %124

122:                                              ; preds = %115
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  call void @FreePool(ptr noundef %123)
  br label %124

124:                                              ; preds = %122, %115
  store i64 0, ptr %2, align 8
  store i32 1, ptr %12, align 4
  br label %125

125:                                              ; preds = %124, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  %126 = load i64, ptr %2, align 8
  ret i64 %126
}

declare zeroext i8 @DebugPrintEnabled() #1

declare zeroext i8 @DebugPrintLevelEnabled(i64 noundef) #1

declare void @DebugPrint(i64 noundef, ptr noundef, ...) #1

declare ptr @DevicePathFromHandle(ptr noundef) #1

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

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

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 = { 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 312}
!10 = !{!"", !11, i64 0, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368}
!11 = !{!"", !12, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20}
!12 = !{!"long long", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !12, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}


; 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"

@.str = external hidden unnamed_addr constant [155 x i8], align 1
@gBS = external local_unnamed_addr global ptr, align 8
@.str.20 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [20 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 ptr @AllocateZeroPool(i64 noundef) local_unnamed_addr #1

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #1

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

declare void @FreePool(ptr 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 ptr @GetHIDevicePath(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local range(i64 -9223372036854775799, 1) i64 @ShellCommandConsistMappingInitialize(ptr nocapture noundef writeonly %0) local_unnamed_addr #2 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  store ptr null, ptr %2, align 8, !tbaa !5
  %5 = load ptr, ptr @gBS, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %5, i64 312
  %7 = load ptr, ptr %6, align 8, !tbaa !9
  %8 = call i64 %7(i32 noundef 0, ptr noundef null, ptr noundef null, ptr noundef nonnull %3, ptr noundef nonnull %2) #3
  %9 = call zeroext i8 @DebugAssertEnabled() #3
  %10 = icmp ne i8 %9, 0
  %11 = icmp slt i64 %8, 0
  %or.cond = select i1 %10, i1 %11, i1 false
  br i1 %or.cond, label %12, label %18

12:                                               ; preds = %1
  %13 = call zeroext i8 @DebugPrintEnabled() #3
  %.not = icmp eq i8 %13, 0
  br i1 %.not, label %17, label %14

14:                                               ; preds = %12
  %15 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 2147483648) #3
  %.not31 = icmp eq i8 %15, 0
  br i1 %.not31, label %17, label %16

16:                                               ; preds = %14
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 2147483648, ptr noundef nonnull @.str.20, i64 noundef %8) #3
  br label %17

17:                                               ; preds = %14, %16, %12
  call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 1260, ptr noundef nonnull @.str.21) #3
  br label %18

18:                                               ; preds = %17, %1
  %19 = load i64, ptr %3, align 8, !tbaa !14
  %20 = shl i64 %19, 3
  %21 = add i64 %20, 8
  %22 = call ptr @AllocateZeroPool(i64 noundef %21) #3
  %23 = icmp eq ptr %22, null
  br i1 %23, label %57, label %.preheader36

.preheader36:                                     ; preds = %18
  %24 = load i64, ptr %3, align 8, !tbaa !14
  %.not42 = icmp eq i64 %24, 0
  br i1 %.not42, label %.preheader.preheader, label %.lr.ph41

.lr.ph41:                                         ; preds = %.preheader36, %47
  %.02640 = phi i64 [ %48, %47 ], [ 0, %.preheader36 ]
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = getelementptr inbounds ptr, ptr %25, i64 %.02640
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = call ptr @DevicePathFromHandle(ptr noundef %27) #3
  %29 = icmp eq ptr %28, null
  br i1 %29, label %47, label %30

30:                                               ; preds = %.lr.ph41
  %31 = call ptr @GetHIDevicePath(ptr noundef nonnull %28)
  store ptr %31, ptr %4, align 8, !tbaa !5
  %32 = icmp eq ptr %31, null
  br i1 %32, label %47, label %.preheader35

.preheader35:                                     ; preds = %30
  %33 = load ptr, ptr %22, align 8, !tbaa !5
  %.not3438 = icmp eq ptr %33, null
  br i1 %.not3438, label %.thread, label %.lr.ph

34:                                               ; preds = %.lr.ph
  %35 = add i64 %.02539, 1
  %36 = getelementptr inbounds ptr, ptr %22, i64 %35
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %.not34 = icmp eq ptr %37, null
  br i1 %.not34, label %.thread.loopexit, label %.lr.ph, !llvm.loop !15

.lr.ph:                                           ; preds = %.preheader35, %34
  %.02539 = phi i64 [ %35, %34 ], [ 0, %.preheader35 ]
  %38 = getelementptr inbounds ptr, ptr %22, i64 %.02539
  %39 = call i64 @DevicePathCompare(ptr noundef nonnull %38, ptr noundef nonnull %4) #3
  %40 = icmp eq i64 %39, 0
  br i1 %40, label %41, label %34

41:                                               ; preds = %.lr.ph
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  call void @FreePool(ptr noundef %42) #3
  %.pr = load ptr, ptr %38, align 8, !tbaa !5
  %43 = icmp eq ptr %.pr, null
  br i1 %43, label %.thread, label %47

.thread.loopexit:                                 ; preds = %34
  %44 = getelementptr inbounds ptr, ptr %22, i64 %35
  br label %.thread

.thread:                                          ; preds = %.thread.loopexit, %.preheader35, %41
  %45 = phi ptr [ %38, %41 ], [ %22, %.preheader35 ], [ %44, %.thread.loopexit ]
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %46, ptr %45, align 8, !tbaa !5
  br label %47

47:                                               ; preds = %41, %.thread, %30, %.lr.ph41
  %48 = add nuw i64 %.02640, 1
  %49 = load i64, ptr %3, align 8, !tbaa !14
  %50 = icmp ult i64 %48, %49
  br i1 %50, label %.lr.ph41, label %.preheader.preheader, !llvm.loop !17

.preheader.preheader:                             ; preds = %47, %.preheader36
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %.1 = phi i64 [ %53, %.preheader ], [ 0, %.preheader.preheader ]
  %51 = getelementptr inbounds ptr, ptr %22, i64 %.1
  %52 = load ptr, ptr %51, align 8, !tbaa !5
  %.not32 = icmp eq ptr %52, null
  %53 = add i64 %.1, 1
  br i1 %.not32, label %54, label %.preheader, !llvm.loop !18

54:                                               ; preds = %.preheader
  call void @PerformQuickSort(ptr noundef nonnull %22, i64 noundef %.1, i64 noundef 8, ptr noundef nonnull @DevicePathCompare) #3
  store ptr %22, ptr %0, align 8, !tbaa !5
  %55 = load ptr, ptr %2, align 8, !tbaa !5
  %.not33 = icmp eq ptr %55, null
  br i1 %.not33, label %57, label %56

56:                                               ; preds = %54
  call void @FreePool(ptr noundef nonnull %55) #3
  br label %57

57:                                               ; preds = %54, %56, %18
  %.0 = phi i64 [ -9223372036854775799, %18 ], [ 0, %56 ], [ 0, %54 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
  ret i64 %.0
}

declare zeroext i8 @DebugPrintEnabled() local_unnamed_addr #1

declare zeroext i8 @DebugPrintLevelEnabled(i64 noundef) local_unnamed_addr #1

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

declare ptr @DevicePathFromHandle(ptr noundef) local_unnamed_addr #1

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

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

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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 312}
!10 = !{!"", !11, i64 0, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368}
!11 = !{!"", !12, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20}
!12 = !{!"long long", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !12, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}


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