; LLVM IR from erthink/libmdbx :: src (pnl)

; 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.libmdbx_globals = type { %union.bin128, i32, i32, i8, i8, i8, i8, i32, %union.logger_union, %union.pthread_mutex_t, i64, ptr }
%union.bin128 = type { %struct.anon }
%struct.anon = type { i64, i64 }
%union.logger_union = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }

@globals = external global %struct.libmdbx_globals, align 8
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@__func__.pnl_insert_span = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = 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

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

; Function Attrs: noreturn
declare void @mdbx_assert_fail(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

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

; Function Attrs: hot nounwind uwtable
define dso_local i32 @pnl_insert_span(ptr noundef %0, i32 noundef %1, i64 noundef %2) #3 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i64 %2, ptr %7, align 8, !tbaa !11
  br label %15

15:                                               ; preds = %3
  %16 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 4), align 1, !tbaa !13
  %17 = zext i8 %16 to i32
  %18 = and i32 %17, 1
  %19 = icmp ne i32 %18, 0
  %20 = xor i1 %19, true
  %21 = xor i1 %20, true
  %22 = zext i1 %21 to i32
  %23 = sext i32 %22 to i64
  %24 = call i64 @llvm.expect.i64(i64 %23, i64 1)
  %25 = icmp ne i64 %24, 0
  br i1 %25, label %26, label %40

26:                                               ; preds = %15
  br label %27

27:                                               ; preds = %26
  %28 = load i64, ptr %7, align 8, !tbaa !11
  %29 = icmp ugt i64 %28, 0
  %30 = xor i1 %29, true
  %31 = xor i1 %30, true
  %32 = xor i1 %31, true
  %33 = zext i1 %32 to i32
  %34 = sext i32 %33 to i64
  %35 = call i64 @llvm.expect.i64(i64 %34, i64 0)
  %36 = icmp ne i64 %35, 0
  br i1 %36, label %37, label %38

37:                                               ; preds = %27
  call void @mdbx_assert_fail(ptr noundef null, ptr noundef @.str.5, ptr noundef @__func__.pnl_insert_span, i32 noundef 118) #5
  unreachable

38:                                               ; preds = %27
  br label %39

39:                                               ; preds = %38
  br label %40

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

41:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = load i64, ptr %7, align 8, !tbaa !11
  %44 = call i32 @pnl_need(ptr noundef %42, i64 noundef %43)
  store i32 %44, ptr %8, align 4, !tbaa !9
  %45 = load i32, ptr %8, align 4, !tbaa !9
  %46 = icmp ne i32 %45, 0
  %47 = xor i1 %46, true
  %48 = xor i1 %47, true
  %49 = zext i1 %48 to i32
  %50 = sext i32 %49 to i64
  %51 = call i64 @llvm.expect.i64(i64 %50, i64 0)
  %52 = icmp ne i64 %51, 0
  br i1 %52, label %53, label %55

53:                                               ; preds = %41
  %54 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %54, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %143

55:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  store ptr %57, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = getelementptr inbounds i32, ptr %58, i64 0
  %60 = load i32, ptr %59, align 4, !tbaa !9
  %61 = zext i32 %60 to i64
  store i64 %61, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %62 = load i64, ptr %11, align 8, !tbaa !11
  %63 = load i64, ptr %7, align 8, !tbaa !11
  %64 = add i64 %62, %63
  store i64 %64, ptr %12, align 8, !tbaa !11
  br label %65

65:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %66 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %66, ptr %13, align 8, !tbaa !11
  br label %67

67:                                               ; preds = %65
  %68 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 4), align 1, !tbaa !13
  %69 = zext i8 %68 to i32
  %70 = and i32 %69, 1
  %71 = icmp ne i32 %70, 0
  %72 = xor i1 %71, true
  %73 = xor i1 %72, true
  %74 = zext i1 %73 to i32
  %75 = sext i32 %74 to i64
  %76 = call i64 @llvm.expect.i64(i64 %75, i64 1)
  %77 = icmp ne i64 %76, 0
  br i1 %77, label %78, label %93

78:                                               ; preds = %67
  br label %79

