; LLVM IR from Water-Melon/Melon :: src (mln_fork)

; 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.mln_tcp_conn_t = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32 }
%struct.mln_rbtree_attr = type { ptr, ptr, ptr, ptr, ptr }

@master_ipc_tree = external dso_local global ptr, align 8
@worker_ipc_tree = external dso_local global ptr, align 8
@.str = external hidden unnamed_addr constant [66 x i8], align 1
@__FUNCTION__.mln_fork_prepare = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [39 x i8], align 1
@master_conn = external dso_local global %struct.mln_tcp_conn_t, align 8
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@child_state = external dso_local global i32, align 4
@child_error_bytes = external dso_local global i64, align 8
@cur_msg_len = external dso_local global i32, align 4
@child_msg_content = external dso_local global ptr, align 8
@cur_msg_type = external dso_local global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local i32 @mln_fork_prepare() #0 {
  %1 = alloca i32, align 4
  %2 = alloca %struct.mln_rbtree_attr, align 8
  %3 = alloca i32, align 4
  %4 = call ptr @signal(i32 noundef 17, ptr noundef inttoptr (i64 1 to ptr)) #5
  %5 = icmp eq ptr %4, inttoptr (i64 -1 to ptr)
  br i1 %5, label %6, label %10

6:                                                ; preds = %0
  %7 = call ptr @__errno_location() #6
  %8 = load i32, ptr %7, align 4, !tbaa !5
  %9 = call ptr @strerror(i32 noundef %8) #5
  call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef @.str, ptr noundef @__FUNCTION__.mln_fork_prepare, i32 noundef 71, ptr noundef @.str.1, ptr noundef %9)
  store i32 -1, ptr %1, align 4
  br label %61

10:                                               ; preds = %0
  %11 = call ptr @signal(i32 noundef 13, ptr noundef inttoptr (i64 1 to ptr)) #5
  %12 = icmp eq ptr %11, inttoptr (i64 -1 to ptr)
  br i1 %12, label %13, label %17

13:                                               ; preds = %10
  %14 = call ptr @__errno_location() #6
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = call ptr @strerror(i32 noundef %15) #5
  call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef @.str, ptr noundef @__FUNCTION__.mln_fork_prepare, i32 noundef 75, ptr noundef @.str.2, ptr noundef %16)
  store i32 -1, ptr %1, align 4
  br label %61

17:                                               ; preds = %10
  %18 = call i32 @mln_tcp_conn_init(ptr noundef @master_conn, i32 noundef -1)
  %19 = icmp slt i32 %18, 0
  br i1 %19, label %20, label %21

20:                                               ; preds = %17
  call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef @.str, ptr noundef @__FUNCTION__.mln_fork_prepare, i32 noundef 79, ptr noundef @.str.3)
  store i32 -1, ptr %1, align 4
  br label %61

21:                                               ; preds = %17
  store i32 0, ptr @child_state, align 4, !tbaa !5
  store i64 0, ptr @child_error_bytes, align 8, !tbaa !9
  store i32 0, ptr @cur_msg_len, align 4, !tbaa !5
  store ptr null, ptr @child_msg_content, align 8, !tbaa !11
  store i32 0, ptr @cur_msg_type, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %2) #5
  %22 = getelementptr inbounds %struct.mln_rbtree_attr, ptr %2, i32 0, i32 0
  store ptr null, ptr %22, align 8, !tbaa !13
  %23 = getelementptr inbounds %struct.mln_rbtree_attr, ptr %2, i32 0, i32 1
  store ptr null, ptr %23, align 8, !tbaa !15
  %24 = getelementptr inbounds %struct.mln_rbtree_attr, ptr %2, i32 0, i32 2
  store ptr null, ptr %24, align 8, !tbaa !16
  %25 = getelementptr inbounds %struct.mln_rbtree_attr, ptr %2, i32 0, i32 3
  store ptr @mln_fork_rbtree_cmp, ptr %25, align 8, !tbaa !17
  %26 = getelementptr inbounds %struct.mln_rbtree_attr, ptr %2, i32 0, i32 4
  store ptr @mln_ipc_handler_free, ptr %26, align 8, !tbaa !18
  %27 = call ptr @mln_rbtree_new(ptr noundef %2)
  store ptr %27, ptr @master_ipc_tree, align 8, !tbaa !11
  %28 = icmp eq ptr %27, null
  br i1 %28, label %29, label %36

