; LLVM IR from erthink/libmdbx :: src (mvcc-readers)

; 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.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.1, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, i64, %struct.anon.2, %struct.anon.6, i8, ptr, ptr, ptr, %struct.anon.7, %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, i32, i64, i64, i64 }
%union.anon = type { ptr }
%union.mdbx_atomic_uint32_t = type { i32 }
%struct.anon.1 = type { ptr, ptr, ptr, ptr }
%struct.anon.2 = type { i32, i32, i32, i32, i64, i8, i8, i8, i8, i32, i32, i8, i8, i8, %struct.anon.3, %union.anon.4 }
%struct.anon.3 = type { i16, i16, i16, i16 }
%union.anon.4 = type { i32 }
%struct.anon.6 = type { i64, i64, i64, i64, i64 }
%struct.anon.7 = 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.shared_lck = type { i64, i32, %union.mdbx_atomic_uint32_t, %union.mdbx_atomic_uint32_t, %union.mdbx_atomic_uint32_t, %union.mdbx_atomic_uint64_t, %union.mdbx_atomic_uint64_t, [2 x %union.mdbx_atomic_uint32_t], [16 x i8], %struct.pgops, [16 x i8], %union.pthread_mutex_t, %union.mdbx_atomic_uint64_t, %union.mdbx_atomic_uint64_t, %union.mdbx_atomic_uint64_t, %union.mdbx_atomic_uint64_t, %union.mdbx_atomic_uint32_t, i32, %struct.anon.10, %union.pthread_mutex_t, %union.mdbx_atomic_uint32_t, %union.mdbx_atomic_uint32_t, [16 x i8], [0 x %struct.reader_slot] }
%struct.pgops = type { %union.mdbx_atomic_uint64_t, %union.mdbx_atomic_uint64_t, %union.mdbx_atomic_uint64_t, %union.mdbx_atomic_uint64_t, %union.mdbx_atomic_uint64_t, %union.mdbx_atomic_uint64_t, %union.mdbx_atomic_uint64_t, %union.mdbx_atomic_uint64_t, %union.mdbx_atomic_uint64_t, %union.mdbx_atomic_uint64_t, %union.mdbx_atomic_uint64_t, %union.mdbx_atomic_uint64_t, %union.mdbx_atomic_uint32_t, %union.mdbx_atomic_uint32_t, %struct.anon.8 }
%struct.anon.8 = type { %struct.gc_prof_stat, %struct.gc_prof_stat, i32, i32, i32, i32, i32 }
%struct.gc_prof_stat = type { i64, i64, i32, i32, i32, i32, %struct.anon.9 }
%struct.anon.9 = type { i64, i64, i32 }
%struct.anon.10 = type { [4 x i32], [4 x i64] }
%struct.reader_slot = type { %union.mdbx_atomic_uint64_t, %union.mdbx_atomic_uint64_t, %union.mdbx_atomic_uint32_t, %union.mdbx_atomic_uint32_t, %union.mdbx_atomic_uint64_t }

; 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: alwaysinline nounwind uwtable
declare hidden i32 @atomic_load32(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) #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i64 @atomic_load64(ptr noundef, i32 noundef) #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i64 @safe64_read(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @mvcc_largest_this(ptr noundef %0, i32 noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.MDBX_env, ptr %11, i32 0, i32 6
  %13 = getelementptr inbounds %struct.osal_mmap, ptr %12, i32 0, i32 0
  %14 = load ptr, ptr %13, align 8, !tbaa !11
  store ptr %14, ptr %5, align 8, !tbaa !5
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = icmp ne ptr %15, null
  %17 = xor i1 %16, true
  %18 = xor i1 %17, true
  %19 = zext i1 %18 to i32
  %20 = sext i32 %19 to i64
  %21 = call i64 @llvm.expect.i64(i64 %20, i64 1)
  %22 = icmp ne i64 %21, 0
  br i1 %22, label %23, label %108

23:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.shared_lck, ptr %24, i32 0, i32 20
  %26 = call i32 @atomic_load32(ptr noundef %25, i32 noundef 1)
  %27 = zext i32 %26 to i64
  store i64 %27, ptr %6, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store i64 0, ptr %7, align 8, !tbaa !12
  br label %28

28:                                               ; preds = %104, %23
  %29 = load i64, ptr %7, align 8, !tbaa !12
  %30 = load i64, ptr %6, align 8, !tbaa !12
  %31 = icmp ult i64 %29, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %28
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %107

33:                                               ; preds = %28
  br label %34

34:                                               ; preds = %100, %33
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.shared_lck, ptr %35, i32 0, i32 23
  %37 = load i64, ptr %7, align 8, !tbaa !12
  %38 = getelementptr inbounds [0 x %struct.reader_slot], ptr %36, i64 0, i64 %37
  %39 = getelementptr inbounds %struct.reader_slot, ptr %38, i32 0, i32 2
  %40 = call i32 @atomic_load32(ptr noundef %39, i32 noundef 1)
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.MDBX_env, ptr %41, i32 0, i32 20
  %43 = load i32, ptr %42, align 4, !tbaa !14
  %44 = icmp eq i32 %40, %43
  br i1 %44, label %45, label %103

45:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.shared_lck, ptr %46, i32 0, i32 23
  %48 = load i64, ptr %7, align 8, !tbaa !12
  %49 = getelementptr inbounds [0 x %struct.reader_slot], ptr %47, i64 0, i64 %48
  %50 = getelementptr inbounds %struct.reader_slot, ptr %49, i32 0, i32 3
  %51 = call i32 @atomic_load32(ptr noundef %50, i32 noundef 0)
  store i32 %51, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.shared_lck, ptr %52, i32 0, i32 23
  %54 = load i64, ptr %7, align 8, !tbaa !12
  %55 = getelementptr inbounds [0 x %struct.reader_slot], ptr %53, i64 0, i64 %54
  %56 = getelementptr inbounds %struct.reader_slot, ptr %55, i32 0, i32 0
  %57 = call i64 @safe64_read(ptr noundef %56)
  store i64 %57, ptr %10, align 8, !tbaa !12
  %58 = load i32, ptr %9, align 4, !tbaa !9
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.shared_lck, ptr %59, i32 0, i32 23
  %61 = load i64, ptr %7, align 8, !tbaa !12
  %62 = getelementptr inbounds [0 x %struct.reader_slot], ptr %60, i64 0, i64 %61
  %63 = getelementptr inbounds %struct.reader_slot, ptr %62, i32 0, i32 3
  %64 = call i32 @atomic_load32(ptr noundef %63, i32 noundef 1)
  %65 = icmp ne i32 %58, %64
  br i1 %65, label %75, label %66

66:                                               ; preds = %45
  %67 = load i64, ptr %10, align 8, !tbaa !12
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.shared_lck, ptr %68, i32 0, i32 23
  %70 = load i64, ptr %7, align 8, !tbaa !12
  %71 = getelementptr inbounds [0 x %struct.reader_slot], ptr %69, i64 0, i64 %70
  %72 = getelementptr inbounds %struct.reader_slot, ptr %71, i32 0, i32 0
  %73 = call i64 @safe64_read(ptr noundef %72)
  %74 = icmp ne i64 %67, %73
  br label %75

75:                                               ; preds = %66, %45
  %76 = phi i1 [ true, %45 ], [ %74, %66 ]
  %77 = xor i1 %76, true
  %78 = xor i1 %77, true
  %79 = zext i1 %78 to i32
  %80 = sext i32 %79 to i64
  %81 = call i64 @llvm.expect.i64(i64 %80, i64 0)
  %82 = icmp ne i64 %81, 0
  br i1 %82, label %83, label %84

83:                                               ; preds = %75
  store i32 5, ptr %8, align 4
  br label %100

84:                                               ; preds = %75
  %85 = load i32, ptr %4, align 4, !tbaa !9
  %86 = load i32, ptr %9, align 4, !tbaa !9
  %87 = icmp ult i32 %85, %86
  br i1 %87, label %88, label %99

88:                                               ; preds = %84
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.shared_lck, ptr %89, i32 0, i32 12
  %91 = call i64 @atomic_load64(ptr noundef %90, i32 noundef 1)
  %92 = load i64, ptr %10, align 8, !tbaa !12
  %93 = icmp ule i64 %91, %92
  br i1 %93, label %94, label %99

94:                                               ; preds = %88
  %95 = load i64, ptr %10, align 8, !tbaa !12
  %96 = icmp ule i64 %95, -4294967297
  br i1 %96, label %97, label %99

97:                                               ; preds = %94
  %98 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %98, ptr %4, align 4, !tbaa !9
  br label %99

