; LLVM IR from erthink/libmdbx :: src (api-dbi)

; 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.dbi_rename_result = type { ptr, i32 }
%struct.iovec = type { ptr, i64 }
%struct.MDBX_txn = type { i32, i32, i64, i64, ptr, ptr, %struct.geo, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, %struct.MDBX_canary, ptr, %union.anon.2 }
%struct.geo = type { i16, i16, i32, i32, %union.anon.0, %union.anon.1 }
%union.anon.0 = type { i32 }
%union.anon.1 = type { i32 }
%struct.MDBX_canary = type { i64, i64, i64, i64 }
%union.anon.2 = type { %struct.anon.4 }
%struct.anon.4 = type { %struct.troika, ptr, %struct.anon.5, i8, i32, i32, i64, ptr, ptr, ptr, i64, %union.anon.6 }
%struct.troika = type { i8, i8, i8, i8, i32, [3 x i64] }
%struct.anon.5 = type { %struct.MDBX_rkl, i64, %struct.MDBX_rkl }
%struct.MDBX_rkl = type { i64, i64, i32, i32, ptr, [12 x i64] }
%union.anon.6 = type { %struct.anon.7 }
%struct.anon.7 = type { i64, ptr }
%struct.MDBX_env = type { %union.mdbx_atomic_uint32_t, i32, i32, %struct.osal_mmap, i32, i32, %struct.osal_mmap, ptr, i16, i16, i16, i16, i16, i16, %union.mdbx_atomic_uint32_t, i8, i8, i16, i32, i32, i32, i32, %struct.anon.9, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, i64, %struct.anon.10, %struct.anon.14, i8, ptr, ptr, ptr, %struct.anon.15, %union.pthread_mutex_t, i32, i32, ptr, %struct.osal_ioring, %union.pthread_mutex_t, [71 x %union.mdbx_atomic_uint64_t] }
%struct.osal_mmap = type { %union.anon.8, i32, i64, i64, i64 }
%union.anon.8 = type { ptr }
%union.mdbx_atomic_uint32_t = type { i32 }
%struct.anon.9 = type { ptr, ptr, ptr, ptr }
%struct.anon.10 = type { i32, i32, i32, i32, i64, i8, i8, i8, i8, i32, i32, i8, i8, i8, %struct.anon.11, %union.anon.12 }
%struct.anon.11 = type { i16, i16, i16, i16 }
%union.anon.12 = type { i32 }
%struct.anon.14 = type { i64, i64, i64, i64, i64 }
%struct.anon.15 = type { i64 }
%struct.osal_ioring = type { i32, i32, i32, ptr, ptr, 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 }
%union.mdbx_atomic_uint64_t = type { i64 }
%struct.defer_free_item = type { ptr, i64 }

@__func__.mdbx_dbi_rename2 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @log_if_error(i32 noundef, ptr noundef, i32 noundef) #0

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @check_txn_rw(ptr noundef, i32 noundef) #0

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

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

declare i32 @osal_fastmutex_acquire(ptr noundef) #3

; Function Attrs: cold nounwind optsize uwtable
define dso_local i32 @mdbx_dbi_rename2(ptr noundef %0, i32 noundef %1, ptr noundef %2) #4 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.dbi_rename_result, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  %12 = call i32 @check_txn_rw(ptr noundef %11, i32 noundef 51)
  store i32 %12, ptr %8, align 4, !tbaa !9
  %13 = load i32, ptr %8, align 4, !tbaa !9
  %14 = icmp ne i32 %13, 0
  %15 = xor i1 %14, true
  %16 = xor i1 %15, true
  %17 = zext i1 %16 to i32
  %18 = sext i32 %17 to i64
  %19 = call i64 @llvm.expect.i64(i64 %18, i64 0)
  %20 = icmp ne i64 %19, 0
  br i1 %20, label %21, label %24

21:                                               ; preds = %3
  %22 = load i32, ptr %8, align 4, !tbaa !9
  %23 = call i32 @log_if_error(i32 noundef %22, ptr noundef @__func__.mdbx_dbi_rename2, i32 noundef 115)
  store i32 %23, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %131

24:                                               ; preds = %3
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = icmp eq ptr %25, null
  br i1 %26, label %48, label %27

27:                                               ; preds = %24
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.iovec, ptr %28, i32 0, i32 0
  %30 = load ptr, ptr %29, align 8, !tbaa !11
  %31 = icmp eq ptr %30, null
  br i1 %31, label %48, label %32