29:                                               ; preds = %21
  call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef @.str, ptr noundef @__FUNCTION__.mln_fork_prepare, i32 noundef 94, ptr noundef @.str.3)
  %30 = load i32, ptr getelementptr inbounds (%struct.mln_tcp_conn_t, ptr @master_conn, i32 0, i32 7), align 8, !tbaa !19
  %31 = icmp sge i32 %30, 0
  br i1 %31, label %32, label %35

32:                                               ; preds = %29
  %33 = load i32, ptr getelementptr inbounds (%struct.mln_tcp_conn_t, ptr @master_conn, i32 0, i32 7), align 8, !tbaa !19
  %34 = call i32 @close(i32 noundef %33)
  br label %35

35:                                               ; preds = %32, %29
  call void @mln_tcp_conn_destroy(ptr noundef @master_conn)
  store i32 -1, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %60

36:                                               ; preds = %21
  %37 = call ptr @mln_rbtree_new(ptr noundef %2)
  store ptr %37, ptr @worker_ipc_tree, align 8, !tbaa !11
  %38 = icmp eq ptr %37, null
  br i1 %38, label %39, label %47

39:                                               ; preds = %36
  call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef @.str, ptr noundef @__FUNCTION__.mln_fork_prepare, i32 noundef 101, ptr noundef @.str.3)
  %40 = load ptr, ptr @master_ipc_tree, align 8, !tbaa !11
  call void @mln_rbtree_free(ptr noundef %40)
  store ptr null, ptr @master_ipc_tree, align 8, !tbaa !11
  %41 = load i32, ptr getelementptr inbounds (%struct.mln_tcp_conn_t, ptr @master_conn, i32 0, i32 7), align 8, !tbaa !19
  %42 = icmp sge i32 %41, 0
  br i1 %42, label %43, label %46

43:                                               ; preds = %39
  %44 = load i32, ptr getelementptr inbounds (%struct.mln_tcp_conn_t, ptr @master_conn, i32 0, i32 7), align 8, !tbaa !19
  %45 = call i32 @close(i32 noundef %44)
  br label %46

46:                                               ; preds = %43, %39
  call void @mln_tcp_conn_destroy(ptr noundef @master_conn)
  store i32 -1, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %60

47:                                               ; preds = %36
  %48 = call i32 @mln_ipc_set_process_handlers()
  %49 = icmp slt i32 %48, 0
  br i1 %49, label %50, label %59

50:                                               ; preds = %47
  call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef @.str, ptr noundef @__FUNCTION__.mln_fork_prepare, i32 noundef 110, ptr noundef @.str.3)
  %51 = load ptr, ptr @worker_ipc_tree, align 8, !tbaa !11
  call void @mln_rbtree_free(ptr noundef %51)
  store ptr null, ptr @worker_ipc_tree, align 8, !tbaa !11
  %52 = load ptr, ptr @master_ipc_tree, align 8, !tbaa !11
  call void @mln_rbtree_free(ptr noundef %52)
  store ptr null, ptr @master_ipc_tree, align 8, !tbaa !11
  %53 = load i32, ptr getelementptr inbounds (%struct.mln_tcp_conn_t, ptr @master_conn, i32 0, i32 7), align 8, !tbaa !19
  %54 = icmp sge i32 %53, 0
  br i1 %54, label %55, label %58

55:                                               ; preds = %50
  %56 = load i32, ptr getelementptr inbounds (%struct.mln_tcp_conn_t, ptr @master_conn, i32 0, i32 7), align 8, !tbaa !19
  %57 = call i32 @close(i32 noundef %56)
  br label %58

58:                                               ; preds = %55, %50
  call void @mln_tcp_conn_destroy(ptr noundef @master_conn)
  store i32 -1, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %60

59:                                               ; preds = %47
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %60

60:                                               ; preds = %59, %58, %46, %35
  call void @llvm.lifetime.end.p0(i64 40, ptr %2) #5
  br label %61

61:                                               ; preds = %60, %20, %13, %6
  %62 = load i32, ptr %1, align 4
  ret i32 %62
}

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

declare void @_mln_sys_log(i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ...) #2

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) #1

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #3

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @mln_fork_rbtree_cmp(ptr noundef nonnull, ptr noundef nonnull) #0

; Function Attrs: nounwind uwtable
declare hidden void @mln_ipc_handler_free(ptr noundef) #0

declare ptr @mln_rbtree_new(ptr noundef) #2

declare i32 @close(i32 noundef) #2

declare void @mln_tcp_conn_destroy(ptr noundef) #2

declare void @mln_rbtree_free(ptr noundef) #2

declare i32 @mln_ipc_set_process_handlers() #2

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

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

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"mln_rbtree_attr", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32}
!15 = !{!14, !12, i64 8}
!16 = !{!14, !12, i64 16}
!17 = !{!14, !12, i64 24}
!18 = !{!14, !12, i64 32}
!19 = !{!20, !6, i64 56}
!20 = !{!"", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !6, i64 56}


; 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.mln_tcp_conn_t = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32 }
%struct.mln_rbtree_attr = type { ptr, ptr, ptr, ptr, ptr }

@master_ipc_tree = external dso_local local_unnamed_addr global ptr, align 8
@worker_ipc_tree = external dso_local local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [66 x i8], align 1
@__FUNCTION__.mln_fork_prepare = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [39 x i8], align 1
@master_conn = external dso_local global %struct.mln_tcp_conn_t, align 8
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@child_state = external dso_local local_unnamed_addr global i32, align 4
@child_error_bytes = external dso_local local_unnamed_addr global i64, align 8
@cur_msg_len = external dso_local local_unnamed_addr global i32, align 4
@child_msg_content = external dso_local local_unnamed_addr global ptr, align 8
@cur_msg_type = external dso_local local_unnamed_addr global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @mln_fork_prepare() local_unnamed_addr #0 {
  %1 = alloca %struct.mln_rbtree_attr, align 8
  %2 = tail call ptr @signal(i32 noundef 17, ptr noundef nonnull inttoptr (i64 1 to ptr)) #6
  %3 = icmp eq ptr %2, inttoptr (i64 -1 to ptr)
  br i1 %3, label %4, label %8

4:                                                ; preds = %0
  %5 = tail call ptr @__errno_location() #7
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %7 = tail call ptr @strerror(i32 noundef %6) #6
  tail call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef nonnull @.str, ptr noundef nonnull @__FUNCTION__.mln_fork_prepare, i32 noundef 71, ptr noundef nonnull @.str.1, ptr noundef %7) #6
  br label %44

8:                                                ; preds = %0
  %9 = tail call ptr @signal(i32 noundef 13, ptr noundef nonnull inttoptr (i64 1 to ptr)) #6
  %10 = icmp eq ptr %9, inttoptr (i64 -1 to ptr)
  br i1 %10, label %11, label %15

11:                                               ; preds = %8
  %12 = tail call ptr @__errno_location() #7
  %13 = load i32, ptr %12, align 4, !tbaa !5
  %14 = tail call ptr @strerror(i32 noundef %13) #6
  tail call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef nonnull @.str, ptr noundef nonnull @__FUNCTION__.mln_fork_prepare, i32 noundef 75, ptr noundef nonnull @.str.2, ptr noundef %14) #6
  br label %44

15:                                               ; preds = %8
  %16 = tail call i32 @mln_tcp_conn_init(ptr noundef nonnull @master_conn, i32 noundef -1) #6
  %17 = icmp slt i32 %16, 0
  br i1 %17, label %18, label %19

18:                                               ; preds = %15
  tail call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef nonnull @.str, ptr noundef nonnull @__FUNCTION__.mln_fork_prepare, i32 noundef 79, ptr noundef nonnull @.str.3) #6
  br label %44

19:                                               ; preds = %15
  store i32 0, ptr @child_state, align 4, !tbaa !5
  store i64 0, ptr @child_error_bytes, align 8, !tbaa !9
  store i32 0, ptr @cur_msg_len, align 4, !tbaa !5
  store ptr null, ptr @child_msg_content, align 8, !tbaa !11
  store i32 0, ptr @cur_msg_type, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %1) #6
  %20 = getelementptr inbounds i8, ptr %1, i64 24
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %1, i8 0, i64 24, i1 false)
  store ptr @mln_fork_rbtree_cmp, ptr %20, align 8, !tbaa !13
  %21 = getelementptr inbounds i8, ptr %1, i64 32
  store ptr @mln_ipc_handler_free, ptr %21, align 8, !tbaa !15
  %22 = call ptr @mln_rbtree_new(ptr noundef nonnull %1) #6
  store ptr %22, ptr @master_ipc_tree, align 8, !tbaa !11
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %27

24:                                               ; preds = %19
  call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef nonnull @.str, ptr noundef nonnull @__FUNCTION__.mln_fork_prepare, i32 noundef 94, ptr noundef nonnull @.str.3) #6
  %25 = load i32, ptr getelementptr inbounds (i8, ptr @master_conn, i64 56), align 8, !tbaa !16
  %26 = icmp sgt i32 %25, -1
  br i1 %26, label %.sink.split.sink.split, label %.sink.split

27:                                               ; preds = %19
  %28 = call ptr @mln_rbtree_new(ptr noundef nonnull %1) #6
  store ptr %28, ptr @worker_ipc_tree, align 8, !tbaa !11
  %29 = icmp eq ptr %28, null
  br i1 %29, label %30, label %34

30:                                               ; preds = %27
  call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef nonnull @.str, ptr noundef nonnull @__FUNCTION__.mln_fork_prepare, i32 noundef 101, ptr noundef nonnull @.str.3) #6
  %31 = load ptr, ptr @master_ipc_tree, align 8, !tbaa !11
  call void @mln_rbtree_free(ptr noundef %31) #6
  store ptr null, ptr @master_ipc_tree, align 8, !tbaa !11
  %32 = load i32, ptr getelementptr inbounds (i8, ptr @master_conn, i64 56), align 8, !tbaa !16
  %33 = icmp sgt i32 %32, -1
  br i1 %33, label %.sink.split.sink.split, label %.sink.split

34:                                               ; preds = %27
  %35 = call i32 @mln_ipc_set_process_handlers() #6
  %36 = icmp slt i32 %35, 0
  br i1 %36, label %37, label %43

37:                                               ; preds = %34
  call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef nonnull @.str, ptr noundef nonnull @__FUNCTION__.mln_fork_prepare, i32 noundef 110, ptr noundef nonnull @.str.3) #6
  %38 = load ptr, ptr @worker_ipc_tree, align 8, !tbaa !11
  call void @mln_rbtree_free(ptr noundef %38) #6
  store ptr null, ptr @worker_ipc_tree, align 8, !tbaa !11
  %39 = load ptr, ptr @master_ipc_tree, align 8, !tbaa !11
  call void @mln_rbtree_free(ptr noundef %39) #6
  store ptr null, ptr @master_ipc_tree, align 8, !tbaa !11
  %40 = load i32, ptr getelementptr inbounds (i8, ptr @master_conn, i64 56), align 8, !tbaa !16
  %41 = icmp sgt i32 %40, -1
  br i1 %41, label %.sink.split.sink.split, label %.sink.split

.sink.split.sink.split:                           ; preds = %37, %30, %24
  %.sink = phi i32 [ %25, %24 ], [ %32, %30 ], [ %40, %37 ]
  %42 = call i32 @close(i32 noundef %.sink) #6
  br label %.sink.split

.sink.split:                                      ; preds = %.sink.split.sink.split, %37, %30, %24
  call void @mln_tcp_conn_destroy(ptr noundef nonnull @master_conn) #6
  br label %43

43:                                               ; preds = %.sink.split, %34
  %.0 = phi i32 [ 0, %34 ], [ -1, %.sink.split ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #6
  br label %44

44:                                               ; preds = %43, %18, %11, %4
  %.1 = phi i32 [ -1, %4 ], [ -1, %11 ], [ -1, %18 ], [ %.0, %43 ]
  ret i32 %.1
}

; Function Attrs: nounwind
declare ptr @signal(i32 noundef, ptr noundef) local_unnamed_addr #1

declare void @_mln_sys_log(i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #3

declare i32 @mln_tcp_conn_init(ptr noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare hidden i32 @mln_fork_rbtree_cmp(ptr noundef nonnull, ptr noundef nonnull) #0

; Function Attrs: nounwind uwtable
declare hidden void @mln_ipc_handler_free(ptr noundef) #0

declare ptr @mln_rbtree_new(ptr noundef) local_unnamed_addr #2

declare i32 @close(i32 noundef) local_unnamed_addr #2

declare void @mln_tcp_conn_destroy(ptr noundef) local_unnamed_addr #2

declare void @mln_rbtree_free(ptr noundef) local_unnamed_addr #2

declare i32 @mln_ipc_set_process_handlers() local_unnamed_addr #2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !12, i64 24}
!14 = !{!"mln_rbtree_attr", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32}
!15 = !{!14, !12, i64 32}
!16 = !{!17, !6, i64 56}
!17 = !{!"", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !6, i64 56}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass