; LLVM IR from erthink/libmdbx :: src (page-ops)

; 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.page = type <{ i64, i16, i16, %union.anon.10, i32, [0 x i16] }>
%union.anon.10 = type { i32 }
%struct.anon.11 = type { i16, i16 }

@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #0

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: hot nounwind uwtable
define dso_local void @page_copy(ptr noundef %0, ptr noundef %1, i64 noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i64 %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %14, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %15, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  %16 = load i64, ptr %6, align 8, !tbaa !9
  store i64 %16, ptr %9, align 8, !tbaa !9
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.page, ptr %17, i32 0, i32 2
  %19 = load i16, ptr %18, align 1, !tbaa !11
  %20 = zext i16 %19 to i32
  %21 = and i32 %20, 32
  %22 = icmp ne i32 %21, 0
  br i1 %22, label %23, label %43

23:                                               ; preds = %3
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.page, ptr %24, i32 0, i32 1
  %26 = load i16, ptr %25, align 1, !tbaa !11
  %27 = zext i16 %26 to i64
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = call i64 @page_numkeys(ptr noundef %28) #10
  %30 = mul i64 %27, %29
  %31 = add i64 20, %30
  store i64 %31, ptr %9, align 8, !tbaa !9
  %32 = load i64, ptr %9, align 8, !tbaa !9
  %33 = load i64, ptr %6, align 8, !tbaa !9
  %34 = icmp ugt i64 %32, %33
  %35 = xor i1 %34, true
  %36 = xor i1 %35, true
  %37 = zext i1 %36 to i32
  %38 = sext i32 %37 to i64
  %39 = call i64 @llvm.expect.i64(i64 %38, i64 0)
  %40 = icmp ne i64 %39, 0
  br i1 %40, label %41, label %42

41:                                               ; preds = %23
  br label %109

42:                                               ; preds = %23
  br label %105

43:                                               ; preds = %3
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.page, ptr %44, i32 0, i32 2
  %46 = load i16, ptr %45, align 1, !tbaa !11
  %47 = zext i16 %46 to i32
  %48 = and i32 %47, 4
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %104

50:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.page, ptr %51, i32 0, i32 3
  %53 = getelementptr inbounds %struct.anon.11, ptr %52, i32 0, i32 1
  %54 = load i16, ptr %53, align 1, !tbaa !13
  %55 = zext i16 %54 to i64
  store i64 %55, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.page, ptr %56, i32 0, i32 3
  %58 = getelementptr inbounds %struct.anon.11, ptr %57, i32 0, i32 0
  %59 = load i16, ptr %58, align 1, !tbaa !13
  %60 = zext i16 %59 to i64
  store i64 %60, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  %61 = load i64, ptr %10, align 8, !tbaa !9
  %62 = load i64, ptr %11, align 8, !tbaa !9
  %63 = sub i64 %61, %62
  store i64 %63, ptr %12, align 8, !tbaa !9
  %64 = load i64, ptr %12, align 8, !tbaa !9
  %65 = icmp sgt i64 %64, 192
  br i1 %65, label %66, label %100

66:                                               ; preds = %50
  %67 = load i64, ptr %11, align 8, !tbaa !9
  %68 = add i64 %67, 20
  %69 = call i64 @ceil_powerof2(i64 noundef %68, i64 noundef 8) #11
  store i64 %69, ptr %11, align 8, !tbaa !9
  %70 = load i64, ptr %10, align 8, !tbaa !9
  %71 = add i64 %70, 20
  %72 = call i64 @floor_powerof2(i64 noundef %71, i64 noundef 8) #11
  store i64 %72, ptr %10, align 8, !tbaa !9
  %73 = load i64, ptr %10, align 8, !tbaa !9
  %74 = load i64, ptr %9, align 8, !tbaa !9
  %75 = icmp ugt i64 %73, %74
  %76 = xor i1 %75, true
  %77 = xor i1 %76, true
  %78 = zext i1 %77 to i32
  %79 = sext i32 %78 to i64
  %80 = call i64 @llvm.expect.i64(i64 %79, i64 0)
  %81 = icmp ne i64 %80, 0
  br i1 %81, label %82, label %83

82:                                               ; preds = %66
  store i32 2, ptr %13, align 4
  br label %101

83:                                               ; preds = %66
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = load i64, ptr %11, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %84, ptr align 1 %85, i64 %86, i1 false)
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = ptrtoint ptr %87 to i64
  %89 = load i64, ptr %10, align 8, !tbaa !9
  %90 = add nsw i64 %88, %89
  %91 = inttoptr i64 %90 to ptr
  store ptr %91, ptr %7, align 8, !tbaa !5
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = ptrtoint ptr %92 to i64
  %94 = load i64, ptr %10, align 8, !tbaa !9
  %95 = add nsw i64 %93, %94
  %96 = inttoptr i64 %95 to ptr
  store ptr %96, ptr %8, align 8, !tbaa !5
  %97 = load i64, ptr %10, align 8, !tbaa !9
  %98 = load i64, ptr %9, align 8, !tbaa !9
  %99 = sub i64 %98, %97
  store i64 %99, ptr %9, align 8, !tbaa !9
  br label %100

