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

; 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.6 }
%struct.anon.6 = 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 }
%struct.osal_ioring = type { i32, i32, i32, ptr, ptr, ptr }
%struct.ior_item = type { i64, i64, %union.anon.9 }
%union.anon.9 = type { %struct.iovec }
%struct.iovec = type { ptr, i64 }

@globals = external global %struct.libmdbx_globals, align 8
@.str.13 = external hidden unnamed_addr constant [53 x i8], align 1
@__func__.osal_ioring_resize = external hidden unnamed_addr constant [19 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [31 x i8], align 1

; Function Attrs: cold noreturn nounwind optsize uwtable
declare dso_local void @mdbx_assert_fail(ptr noundef, ptr 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: 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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @osal_ioring_resize(ptr noundef %0, i64 noundef %1) #4 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  br label %8

8:                                                ; preds = %2
  %9 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 4), align 1, !tbaa !11
  %10 = zext i8 %9 to i32
  %11 = and i32 %10, 1
  %12 = icmp ne i32 %11, 0
  %13 = xor i1 %12, true
  %14 = xor i1 %13, true
  %15 = zext i1 %14 to i32
  %16 = sext i32 %15 to i64
  %17 = call i64 @llvm.expect.i64(i64 %16, i64 1)
  %18 = icmp ne i64 %17, 0
  br i1 %18, label %19, label %38

19:                                               ; preds = %8
  br label %20

20:                                               ; preds = %19
  %21 = load i64, ptr %5, align 8, !tbaa !9
  %22 = icmp ugt i64 %21, 0
  br i1 %22, label %23, label %26

23:                                               ; preds = %20
  %24 = load i64, ptr %5, align 8, !tbaa !9
  %25 = icmp ult i64 %24, 67108863
  br label %26

26:                                               ; preds = %23, %20
  %27 = phi i1 [ false, %20 ], [ %25, %23 ]
  %28 = xor i1 %27, true
  %29 = xor i1 %28, true
  %30 = xor i1 %29, true
  %31 = zext i1 %30 to i32
  %32 = sext i32 %31 to i64
  %33 = call i64 @llvm.expect.i64(i64 %32, i64 0)
  %34 = icmp ne i64 %33, 0
  br i1 %34, label %35, label %36

35:                                               ; preds = %26
  call void @mdbx_assert_fail(ptr noundef null, ptr noundef @.str.13, ptr noundef @__func__.osal_ioring_resize, i32 noundef 1045) #7
  unreachable

36:                                               ; preds = %26
  br label %37

37:                                               ; preds = %36
  br label %38

38:                                               ; preds = %37, %8
  br label %39

39:                                               ; preds = %38
  %40 = load i64, ptr %5, align 8, !tbaa !9
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.osal_ioring, ptr %41, i32 0, i32 1
  %43 = load i32, ptr %42, align 4, !tbaa !15
  %44 = zext i32 %43 to i64
  %45 = icmp ne i64 %40, %44
  br i1 %45, label %46, label %149

46:                                               ; preds = %39
  br label %47

47:                                               ; preds = %46
  %48 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 4), align 1, !tbaa !11
  %49 = zext i8 %48 to i32
  %50 = and i32 %49, 1
  %51 = icmp ne i32 %50, 0
  %52 = xor i1 %51, true
  %53 = xor i1 %52, true
  %54 = zext i1 %53 to i32
  %55 = sext i32 %54 to i64
  %56 = call i64 @llvm.expect.i64(i64 %55, i64 1)
  %57 = icmp ne i64 %56, 0
  br i1 %57, label %58, label %75

58:                                               ; preds = %47
  br label %59

59:                                               ; preds = %58
  %60 = load i64, ptr %5, align 8, !tbaa !9
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = call i32 @osal_ioring_used(ptr noundef %61)
  %63 = zext i32 %62 to i64
  %64 = icmp uge i64 %60, %63
  %65 = xor i1 %64, true
  %66 = xor i1 %65, true
  %67 = xor i1 %66, true
  %68 = zext i1 %67 to i32
  %69 = sext i32 %68 to i64
  %70 = call i64 @llvm.expect.i64(i64 %69, i64 0)
  %71 = icmp ne i64 %70, 0
  br i1 %71, label %72, label %73

72:                                               ; preds = %59
  call void @mdbx_assert_fail(ptr noundef null, ptr noundef @.str.14, ptr noundef @__func__.osal_ioring_resize, i32 noundef 1057) #7
  unreachable

73:                                               ; preds = %59
  br label %74

74:                                               ; preds = %73
  br label %75

75:                                               ; preds = %74, %47
  br label %76

76:                                               ; preds = %75
  %77 = load i64, ptr %5, align 8, !tbaa !9
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.osal_ioring, ptr %78, i32 0, i32 1
  %80 = load i32, ptr %79, align 4, !tbaa !15
  %81 = zext i32 %80 to i64
  %82 = icmp ult i64 %77, %81
  br i1 %82, label %83, label %86

83:                                               ; preds = %76
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = load i64, ptr %5, align 8, !tbaa !9
  call void @ior_cleanup(ptr noundef %84, i64 noundef %85)
  br label %86

86:                                               ; preds = %83, %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.osal_ioring, ptr %87, i32 0, i32 4
  %89 = load ptr, ptr %88, align 8, !tbaa !17
  %90 = load i64, ptr %5, align 8, !tbaa !9
  %91 = mul i64 32, %90
  %92 = call ptr @realloc(ptr noundef %89, i64 noundef %91) #9
  store ptr %92, ptr %6, align 8, !tbaa !5
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = icmp ne ptr %93, null
  %95 = xor i1 %94, true
  %96 = xor i1 %95, true
  %97 = xor i1 %96, true
  %98 = zext i1 %97 to i32
  %99 = sext i32 %98 to i64
  %100 = call i64 @llvm.expect.i64(i64 %99, i64 0)
  %101 = icmp ne i64 %100, 0
  br i1 %101, label %102, label %103

102:                                              ; preds = %86
  store i32 12, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %146

103:                                              ; preds = %86
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.osal_ioring, ptr %105, i32 0, i32 4
  store ptr %104, ptr %106, align 8, !tbaa !17
  %107 = load i64, ptr %5, align 8, !tbaa !9
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.osal_ioring, ptr %108, i32 0, i32 1
  %110 = load i32, ptr %109, align 4, !tbaa !15
  %111 = zext i32 %110 to i64
  %112 = icmp ugt i64 %107, %111
  br i1 %112, label %113, label %129

113:                                              ; preds = %103
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.osal_ioring, ptr %114, i32 0, i32 4
  %116 = load ptr, ptr %115, align 8, !tbaa !17
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.osal_ioring, ptr %117, i32 0, i32 1
  %119 = load i32, ptr %118, align 4, !tbaa !15
  %120 = zext i32 %119 to i64
  %121 = getelementptr inbounds %struct.ior_item, ptr %116, i64 %120
  %122 = load i64, ptr %5, align 8, !tbaa !9
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.osal_ioring, ptr %123, i32 0, i32 1
  %125 = load i32, ptr %124, align 4, !tbaa !15
  %126 = zext i32 %125 to i64
  %127 = sub i64 %122, %126
  %128 = mul i64 32, %127
  call void @llvm.memset.p0.i64(ptr align 8 %121, i8 0, i64 %128, i1 false)
  br label %129

129:                                              ; preds = %113, %103
  %130 = load i64, ptr %5, align 8, !tbaa !9
  %131 = trunc i64 %130 to i32
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.osal_ioring, ptr %132, i32 0, i32 1
  store i32 %131, ptr %133, align 4, !tbaa !15
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.osal_ioring, ptr %134, i32 0, i32 4
  %136 = load ptr, ptr %135, align 8, !tbaa !17
  %137 = ptrtoint ptr %136 to i64
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.osal_ioring, ptr %138, i32 0, i32 1
  %140 = load i32, ptr %139, align 4, !tbaa !15
  %141 = zext i32 %140 to i64
  %142 = add nsw i64 %137, %141
  %143 = inttoptr i64 %142 to ptr
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.osal_ioring, ptr %144, i32 0, i32 5
  store ptr %143, ptr %145, align 8, !tbaa !18
  store i32 0, ptr %7, align 4
  br label %146

146:                                              ; preds = %129, %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  %147 = load i32, ptr %7, align 4
  switch i32 %147, label %152 [
    i32 0, label %148
    i32 1, label %150
  ]

148:                                              ; preds = %146
  br label %149

149:                                              ; preds = %148, %39
  store i32 0, ptr %3, align 4
  br label %150

150:                                              ; preds = %149, %146
  %151 = load i32, ptr %3, align 4
  ret i32 %151

152:                                              ; preds = %146
  unreachable
}

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

; Function Attrs: nounwind uwtable
declare hidden void @ior_cleanup(ptr noundef, i64 noundef) #4

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #6

attributes #0 = { cold noreturn 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 = { 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 = { nounwind allocsize(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 #7 = { cold noreturn }
attributes #8 = { nounwind }
attributes #9 = { nounwind allocsize(1) }

!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, !7, i64 25}
!12 = !{!"libmdbx_globals", !7, i64 0, !13, i64 16, !13, i64 20, !7, i64 24, !7, i64 25, !7, i64 26, !14, i64 27, !13, i64 28, !7, i64 32, !7, i64 40, !10, i64 80, !6, i64 88}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_Bool", !7, i64 0}
!15 = !{!16, !13, i64 4}
!16 = !{!"osal_ioring", !13, i64 0, !13, i64 4, !13, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!17 = !{!16, !6, i64 24}
!18 = !{!16, !6, i64 32}


; 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.6 }
%struct.anon.6 = 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 }
%struct.ior_item = type { i64, i64, %union.anon.9 }
%union.anon.9 = type { %struct.iovec }
%struct.iovec = type { ptr, i64 }

@globals = external local_unnamed_addr global %struct.libmdbx_globals, align 8
@.str.13 = external hidden unnamed_addr constant [53 x i8], align 1
@__func__.osal_ioring_resize = external hidden unnamed_addr constant [19 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [31 x i8], align 1

; Function Attrs: cold noreturn nounwind optsize uwtable
declare dso_local void @mdbx_assert_fail(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 13) i32 @osal_ioring_resize(ptr noundef %0, i64 noundef %1) local_unnamed_addr #2 {
  %3 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 25), align 1, !tbaa !5
  %4 = and i8 %3, 1
  %.not = icmp ne i8 %4, 0
  %5 = add i64 %1, -67108863
  %6 = icmp ult i64 %5, -67108862
  %or.cond = and i1 %6, %.not
  br i1 %or.cond, label %7, label %8, !prof !13

7:                                                ; preds = %2
  tail call void @mdbx_assert_fail(ptr noundef null, ptr noundef nonnull @.str.13, ptr noundef nonnull @__func__.osal_ioring_resize, i32 noundef 1045) #5
  unreachable

8:                                                ; preds = %2
  %9 = getelementptr inbounds i8, ptr %0, i64 4
  %10 = load i32, ptr %9, align 4, !tbaa !14
  %11 = zext i32 %10 to i64
  %.not30 = icmp eq i64 %11, %1
  br i1 %.not30, label %39, label %12

12:                                               ; preds = %8
  %.not31 = icmp eq i8 %4, 0
  br i1 %.not31, label %17, label %13, !prof !16

13:                                               ; preds = %12
  %14 = tail call i32 @osal_ioring_used(ptr noundef nonnull %0)
  %15 = zext i32 %14 to i64
  %.not32 = icmp ugt i64 %15, %1
  br i1 %.not32, label %16, label %._crit_edge, !prof !16

._crit_edge:                                      ; preds = %13
  %.pre = load i32, ptr %9, align 4, !tbaa !14
  %.pre36 = zext i32 %.pre to i64
  br label %17

16:                                               ; preds = %13
  tail call void @mdbx_assert_fail(ptr noundef null, ptr noundef nonnull @.str.14, ptr noundef nonnull @__func__.osal_ioring_resize, i32 noundef 1057) #5
  unreachable

17:                                               ; preds = %._crit_edge, %12
  %.pre-phi = phi i64 [ %.pre36, %._crit_edge ], [ %11, %12 ]
  %18 = icmp ugt i64 %.pre-phi, %1
  br i1 %18, label %19, label %20

19:                                               ; preds = %17
  tail call void @ior_cleanup(ptr noundef nonnull %0, i64 noundef %1)
  br label %20

20:                                               ; preds = %19, %17
  %21 = getelementptr inbounds i8, ptr %0, i64 24
  %22 = load ptr, ptr %21, align 8, !tbaa !17
  %23 = shl i64 %1, 5
  %24 = tail call ptr @realloc(ptr noundef %22, i64 noundef %23) #6
  %.not33 = icmp eq ptr %24, null
  br i1 %.not33, label %39, label %25, !prof !16

25:                                               ; preds = %20
  store ptr %24, ptr %21, align 8, !tbaa !17
  %26 = load i32, ptr %9, align 4, !tbaa !14
  %27 = zext i32 %26 to i64
  %28 = icmp ult i64 %27, %1
  br i1 %28, label %29, label %.thread

29:                                               ; preds = %25
  %30 = getelementptr inbounds %struct.ior_item, ptr %24, i64 %27
  %31 = sub i64 %1, %27
  %32 = shl i64 %31, 5
  tail call void @llvm.memset.p0.i64(ptr nonnull align 8 %30, i8 0, i64 %32, i1 false)
  br label %.thread

.thread:                                          ; preds = %25, %29
  %33 = trunc i64 %1 to i32
  store i32 %33, ptr %9, align 4, !tbaa !14
  %34 = ptrtoint ptr %24 to i64
  %35 = and i64 %1, 4294967295
  %36 = add nsw i64 %35, %34
  %37 = inttoptr i64 %36 to ptr
  %38 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %37, ptr %38, align 8, !tbaa !18
  br label %39

39:                                               ; preds = %8, %.thread, %20
  %.1 = phi i32 [ 12, %20 ], [ 0, %.thread ], [ 0, %8 ]
  ret i32 %.1
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @osal_ioring_used(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @ior_cleanup(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #4

attributes #0 = { cold noreturn 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 #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 #4 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { cold noreturn }
attributes #6 = { nounwind allocsize(1) }

!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 = !{!15, !9, i64 4}
!15 = !{!"osal_ioring", !9, i64 0, !9, i64 4, !9, i64 8, !12, i64 16, !12, i64 24, !12, i64 32}
!16 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!17 = !{!15, !12, i64 24}
!18 = !{!15, !12, i64 32}


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