; 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

; Function Attrs: nounwind
declare i32 @rand() #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 allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_rb_topdown_custom_cmp_i64() #4 {
  %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 @ds_cmp_i64, ptr noundef @ds_print_i64)
  store ptr %9, ptr %2, align 8, !tbaa !9
  %10 = call i64 @time(ptr noundef null) #5
  %11 = trunc i64 %10 to i32
  call void @srand(i32 noundef %11) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %12

12:                                               ; preds = %85, %0
  %13 = load i32, ptr %7, align 4, !tbaa !5
  %14 = load i32, ptr %6, align 4, !tbaa !5
  %15 = icmp slt i32 %13, %14
  br i1 %15, label %16, label %88

16:                                               ; preds = %12
  %17 = call noalias ptr @malloc(i64 noundef 8) #6
  store ptr %17, ptr %4, align 8, !tbaa !9
  %18 = call i32 @rand() #5
  %19 = srem i32 %18, 10000
  %20 = sext i32 %19 to i64
  %21 = load ptr, ptr %4, align 8, !tbaa !9
  store i64 %20, ptr %21, align 8, !tbaa !11
  %22 = load ptr, ptr %2, align 8, !tbaa !9
  %23 = load ptr, ptr %4, align 8, !tbaa !9
  %24 = load ptr, ptr %4, align 8, !tbaa !9
  call void @rb_insert(ptr noundef %22, ptr noundef %23, ptr noundef %24)
  br label %25

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

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

40:                                               ; preds = %25
  br label %41

41:                                               ; preds = %40
  br label %42

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

46:                                               ; preds = %42
  %47 = load ptr, ptr %3, align 8, !tbaa !9
  %48 = icmp ne ptr %47, null
  br i1 %48, label %54, label %49

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

54:                                               ; preds = %46
  br label %55

55:                                               ; preds = %54
  br label %56

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

60:                                               ; preds = %56
  %61 = load ptr, ptr %3, align 8, !tbaa !9
  %62 = icmp ne ptr %61, null
  br i1 %62, label %68, label %63

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

68:                                               ; preds = %60
  br label %69

69:                                               ; preds = %68
  br label %70

70:                                               ; preds = %69
  br label %71

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

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

82:                                               ; preds = %71
  br label %83

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83
  br label %85

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

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

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

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

98:                                               ; preds = %90
  br label %99

99:                                               ; preds = %98
  br label %100

100:                                              ; preds = %99
  %101 = call noalias ptr @malloc(i64 noundef 8) #6
  store ptr %101, ptr %4, align 8, !tbaa !9
  %102 = call i32 @rand() #5
  %103 = srem i32 %102, 10000
  %104 = sext i32 %103 to i64
  %105 = load ptr, ptr %4, align 8, !tbaa !9
  store i64 %104, ptr %105, align 8, !tbaa !11
  %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 !15
  %112 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %112, align 8, !tbaa !17
  store i32 1, ptr %8, align 4
  br label %113

113:                                              ; preds = %100, %93, %77, %63, %49, %35
  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
}

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

declare void @ds_print_i64(ptr noundef) #2

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 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 #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 = { 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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"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, !12, i64 64}
!15 = !{!16, !10, i64 0}
!16 = !{!"test_status_t", !10, i64 0, !6, i64 8}
!17 = !{!16, !6, i64 8}
!18 = !{!19, !10, i64 8}
!19 = !{!"RBNode", !10, i64 0, !10, i64 8, !7, i64 16, !7, i64 32}
!20 = distinct !{!20, !21}
!21 = !{!"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

; Function Attrs: nounwind
declare i32 @rand() 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: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_rb_topdown_custom_cmp_i64() local_unnamed_addr #4 {
  %1 = tail call ptr @rb_newtree(ptr noundef null, ptr noundef nonnull @ds_cmp_i64, ptr noundef nonnull @ds_print_i64) #5
  %2 = tail call i64 @time(ptr noundef null) #5
  %3 = trunc i64 %2 to i32
  tail call void @srand(i32 noundef %3) #5
  %4 = getelementptr inbounds i8, ptr %1, i64 8
  br label %7

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

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

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

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

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

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

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

32:                                               ; preds = %5
  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 !14
  %36 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 375, ptr noundef nonnull @.str.5) #7
  br label %42

37:                                               ; preds = %32
  %38 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #6
  %39 = tail call i32 @rand() #5
  %40 = srem i32 %39, 10000
  %41 = sext i32 %40 to i64
  store i64 %41, ptr %38, align 8, !tbaa !7
  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 %42

42:                                               ; 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
}

declare i32 @ds_cmp_i64(ptr noundef, ptr noundef) #1

declare void @ds_print_i64(ptr noundef) #1

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


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