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

; 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.IFR_VARSTORAGE_DATA = type { %struct._LIST_ENTRY, %struct.GUID, ptr, i16, i8, %struct._LIST_ENTRY }
%struct.GUID = type { i32, i16, i16, [8 x i8] }
%struct._LIST_ENTRY = type { ptr, ptr }
%struct.IFR_BLOCK_DATA = type { %struct._LIST_ENTRY, i16, i16, i16, i8, i8, %struct._LIST_ENTRY, ptr }

@.str.30 = external hidden unnamed_addr constant [4 x i32], align 4
@.str.31 = external hidden unnamed_addr constant [24 x i32], align 4

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

declare i64 @StrLen(ptr noundef) #1

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

declare ptr @AllocateZeroPool(i64 noundef) #1

declare void @FreePool(ptr noundef) #1

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

declare ptr @StrCpy(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local zeroext i8 @GenerateConfigRequest(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #2 {
  %5 = alloca i8, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  store i8 0, ptr %10, align 1, !tbaa !9
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = call i64 @StrLen(ptr noundef %17)
  %19 = add i64 %18, 1
  store i64 %19, ptr %11, align 8, !tbaa !10
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.IFR_VARSTORAGE_DATA, ptr %20, i32 0, i32 5
  %22 = getelementptr inbounds %struct._LIST_ENTRY, ptr %21, i32 0, i32 0
  %23 = load ptr, ptr %22, align 8, !tbaa !12
  store ptr %23, ptr %12, align 8, !tbaa !5
  br label %24

24:                                               ; preds = %51, %4
  %25 = load ptr, ptr %12, align 8, !tbaa !5
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.IFR_VARSTORAGE_DATA, ptr %26, i32 0, i32 5
  %28 = icmp ne ptr %25, %27
  br i1 %28, label %29, label %55

29:                                               ; preds = %24
  store i8 1, ptr %10, align 1, !tbaa !9
  %30 = load ptr, ptr %12, align 8, !tbaa !5
  %31 = ptrtoint ptr %30 to i64
  %32 = sub i64 %31, 0
  %33 = inttoptr i64 %32 to ptr
  store ptr %33, ptr %15, align 8, !tbaa !5
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.IFR_VARSTORAGE_DATA, ptr %34, i32 0, i32 4
  %36 = load i8, ptr %35, align 2, !tbaa !18
  %37 = zext i8 %36 to i32
  %38 = icmp eq i32 %37, 1
  br i1 %38, label %39, label %47

39:                                               ; preds = %29
  %40 = load i64, ptr %11, align 8, !tbaa !10
  %41 = load ptr, ptr %15, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.IFR_BLOCK_DATA, ptr %41, i32 0, i32 7
  %43 = load ptr, ptr %42, align 8, !tbaa !19
  %44 = call i64 @StrLen(ptr noundef %43)
  %45 = add i64 1, %44
  %46 = add i64 %40, %45
  store i64 %46, ptr %11, align 8, !tbaa !10
  br label %50

47:                                               ; preds = %29
  %48 = load i64, ptr %11, align 8, !tbaa !10
  %49 = add i64 %48, 23
  store i64 %49, ptr %11, align 8, !tbaa !10
  br label %50

50:                                               ; preds = %47, %39
  br label %51

51:                                               ; preds = %50
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct._LIST_ENTRY, ptr %52, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8, !tbaa !21
  store ptr %54, ptr %12, align 8, !tbaa !5
  br label %24, !llvm.loop !22

55:                                               ; preds = %24
  %56 = load i8, ptr %10, align 1, !tbaa !9
  %57 = icmp ne i8 %56, 0
  br i1 %57, label %60, label %58

58:                                               ; preds = %55
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  store i64 0, ptr %59, align 8, !tbaa !10
  store i8 0, ptr %5, align 1
  store i32 1, ptr %16, align 4
  br label %140

60:                                               ; preds = %55
  %61 = load i64, ptr %11, align 8, !tbaa !10
  %62 = mul i64 %61, 2
  %63 = call ptr @AllocateZeroPool(i64 noundef %62)
  store ptr %63, ptr %13, align 8, !tbaa !5
  %64 = load ptr, ptr %13, align 8, !tbaa !5
  %65 = icmp eq ptr %64, null
  br i1 %65, label %66, label %68

66:                                               ; preds = %60
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  store i64 -9223372036854775799, ptr %67, align 8, !tbaa !10
  store i8 0, ptr %5, align 1
  store i32 1, ptr %16, align 4
  br label %140

68:                                               ; preds = %60
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %69, ptr %14, align 8, !tbaa !5
  %70 = load ptr, ptr %14, align 8, !tbaa !5
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = call ptr @StrCpy(ptr noundef %70, ptr noundef %71)
  %73 = load ptr, ptr %14, align 8, !tbaa !5
  %74 = call i64 @StrLen(ptr noundef %73)
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  %76 = getelementptr inbounds i16, ptr %75, i64 %74
  store ptr %76, ptr %14, align 8, !tbaa !5
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.IFR_VARSTORAGE_DATA, ptr %77, i32 0, i32 5
  %79 = getelementptr inbounds %struct._LIST_ENTRY, ptr %78, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !12
  store ptr %80, ptr %12, align 8, !tbaa !5
  br label %81

81:                                               ; preds = %125, %68
  %82 = load ptr, ptr %12, align 8, !tbaa !5
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.IFR_VARSTORAGE_DATA, ptr %83, i32 0, i32 5
  %85 = icmp ne ptr %82, %84
  br i1 %85, label %86, label %129

86:                                               ; preds = %81
  %87 = load ptr, ptr %12, align 8, !tbaa !5
  %88 = ptrtoint ptr %87 to i64
  %89 = sub i64 %88, 0
  %90 = inttoptr i64 %89 to ptr
  store ptr %90, ptr %15, align 8, !tbaa !5
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.IFR_VARSTORAGE_DATA, ptr %91, i32 0, i32 4
  %93 = load i8, ptr %92, align 2, !tbaa !18
  %94 = zext i8 %93 to i32
  %95 = icmp eq i32 %94, 1
  br i1 %95, label %96, label %109

96:                                               ; preds = %86
  %97 = load ptr, ptr %14, align 8, !tbaa !5
  %98 = load ptr, ptr %15, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.IFR_BLOCK_DATA, ptr %98, i32 0, i32 7
  %100 = load ptr, ptr %99, align 8, !tbaa !19
  %101 = call i64 @StrLen(ptr noundef %100)
  %102 = add i64 1, %101
  %103 = add i64 %102, 1
  %104 = mul i64 %103, 2
  %105 = load ptr, ptr %15, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.IFR_BLOCK_DATA, ptr %105, i32 0, i32 7
  %107 = load ptr, ptr %106, align 8, !tbaa !19
  %108 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef %97, i64 noundef %104, ptr noundef @.str.30, ptr noundef %107)
  br label %120

109:                                              ; preds = %86
  %110 = load ptr, ptr %14, align 8, !tbaa !5
  %111 = load ptr, ptr %15, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.IFR_BLOCK_DATA, ptr %111, i32 0, i32 1
  %113 = load i16, ptr %112, align 8, !tbaa !24
  %114 = zext i16 %113 to i32
  %115 = load ptr, ptr %15, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.IFR_BLOCK_DATA, ptr %115, i32 0, i32 2
  %117 = load i16, ptr %116, align 2, !tbaa !25
  %118 = zext i16 %117 to i32
  %119 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef %110, i64 noundef 48, ptr noundef @.str.31, i32 noundef %114, i32 noundef %118)
  br label %120

120:                                              ; preds = %109, %96
  %121 = load ptr, ptr %14, align 8, !tbaa !5
  %122 = call i64 @StrLen(ptr noundef %121)
  %123 = load ptr, ptr %14, align 8, !tbaa !5
  %124 = getelementptr inbounds i16, ptr %123, i64 %122
  store ptr %124, ptr %14, align 8, !tbaa !5
  br label %125

125:                                              ; preds = %120
  %126 = load ptr, ptr %12, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct._LIST_ENTRY, ptr %126, i32 0, i32 0
  %128 = load ptr, ptr %127, align 8, !tbaa !21
  store ptr %128, ptr %12, align 8, !tbaa !5
  br label %81, !llvm.loop !26

129:                                              ; preds = %81
  %130 = load ptr, ptr %13, align 8, !tbaa !5
  call void @HiiToLower(ptr noundef %130)
  %131 = load ptr, ptr %9, align 8, !tbaa !5
  %132 = load ptr, ptr %131, align 8, !tbaa !5
  %133 = icmp ne ptr %132, null
  br i1 %133, label %134, label %137

134:                                              ; preds = %129
  %135 = load ptr, ptr %9, align 8, !tbaa !5
  %136 = load ptr, ptr %135, align 8, !tbaa !5
  call void @FreePool(ptr noundef %136)
  br label %137

137:                                              ; preds = %134, %129
  %138 = load ptr, ptr %13, align 8, !tbaa !5
  %139 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %138, ptr %139, align 8, !tbaa !5
  store i8 1, ptr %5, align 1
  store i32 1, ptr %16, align 4
  br label %140

140:                                              ; preds = %137, %66, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #3
  %141 = load i8, ptr %5, align 1
  ret i8 %141
}

declare i64 @UnicodeSPrint(ptr 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"long long", !7, i64 0}
!12 = !{!13, !6, i64 48}
!13 = !{!"", !14, i64 0, !15, i64 16, !6, i64 32, !17, i64 40, !7, i64 42, !14, i64 48}
!14 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!15 = !{!"", !16, i64 0, !17, i64 4, !17, i64 6, !7, i64 8}
!16 = !{!"int", !7, i64 0}
!17 = !{!"short", !7, i64 0}
!18 = !{!13, !7, i64 42}
!19 = !{!20, !6, i64 40}
!20 = !{!"", !14, i64 0, !17, i64 16, !17, i64 18, !17, i64 20, !7, i64 22, !7, i64 23, !14, i64 24, !6, i64 40}
!21 = !{!14, !6, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!20, !17, i64 16}
!25 = !{!20, !17, i64 18}
!26 = distinct !{!26, !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"

@.str.30 = external hidden unnamed_addr constant [4 x i32], align 4
@.str.31 = external hidden unnamed_addr constant [24 x i32], align 4

declare i64 @StrLen(ptr noundef) local_unnamed_addr #0

declare ptr @AllocateZeroPool(i64 noundef) local_unnamed_addr #0

declare void @FreePool(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @HiiToLower(ptr noundef) local_unnamed_addr #1

declare ptr @StrCpy(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local zeroext range(i8 0, 2) i8 @GenerateConfigRequest(ptr noundef %0, ptr noundef readonly %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef %3) local_unnamed_addr #1 {
  %5 = tail call i64 @StrLen(ptr noundef %0) #2
  %6 = getelementptr inbounds i8, ptr %1, i64 48
  %.04050 = load ptr, ptr %6, align 8, !tbaa !5
  %.not51 = icmp eq ptr %.04050, %6
  br i1 %.not51, label %._crit_edge.thread, label %.lr.ph

.lr.ph:                                           ; preds = %4
  %7 = add i64 %5, 1
  %8 = getelementptr inbounds i8, ptr %1, i64 42
  %9 = load i8, ptr %8, align 2, !tbaa !10
  %10 = icmp eq i8 %9, 1
  br i1 %10, label %.lr.ph.split, label %.lr.ph.split.us

.lr.ph.split.us:                                  ; preds = %.lr.ph, %.lr.ph.split.us
  %.04053.us = phi ptr [ %.040.us, %.lr.ph.split.us ], [ %.04050, %.lr.ph ]
  %.04152.us = phi i64 [ %.142.us, %.lr.ph.split.us ], [ %7, %.lr.ph ]
  %.142.us = add i64 %.04152.us, 23
  %.040.us = load ptr, ptr %.04053.us, align 8, !tbaa !5
  %.not.us = icmp eq ptr %.040.us, %6
  br i1 %.not.us, label %._crit_edge, label %.lr.ph.split.us, !llvm.loop !15

.lr.ph.splitthread-pre-split:                     ; preds = %18
  %.pr = load i8, ptr %8, align 2, !tbaa !10
  br label %.lr.ph.split

.lr.ph.split:                                     ; preds = %.lr.ph, %.lr.ph.splitthread-pre-split
  %11 = phi i8 [ %.pr, %.lr.ph.splitthread-pre-split ], [ 1, %.lr.ph ]
  %.04053 = phi ptr [ %.040, %.lr.ph.splitthread-pre-split ], [ %.04050, %.lr.ph ]
  %.04152 = phi i64 [ %.142, %.lr.ph.splitthread-pre-split ], [ %7, %.lr.ph ]
  %12 = icmp eq i8 %11, 1
  br i1 %12, label %13, label %18

13:                                               ; preds = %.lr.ph.split
  %14 = getelementptr inbounds i8, ptr %.04053, i64 40
  %15 = load ptr, ptr %14, align 8, !tbaa !17
  %16 = tail call i64 @StrLen(ptr noundef %15) #2
  %17 = add i64 %16, 1
  br label %18

18:                                               ; preds = %.lr.ph.split, %13
  %.pn = phi i64 [ %17, %13 ], [ 23, %.lr.ph.split ]
  %.142 = add i64 %.pn, %.04152
  %.040 = load ptr, ptr %.04053, align 8, !tbaa !5
  %.not = icmp eq ptr %.040, %6
  br i1 %.not, label %._crit_edge, label %.lr.ph.splitthread-pre-split, !llvm.loop !19

._crit_edge:                                      ; preds = %.lr.ph.split.us, %18
  %.041.lcssa = phi i64 [ %.142, %18 ], [ %.142.us, %.lr.ph.split.us ]
  br i1 %.not51, label %._crit_edge.thread, label %19

._crit_edge.thread:                               ; preds = %4, %._crit_edge
  store i64 0, ptr %2, align 8, !tbaa !21
  br label %54

19:                                               ; preds = %._crit_edge
  %20 = shl i64 %.041.lcssa, 1
  %21 = tail call ptr @AllocateZeroPool(i64 noundef %20) #2
  %22 = icmp eq ptr %21, null
  br i1 %22, label %23, label %24

23:                                               ; preds = %19
  store i64 -9223372036854775799, ptr %2, align 8, !tbaa !21
  br label %54

24:                                               ; preds = %19
  %25 = tail call ptr @StrCpy(ptr noundef nonnull %21, ptr noundef %0) #2
  %26 = tail call i64 @StrLen(ptr noundef nonnull %21) #2
  %.156 = load ptr, ptr %6, align 8, !tbaa !5
  %.not4857 = icmp eq ptr %.156, %6
  br i1 %.not4857, label %._crit_edge62, label %.lr.ph61

.lr.ph61:                                         ; preds = %24
  %27 = getelementptr inbounds i16, ptr %21, i64 %26
  %28 = getelementptr inbounds i8, ptr %1, i64 42
  br label %29

29:                                               ; preds = %.lr.ph61, %48
  %.159 = phi ptr [ %.156, %.lr.ph61 ], [ %.1, %48 ]
  %.058 = phi ptr [ %27, %.lr.ph61 ], [ %50, %48 ]
  %30 = load i8, ptr %28, align 2, !tbaa !10
  %31 = icmp eq i8 %30, 1
  br i1 %31, label %32, label %40

32:                                               ; preds = %29
  %33 = getelementptr inbounds i8, ptr %.159, i64 40
  %34 = load ptr, ptr %33, align 8, !tbaa !17
  %35 = tail call i64 @StrLen(ptr noundef %34) #2
  %36 = shl i64 %35, 1
  %37 = add i64 %36, 4
  %38 = load ptr, ptr %33, align 8, !tbaa !17
  %39 = tail call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef %.058, i64 noundef %37, ptr noundef nonnull @.str.30, ptr noundef %38) #2
  br label %48

40:                                               ; preds = %29
  %41 = getelementptr inbounds i8, ptr %.159, i64 16
  %42 = load i16, ptr %41, align 8, !tbaa !23
  %43 = zext i16 %42 to i32
  %44 = getelementptr inbounds i8, ptr %.159, i64 18
  %45 = load i16, ptr %44, align 2, !tbaa !24
  %46 = zext i16 %45 to i32
  %47 = tail call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef %.058, i64 noundef 48, ptr noundef nonnull @.str.31, i32 noundef %43, i32 noundef %46) #2
  br label %48

48:                                               ; preds = %40, %32
  %49 = tail call i64 @StrLen(ptr noundef %.058) #2
  %50 = getelementptr inbounds i16, ptr %.058, i64 %49
  %.1 = load ptr, ptr %.159, align 8, !tbaa !5
  %.not48 = icmp eq ptr %.1, %6
  br i1 %.not48, label %._crit_edge62, label %29, !llvm.loop !25

._crit_edge62:                                    ; preds = %48, %24
  tail call void @HiiToLower(ptr noundef nonnull %21)
  %51 = load ptr, ptr %3, align 8, !tbaa !26
  %.not49 = icmp eq ptr %51, null
  br i1 %.not49, label %53, label %52

52:                                               ; preds = %._crit_edge62
  tail call void @FreePool(ptr noundef nonnull %51) #2
  br label %53

53:                                               ; preds = %52, %._crit_edge62
  store ptr %21, ptr %3, align 8, !tbaa !26
  br label %54

54:                                               ; preds = %53, %23, %._crit_edge.thread
  %.039 = phi i8 [ 0, %23 ], [ 1, %53 ], [ 0, %._crit_edge.thread ]
  ret i8 %.039
}

declare i64 @UnicodeSPrint(ptr noundef, i64 noundef, ptr noundef, ...) local_unnamed_addr #0

attributes #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 = { 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 #2 = { 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, !7, i64 0}
!6 = !{!"_LIST_ENTRY", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !8, i64 42}
!11 = !{!"", !6, i64 0, !12, i64 16, !7, i64 32, !14, i64 40, !8, i64 42, !6, i64 48}
!12 = !{!"", !13, i64 0, !14, i64 4, !14, i64 6, !8, i64 8}
!13 = !{!"int", !8, i64 0}
!14 = !{!"short", !8, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !7, i64 40}
!18 = !{!"", !6, i64 0, !14, i64 16, !14, i64 18, !14, i64 20, !8, i64 22, !8, i64 23, !6, i64 24, !7, i64 40}
!19 = distinct !{!19, !16, !20}
!20 = !{!"llvm.loop.unswitch.partial.disable"}
!21 = !{!22, !22, i64 0}
!22 = !{!"long long", !8, i64 0}
!23 = !{!18, !14, i64 16}
!24 = !{!18, !14, i64 18}
!25 = distinct !{!25, !16}
!26 = !{!7, !7, i64 0}


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