79:                                               ; preds = %78
  %80 = load i64, ptr %13, align 8, !tbaa !11
  %81 = icmp ult i64 %80, 2147483647
  %82 = xor i1 %81, true
  %83 = xor i1 %82, true
  %84 = xor i1 %83, true
  %85 = zext i1 %84 to i32
  %86 = sext i32 %85 to i64
  %87 = call i64 @llvm.expect.i64(i64 %86, i64 0)
  %88 = icmp ne i64 %87, 0
  br i1 %88, label %89, label %90

89:                                               ; preds = %79
  call void @mdbx_assert_fail(ptr noundef null, ptr noundef @.str.6, ptr noundef @__func__.pnl_insert_span, i32 noundef 125) #5
  unreachable

90:                                               ; preds = %79
  br label %91

91:                                               ; preds = %90
  br label %92

92:                                               ; preds = %91
  br label %93

93:                                               ; preds = %92, %67
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  %96 = load i64, ptr %13, align 8, !tbaa !11
  %97 = trunc i64 %96 to i32
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  %99 = getelementptr inbounds i32, ptr %98, i64 0
  store i32 %97, ptr %99, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %100

100:                                              ; preds = %95
  br label %101

101:                                              ; preds = %100
  br label %102

102:                                              ; preds = %114, %101
  %103 = load i64, ptr %11, align 8, !tbaa !11
  %104 = icmp ne i64 %103, 0
  br i1 %104, label %105, label %112

105:                                              ; preds = %102
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = load i64, ptr %11, align 8, !tbaa !11
  %108 = getelementptr inbounds i32, ptr %106, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !9
  %110 = load i32, ptr %6, align 4, !tbaa !9
  %111 = icmp ule i32 %109, %110
  br label %112

112:                                              ; preds = %105, %102
  %113 = phi i1 [ false, %102 ], [ %111, %105 ]
  br i1 %113, label %114, label %124

114:                                              ; preds = %112
  %115 = load ptr, ptr %10, align 8, !tbaa !5
  %116 = load i64, ptr %11, align 8, !tbaa !11
  %117 = add i64 %116, -1
  store i64 %117, ptr %11, align 8, !tbaa !11
  %118 = getelementptr inbounds i32, ptr %115, i64 %116
  %119 = load i32, ptr %118, align 4, !tbaa !9
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  %121 = load i64, ptr %12, align 8, !tbaa !11
  %122 = add i64 %121, -1
  store i64 %122, ptr %12, align 8, !tbaa !11
  %123 = getelementptr inbounds i32, ptr %120, i64 %121
  store i32 %119, ptr %123, align 4, !tbaa !9
  br label %102, !llvm.loop !16

124:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %125 = load i32, ptr %6, align 4, !tbaa !9
  %126 = zext i32 %125 to i64
  %127 = trunc i64 %126 to i32
  store i32 %127, ptr %14, align 4, !tbaa !9
  br label %128

128:                                              ; preds = %139, %124
  %129 = load i64, ptr %12, align 8, !tbaa !11
  %130 = load i64, ptr %11, align 8, !tbaa !11
  %131 = icmp ugt i64 %129, %130
  br i1 %131, label %133, label %132

132:                                              ; preds = %128
  store i32 14, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %142

133:                                              ; preds = %128
  %134 = load i32, ptr %14, align 4, !tbaa !9
  %135 = add i32 %134, 1
  store i32 %135, ptr %14, align 4, !tbaa !9
  %136 = load ptr, ptr %10, align 8, !tbaa !5
  %137 = load i64, ptr %12, align 8, !tbaa !11
  %138 = getelementptr inbounds i32, ptr %136, i64 %137
  store i32 %134, ptr %138, align 4, !tbaa !9
  br label %139

139:                                              ; preds = %133
  %140 = load i64, ptr %12, align 8, !tbaa !11
  %141 = add i64 %140, -1
  store i64 %141, ptr %12, align 8, !tbaa !11
  br label %128, !llvm.loop !18

142:                                              ; preds = %132
  store i32 0, ptr %4, align 4
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %143

143:                                              ; preds = %142, %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  %144 = load i32, ptr %4, align 4
  ret i32 %144
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @pnl_need(ptr noalias noundef, i64 noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #2 = { noreturn "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 = { 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 #4 = { 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 #5 = { noreturn }
attributes #6 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !7, i64 25}
!14 = !{!"libmdbx_globals", !7, i64 0, !10, i64 16, !10, i64 20, !7, i64 24, !7, i64 25, !7, i64 26, !15, i64 27, !10, i64 28, !7, i64 32, !7, i64 40, !12, i64 80, !6, i64 88}
!15 = !{!"_Bool", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}


; 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.libmdbx_globals = type { %union.bin128, i32, i32, i8, i8, i8, i8, i32, %union.logger_union, %union.pthread_mutex_t, i64, ptr }
%union.bin128 = type { %struct.anon }
%struct.anon = type { i64, i64 }
%union.logger_union = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }

@globals = external local_unnamed_addr global %struct.libmdbx_globals, align 8
@.str.5 = external hidden unnamed_addr constant [6 x i8], align 1
@__func__.pnl_insert_span = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: noreturn
declare void @mdbx_assert_fail(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: hot nounwind uwtable
define dso_local i32 @pnl_insert_span(ptr noundef %0, i32 noundef %1, i64 noundef %2) local_unnamed_addr #1 {
  %4 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 25), align 1, !tbaa !5
  %5 = and i8 %4, 1
  %.not = icmp ne i8 %5, 0
  %.not33 = icmp eq i64 %2, 0
  %or.cond = and i1 %.not33, %.not
  br i1 %or.cond, label %6, label %7, !prof !13

6:                                                ; preds = %3
  tail call void @mdbx_assert_fail(ptr noundef null, ptr noundef nonnull @.str.5, ptr noundef nonnull @__func__.pnl_insert_span, i32 noundef 118) #3
  unreachable

7:                                                ; preds = %3
  %8 = tail call i32 @pnl_need(ptr noundef %0, i64 noundef %2)
  %.not34 = icmp eq i32 %8, 0
  br i1 %.not34, label %9, label %.loopexit, !prof !14

9:                                                ; preds = %7
  %10 = load ptr, ptr %0, align 8, !tbaa !15
  %11 = load i32, ptr %10, align 4, !tbaa !16
  %12 = zext i32 %11 to i64
  %13 = add i64 %12, %2
  %14 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 25), align 1, !tbaa !5
  %15 = and i8 %14, 1
  %.not35 = icmp ne i8 %15, 0
  %16 = icmp ugt i64 %13, 2147483646
  %or.cond38 = select i1 %.not35, i1 %16, i1 false
  br i1 %or.cond38, label %17, label %18, !prof !13

17:                                               ; preds = %9
  tail call void @mdbx_assert_fail(ptr noundef null, ptr noundef nonnull @.str.6, ptr noundef nonnull @__func__.pnl_insert_span, i32 noundef 125) #3
  unreachable

18:                                               ; preds = %9
  %19 = trunc i64 %13 to i32
  store i32 %19, ptr %10, align 4, !tbaa !16
  %.not3639 = icmp eq i32 %11, 0
  br i1 %.not3639, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %18, %22
  %.02941 = phi i64 [ %24, %22 ], [ %13, %18 ]
  %.03040 = phi i64 [ %23, %22 ], [ %12, %18 ]
  %20 = getelementptr inbounds i32, ptr %10, i64 %.03040
  %21 = load i32, ptr %20, align 4, !tbaa !16
  %.not37 = icmp ugt i32 %21, %1
  br i1 %.not37, label %.critedge, label %22

22:                                               ; preds = %.lr.ph
  %23 = add nsw i64 %.03040, -1
  %24 = add i64 %.02941, -1
  %25 = getelementptr inbounds i32, ptr %10, i64 %.02941
  store i32 %21, ptr %25, align 4, !tbaa !16
  %.not36 = icmp eq i64 %23, 0
  br i1 %.not36, label %.critedge, label %.lr.ph, !llvm.loop !17

.critedge:                                        ; preds = %.lr.ph, %22, %18
  %.030.lcssa = phi i64 [ 0, %18 ], [ 0, %22 ], [ %.03040, %.lr.ph ]
  %.029.lcssa = phi i64 [ %13, %18 ], [ %2, %22 ], [ %.02941, %.lr.ph ]
  %26 = icmp ugt i64 %.029.lcssa, %.030.lcssa
  br i1 %26, label %.lr.ph48.preheader, label %.loopexit

.lr.ph48.preheader:                               ; preds = %.critedge
  %27 = sub i64 %.029.lcssa, %.030.lcssa
  %min.iters.check = icmp ult i64 %27, 8
  br i1 %min.iters.check, label %.lr.ph48.preheader53, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph48.preheader
  %n.vec = and i64 %27, -8
  %.cast = trunc i64 %n.vec to i32
  %ind.end = add i32 %.cast, %1
  %ind.end49 = sub i64 %.029.lcssa, %n.vec
  %.splatinsert = insertelement <4 x i32> poison, i32 %1, i64 0
  %.splat = shufflevector <4 x i32> %.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  %induction = add <4 x i32> %.splat, <i32 0, i32 1, i32 2, i32 3>
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <4 x i32> [ %induction, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %offset.idx = sub i64 %.029.lcssa, %index
  %28 = getelementptr inbounds i32, ptr %10, i64 %offset.idx
  %29 = getelementptr inbounds i8, ptr %28, i64 -12
  %30 = getelementptr inbounds i8, ptr %28, i64 -28
  %reverse = shufflevector <4 x i32> %vec.ind, <4 x i32> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
  store <4 x i32> %reverse, ptr %29, align 4, !tbaa !16
  %reverse52 = shufflevector <4 x i32> %step.add, <4 x i32> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
  store <4 x i32> %reverse52, ptr %30, align 4, !tbaa !16
  %index.next = add nuw i64 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %31 = icmp eq i64 %index.next, %n.vec
  br i1 %31, label %middle.block, label %vector.body, !llvm.loop !19

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %27, %n.vec
  br i1 %cmp.n, label %.loopexit, label %.lr.ph48.preheader53

.lr.ph48.preheader53:                             ; preds = %middle.block, %.lr.ph48.preheader
  %.047.ph = phi i32 [ %1, %.lr.ph48.preheader ], [ %ind.end, %middle.block ]
  %.146.ph = phi i64 [ %.029.lcssa, %.lr.ph48.preheader ], [ %ind.end49, %middle.block ]
  br label %.lr.ph48

.lr.ph48:                                         ; preds = %.lr.ph48.preheader53, %.lr.ph48
  %.047 = phi i32 [ %32, %.lr.ph48 ], [ %.047.ph, %.lr.ph48.preheader53 ]
  %.146 = phi i64 [ %34, %.lr.ph48 ], [ %.146.ph, %.lr.ph48.preheader53 ]
  %32 = add i32 %.047, 1
  %33 = getelementptr inbounds i32, ptr %10, i64 %.146
  store i32 %.047, ptr %33, align 4, !tbaa !16
  %34 = add i64 %.146, -1
  %35 = icmp ugt i64 %34, %.030.lcssa
  br i1 %35, label %.lr.ph48, label %.loopexit, !llvm.loop !22

.loopexit:                                        ; preds = %.lr.ph48, %middle.block, %.critedge, %7
  %.028 = phi i32 [ %8, %7 ], [ 0, %.critedge ], [ 0, %middle.block ], [ 0, %.lr.ph48 ]
  ret i32 %.028
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @pnl_need(ptr noalias noundef, i64 noundef) local_unnamed_addr #2

attributes #0 = { noreturn "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 = { 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 #2 = { 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 #3 = { noreturn 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 25}
!6 = !{!"libmdbx_globals", !7, i64 0, !9, i64 16, !9, i64 20, !7, i64 24, !7, i64 25, !7, i64 26, !10, i64 27, !9, i64 28, !7, i64 32, !7, i64 40, !11, i64 80, !12, i64 88}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"int", !7, i64 0}
!10 = !{!"_Bool", !7, i64 0}
!11 = !{!"long", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"branch_weights", i32 2000, i32 4002001}
!14 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!15 = !{!12, !12, i64 0}
!16 = !{!9, !9, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18, !20, !21}
!20 = !{!"llvm.loop.isvectorized", i32 1}
!21 = !{!"llvm.loop.unroll.runtime.disable"}
!22 = distinct !{!22, !18, !21, !20}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,LowerExpectIntrinsicPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass