; LLVM IR from recp/ds :: test/src (test_rb)

; 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.test_status_t = type { ptr, i32 }
%struct.RBTree = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64 }
%struct.RBNode = type { ptr, ptr, [2 x ptr], i8 }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [94 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 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: nounwind
declare void @srand(i32 noundef) #1

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #1

declare void @rb_insert(ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @rb_assert(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

declare ptr @rb_find_node(ptr noundef, ptr noundef) #2

declare ptr @rb_find(ptr noundef, ptr noundef) #2

declare zeroext i1 @rb_isempty(ptr noundef) #2

declare void @rb_empty(ptr noundef) #2

declare void @rb_print(ptr noundef) #2

declare void @rb_destroy(ptr noundef) #2

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

declare ptr @rb_newtree(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden i32 @test_rb_cmp_float(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden void @test_rb_print_float(ptr noundef) #3

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

; Function Attrs: nounwind
declare double @drand48() #1

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_rb_topdown_freeenode() #3 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 1000, ptr %6, align 4, !tbaa !5
  %9 = call ptr @rb_newtree(ptr noundef null, ptr noundef @test_rb_cmp_float, ptr noundef @test_rb_print_float)
  store ptr %9, ptr %2, align 8, !tbaa !9
  %10 = load ptr, ptr %2, align 8, !tbaa !9
  %11 = getelementptr inbounds %struct.RBTree, ptr %10, i32 0, i32 6
  store ptr @test_rb_freenode, ptr %11, align 8, !tbaa !11
  %12 = call i64 @time(ptr noundef null) #5
  %13 = trunc i64 %12 to i32
  call void @srand(i32 noundef %13) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %86, %0
  %15 = load i32, ptr %7, align 4, !tbaa !5
  %16 = load i32, ptr %6, align 4, !tbaa !5
  %17 = icmp slt i32 %15, %16
  br i1 %17, label %18, label %89

18:                                               ; preds = %14
  %19 = call noalias ptr @malloc(i64 noundef 4) #6
  store ptr %19, ptr %4, align 8, !tbaa !9
  %20 = call double @drand48() #5
  %21 = fptrunc double %20 to float
  %22 = load ptr, ptr %4, align 8, !tbaa !9
  store float %21, ptr %22, align 4, !tbaa !14
  %23 = load ptr, ptr %2, align 8, !tbaa !9
  %24 = load ptr, ptr %4, align 8, !tbaa !9
  %25 = load ptr, ptr %4, align 8, !tbaa !9
  call void @rb_insert(ptr noundef %23, ptr noundef %24, ptr noundef %25)
  br label %26

26:                                               ; preds = %18
  %27 = load ptr, ptr %2, align 8, !tbaa !9
  %28 = load ptr, ptr %2, align 8, !tbaa !9
  %29 = getelementptr inbounds %struct.RBTree, ptr %28, i32 0, i32 1
  %30 = load ptr, ptr %29, align 8, !tbaa !16
  %31 = getelementptr inbounds %struct.RBNode, ptr %30, i32 0, i32 2
  %32 = getelementptr inbounds [2 x ptr], ptr %31, i64 0, i64 1
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = call i32 @rb_assert(ptr noundef %27, ptr noundef %33)
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %41, label %36

36:                                               ; preds = %26
  %37 = load ptr, ptr @stderr, align 8, !tbaa !9
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 410, ptr noundef @.str.2) #5
  %39 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %39, align 8, !tbaa !17
  %40 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %40, align 8, !tbaa !19
  store i32 1, ptr %8, align 4
  br label %113

41:                                               ; preds = %26
  br label %42

42:                                               ; preds = %41
  br label %43

43:                                               ; preds = %42
  %44 = load ptr, ptr %2, align 8, !tbaa !9
  %45 = load ptr, ptr %4, align 8, !tbaa !9
  %46 = call ptr @rb_find_node(ptr noundef %44, ptr noundef %45)
  store ptr %46, ptr %3, align 8, !tbaa !9
  br label %47

47:                                               ; preds = %43
  %48 = load ptr, ptr %3, align 8, !tbaa !9
  %49 = icmp ne ptr %48, null
  br i1 %49, label %55, label %50

50:                                               ; preds = %47
  %51 = load ptr, ptr @stderr, align 8, !tbaa !9
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 414, ptr noundef @.str.3) #5
  %53 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %53, align 8, !tbaa !17
  %54 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %54, align 8, !tbaa !19
  store i32 1, ptr %8, align 4
  br label %113

55:                                               ; preds = %47
  br label %56

56:                                               ; preds = %55
  br label %57

57:                                               ; preds = %56
  %58 = load ptr, ptr %2, align 8, !tbaa !9
  %59 = load ptr, ptr %4, align 8, !tbaa !9
  %60 = call ptr @rb_find(ptr noundef %58, ptr noundef %59)
  store ptr %60, ptr %5, align 8, !tbaa !9
  br label %61

61:                                               ; preds = %57
  %62 = load ptr, ptr %3, align 8, !tbaa !9
  %63 = icmp ne ptr %62, null
  br i1 %63, label %69, label %64

64:                                               ; preds = %61
  %65 = load ptr, ptr @stderr, align 8, !tbaa !9
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 418, ptr noundef @.str.3) #5
  %67 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %67, align 8, !tbaa !17
  %68 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %68, align 8, !tbaa !19
  store i32 1, ptr %8, align 4
  br label %113

69:                                               ; preds = %61
  br label %70

70:                                               ; preds = %69
  br label %71

71:                                               ; preds = %70
  br label %72

72:                                               ; preds = %71
  %73 = load ptr, ptr %3, align 8, !tbaa !9
  %74 = getelementptr inbounds %struct.RBNode, ptr %73, i32 0, i32 1
  %75 = load ptr, ptr %74, align 8, !tbaa !20
  %76 = load ptr, ptr %5, align 8, !tbaa !9
  %77 = icmp eq ptr %75, %76
  br i1 %77, label %83, label %78

78:                                               ; preds = %72
  %79 = load ptr, ptr @stderr, align 8, !tbaa !9
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 421, ptr noundef @.str.4) #5
  %81 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %81, align 8, !tbaa !17
  %82 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %82, align 8, !tbaa !19
  store i32 1, ptr %8, align 4
  br label %113

83:                                               ; preds = %72
  br label %84

84:                                               ; preds = %83
  br label %85

85:                                               ; preds = %84
  br label %86

86:                                               ; preds = %85
  %87 = load i32, ptr %7, align 4, !tbaa !5
  %88 = add nsw i32 %87, 1
  store i32 %88, ptr %7, align 4, !tbaa !5
  br label %14, !llvm.loop !22

89:                                               ; preds = %14
  %90 = load ptr, ptr %2, align 8, !tbaa !9
  call void @rb_empty(ptr noundef %90)
  br label %91

91:                                               ; preds = %89
  %92 = load ptr, ptr %2, align 8, !tbaa !9
  %93 = call zeroext i1 @rb_isempty(ptr noundef %92)
  br i1 %93, label %99, label %94

94:                                               ; preds = %91
  %95 = load ptr, ptr @stderr, align 8, !tbaa !9
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 426, ptr noundef @.str.5) #5
  %97 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %97, align 8, !tbaa !17
  %98 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %98, align 8, !tbaa !19
  store i32 1, ptr %8, align 4
  br label %113

