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

; 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_iothread_s = type { %union.pthread_mutex_t, %union.pthread_mutex_t, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }

; Function Attrs: nounwind uwtable
define dso_local i32 @mln_iothread_init(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca [2 x i32], align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %15 = load i32, ptr %8, align 4, !tbaa !9
  %16 = icmp ne i32 %15, 0
  br i1 %16, label %17, label %20

17:                                               ; preds = %5
  %18 = load ptr, ptr %9, align 8, !tbaa !5
  %19 = icmp eq ptr %18, null
  br i1 %19, label %20, label %21

20:                                               ; preds = %17, %5
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %14, align 4
  br label %123

21:                                               ; preds = %17
  %22 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
  %23 = call i32 @socketpair(i32 noundef 1, i32 noundef 1, i32 noundef 0, ptr noundef %22) #6
  %24 = icmp slt i32 %23, 0
  br i1 %24, label %25, label %26

25:                                               ; preds = %21
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %14, align 4
  br label %123

26:                                               ; preds = %21
  %27 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
  %28 = load i32, ptr %27, align 4, !tbaa !9
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.mln_iothread_s, ptr %29, i32 0, i32 2
  store i32 %28, ptr %30, align 8, !tbaa !11
  %31 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 1
  %32 = load i32, ptr %31, align 4, !tbaa !9
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.mln_iothread_s, ptr %33, i32 0, i32 3
  store i32 %32, ptr %34, align 4, !tbaa !13
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.mln_iothread_s, ptr %35, i32 0, i32 2
  %37 = load i32, ptr %36, align 8, !tbaa !11
  call void @mln_iothread_fd_nonblock_set(i32 noundef %37)
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.mln_iothread_s, ptr %38, i32 0, i32 3
  %40 = load i32, ptr %39, align 4, !tbaa !13
  call void @mln_iothread_fd_nonblock_set(i32 noundef %40)
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.mln_iothread_s, ptr %42, i32 0, i32 7
  store ptr %41, ptr %43, align 8, !tbaa !14
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.mln_iothread_s, ptr %45, i32 0, i32 8
  store ptr %44, ptr %46, align 8, !tbaa !15
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.mln_iothread_s, ptr %48, i32 0, i32 4
  store ptr %47, ptr %49, align 8, !tbaa !16
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.mln_iothread_s, ptr %50, i32 0, i32 0
  %52 = call i32 @pthread_mutex_init(ptr noundef %51, ptr noundef null) #6
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.mln_iothread_s, ptr %53, i32 0, i32 1
  %55 = call i32 @pthread_mutex_init(ptr noundef %54, ptr noundef null) #6
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.mln_iothread_s, ptr %56, i32 0, i32 6
  store ptr null, ptr %57, align 8, !tbaa !17
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.mln_iothread_s, ptr %58, i32 0, i32 5
  store ptr null, ptr %59, align 8, !tbaa !18
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.mln_iothread_s, ptr %60, i32 0, i32 12
  store ptr null, ptr %61, align 8, !tbaa !19
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.mln_iothread_s, ptr %62, i32 0, i32 11
  store ptr null, ptr %63, align 8, !tbaa !20
  %64 = load i32, ptr %8, align 4, !tbaa !9
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.mln_iothread_s, ptr %65, i32 0, i32 10
  store i32 %64, ptr %66, align 8, !tbaa !21
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.mln_iothread_s, ptr %67, i32 0, i32 10
  %69 = load i32, ptr %68, align 8, !tbaa !21
  %70 = zext i32 %69 to i64
  %71 = call noalias ptr @calloc(i64 noundef %70, i64 noundef 8) #7
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.mln_iothread_s, ptr %72, i32 0, i32 9
  store ptr %71, ptr %73, align 8, !tbaa !22
  %74 = icmp eq ptr %71, null
  br i1 %74, label %75, label %82

75:                                               ; preds = %26
  %76 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
  %77 = load i32, ptr %76, align 4, !tbaa !9
  %78 = call i32 @close(i32 noundef %77)
  %79 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 1
  %80 = load i32, ptr %79, align 4, !tbaa !9
  %81 = call i32 @close(i32 noundef %80)
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %14, align 4
  br label %123

82:                                               ; preds = %26
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %119, %82
  %84 = load i32, ptr %12, align 4, !tbaa !9
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.mln_iothread_s, ptr %85, i32 0, i32 10
  %87 = load i32, ptr %86, align 8, !tbaa !21
  %88 = icmp ult i32 %84, %87
  br i1 %88, label %89, label %122

89:                                               ; preds = %83
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.mln_iothread_s, ptr %90, i32 0, i32 9
  %92 = load ptr, ptr %91, align 8, !tbaa !22
  %93 = load i32, ptr %12, align 4, !tbaa !9
  %94 = zext i32 %93 to i64
  %95 = getelementptr inbounds i64, ptr %92, i64 %94
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.mln_iothread_s, ptr %96, i32 0, i32 7
  %98 = load ptr, ptr %97, align 8, !tbaa !14
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.mln_iothread_s, ptr %99, i32 0, i32 8
  %101 = load ptr, ptr %100, align 8, !tbaa !15
  %102 = call i32 @pthread_create(ptr noundef %95, ptr noundef null, ptr noundef %98, ptr noundef %101) #6
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %106

104:                                              ; preds = %89
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mln_iothread_destroy(ptr noundef %105)
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %14, align 4
  br label %123

106:                                              ; preds = %89
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.mln_iothread_s, ptr %107, i32 0, i32 9
  %109 = load ptr, ptr %108, align 8, !tbaa !22
  %110 = load i32, ptr %12, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = getelementptr inbounds i64, ptr %109, i64 %111
  %113 = load i64, ptr %112, align 8, !tbaa !23
  %114 = call i32 @pthread_detach(i64 noundef %113) #6
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %118

116:                                              ; preds = %106
  %117 = load ptr, ptr %7, align 8, !tbaa !5
  call void @mln_iothread_destroy(ptr noundef %117)
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %14, align 4
  br label %123

118:                                              ; preds = %106
  br label %119

119:                                              ; preds = %118
  %120 = load i32, ptr %12, align 4, !tbaa !9
  %121 = add i32 %120, 1
  store i32 %121, ptr %12, align 4, !tbaa !9
  br label %83, !llvm.loop !25

122:                                              ; preds = %83
  store i32 0, ptr %6, align 4
  store i32 1, ptr %14, align 4
  br label %123

123:                                              ; preds = %122, %116, %104, %75, %25, %20
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  %124 = load i32, ptr %6, align 4
  ret i32 %124
}

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