32:                                               ; preds = %27
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = icmp eq ptr %33, inttoptr (i64 -1 to ptr)
  br i1 %34, label %48, label %35

35:                                               ; preds = %32
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.iovec, ptr %36, i32 0, i32 0
  %38 = load ptr, ptr %37, align 8, !tbaa !11
  %39 = icmp eq ptr %38, inttoptr (i64 -1 to ptr)
  br i1 %39, label %48, label %40

40:                                               ; preds = %35
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = icmp eq ptr %41, inttoptr (i64 -2 to ptr)
  br i1 %42, label %48, label %43

43:                                               ; preds = %40
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.iovec, ptr %44, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8, !tbaa !11
  %47 = icmp eq ptr %46, inttoptr (i64 -2 to ptr)
  br label %48

48:                                               ; preds = %43, %40, %35, %32, %27, %24
  %49 = phi i1 [ true, %40 ], [ true, %35 ], [ true, %32 ], [ true, %27 ], [ true, %24 ], [ %47, %43 ]
  %50 = xor i1 %49, true
  %51 = xor i1 %50, true
  %52 = zext i1 %51 to i32
  %53 = sext i32 %52 to i64
  %54 = call i64 @llvm.expect.i64(i64 %53, i64 0)
  %55 = icmp ne i64 %54, 0
  br i1 %55, label %56, label %58

56:                                               ; preds = %48
  %57 = call i32 @log_if_error(i32 noundef 22, ptr noundef @__func__.mdbx_dbi_rename2, i32 noundef 119)
  store i32 %57, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %131

58:                                               ; preds = %48
  %59 = load i32, ptr %6, align 4, !tbaa !9
  %60 = icmp ult i32 %59, 2
  %61 = xor i1 %60, true
  %62 = xor i1 %61, true
  %63 = zext i1 %62 to i32
  %64 = sext i32 %63 to i64
  %65 = call i64 @llvm.expect.i64(i64 %64, i64 0)
  %66 = icmp ne i64 %65, 0
  br i1 %66, label %67, label %69

67:                                               ; preds = %58
  %68 = call i32 @log_if_error(i32 noundef 22, ptr noundef @__func__.mdbx_dbi_rename2, i32 noundef 122)
  store i32 %68, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %131

69:                                               ; preds = %58
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = load i32, ptr %6, align 4, !tbaa !9
  %72 = zext i32 %71 to i64
  %73 = call i32 @dbi_check(ptr noundef %70, i64 noundef %72)
  store i32 %73, ptr %8, align 4, !tbaa !9
  %74 = load i32, ptr %8, align 4, !tbaa !9
  %75 = icmp ne i32 %74, 0
  %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 %85

82:                                               ; preds = %69
  %83 = load i32, ptr %8, align 4, !tbaa !9
  %84 = call i32 @log_if_error(i32 noundef %83, ptr noundef @__func__.mdbx_dbi_rename2, i32 noundef 125)
  store i32 %84, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %131

85:                                               ; preds = %69
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.MDBX_txn, ptr %86, i32 0, i32 9
  %88 = load ptr, ptr %87, align 8, !tbaa !14
  %89 = getelementptr inbounds %struct.MDBX_env, ptr %88, i32 0, i32 41
  %90 = call i32 @osal_fastmutex_acquire(ptr noundef %89)
  store i32 %90, ptr %8, align 4, !tbaa !9
  %91 = load i32, ptr %8, align 4, !tbaa !9
  %92 = icmp eq i32 %91, 0
  %93 = xor i1 %92, true
  %94 = xor i1 %93, true
  %95 = zext i1 %94 to i32
  %96 = sext i32 %95 to i64
  %97 = call i64 @llvm.expect.i64(i64 %96, i64 1)
  %98 = icmp ne i64 %97, 0
  br i1 %98, label %99, label %128

99:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = load i32, ptr %6, align 4, !tbaa !9
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = getelementptr inbounds { ptr, i64 }, ptr %102, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8
  %105 = getelementptr inbounds { ptr, i64 }, ptr %102, i32 0, i32 1
  %106 = load i64, ptr %105, align 8
  %107 = call { ptr, i32 } @dbi_rename_locked(ptr noundef %100, i32 noundef %101, ptr %104, i64 %106)
  %108 = getelementptr inbounds { ptr, i32 }, ptr %10, i32 0, i32 0
  %109 = extractvalue { ptr, i32 } %107, 0
  store ptr %109, ptr %108, align 8
  %110 = getelementptr inbounds { ptr, i32 }, ptr %10, i32 0, i32 1
  %111 = extractvalue { ptr, i32 } %107, 1
  store i32 %111, ptr %110, align 8
  %112 = getelementptr inbounds %struct.dbi_rename_result, ptr %10, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8, !tbaa !19
  %114 = icmp ne ptr %113, null
  br i1 %114, label %115, label %119

115:                                              ; preds = %99
  %116 = getelementptr inbounds %struct.dbi_rename_result, ptr %10, i32 0, i32 0
  %117 = load ptr, ptr %116, align 8, !tbaa !19
  %118 = getelementptr inbounds %struct.defer_free_item, ptr %117, i32 0, i32 0
  store ptr null, ptr %118, align 8, !tbaa !21
  br label %119

119:                                              ; preds = %115, %99
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.MDBX_txn, ptr %120, i32 0, i32 9
  %122 = load ptr, ptr %121, align 8, !tbaa !14
  %123 = getelementptr inbounds %struct.dbi_rename_result, ptr %10, i32 0, i32 0
  %124 = load ptr, ptr %123, align 8, !tbaa !19
  %125 = call i32 @dbi_defer_release(ptr noundef %122, ptr noundef %124)
  %126 = getelementptr inbounds %struct.dbi_rename_result, ptr %10, i32 0, i32 1
  %127 = load i32, ptr %126, align 8, !tbaa !23
  store i32 %127, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  br label %128

128:                                              ; preds = %119, %85
  %129 = load i32, ptr %8, align 4, !tbaa !9
  %130 = call i32 @log_if_error(i32 noundef %129, ptr noundef @__func__.mdbx_dbi_rename2, i32 noundef 135)
  store i32 %130, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %131

131:                                              ; preds = %128, %82, %67, %56, %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %132 = load i32, ptr %4, align 4
  ret i32 %132
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @dbi_check(ptr noundef, i64 noundef) #0

declare { ptr, i32 } @dbi_rename_locked(ptr noundef, i32 noundef, ptr, i64) #3

