; 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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_rb_topdown_custom_cmp() #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 = 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 = %84, %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 %87

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

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

34:                                               ; preds = %24
  %35 = load ptr, ptr @stderr, align 8, !tbaa !9
  %36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 259, ptr noundef @.str.2) #5
  %37 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %37, align 8, !tbaa !16
  %38 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %38, align 8, !tbaa !18
  store i32 1, ptr %8, align 4
  br label %111

39:                                               ; preds = %24
  br label %40

40:                                               ; preds = %39
  br label %41

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

45:                                               ; preds = %41
  %46 = load ptr, ptr %3, align 8, !tbaa !9
  %47 = icmp ne ptr %46, null
  br i1 %47, label %53, label %48

48:                                               ; preds = %45
  %49 = load ptr, ptr @stderr, align 8, !tbaa !9
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 263, ptr noundef @.str.3) #5
  %51 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %51, align 8, !tbaa !16
  %52 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %52, align 8, !tbaa !18
  store i32 1, ptr %8, align 4
  br label %111

53:                                               ; preds = %45
  br label %54

54:                                               ; preds = %53
  br label %55

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

59:                                               ; preds = %55
  %60 = load ptr, ptr %3, align 8, !tbaa !9
  %61 = icmp ne ptr %60, null
  br i1 %61, label %67, label %62

62:                                               ; preds = %59
  %63 = load ptr, ptr @stderr, align 8, !tbaa !9
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 267, ptr noundef @.str.3) #5
  %65 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %65, align 8, !tbaa !16
  %66 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %66, align 8, !tbaa !18
  store i32 1, ptr %8, align 4
  br label %111

67:                                               ; preds = %59
  br label %68

68:                                               ; preds = %67
  br label %69

69:                                               ; preds = %68
  br label %70

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

76:                                               ; preds = %70
  %77 = load ptr, ptr @stderr, align 8, !tbaa !9
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 270, ptr noundef @.str.4) #5
  %79 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %79, align 8, !tbaa !16
  %80 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %80, align 8, !tbaa !18
  store i32 1, ptr %8, align 4
  br label %111

81:                                               ; preds = %70
  br label %82

82:                                               ; preds = %81
  br label %83

83:                                               ; preds = %82
  br label %84

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

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

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

92:                                               ; preds = %89
  %93 = load ptr, ptr @stderr, align 8, !tbaa !9
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 275, ptr noundef @.str.5) #5
  %95 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %95, align 8, !tbaa !16
  %96 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %96, align 8, !tbaa !18
  store i32 1, ptr %8, align 4
  br label %111

97:                                               ; preds = %89
  br label %98

98:                                               ; preds = %97
  br label %99

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

111:                                              ; preds = %99, %92, %76, %62, %48, %34
  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
  %112 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %112
}

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_rb_topdown_custom_cmp() 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 = 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 = %23
  %6 = add nuw nsw i32 %.026, 1
  %exitcond.not = icmp eq i32 %6, 1000
  br i1 %exitcond.not, label %31, label %7, !llvm.loop !5

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

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

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

20:                                               ; preds = %18
  %21 = load ptr, ptr @stderr, align 8, !tbaa !15
  %22 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 263, ptr noundef nonnull @.str.3) #7
  br label %40

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

28:                                               ; preds = %23
  %29 = load ptr, ptr @stderr, align 8, !tbaa !15
  %30 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 270, ptr noundef nonnull @.str.4) #7
  br label %40

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

33:                                               ; preds = %31
  %34 = load ptr, ptr @stderr, align 8, !tbaa !15
  %35 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 275, ptr noundef nonnull @.str.5) #7
  br label %40

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

40:                                               ; preds = %36, %33, %28, %20, %15
  %.sroa.7.0 = phi i32 [ 0, %28 ], [ 0, %20 ], [ 0, %15 ], [ 1, %36 ], [ 0, %33 ]
  %.fca.1.insert = insertvalue { ptr, i32 } { ptr null, i32 poison }, i32 %.sroa.7.0, 1
  ret { ptr, i32 } %.fca.1.insert
}

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

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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"float", !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, !14, i64 64}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!"long", !9, i64 0}
!15 = !{!13, !13, i64 0}
!16 = !{!17, !13, i64 8}
!17 = !{!"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