; Function Attrs: nounwind
declare i32 @socketpair(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @mln_iothread_fd_nonblock_set(i32 noundef) #3

; Function Attrs: nounwind
declare i32 @pthread_mutex_init(ptr noundef, ptr noundef) #2

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

declare i32 @close(i32 noundef) #5

; Function Attrs: nounwind
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @mln_iothread_destroy(ptr noundef) #0

; Function Attrs: nounwind
declare i32 @pthread_detach(i64 noundef) #2

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

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

!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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 80}
!12 = !{!"mln_iothread_s", !7, i64 0, !7, i64 40, !10, i64 80, !10, i64 84, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !10, i64 136, !6, i64 144, !6, i64 152}
!13 = !{!12, !10, i64 84}
!14 = !{!12, !6, i64 112}
!15 = !{!12, !6, i64 120}
!16 = !{!12, !6, i64 88}
!17 = !{!12, !6, i64 104}
!18 = !{!12, !6, i64 96}
!19 = !{!12, !6, i64 152}
!20 = !{!12, !6, i64 144}
!21 = !{!12, !10, i64 136}
!22 = !{!12, !6, i64 128}
!23 = !{!24, !24, i64 0}
!24 = !{!"long", !7, i64 0}
!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"

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @mln_iothread_init(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #0 {
  %6 = alloca [2 x i32], align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %7 = icmp eq i32 %1, 0
  %8 = icmp eq ptr %2, null
  %or.cond = or i1 %7, %8
  br i1 %or.cond, label %.loopexit, label %9

9:                                                ; preds = %5
  %10 = call i32 @socketpair(i32 noundef 1, i32 noundef 1, i32 noundef 0, ptr noundef nonnull %6) #7
  %11 = icmp slt i32 %10, 0
  br i1 %11, label %.loopexit, label %12

12:                                               ; preds = %9
  %13 = getelementptr inbounds i8, ptr %0, i64 80
  %14 = getelementptr inbounds i8, ptr %0, i64 84
  %15 = load <2 x i32>, ptr %6, align 8, !tbaa !5
  store <2 x i32> %15, ptr %13, align 8, !tbaa !5
  %16 = extractelement <2 x i32> %15, i64 0
  call void @mln_iothread_fd_nonblock_set(i32 noundef %16)
  %17 = load i32, ptr %14, align 4, !tbaa !9
  call void @mln_iothread_fd_nonblock_set(i32 noundef %17)
  %18 = getelementptr inbounds i8, ptr %0, i64 112
  store ptr %2, ptr %18, align 8, !tbaa !12
  %19 = getelementptr inbounds i8, ptr %0, i64 120
  store ptr %3, ptr %19, align 8, !tbaa !13
  %20 = getelementptr inbounds i8, ptr %0, i64 88
  store ptr %4, ptr %20, align 8, !tbaa !14
  %21 = call i32 @pthread_mutex_init(ptr noundef %0, ptr noundef null) #7
  %22 = getelementptr inbounds i8, ptr %0, i64 40
  %23 = call i32 @pthread_mutex_init(ptr noundef nonnull %22, ptr noundef null) #7
  %24 = getelementptr inbounds i8, ptr %0, i64 96
  %25 = getelementptr inbounds i8, ptr %0, i64 144
  %26 = getelementptr inbounds i8, ptr %0, i64 136
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %24, i8 0, i64 16, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %25, i8 0, i64 16, i1 false)
  store i32 %1, ptr %26, align 8, !tbaa !15
  %27 = zext i32 %1 to i64
  %28 = call noalias ptr @calloc(i64 noundef %27, i64 noundef 8) #8
  %29 = getelementptr inbounds i8, ptr %0, i64 128
  store ptr %28, ptr %29, align 8, !tbaa !16
  %30 = icmp eq ptr %28, null
  br i1 %30, label %31, label %.lr.ph