declare i32 @dbi_defer_release(ptr noundef, ptr noundef) #3

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #3 = { "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 = { cold nounwind optsize 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 = { 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, !6, i64 0}
!12 = !{!"iovec", !6, i64 0, !13, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !6, i64 80}
!15 = !{!"MDBX_txn", !10, i64 0, !10, i64 4, !13, i64 8, !13, i64 16, !6, i64 24, !6, i64 32, !16, i64 40, !13, i64 64, !13, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !18, i64 128, !6, i64 160, !7, i64 168}
!16 = !{!"geo", !17, i64 0, !17, i64 2, !10, i64 4, !10, i64 8, !7, i64 12, !7, i64 16}
!17 = !{!"short", !7, i64 0}
!18 = !{!"MDBX_canary", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!19 = !{!20, !6, i64 0}
!20 = !{!"dbi_rename_result", !6, i64 0, !10, i64 8}
!21 = !{!22, !6, i64 0}
!22 = !{!"defer_free_item", !6, i64 0, !13, i64 8}
!23 = !{!20, !10, i64 8}


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

@__func__.mdbx_dbi_rename2 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @log_if_error(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @check_txn_rw(ptr noundef, i32 noundef) local_unnamed_addr #0

declare i32 @osal_fastmutex_acquire(ptr noundef) local_unnamed_addr #1

; Function Attrs: cold nounwind optsize uwtable
define dso_local i32 @mdbx_dbi_rename2(ptr noundef %0, i32 noundef %1, ptr noundef readonly %2) local_unnamed_addr #2 {
  %4 = tail call i32 @check_txn_rw(ptr noundef %0, i32 noundef 51)
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %7, label %5, !prof !5

5:                                                ; preds = %3
  %6 = tail call i32 @log_if_error(i32 noundef %4, ptr noundef nonnull @__func__.mdbx_dbi_rename2, i32 noundef 115)
  br label %43

7:                                                ; preds = %3
  %8 = icmp eq ptr %2, null
  br i1 %8, label %.critedge, label %9, !prof !6

9:                                                ; preds = %7
  %10 = load ptr, ptr %2, align 8, !tbaa !7
  %11 = icmp eq ptr %10, null
  %12 = icmp eq ptr %2, inttoptr (i64 -1 to ptr)
  %or.cond = or i1 %12, %11
  %13 = icmp eq ptr %2, inttoptr (i64 -2 to ptr)
  %or.cond36 = or i1 %13, %or.cond
  %switch = icmp ugt ptr %10, inttoptr (i64 -3 to ptr)
  %or.cond37 = or i1 %switch, %or.cond36
  br i1 %or.cond37, label %.critedge, label %15, !prof !13

.critedge:                                        ; preds = %9, %7
  %14 = tail call i32 @log_if_error(i32 noundef 22, ptr noundef nonnull @__func__.mdbx_dbi_rename2, i32 noundef 119)
  br label %43

15:                                               ; preds = %9
  %16 = icmp ult i32 %1, 2
  br i1 %16, label %17, label %19, !prof !6

17:                                               ; preds = %15
  %18 = tail call i32 @log_if_error(i32 noundef 22, ptr noundef nonnull @__func__.mdbx_dbi_rename2, i32 noundef 122)
  br label %43

19:                                               ; preds = %15
  %20 = zext i32 %1 to i64
  %21 = tail call i32 @dbi_check(ptr noundef %0, i64 noundef %20)
  %.not34 = icmp eq i32 %21, 0
  br i1 %.not34, label %24, label %22, !prof !5

22:                                               ; preds = %19
  %23 = tail call i32 @log_if_error(i32 noundef %21, ptr noundef nonnull @__func__.mdbx_dbi_rename2, i32 noundef 125)
  br label %43

24:                                               ; preds = %19
  %25 = getelementptr inbounds i8, ptr %0, i64 80
  %26 = load ptr, ptr %25, align 8, !tbaa !14
  %27 = getelementptr inbounds i8, ptr %26, i64 400
  %28 = tail call i32 @osal_fastmutex_acquire(ptr noundef nonnull %27) #3
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %30, label %41, !prof !5

30:                                               ; preds = %24
  %31 = load ptr, ptr %2, align 8
  %32 = getelementptr inbounds i8, ptr %2, i64 8
  %33 = load i64, ptr %32, align 8
  %34 = tail call { ptr, i32 } @dbi_rename_locked(ptr noundef nonnull %0, i32 noundef %1, ptr %31, i64 %33) #3
  %35 = extractvalue { ptr, i32 } %34, 0
  %36 = extractvalue { ptr, i32 } %34, 1
  %.not35 = icmp eq ptr %35, null
  br i1 %.not35, label %38, label %37

37:                                               ; preds = %30
  store ptr null, ptr %35, align 8, !tbaa !20
  br label %38

38:                                               ; preds = %37, %30
  %39 = load ptr, ptr %25, align 8, !tbaa !14
  %40 = tail call i32 @dbi_defer_release(ptr noundef %39, ptr noundef %35) #3
  br label %41

41:                                               ; preds = %38, %24
  %.026 = phi i32 [ %36, %38 ], [ %28, %24 ]
  %42 = tail call i32 @log_if_error(i32 noundef %.026, ptr noundef nonnull @__func__.mdbx_dbi_rename2, i32 noundef 135)
  br label %43

43:                                               ; preds = %41, %22, %17, %.critedge, %5
  %.0 = phi i32 [ %6, %5 ], [ %14, %.critedge ], [ %18, %17 ], [ %23, %22 ], [ %42, %41 ]
  ret i32 %.0
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @dbi_check(ptr noundef, i64 noundef) local_unnamed_addr #0

declare { ptr, i32 } @dbi_rename_locked(ptr noundef, i32 noundef, ptr, i64) local_unnamed_addr #1

declare i32 @dbi_defer_release(ptr noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { 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 #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 = { cold nounwind optsize 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 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!6 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!7 = !{!8, !9, i64 0}
!8 = !{!"iovec", !9, i64 0, !12, i64 8}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"branch_weights", i32 12016004, i32 4000000}
!14 = !{!15, !9, i64 80}
!15 = !{!"MDBX_txn", !16, i64 0, !16, i64 4, !12, i64 8, !12, i64 16, !9, i64 24, !9, i64 32, !17, i64 40, !12, i64 64, !12, i64 72, !9, i64 80, !9, i64 88, !9, i64 96, !9, i64 104, !9, i64 112, !9, i64 120, !19, i64 128, !9, i64 160, !10, i64 168}
!16 = !{!"int", !10, i64 0}
!17 = !{!"geo", !18, i64 0, !18, i64 2, !16, i64 4, !16, i64 8, !10, i64 12, !10, i64 16}
!18 = !{!"short", !10, i64 0}
!19 = !{!"MDBX_canary", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!20 = !{!21, !9, i64 0}
!21 = !{!"defer_free_item", !9, i64 0, !12, i64 8}


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