99:                                               ; preds = %97, %94, %88, %84
  store i32 0, ptr %8, align 4
  br label %100

100:                                              ; preds = %99, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  %101 = load i32, ptr %8, align 4
  switch i32 %101, label %110 [
    i32 0, label %102
    i32 5, label %34
  ]

102:                                              ; preds = %100
  br label %103

103:                                              ; preds = %102, %34
  br label %104

104:                                              ; preds = %103
  %105 = load i64, ptr %7, align 8, !tbaa !12
  %106 = add i64 %105, 1
  store i64 %106, ptr %7, align 8, !tbaa !12
  br label %28, !llvm.loop !25

107:                                              ; preds = %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %108

108:                                              ; preds = %107, %2
  %109 = load i32, ptr %4, align 4, !tbaa !9
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret i32 %109

110:                                              ; preds = %100
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { alwaysinline 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 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 = { 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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !10, i64 140}
!15 = !{!"MDBX_env", !7, i64 0, !10, i64 4, !10, i64 8, !16, i64 16, !10, i64 56, !10, i64 60, !16, i64 64, !6, i64 104, !17, i64 112, !17, i64 114, !17, i64 116, !17, i64 118, !17, i64 120, !17, i64 122, !7, i64 124, !7, i64 128, !7, i64 129, !17, i64 130, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !18, i64 152, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !10, i64 224, !10, i64 228, !10, i64 232, !6, i64 240, !6, i64 248, !13, i64 256, !19, i64 264, !22, i64 320, !20, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !23, i64 392, !7, i64 400, !10, i64 440, !10, i64 444, !6, i64 448, !24, i64 456, !7, i64 496, !7, i64 536}
!16 = !{!"osal_mmap", !7, i64 0, !10, i64 8, !13, i64 16, !13, i64 24, !13, i64 32}
!17 = !{!"short", !7, i64 0}
!18 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!19 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !13, i64 16, !7, i64 24, !7, i64 25, !7, i64 26, !7, i64 27, !10, i64 28, !10, i64 32, !20, i64 36, !20, i64 37, !20, i64 38, !21, i64 40, !7, i64 48}
!20 = !{!"_Bool", !7, i64 0}
!21 = !{!"", !17, i64 0, !17, i64 2, !17, i64 4, !17, i64 6}
!22 = !{!"", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32}
!23 = !{!"", !13, i64 0}
!24 = !{!"osal_ioring", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


; 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.reader_slot = type { %union.mdbx_atomic_uint64_t, %union.mdbx_atomic_uint64_t, %union.mdbx_atomic_uint32_t, %union.mdbx_atomic_uint32_t, %union.mdbx_atomic_uint64_t }
%union.mdbx_atomic_uint32_t = type { i32 }
%union.mdbx_atomic_uint64_t = type { i64 }

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

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i64 @safe64_read(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @mvcc_largest_this(ptr nocapture noundef readonly %0, i32 noundef %1) local_unnamed_addr #1 {
  %3 = getelementptr inbounds i8, ptr %0, i64 64
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %.loopexit, label %5, !prof !8

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %4, i64 488
  %7 = tail call i32 @atomic_load32(ptr noundef nonnull %6, i32 noundef 1)
  %8 = zext i32 %7 to i64
  %.not39 = icmp eq i32 %7, 0
  br i1 %.not39, label %.loopexit, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %5
  %9 = getelementptr inbounds i8, ptr %4, i64 512
  %10 = getelementptr inbounds i8, ptr %0, i64 140
  %11 = getelementptr inbounds i8, ptr %4, i64 360
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %.critedge.thread
  %.038 = phi i32 [ %1, %.preheader.lr.ph ], [ %.4, %.critedge.thread ]
  %.02737 = phi i64 [ 0, %.preheader.lr.ph ], [ %33, %.critedge.thread ]
  %12 = getelementptr inbounds [0 x %struct.reader_slot], ptr %9, i64 0, i64 %.02737
  %13 = getelementptr inbounds i8, ptr %12, i64 16
  %14 = tail call i32 @atomic_load32(ptr noundef nonnull %13, i32 noundef 1)
  %15 = load i32, ptr %10, align 4, !tbaa !9
  %16 = icmp eq i32 %14, %15
  br i1 %16, label %.lr.ph, label %.critedge.thread

.lr.ph:                                           ; preds = %.preheader
  %17 = getelementptr inbounds i8, ptr %12, i64 20
  br label %18

18:                                               ; preds = %.lr.ph, %.critedge
  %19 = tail call i32 @atomic_load32(ptr noundef nonnull %17, i32 noundef 0)
  %20 = tail call i64 @safe64_read(ptr noundef nonnull %12)
  %21 = tail call i32 @atomic_load32(ptr noundef nonnull %17, i32 noundef 1)
  %.not31 = icmp eq i32 %19, %21
  br i1 %.not31, label %22, label %.critedge, !prof !23

22:                                               ; preds = %18
  %23 = tail call i64 @safe64_read(ptr noundef nonnull %12)
  %.not35 = icmp eq i64 %20, %23
  br i1 %.not35, label %24, label %.critedge, !prof !23

24:                                               ; preds = %22
  %25 = icmp ult i32 %.038, %19
  br i1 %25, label %26, label %.critedge.thread

26:                                               ; preds = %24
  %27 = tail call i64 @atomic_load64(ptr noundef nonnull %11, i32 noundef 1)
  %28 = icmp ule i64 %27, %20
  %29 = icmp ult i64 %20, -4294967296
  %or.cond = and i1 %29, %28
  %spec.select = select i1 %or.cond, i32 %19, i32 %.038
  br label %.critedge.thread

.critedge:                                        ; preds = %18, %22
  %30 = tail call i32 @atomic_load32(ptr noundef nonnull %13, i32 noundef 1)
  %31 = load i32, ptr %10, align 4, !tbaa !9
  %32 = icmp eq i32 %30, %31
  br i1 %32, label %18, label %.critedge.thread

.critedge.thread:                                 ; preds = %.critedge, %.preheader, %24, %26
  %.4 = phi i32 [ %spec.select, %26 ], [ %.038, %24 ], [ %.038, %.preheader ], [ %.038, %.critedge ]
  %33 = add nuw nsw i64 %.02737, 1
  %exitcond.not = icmp eq i64 %33, %8
  br i1 %exitcond.not, label %.loopexit, label %.preheader, !llvm.loop !24

.loopexit:                                        ; preds = %.critedge.thread, %5, %2
  %.5 = phi i32 [ %1, %2 ], [ %1, %5 ], [ %.4, %.critedge.thread ]
  ret i32 %.5
}

attributes #0 = { alwaysinline 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 = { 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" }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!9 = !{!10, !11, i64 140}
!10 = !{!"MDBX_env", !6, i64 0, !11, i64 4, !11, i64 8, !12, i64 16, !11, i64 56, !11, i64 60, !12, i64 64, !14, i64 104, !15, i64 112, !15, i64 114, !15, i64 116, !15, i64 118, !15, i64 120, !15, i64 122, !6, i64 124, !6, i64 128, !6, i64 129, !15, i64 130, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !16, i64 152, !14, i64 184, !14, i64 192, !14, i64 200, !14, i64 208, !14, i64 216, !11, i64 224, !11, i64 228, !11, i64 232, !14, i64 240, !14, i64 248, !13, i64 256, !17, i64 264, !20, i64 320, !18, i64 360, !14, i64 368, !14, i64 376, !14, i64 384, !21, i64 392, !6, i64 400, !11, i64 440, !11, i64 444, !14, i64 448, !22, i64 456, !6, i64 496, !6, i64 536}
!11 = !{!"int", !6, i64 0}
!12 = !{!"osal_mmap", !6, i64 0, !11, i64 8, !13, i64 16, !13, i64 24, !13, i64 32}
!13 = !{!"long", !6, i64 0}
!14 = !{!"any pointer", !6, i64 0}
!15 = !{!"short", !6, i64 0}
!16 = !{!"", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!17 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !13, i64 16, !6, i64 24, !6, i64 25, !6, i64 26, !6, i64 27, !11, i64 28, !11, i64 32, !18, i64 36, !18, i64 37, !18, i64 38, !19, i64 40, !6, i64 48}
!18 = !{!"_Bool", !6, i64 0}
!19 = !{!"", !15, i64 0, !15, i64 2, !15, i64 4, !15, i64 6}
!20 = !{!"", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32}
!21 = !{!"", !13, i64 0}
!22 = !{!"osal_ioring", !11, i64 0, !11, i64 4, !11, i64 8, !14, i64 16, !14, i64 24, !14, i64 32}
!23 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


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