31:                                               ; preds = %12
  %32 = getelementptr inbounds i8, ptr %6, i64 4
  %33 = load i32, ptr %6, align 8, !tbaa !5
  %34 = call i32 @close(i32 noundef %33) #7
  %35 = load i32, ptr %32, align 4, !tbaa !5
  %36 = call i32 @close(i32 noundef %35) #7
  br label %.loopexit

37:                                               ; preds = %47
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %38 = load i32, ptr %26, align 8, !tbaa !15
  %39 = zext i32 %38 to i64
  %40 = icmp ult i64 %indvars.iv.next, %39
  br i1 %40, label %.lr.ph, label %.loopexit, !llvm.loop !17

.lr.ph:                                           ; preds = %12, %37
  %indvars.iv = phi i64 [ %indvars.iv.next, %37 ], [ 0, %12 ]
  %41 = load ptr, ptr %29, align 8, !tbaa !16
  %42 = getelementptr inbounds i64, ptr %41, i64 %indvars.iv
  %43 = load ptr, ptr %18, align 8, !tbaa !12
  %44 = load ptr, ptr %19, align 8, !tbaa !13
  %45 = call i32 @pthread_create(ptr noundef %42, ptr noundef null, ptr noundef %43, ptr noundef %44) #7
  %.not = icmp eq i32 %45, 0
  br i1 %.not, label %47, label %46

46:                                               ; preds = %.lr.ph
  call void @mln_iothread_destroy(ptr noundef nonnull %0)
  br label %.loopexit

47:                                               ; preds = %.lr.ph
  %48 = load ptr, ptr %29, align 8, !tbaa !16
  %49 = getelementptr inbounds i64, ptr %48, i64 %indvars.iv
  %50 = load i64, ptr %49, align 8, !tbaa !19
  %51 = call i32 @pthread_detach(i64 noundef %50) #7
  %.not37 = icmp eq i32 %51, 0
  br i1 %.not37, label %37, label %52

52:                                               ; preds = %47
  call void @mln_iothread_destroy(ptr noundef nonnull %0)
  br label %.loopexit

.loopexit:                                        ; preds = %37, %9, %5, %52, %46, %31
  %.034 = phi i32 [ -1, %31 ], [ -1, %46 ], [ -1, %52 ], [ -1, %5 ], [ -1, %9 ], [ 0, %37 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  ret i32 %.034
}

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

; Function Attrs: nounwind
declare i32 @socketpair(i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @mln_iothread_fd_nonblock_set(i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @pthread_mutex_init(ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare i32 @close(i32 noundef) local_unnamed_addr #5

; Function Attrs: nounwind
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @mln_iothread_destroy(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind
declare i32 @pthread_detach(i64 noundef) 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) #1

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

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { inlinehint 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,zeroed") allocsize(0,1) 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 = { "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 #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind }
attributes #8 = { nounwind allocsize(0,1) }

!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, !6, i64 84}
!10 = !{!"mln_iothread_s", !7, i64 0, !7, i64 40, !6, i64 80, !6, i64 84, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !6, i64 136, !11, i64 144, !11, i64 152}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!10, !11, i64 112}
!13 = !{!10, !11, i64 120}
!14 = !{!10, !11, i64 88}
!15 = !{!10, !6, i64 136}
!16 = !{!10, !11, i64 128}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !20, i64 0}
!20 = !{!"long", !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass