; 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_conf_s = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.mln_conf_domain_s = type { ptr, ptr, ptr, ptr, ptr }
%struct.mln_conf_cmd_s = type { ptr, ptr, ptr, ptr, i32 }
%struct.mln_conf_item_s = type { i32, %union.anon }
%union.anon = type { ptr }
%struct.mln_string_t = type { ptr, i64, i32 }

@.str = external hidden unnamed_addr constant [66 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@__FUNCTION__.mln_fork = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [38 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @mln_fork() #2 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  %15 = call ptr @mln_conf()
  store ptr %15, ptr %2, align 8, !tbaa !5
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  %17 = icmp eq ptr %16, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %0
  call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef @.str, ptr noundef @__FUNCTION__.mln_fork, i32 noundef 184, ptr noundef @.str.4)
  call void @abort() #7
  unreachable

19:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %20 = load ptr, ptr %2, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.mln_conf_s, ptr %20, i32 0, i32 2
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  %23 = load ptr, ptr %2, align 8, !tbaa !5
  %24 = call ptr %22(ptr noundef %23, ptr noundef @.str.5)
  store ptr %24, ptr %3, align 8, !tbaa !5
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = icmp eq ptr %25, null
  br i1 %26, label %27, label %28

27:                                               ; preds = %19
  call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef @.str, ptr noundef @__FUNCTION__.mln_fork, i32 noundef 189, ptr noundef @.str.6)
  call void @abort() #7
  unreachable

28:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  store i64 0, ptr %4, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.mln_conf_domain_s, ptr %29, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !13
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = call ptr %31(ptr noundef %32, ptr noundef @.str.7)
  store ptr %33, ptr %5, align 8, !tbaa !5
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %64

36:                                               ; preds = %28
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = call i32 @mln_conf_arg_num(ptr noundef %37)
  %39 = icmp ugt i32 %38, 1
  br i1 %39, label %40, label %41

40:                                               ; preds = %36
  call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef @.str, ptr noundef @__FUNCTION__.mln_fork, i32 noundef 196, ptr noundef @.str.8)
  call void @exit(i32 noundef 1) #7
  unreachable

41:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.mln_conf_cmd_s, ptr %42, i32 0, i32 1
  %44 = load ptr, ptr %43, align 8, !tbaa !15
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = call ptr %44(ptr noundef %45, i32 noundef 1)
  store ptr %46, ptr %6, align 8, !tbaa !5
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = icmp eq ptr %47, null
  br i1 %48, label %49, label %50

49:                                               ; preds = %41
  call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef @.str, ptr noundef @__FUNCTION__.mln_fork, i32 noundef 201, ptr noundef @.str.9)
  call void @exit(i32 noundef 1) #7
  unreachable

50:                                               ; preds = %41
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.mln_conf_item_s, ptr %51, i32 0, i32 0
  %53 = load i32, ptr %52, align 8, !tbaa !18
  %54 = icmp ne i32 %53, 4
  br i1 %54, label %55, label %56

55:                                               ; preds = %50
  call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef @.str, ptr noundef @__FUNCTION__.mln_fork, i32 noundef 205, ptr noundef @.str.9)
  call void @exit(i32 noundef 1) #7
  unreachable

56:                                               ; preds = %50
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.mln_conf_item_s, ptr %57, i32 0, i32 1
  %59 = load i64, ptr %58, align 8, !tbaa !20
  store i64 %59, ptr %4, align 8, !tbaa !11
  %60 = load i64, ptr %4, align 8, !tbaa !11
  %61 = icmp slt i64 %60, 0
  br i1 %61, label %62, label %63

62:                                               ; preds = %56
  call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef @.str, ptr noundef @__FUNCTION__.mln_fork, i32 noundef 210, ptr noundef @.str.10)
  call void @exit(i32 noundef 1) #7
  unreachable

63:                                               ; preds = %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %64

64:                                               ; preds = %63, %28
  %65 = load i64, ptr %4, align 8, !tbaa !11
  %66 = call i32 @do_fork_worker_process(i64 noundef %65)
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %69, label %68

