; LLVM IR from seppo0010/rlite :: src (page_btree)

; 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.rl_btree = type { ptr, i64, i64, ptr, i64, i64 }
%struct.rl_btree_iterator = type { ptr, ptr, i64, i64, [0 x %struct.rl_btree_iterator_nodes] }
%struct.rl_btree_iterator_nodes = type { i64, ptr }
%struct.rl_btree_type = type { ptr, ptr, i32, i32, ptr }
%struct.rl_btree_node = type { ptr, ptr, ptr, i64 }

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

declare i32 @rl_read(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @rl_btree_iterator_create(ptr noundef %0, ptr noundef %1, ptr noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  store ptr null, ptr %10, align 8, !tbaa !5
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.rl_btree, ptr %11, i32 0, i32 5
  %13 = load i64, ptr %12, align 8, !tbaa !9
  %14 = icmp eq i64 %13, 0
  br i1 %14, label %15, label %16

15:                                               ; preds = %3
  store i32 3, ptr %7, align 4, !tbaa !12
  br label %118

16:                                               ; preds = %3
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.rl_btree, ptr %17, i32 0, i32 2
  %19 = load i64, ptr %18, align 8, !tbaa !14
  %20 = mul i64 16, %19
  %21 = add i64 32, %20
  %22 = call noalias ptr @malloc(i64 noundef %21) #5
  store ptr %22, ptr %10, align 8, !tbaa !5
  %23 = load ptr, ptr %10, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %26, label %25

25:                                               ; preds = %16
  store i32 4, ptr %7, align 4, !tbaa !12
  br label %118

26:                                               ; preds = %16
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.rl_btree_iterator, ptr %28, i32 0, i32 0
  store ptr %27, ptr %29, align 8, !tbaa !5
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.rl_btree_iterator, ptr %31, i32 0, i32 1
  store ptr %30, ptr %32, align 8, !tbaa !5
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.rl_btree, ptr %33, i32 0, i32 2
  %35 = load i64, ptr %34, align 8, !tbaa !14
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.rl_btree_iterator, ptr %36, i32 0, i32 3
  store i64 %35, ptr %37, align 8, !tbaa !15
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.rl_btree, ptr %38, i32 0, i32 5
  %40 = load i64, ptr %39, align 8, !tbaa !9
  %41 = load ptr, ptr %10, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.rl_btree_iterator, ptr %41, i32 0, i32 2
  store i64 %40, ptr %42, align 8, !tbaa !15
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.rl_btree_iterator, ptr %43, i32 0, i32 4
  %45 = getelementptr inbounds [0 x %struct.rl_btree_iterator_nodes], ptr %44, i64 0, i64 0
  %46 = getelementptr inbounds %struct.rl_btree_iterator_nodes, ptr %45, i32 0, i32 1
  store ptr null, ptr %46, align 8, !tbaa !16
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.rl_btree, ptr %48, i32 0, i32 3
  %50 = load ptr, ptr %49, align 8, !tbaa !18
  %51 = getelementptr inbounds %struct.rl_btree_type, ptr %50, i32 0, i32 1
  %52 = load ptr, ptr %51, align 8, !tbaa !19
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.rl_btree, ptr %53, i32 0, i32 4
  %55 = load i64, ptr %54, align 8, !tbaa !21
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = call i32 @rl_read(ptr noundef %47, ptr noundef %52, i64 noundef %55, ptr noundef %56, ptr noundef %9, i32 noundef 0)
  store i32 %57, ptr %7, align 4, !tbaa !12
  %58 = load i32, ptr %7, align 4, !tbaa !12
  %59 = icmp ne i32 2, %58
  br i1 %59, label %60, label %61

60:                                               ; preds = %26
  br label %118

61:                                               ; preds = %26
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.rl_btree_iterator, ptr %63, i32 0, i32 4
  %65 = getelementptr inbounds [0 x %struct.rl_btree_iterator_nodes], ptr %64, i64 0, i64 0
  %66 = getelementptr inbounds %struct.rl_btree_iterator_nodes, ptr %65, i32 0, i32 1
  store ptr %62, ptr %66, align 8, !tbaa !16
  %67 = load ptr, ptr %10, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.rl_btree_iterator, ptr %67, i32 0, i32 4
  %69 = getelementptr inbounds [0 x %struct.rl_btree_iterator_nodes], ptr %68, i64 0, i64 0
  %70 = getelementptr inbounds %struct.rl_btree_iterator_nodes, ptr %69, i32 0, i32 0
  store i64 0, ptr %70, align 8, !tbaa !22
  store i64 1, ptr %8, align 8, !tbaa !15
  br label %71

71:                                               ; preds = %112, %61
  %72 = load i64, ptr %8, align 8, !tbaa !15
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.rl_btree, ptr %73, i32 0, i32 2
  %75 = load i64, ptr %74, align 8, !tbaa !14
  %76 = icmp slt i64 %72, %75
  br i1 %76, label %77, label %115

77:                                               ; preds = %71
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.rl_btree, ptr %79, i32 0, i32 3
  %81 = load ptr, ptr %80, align 8, !tbaa !18
  %82 = getelementptr inbounds %struct.rl_btree_type, ptr %81, i32 0, i32 1
  %83 = load ptr, ptr %82, align 8, !tbaa !19
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.rl_btree_iterator, ptr %84, i32 0, i32 4
  %86 = load i64, ptr %8, align 8, !tbaa !15
  %87 = sub nsw i64 %86, 1
  %88 = getelementptr inbounds [0 x %struct.rl_btree_iterator_nodes], ptr %85, i64 0, i64 %87
  %89 = getelementptr inbounds %struct.rl_btree_iterator_nodes, ptr %88, i32 0, i32 1
  %90 = load ptr, ptr %89, align 8, !tbaa !16
  %91 = getelementptr inbounds %struct.rl_btree_node, ptr %90, i32 0, i32 1
  %92 = load ptr, ptr %91, align 8, !tbaa !23
  %93 = getelementptr inbounds i64, ptr %92, i64 0
  %94 = load i64, ptr %93, align 8, !tbaa !15
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = call i32 @rl_read(ptr noundef %78, ptr noundef %83, i64 noundef %94, ptr noundef %95, ptr noundef %9, i32 noundef 0)
  store i32 %96, ptr %7, align 4, !tbaa !12
  %97 = load i32, ptr %7, align 4, !tbaa !12
  %98 = icmp ne i32 2, %97
  br i1 %98, label %99, label %100

99:                                               ; preds = %77
  br label %118

100:                                              ; preds = %77
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.rl_btree_iterator, ptr %102, i32 0, i32 4
  %104 = load i64, ptr %8, align 8, !tbaa !15
  %105 = getelementptr inbounds [0 x %struct.rl_btree_iterator_nodes], ptr %103, i64 0, i64 %104
  %106 = getelementptr inbounds %struct.rl_btree_iterator_nodes, ptr %105, i32 0, i32 1
  store ptr %101, ptr %106, align 8, !tbaa !16
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.rl_btree_iterator, ptr %107, i32 0, i32 4
  %109 = load i64, ptr %8, align 8, !tbaa !15
  %110 = getelementptr inbounds [0 x %struct.rl_btree_iterator_nodes], ptr %108, i64 0, i64 %109
  %111 = getelementptr inbounds %struct.rl_btree_iterator_nodes, ptr %110, i32 0, i32 0
  store i64 0, ptr %111, align 8, !tbaa !22
  br label %112

112:                                              ; preds = %100
  %113 = load i64, ptr %8, align 8, !tbaa !15
  %114 = add nsw i64 %113, 1
  store i64 %114, ptr %8, align 8, !tbaa !15
  br label %71, !llvm.loop !25

115:                                              ; preds = %71
  %116 = load ptr, ptr %10, align 8, !tbaa !5
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %116, ptr %117, align 8, !tbaa !5
  store i32 0, ptr %7, align 4, !tbaa !12
  br label %118

118:                                              ; preds = %115, %99, %60, %25, %15
  %119 = load i32, ptr %7, align 4, !tbaa !12
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %124

121:                                              ; preds = %118
  %122 = load ptr, ptr %10, align 8, !tbaa !5
  %123 = call i32 @rl_btree_iterator_destroy(ptr noundef %122)
  br label %124

124:                                              ; preds = %121, %118
  %125 = load i32, ptr %7, align 4, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  ret i32 %125
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @rl_btree_iterator_destroy(ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind allocsize(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 = { "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 }
attributes #5 = { nounwind allocsize(0) }

!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, !11, i64 40}
!10 = !{!"rl_btree", !6, i64 0, !11, i64 8, !11, i64 16, !6, i64 24, !11, i64 32, !11, i64 40}
!11 = !{!"long", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!10, !11, i64 16}
!15 = !{!11, !11, i64 0}
!16 = !{!17, !6, i64 8}
!17 = !{!"rl_btree_iterator_nodes", !11, i64 0, !6, i64 8}
!18 = !{!10, !6, i64 24}
!19 = !{!20, !6, i64 8}
!20 = !{!"", !6, i64 0, !6, i64 8, !13, i64 16, !13, i64 20, !6, i64 24}
!21 = !{!10, !11, i64 32}
!22 = !{!17, !11, i64 0}
!23 = !{!24, !6, i64 8}
!24 = !{!"rl_btree_node", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24}
!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.rl_btree_iterator_nodes = type { i64, ptr }

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

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #1

declare i32 @rl_read(ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local range(i32 3, 2) i32 @rl_btree_iterator_create(ptr noundef %0, ptr noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #3 {
  %4 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  %5 = getelementptr inbounds i8, ptr %1, i64 40
  %6 = load i64, ptr %5, align 8, !tbaa !5
  %7 = icmp eq i64 %6, 0
  br i1 %7, label %.thread, label %8

8:                                                ; preds = %3
  %9 = getelementptr inbounds i8, ptr %1, i64 16
  %10 = load i64, ptr %9, align 8, !tbaa !11
  %11 = shl i64 %10, 4
  %12 = add i64 %11, 32
  %13 = tail call noalias ptr @malloc(i64 noundef %12) #5
  %.not = icmp eq ptr %13, null
  br i1 %.not, label %.thread, label %14

14:                                               ; preds = %8
  store ptr %0, ptr %13, align 8, !tbaa !12
  %15 = getelementptr inbounds i8, ptr %13, i64 8
  store ptr %1, ptr %15, align 8, !tbaa !12
  %16 = getelementptr inbounds i8, ptr %13, i64 24
  store i64 %10, ptr %16, align 8, !tbaa !13
  %17 = getelementptr inbounds i8, ptr %13, i64 16
  store i64 %6, ptr %17, align 8, !tbaa !13
  %18 = getelementptr inbounds i8, ptr %13, i64 32
  %19 = getelementptr inbounds i8, ptr %13, i64 40
  store ptr null, ptr %19, align 8, !tbaa !14
  %20 = getelementptr inbounds i8, ptr %1, i64 24
  %21 = load ptr, ptr %20, align 8, !tbaa !16
  %22 = getelementptr inbounds i8, ptr %21, i64 8
  %23 = load ptr, ptr %22, align 8, !tbaa !17
  %24 = getelementptr inbounds i8, ptr %1, i64 32
  %25 = load i64, ptr %24, align 8, !tbaa !20
  %26 = call i32 @rl_read(ptr noundef %0, ptr noundef %23, i64 noundef %25, ptr noundef nonnull %1, ptr noundef nonnull %4, i32 noundef 0) #4
  %.not41 = icmp eq i32 %26, 2
  br i1 %.not41, label %27, label %.loopexit

27:                                               ; preds = %14
  %28 = load ptr, ptr %4, align 8, !tbaa !12
  store ptr %28, ptr %19, align 8, !tbaa !14
  store i64 0, ptr %18, align 8, !tbaa !21
  %29 = load i64, ptr %9, align 8, !tbaa !11
  %30 = icmp sgt i64 %29, 1
  br i1 %30, label %.lr.ph, label %.thread50

.lr.ph:                                           ; preds = %27, %41
  %.03654 = phi i64 [ %45, %41 ], [ 1, %27 ]
  %31 = load ptr, ptr %20, align 8, !tbaa !16
  %32 = getelementptr inbounds i8, ptr %31, i64 8
  %33 = load ptr, ptr %32, align 8, !tbaa !17
  %34 = add nsw i64 %.03654, -1
  %35 = getelementptr inbounds [0 x %struct.rl_btree_iterator_nodes], ptr %18, i64 0, i64 %34, i32 1
  %36 = load ptr, ptr %35, align 8, !tbaa !14
  %37 = getelementptr inbounds i8, ptr %36, i64 8
  %38 = load ptr, ptr %37, align 8, !tbaa !22
  %39 = load i64, ptr %38, align 8, !tbaa !13
  %40 = call i32 @rl_read(ptr noundef %0, ptr noundef %33, i64 noundef %39, ptr noundef nonnull %1, ptr noundef nonnull %4, i32 noundef 0) #4
  %.not42 = icmp eq i32 %40, 2
  br i1 %.not42, label %41, label %.loopexit

41:                                               ; preds = %.lr.ph
  %42 = load ptr, ptr %4, align 8, !tbaa !12
  %43 = getelementptr inbounds [0 x %struct.rl_btree_iterator_nodes], ptr %18, i64 0, i64 %.03654
  %44 = getelementptr inbounds i8, ptr %43, i64 8
  store ptr %42, ptr %44, align 8, !tbaa !14
  store i64 0, ptr %43, align 8, !tbaa !21
  %45 = add nuw nsw i64 %.03654, 1
  %46 = load i64, ptr %9, align 8, !tbaa !11
  %47 = icmp slt i64 %45, %46
  br i1 %47, label %.lr.ph, label %.thread50, !llvm.loop !24

.thread50:                                        ; preds = %41, %27
  store ptr %13, ptr %2, align 8, !tbaa !12
  br label %49

.loopexit:                                        ; preds = %.lr.ph, %14
  %.037 = phi i32 [ %26, %14 ], [ %40, %.lr.ph ]
  %.not43 = icmp eq i32 %.037, 0
  br i1 %.not43, label %49, label %.thread

.thread:                                          ; preds = %8, %3, %.loopexit
  %.049 = phi ptr [ %13, %.loopexit ], [ null, %3 ], [ null, %8 ]
  %.03747 = phi i32 [ %.037, %.loopexit ], [ 3, %3 ], [ 4, %8 ]
  %48 = call i32 @rl_btree_iterator_destroy(ptr noundef %.049)
  br label %49

49:                                               ; preds = %.thread50, %.thread, %.loopexit
  %.03748 = phi i32 [ %.03747, %.thread ], [ 0, %.loopexit ], [ 0, %.thread50 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  ret i32 %.03748
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @rl_btree_iterator_destroy(ptr noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(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 #2 = { "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 }
attributes #5 = { nounwind allocsize(0) }

!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, !10, i64 40}
!6 = !{!"rl_btree", !7, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !10, i64 32, !10, i64 40}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !10, i64 16}
!12 = !{!7, !7, i64 0}
!13 = !{!10, !10, i64 0}
!14 = !{!15, !7, i64 8}
!15 = !{!"rl_btree_iterator_nodes", !10, i64 0, !7, i64 8}
!16 = !{!6, !7, i64 24}
!17 = !{!18, !7, i64 8}
!18 = !{!"", !7, i64 0, !7, i64 8, !19, i64 16, !19, i64 20, !7, i64 24}
!19 = !{!"int", !8, i64 0}
!20 = !{!6, !10, i64 32}
!21 = !{!15, !10, i64 0}
!22 = !{!23, !7, i64 8}
!23 = !{!"rl_btree_node", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


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