100:                                              ; preds = %83, %50
  store i32 0, ptr %13, align 4
  br label %101

101:                                              ; preds = %100, %82
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  %102 = load i32, ptr %13, align 4
  switch i32 %102, label %140 [
    i32 0, label %103
    i32 2, label %109
  ]

103:                                              ; preds = %101
  br label %104

104:                                              ; preds = %103, %43
  br label %105

105:                                              ; preds = %104, %42
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = load i64, ptr %9, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %106, ptr align 1 %107, i64 %108, i1 false)
  store i32 1, ptr %13, align 4
  br label %140

109:                                              ; preds = %101, %41
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.page, ptr %110, i32 0, i32 2
  %112 = load i16, ptr %111, align 1, !tbaa !11
  %113 = zext i16 %112 to i32
  %114 = and i32 %113, 32
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %127

116:                                              ; preds = %109
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = call ptr @__Wpedantic_format_voidptr(ptr noundef %118)
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = call i64 @page_numkeys(ptr noundef %120) #10
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.page, ptr %122, i32 0, i32 1
  %124 = load i16, ptr %123, align 1, !tbaa !11
  %125 = zext i16 %124 to i32
  %126 = call i32 (ptr, ptr, ...) @bad_page(ptr noundef %117, ptr noundef @.str.6, ptr noundef @.str.7, ptr noundef %119, i64 noundef %121, i32 noundef %125)
  br label %137

127:                                              ; preds = %109
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = call ptr @__Wpedantic_format_voidptr(ptr noundef %129)
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.page, ptr %131, i32 0, i32 3
  %133 = getelementptr inbounds %struct.anon.11, ptr %132, i32 0, i32 1
  %134 = load i16, ptr %133, align 1, !tbaa !13
  %135 = zext i16 %134 to i32
  %136 = call i32 (ptr, ptr, ...) @bad_page(ptr noundef %128, ptr noundef @.str.8, ptr noundef @.str.7, ptr noundef %130, i32 noundef %135)
  br label %137

137:                                              ; preds = %127, %116
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = load i64, ptr %6, align 8, !tbaa !9
  call void @llvm.memset.p0.i64(ptr align 1 %138, i8 -1, i64 %139, i1 false)
  store i32 0, ptr %13, align 4
  br label %140

140:                                              ; preds = %137, %105, %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  %141 = load i32, ptr %13, align 4
  switch i32 %141, label %143 [
    i32 0, label %142
    i32 1, label %142
  ]

142:                                              ; preds = %140, %140
  ret void

143:                                              ; preds = %140
  unreachable
}

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare hidden i64 @page_numkeys(ptr noundef) #3

; Function Attrs: inlinehint nounwind willreturn memory(none) uwtable
declare hidden i64 @ceil_powerof2(i64 noundef, i64 noundef) #4

; Function Attrs: inlinehint nounwind willreturn memory(none) uwtable
declare hidden i64 @floor_powerof2(i64 noundef, i64 noundef) #4

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

declare i32 @bad_page(ptr noundef, ptr noundef, ...) #6

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @__Wpedantic_format_voidptr(ptr noundef) #7

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { hot 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 = { inlinehint nounwind willreturn memory(read) 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 = { inlinehint nounwind willreturn memory(none) 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { "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 #7 = { inlinehint 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 #8 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { nounwind willreturn memory(none) }

!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, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!7, !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"

@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: hot nounwind uwtable
define dso_local void @page_copy(ptr noundef %0, ptr noundef %1, i64 noundef %2) local_unnamed_addr #0 {
  %4 = getelementptr inbounds i8, ptr %1, i64 10
  %5 = load i16, ptr %4, align 1, !tbaa !5
  %6 = zext i16 %5 to i32
  %7 = and i32 %6, 32
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %16, label %8

8:                                                ; preds = %3
  %9 = getelementptr inbounds i8, ptr %1, i64 8
  %10 = load i16, ptr %9, align 1, !tbaa !5
  %11 = zext i16 %10 to i64
  %12 = tail call i64 @page_numkeys(ptr noundef nonnull %1) #7
  %13 = mul i64 %12, %11
  %14 = add i64 %13, 20
  %15 = icmp ugt i64 %14, %2
  br i1 %15, label %42, label %.thread, !prof !9

16:                                               ; preds = %3
  %17 = and i32 %6, 4
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %19, label %.thread

19:                                               ; preds = %16
  %20 = getelementptr inbounds i8, ptr %1, i64 12
  %21 = getelementptr inbounds i8, ptr %1, i64 14
  %22 = load i16, ptr %21, align 1, !tbaa !10
  %23 = zext i16 %22 to i64
  %24 = load i16, ptr %20, align 1, !tbaa !10
  %25 = zext i16 %24 to i64
  %26 = sub nsw i64 %23, %25
  %27 = icmp sgt i64 %26, 192
  br i1 %27, label %28, label %.thread

28:                                               ; preds = %19
  %29 = add nuw nsw i64 %23, 20
  %30 = tail call i64 @floor_powerof2(i64 noundef %29, i64 noundef 8) #8
  %31 = icmp ugt i64 %30, %2
  br i1 %31, label %42, label %32, !prof !9

32:                                               ; preds = %28
  %33 = add nuw nsw i64 %25, 20
  %34 = tail call i64 @ceil_powerof2(i64 noundef %33, i64 noundef 8) #8
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %0, ptr nonnull align 1 %1, i64 %34, i1 false)
  %35 = ptrtoint ptr %0 to i64
  %36 = add nsw i64 %30, %35
  %37 = inttoptr i64 %36 to ptr
  %38 = ptrtoint ptr %1 to i64
  %39 = add nsw i64 %30, %38
  %40 = inttoptr i64 %39 to ptr
  %41 = sub i64 %2, %30
  br label %.thread

.thread:                                          ; preds = %19, %32, %16, %8
  %.246 = phi ptr [ %1, %8 ], [ %1, %16 ], [ %1, %19 ], [ %40, %32 ]
  %.243 = phi i64 [ %14, %8 ], [ %2, %16 ], [ %2, %19 ], [ %41, %32 ]
  %.2 = phi ptr [ %0, %8 ], [ %0, %16 ], [ %0, %19 ], [ %37, %32 ]
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %.2, ptr align 1 %.246, i64 %.243, i1 false)
  br label %57

42:                                               ; preds = %28, %8
  %43 = and i16 %5, 32
  %.not51 = icmp eq i16 %43, 0
  %44 = tail call ptr @__Wpedantic_format_voidptr(ptr noundef nonnull %1)
  br i1 %.not51, label %51, label %45

45:                                               ; preds = %42
  %46 = tail call i64 @page_numkeys(ptr noundef nonnull %1) #7
  %47 = getelementptr inbounds i8, ptr %1, i64 8
  %48 = load i16, ptr %47, align 1, !tbaa !5
  %49 = zext i16 %48 to i32
  %50 = tail call i32 (ptr, ptr, ...) @bad_page(ptr noundef nonnull %1, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, ptr noundef %44, i64 noundef %46, i32 noundef %49) #9
  br label %56

51:                                               ; preds = %42
  %52 = getelementptr inbounds i8, ptr %1, i64 14
  %53 = load i16, ptr %52, align 1, !tbaa !10
  %54 = zext i16 %53 to i32
  %55 = tail call i32 (ptr, ptr, ...) @bad_page(ptr noundef nonnull %1, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.7, ptr noundef %44, i32 noundef %54) #9
  br label %56

56:                                               ; preds = %51, %45
  tail call void @llvm.memset.p0.i64(ptr align 1 %0, i8 -1, i64 %2, i1 false)
  br label %57

57:                                               ; preds = %56, %.thread
  ret void
}

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare hidden i64 @page_numkeys(ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare hidden i64 @ceil_powerof2(i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare hidden i64 @floor_powerof2(i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress 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

declare i32 @bad_page(ptr noundef, ptr noundef, ...) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @__Wpedantic_format_voidptr(ptr noundef) local_unnamed_addr #5

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

attributes #0 = { hot 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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 = { inlinehint mustprogress nofree nosync nounwind willreturn memory(none) 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { "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 #5 = { inlinehint 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 #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { nounwind willreturn memory(none) }
attributes #9 = { 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 = !{!"short", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!10 = !{!7, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LowerExpectIntrinsicPass,SROAPass,SimplifyCFGPass,TailCallElimPass