68:                                               ; preds = %64
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %174

69:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %70 = load ptr, ptr %2, align 8, !tbaa !5
  %71 = call i32 @mln_conf_cmd_num(ptr noundef %70, ptr noundef @.str.11)
  store i32 %71, ptr %14, align 4, !tbaa !21
  %72 = load i32, ptr %14, align 4, !tbaa !21
  %73 = icmp eq i32 %72, 0
  br i1 %73, label %74, label %75

74:                                               ; preds = %69
  store i32 1, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %173

75:                                               ; preds = %69
  %76 = load i32, ptr %14, align 4, !tbaa !21
  %77 = add i32 %76, 1
  %78 = zext i32 %77 to i64
  %79 = call noalias ptr @calloc(i64 noundef %78, i64 noundef 8) #8
  store ptr %79, ptr %8, align 8, !tbaa !5
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = icmp eq ptr %80, null
  br i1 %81, label %82, label %83

82:                                               ; preds = %75
  call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef @.str, ptr noundef @__FUNCTION__.mln_fork, i32 noundef 225, ptr noundef @.str.3)
  store i32 -1, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %173

83:                                               ; preds = %75
  %84 = load ptr, ptr %2, align 8, !tbaa !5
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  call void @mln_conf_cmds(ptr noundef %84, ptr noundef @.str.11, ptr noundef %85)
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %86, ptr %9, align 8, !tbaa !5
  br label %87

87:                                               ; preds = %168, %83
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  %90 = icmp ne ptr %89, null
  br i1 %90, label %91, label %171

91:                                               ; preds = %87
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  %94 = call i32 @mln_conf_arg_num(ptr noundef %93)
  store i32 %94, ptr %11, align 4, !tbaa !21
  %95 = load i32, ptr %11, align 4, !tbaa !21
  %96 = icmp eq i32 %95, 0
  br i1 %96, label %97, label %98

97:                                               ; preds = %91
  call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef @.str, ptr noundef @__FUNCTION__.mln_fork, i32 noundef 232, ptr noundef @.str.12)
  call void @exit(i32 noundef 1) #7
  unreachable

98:                                               ; preds = %91
  %99 = load i32, ptr %11, align 4, !tbaa !21
  %100 = add i32 %99, 2
  %101 = zext i32 %100 to i64
  %102 = call noalias ptr @calloc(i64 noundef %101, i64 noundef 8) #8
  store ptr %102, ptr %13, align 8, !tbaa !5
  %103 = load ptr, ptr %13, align 8, !tbaa !5
  %104 = icmp eq ptr %103, null
  br i1 %104, label %105, label %106

105:                                              ; preds = %98
  call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef @.str, ptr noundef @__FUNCTION__.mln_fork, i32 noundef 237, ptr noundef @.str.3)
  br label %168

106:                                              ; preds = %98
  store i32 0, ptr %10, align 4, !tbaa !21
  br label %107

107:                                              ; preds = %136, %106
  %108 = load i32, ptr %10, align 4, !tbaa !21
  %109 = load i32, ptr %11, align 4, !tbaa !21
  %110 = icmp ult i32 %108, %109
  br i1 %110, label %111, label %139

111:                                              ; preds = %107
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = load ptr, ptr %112, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.mln_conf_cmd_s, ptr %113, i32 0, i32 1
  %115 = load ptr, ptr %114, align 8, !tbaa !15
  %116 = load ptr, ptr %9, align 8, !tbaa !5
  %117 = load ptr, ptr %116, align 8, !tbaa !5
  %118 = load i32, ptr %10, align 4, !tbaa !21
  %119 = add i32 %118, 1
  %120 = call ptr %115(ptr noundef %117, i32 noundef %119)
  store ptr %120, ptr %12, align 8, !tbaa !5
  %121 = load ptr, ptr %12, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.mln_conf_item_s, ptr %121, i32 0, i32 0
  %123 = load i32, ptr %122, align 8, !tbaa !18
  %124 = icmp ne i32 %123, 1
  br i1 %124, label %125, label %126

125:                                              ; preds = %111
  call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef @.str, ptr noundef @__FUNCTION__.mln_fork, i32 noundef 243, ptr noundef @.str.13)
  call void @exit(i32 noundef 1) #7
  unreachable

126:                                              ; preds = %111
  %127 = load ptr, ptr %12, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.mln_conf_item_s, ptr %127, i32 0, i32 1
  %129 = load ptr, ptr %128, align 8, !tbaa !20
  %130 = getelementptr inbounds %struct.mln_string_t, ptr %129, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8, !tbaa !22
  %132 = load ptr, ptr %13, align 8, !tbaa !5
  %133 = load i32, ptr %10, align 4, !tbaa !21
  %134 = zext i32 %133 to i64
  %135 = getelementptr inbounds ptr, ptr %132, i64 %134
  store ptr %131, ptr %135, align 8, !tbaa !5
  br label %136

136:                                              ; preds = %126
  %137 = load i32, ptr %10, align 4, !tbaa !21
  %138 = add i32 %137, 1
  store i32 %138, ptr %10, align 4, !tbaa !21
  br label %107, !llvm.loop !24

139:                                              ; preds = %107
  %140 = load ptr, ptr %9, align 8, !tbaa !5
  %141 = load ptr, ptr %140, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.mln_conf_cmd_s, ptr %141, i32 0, i32 0
  %143 = load ptr, ptr %142, align 8, !tbaa !26
  %144 = call i32 @mln_string_const_strcmp(ptr noundef %143, ptr noundef @.str.14)
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %150, label %146

146:                                              ; preds = %139
  %147 = load ptr, ptr %13, align 8, !tbaa !5
  %148 = load i32, ptr %11, align 4, !tbaa !21
  %149 = call i32 @mln_fork_spawn(i32 noundef 1, ptr noundef %147, i32 noundef %148, ptr noundef null)
  br label %167

150:                                              ; preds = %139
  %151 = load ptr, ptr %9, align 8, !tbaa !5
  %152 = load ptr, ptr %151, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.mln_conf_cmd_s, ptr %152, i32 0, i32 0
  %154 = load ptr, ptr %153, align 8, !tbaa !26
  %155 = call i32 @mln_string_const_strcmp(ptr noundef %154, ptr noundef @.str.15)
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %161, label %157

157:                                              ; preds = %150
  %158 = load ptr, ptr %13, align 8, !tbaa !5
  %159 = load i32, ptr %11, align 4, !tbaa !21
  %160 = call i32 @mln_fork_spawn(i32 noundef 0, ptr noundef %158, i32 noundef %159, ptr noundef null)
  br label %166

161:                                              ; preds = %150
  %162 = load ptr, ptr %9, align 8, !tbaa !5
  %163 = load ptr, ptr %162, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.mln_conf_cmd_s, ptr %163, i32 0, i32 0
  %165 = load ptr, ptr %164, align 8, !tbaa !26
  call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef @.str, ptr noundef @__FUNCTION__.mln_fork, i32 noundef 253, ptr noundef @.str.16, ptr noundef %165)
  call void @exit(i32 noundef 1) #7
  unreachable

166:                                              ; preds = %157
  br label %167

167:                                              ; preds = %166, %146
  br label %168

168:                                              ; preds = %167, %105
  %169 = load ptr, ptr %9, align 8, !tbaa !5
  %170 = getelementptr inbounds ptr, ptr %169, i32 1
  store ptr %170, ptr %9, align 8, !tbaa !5
  br label %87, !llvm.loop !27

171:                                              ; preds = %87
  %172 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %172) #6
  store i32 1, ptr %1, align 4
  store i32 1, ptr %7, align 4
  br label %173

173:                                              ; preds = %171, %82, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %174

174:                                              ; preds = %173, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  %175 = load i32, ptr %1, align 4
  ret i32 %175
}

declare ptr @mln_conf() #0

; Function Attrs: noreturn nounwind
declare void @abort() #3