99:                                               ; preds = %91
  br label %100

100:                                              ; preds = %99
  br label %101

101:                                              ; preds = %100
  %102 = call noalias ptr @malloc(i64 noundef 4) #6
  store ptr %102, ptr %4, align 8, !tbaa !9
  %103 = call double @drand48() #5
  %104 = fptrunc double %103 to float
  %105 = load ptr, ptr %4, align 8, !tbaa !9
  store float %104, ptr %105, align 4, !tbaa !14
  %106 = load ptr, ptr %2, align 8, !tbaa !9
  %107 = load ptr, ptr %4, align 8, !tbaa !9
  %108 = load ptr, ptr %4, align 8, !tbaa !9
  call void @rb_insert(ptr noundef %106, ptr noundef %107, ptr noundef %108)
  %109 = load ptr, ptr %2, align 8, !tbaa !9
  call void @rb_print(ptr noundef %109)
  %110 = load ptr, ptr %2, align 8, !tbaa !9
  call void @rb_destroy(ptr noundef %110)
  %111 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %111, align 8, !tbaa !17
  %112 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %112, align 8, !tbaa !19
  store i32 1, ptr %8, align 4
  br label %113

113:                                              ; preds = %101, %94, %78, %64, %50, %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  %114 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %114
}

; Function Attrs: nounwind uwtable
declare hidden void @test_rb_freenode(ptr noundef, ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind "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 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 #5 = { nounwind }
attributes #6 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 48}
!12 = !{!"RBTree", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !13, i64 64}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!12, !10, i64 8}
!17 = !{!18, !10, i64 0}
!18 = !{!"test_status_t", !10, i64 0, !6, i64 8}
!19 = !{!18, !6, i64 8}
!20 = !{!21, !10, i64 8}
!21 = !{!"RBNode", !10, i64 0, !10, i64 8, !7, i64 16, !7, i64 32}
!22 = distinct !{!22, !23}
!23 = !{!"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"

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [94 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #0

declare void @rb_insert(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

declare ptr @rb_find_node(ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @rb_find(ptr noundef, ptr noundef) local_unnamed_addr #1

declare zeroext i1 @rb_isempty(ptr noundef) local_unnamed_addr #1

declare void @rb_empty(ptr noundef) local_unnamed_addr #1

declare void @rb_print(ptr noundef) local_unnamed_addr #1

declare void @rb_destroy(ptr noundef) local_unnamed_addr #1

declare ptr @rb_newtree(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @test_rb_cmp_float(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden void @test_rb_print_float(ptr noundef) #3

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

; Function Attrs: nounwind
declare double @drand48() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_rb_topdown_freeenode() local_unnamed_addr #3 {
  %1 = tail call ptr @rb_newtree(ptr noundef null, ptr noundef nonnull @test_rb_cmp_float, ptr noundef nonnull @test_rb_print_float) #5
  %2 = getelementptr inbounds i8, ptr %1, i64 48
  store ptr @test_rb_freenode, ptr %2, align 8, !tbaa !5
  %3 = tail call i64 @time(ptr noundef null) #5
  %4 = trunc i64 %3 to i32
  tail call void @srand(i32 noundef %4) #5
  %5 = getelementptr inbounds i8, ptr %1, i64 8
  br label %8

6:                                                ; preds = %24
  %7 = add nuw nsw i32 %.027, 1
  %exitcond.not = icmp eq i32 %7, 1000
  br i1 %exitcond.not, label %32, label %8, !llvm.loop !11

8:                                                ; preds = %0, %6
  %.027 = phi i32 [ 0, %0 ], [ %7, %6 ]
  %9 = tail call noalias dereferenceable_or_null(4) ptr @malloc(i64 noundef 4) #6
  %10 = tail call double @drand48() #5
  %11 = fptrunc double %10 to float
  store float %11, ptr %9, align 4, !tbaa !13
  tail call void @rb_insert(ptr noundef nonnull %1, ptr noundef nonnull %9, ptr noundef nonnull %9) #5
  %12 = load ptr, ptr %5, align 8, !tbaa !15
  %13 = getelementptr inbounds i8, ptr %12, i64 24
  %14 = load ptr, ptr %13, align 8, !tbaa !16
  %15 = tail call i32 @rb_assert(ptr noundef nonnull %1, ptr noundef %14) #5
  %.not = icmp eq i32 %15, 0
  br i1 %.not, label %16, label %19

16:                                               ; preds = %8
  %17 = load ptr, ptr @stderr, align 8, !tbaa !16
  %18 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 410, ptr noundef nonnull @.str.2) #7
  br label %41

19:                                               ; preds = %8
  %20 = tail call ptr @rb_find_node(ptr noundef nonnull %1, ptr noundef nonnull %9) #5
  %.not26 = icmp eq ptr %20, null
  br i1 %.not26, label %21, label %24

21:                                               ; preds = %19
  %22 = load ptr, ptr @stderr, align 8, !tbaa !16
  %23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 414, ptr noundef nonnull @.str.3) #7
  br label %41

24:                                               ; preds = %19
  %25 = tail call ptr @rb_find(ptr noundef nonnull %1, ptr noundef nonnull %9) #5
  %26 = getelementptr inbounds i8, ptr %20, i64 8
  %27 = load ptr, ptr %26, align 8, !tbaa !17
  %28 = icmp eq ptr %27, %25
  br i1 %28, label %6, label %29

29:                                               ; preds = %24
  %30 = load ptr, ptr @stderr, align 8, !tbaa !16
  %31 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 421, ptr noundef nonnull @.str.4) #7
  br label %41

32:                                               ; preds = %6
  tail call void @rb_empty(ptr noundef nonnull %1) #5
  %33 = tail call zeroext i1 @rb_isempty(ptr noundef nonnull %1) #5
  br i1 %33, label %37, label %34

34:                                               ; preds = %32
  %35 = load ptr, ptr @stderr, align 8, !tbaa !16
  %36 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 426, ptr noundef nonnull @.str.5) #7
  br label %41

37:                                               ; preds = %32
  %38 = tail call noalias dereferenceable_or_null(4) ptr @malloc(i64 noundef 4) #6
  %39 = tail call double @drand48() #5
  %40 = fptrunc double %39 to float
  store float %40, ptr %38, align 4, !tbaa !13
  tail call void @rb_insert(ptr noundef nonnull %1, ptr noundef nonnull %38, ptr noundef nonnull %38) #5
  tail call void @rb_print(ptr noundef nonnull %1) #5
  tail call void @rb_destroy(ptr noundef nonnull %1) #5
  br label %41

41:                                               ; preds = %37, %34, %29, %21, %16
  %.sroa.7.0 = phi i32 [ 0, %29 ], [ 0, %21 ], [ 0, %16 ], [ 1, %37 ], [ 0, %34 ]
  %.fca.1.insert = insertvalue { ptr, i32 } { ptr null, i32 poison }, i32 %.sroa.7.0, 1
  ret { ptr, i32 } %.fca.1.insert
}

; Function Attrs: nounwind uwtable
declare hidden void @test_rb_freenode(ptr noundef, ptr noundef) #3

attributes #0 = { nounwind "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 = { nofree nounwind "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 = { 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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }
attributes #7 = { cold 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 48}
!6 = !{!"RBTree", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !10, i64 64}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !8, i64 0}
!15 = !{!6, !7, i64 8}
!16 = !{!7, !7, i64 0}
!17 = !{!18, !7, i64 8}
!18 = !{!"RBNode", !7, i64 0, !7, i64 8, !8, i64 16, !8, i64 32}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,SROAPass,SimplifyCFGPass,TailCallElimPass