declare i32 @mln_conf_arg_num(ptr noundef) #0

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @do_fork_worker_process(i64 noundef) #2

declare i32 @mln_conf_cmd_num(ptr noundef, ptr noundef) #0

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

declare void @mln_conf_cmds(ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @mln_string_const_strcmp(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @mln_fork_spawn(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: nounwind
declare void @free(ptr noundef) #5

attributes #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 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 #3 = { noreturn 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 #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 = { 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 #6 = { nounwind }
attributes #7 = { noreturn 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 16}
!10 = !{!"mln_conf_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"mln_conf_domain_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!15 = !{!16, !6, i64 8}
!16 = !{!"mln_conf_cmd_s", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !17, i64 32}
!17 = !{!"int", !7, i64 0}
!18 = !{!19, !17, i64 0}
!19 = !{!"mln_conf_item_s", !17, i64 0, !7, i64 8}
!20 = !{!7, !7, i64 0}
!21 = !{!17, !17, i64 0}
!22 = !{!23, !6, i64 0}
!23 = !{!"", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 16, !12, i64 16}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!16, !6, i64 0}
!27 = distinct !{!27, !25}


; 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"

@.str = external hidden unnamed_addr constant [66 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@__FUNCTION__.mln_fork = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [38 x i8], align 1

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 2) i32 @mln_fork() local_unnamed_addr #1 {
  %1 = tail call ptr @mln_conf() #5
  %2 = icmp eq ptr %1, null
  br i1 %2, label %3, label %4

3:                                                ; preds = %0
  tail call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef nonnull @.str, ptr noundef nonnull @__FUNCTION__.mln_fork, i32 noundef 184, ptr noundef nonnull @.str.4) #5
  tail call void @abort() #6
  unreachable

4:                                                ; preds = %0
  %5 = getelementptr inbounds i8, ptr %1, i64 16
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = tail call ptr %6(ptr noundef nonnull %1, ptr noundef nonnull @.str.5) #5
  %8 = icmp eq ptr %7, null
  br i1 %8, label %9, label %10

9:                                                ; preds = %4
  tail call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef nonnull @.str, ptr noundef nonnull @__FUNCTION__.mln_fork, i32 noundef 189, ptr noundef nonnull @.str.6) #5
  tail call void @abort() #6
  unreachable

10:                                               ; preds = %4
  %11 = load ptr, ptr %7, align 8, !tbaa !10
  %12 = tail call ptr %11(ptr noundef nonnull %7, ptr noundef nonnull @.str.7) #5
  %.not = icmp eq ptr %12, null
  br i1 %.not, label %31, label %13

13:                                               ; preds = %10
  %14 = tail call i32 @mln_conf_arg_num(ptr noundef nonnull %12) #5
  %15 = icmp ugt i32 %14, 1
  br i1 %15, label %16, label %17

16:                                               ; preds = %13
  tail call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef nonnull @.str, ptr noundef nonnull @__FUNCTION__.mln_fork, i32 noundef 196, ptr noundef nonnull @.str.8) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

17:                                               ; preds = %13
  %18 = getelementptr inbounds i8, ptr %12, i64 8
  %19 = load ptr, ptr %18, align 8, !tbaa !12
  %20 = tail call ptr %19(ptr noundef nonnull %12, i32 noundef 1) #5
  %21 = icmp eq ptr %20, null
  br i1 %21, label %22, label %23

22:                                               ; preds = %17
  tail call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef nonnull @.str, ptr noundef nonnull @__FUNCTION__.mln_fork, i32 noundef 201, ptr noundef nonnull @.str.9) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

23:                                               ; preds = %17
  %24 = load i32, ptr %20, align 8, !tbaa !15
  %.not59 = icmp eq i32 %24, 4
  br i1 %.not59, label %26, label %25

25:                                               ; preds = %23
  tail call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef nonnull @.str, ptr noundef nonnull @__FUNCTION__.mln_fork, i32 noundef 205, ptr noundef nonnull @.str.9) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

26:                                               ; preds = %23
  %27 = getelementptr inbounds i8, ptr %20, i64 8
  %28 = load i64, ptr %27, align 8, !tbaa !17
  %29 = icmp slt i64 %28, 0
  br i1 %29, label %30, label %31

30:                                               ; preds = %26
  tail call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef nonnull @.str, ptr noundef nonnull @__FUNCTION__.mln_fork, i32 noundef 210, ptr noundef nonnull @.str.10) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

31:                                               ; preds = %26, %10
  %.046 = phi i64 [ 0, %10 ], [ %28, %26 ]
  %32 = tail call i32 @do_fork_worker_process(i64 noundef %.046)
  %.not60 = icmp eq i32 %32, 0
  br i1 %.not60, label %84, label %33

33:                                               ; preds = %31
  %34 = tail call i32 @mln_conf_cmd_num(ptr noundef nonnull %1, ptr noundef nonnull @.str.11) #5
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %84, label %36

36:                                               ; preds = %33
  %37 = add i32 %34, 1
  %38 = zext i32 %37 to i64
  %39 = tail call noalias ptr @calloc(i64 noundef %38, i64 noundef 8) #7
  %40 = icmp eq ptr %39, null
  br i1 %40, label %41, label %42

41:                                               ; preds = %36
  tail call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef nonnull @.str, ptr noundef nonnull @__FUNCTION__.mln_fork, i32 noundef 225, ptr noundef nonnull @.str.3) #5
  br label %84

42:                                               ; preds = %36
  tail call void @mln_conf_cmds(ptr noundef nonnull %1, ptr noundef nonnull @.str.11, ptr noundef nonnull %39) #5
  %43 = load ptr, ptr %39, align 8, !tbaa !18
  %.not6169 = icmp eq ptr %43, null
  br i1 %.not6169, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %42, %81
  %44 = phi ptr [ %83, %81 ], [ %43, %42 ]
  %.04770 = phi ptr [ %82, %81 ], [ %39, %42 ]
  %45 = tail call i32 @mln_conf_arg_num(ptr noundef nonnull %44) #5
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %47, label %48

47:                                               ; preds = %.lr.ph
  tail call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef nonnull @.str, ptr noundef nonnull @__FUNCTION__.mln_fork, i32 noundef 232, ptr noundef nonnull @.str.12) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

48:                                               ; preds = %.lr.ph
  %49 = add i32 %45, 2
  %50 = zext i32 %49 to i64
  %51 = tail call noalias ptr @calloc(i64 noundef %50, i64 noundef 8) #7
  %52 = icmp eq ptr %51, null
  br i1 %52, label %53, label %.preheader.preheader

.preheader.preheader:                             ; preds = %48
  %wide.trip.count = zext i32 %45 to i64
  br label %.preheader

53:                                               ; preds = %48
  tail call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef nonnull @.str, ptr noundef nonnull @__FUNCTION__.mln_fork, i32 noundef 237, ptr noundef nonnull @.str.3) #5
  br label %81

.preheader:                                       ; preds = %.preheader.preheader, %61
  %indvars.iv = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next, %61 ]
  %54 = load ptr, ptr %.04770, align 8, !tbaa !18
  %55 = getelementptr inbounds i8, ptr %54, i64 8
  %56 = load ptr, ptr %55, align 8, !tbaa !12
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %57 = trunc nuw i64 %indvars.iv.next to i32
  %58 = tail call ptr %56(ptr noundef %54, i32 noundef %57) #5
  %59 = load i32, ptr %58, align 8, !tbaa !15
  %.not64 = icmp eq i32 %59, 1
  br i1 %.not64, label %61, label %60

60:                                               ; preds = %.preheader
  tail call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef nonnull @.str, ptr noundef nonnull @__FUNCTION__.mln_fork, i32 noundef 243, ptr noundef nonnull @.str.13) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

61:                                               ; preds = %.preheader
  %62 = getelementptr inbounds i8, ptr %58, i64 8
  %63 = load ptr, ptr %62, align 8, !tbaa !17
  %64 = load ptr, ptr %63, align 8, !tbaa !19
  %65 = getelementptr inbounds ptr, ptr %51, i64 %indvars.iv
  store ptr %64, ptr %65, align 8, !tbaa !18
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %66, label %.preheader, !llvm.loop !22

66:                                               ; preds = %61
  %67 = load ptr, ptr %.04770, align 8, !tbaa !18
  %68 = load ptr, ptr %67, align 8, !tbaa !24
  %69 = tail call i32 @mln_string_const_strcmp(ptr noundef %68, ptr noundef nonnull @.str.14) #5
  %.not62 = icmp eq i32 %69, 0
  br i1 %.not62, label %70, label %72

70:                                               ; preds = %66
  %71 = tail call i32 @mln_fork_spawn(i32 noundef 1, ptr noundef nonnull %51, i32 noundef %45, ptr noundef null)
  br label %81

72:                                               ; preds = %66
  %73 = load ptr, ptr %.04770, align 8, !tbaa !18
  %74 = load ptr, ptr %73, align 8, !tbaa !24
  %75 = tail call i32 @mln_string_const_strcmp(ptr noundef %74, ptr noundef nonnull @.str.15) #5
  %.not63 = icmp eq i32 %75, 0
  br i1 %.not63, label %76, label %78

76:                                               ; preds = %72
  %77 = tail call i32 @mln_fork_spawn(i32 noundef 0, ptr noundef nonnull %51, i32 noundef %45, ptr noundef null)
  br label %81

78:                                               ; preds = %72
  %79 = load ptr, ptr %.04770, align 8, !tbaa !18
  %80 = load ptr, ptr %79, align 8, !tbaa !24
  tail call void (i32, ptr, ptr, i32, ptr, ...) @_mln_sys_log(i32 noundef 4, ptr noundef nonnull @.str, ptr noundef nonnull @__FUNCTION__.mln_fork, i32 noundef 253, ptr noundef nonnull @.str.16, ptr noundef %80) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

81:                                               ; preds = %70, %76, %53
  %82 = getelementptr inbounds i8, ptr %.04770, i64 8
  %83 = load ptr, ptr %82, align 8, !tbaa !18
  %.not61 = icmp eq ptr %83, null
  br i1 %.not61, label %._crit_edge, label %.lr.ph, !llvm.loop !25

._crit_edge:                                      ; preds = %81, %42
  tail call void @free(ptr noundef %39) #5
  br label %84

84:                                               ; preds = %41, %._crit_edge, %33, %31
  %.1 = phi i32 [ 0, %31 ], [ -1, %41 ], [ 1, %._crit_edge ], [ 1, %33 ]
  ret i32 %.1
}

declare ptr @mln_conf() local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #2

declare i32 @mln_conf_arg_num(ptr noundef) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @do_fork_worker_process(i64 noundef) local_unnamed_addr #1

declare i32 @mln_conf_cmd_num(ptr noundef, ptr noundef) local_unnamed_addr #0

; 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 #3

declare void @mln_conf_cmds(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @mln_string_const_strcmp(ptr noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

attributes #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 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 #2 = { noreturn 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,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 #4 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, 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 = { noreturn 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, !7, i64 16}
!6 = !{!"mln_conf_s", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 0}
!11 = !{!"mln_conf_domain_s", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!12 = !{!13, !7, i64 8}
!13 = !{!"mln_conf_cmd_s", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !14, i64 32}
!14 = !{!"int", !8, i64 0}
!15 = !{!16, !14, i64 0}
!16 = !{!"mln_conf_item_s", !14, i64 0, !8, i64 8}
!17 = !{!8, !8, i64 0}
!18 = !{!7, !7, i64 0}
!19 = !{!20, !7, i64 0}
!20 = !{!"", !7, i64 0, !21, i64 8, !21, i64 16, !21, i64 16, !21, i64 16}
!21 = !{!"long", !8, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!13, !7, i64 0}
!25 = distinct !{!25, !23}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass