; LLVM IR from microsoft/ntttcp-for-linux :: src (main)

; 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.cpu_set_t = type { [16 x i64] }
%struct.ntttcp_test = type { i8, i8, i8, i8, i8, i8, i8, ptr, i32, i32, ptr, i32, i32, i8, i32, i32, i32, i32, i64, i64, i64, i64, i32, i32, i32, i8, ptr, ptr, i8, ptr, i8, ptr, i8, ptr, i8, i8 }

@.str.19 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [45 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @run_ntttcp_sender(ptr noundef) #0

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

declare void @PRINT_ERR(ptr noundef) #2

declare void @PRINT_INFO(ptr noundef) #2

; 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
declare dso_local i32 @run_ntttcp_receiver(ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %struct.cpu_set_t, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 128, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %12 = call ptr @signal(i32 noundef 2, ptr noundef @sig_handler) #7
  %13 = icmp eq ptr %12, inttoptr (i64 -1 to ptr)
  br i1 %13, label %14, label %15

14:                                               ; preds = %2
  call void @PRINT_ERR(ptr noundef @.str.19)
  br label %15

15:                                               ; preds = %14, %2
  %16 = call ptr @signal(i32 noundef 13, ptr noundef inttoptr (i64 1 to ptr)) #7
  call void (...) @print_version()
  %17 = call ptr (...) @new_ntttcp_test()
  store ptr %17, ptr %8, align 8, !tbaa !9
  %18 = load ptr, ptr %8, align 8, !tbaa !9
  %19 = icmp ne ptr %18, null
  br i1 %19, label %21, label %20

20:                                               ; preds = %15
  call void @PRINT_ERR(ptr noundef @.str.20)
  call void @exit(i32 noundef -1) #8
  unreachable

21:                                               ; preds = %15
  %22 = load ptr, ptr %8, align 8, !tbaa !9
  call void @default_ntttcp_test(ptr noundef %22)
  %23 = load ptr, ptr %8, align 8, !tbaa !9
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = load ptr, ptr %5, align 8, !tbaa !9
  %26 = call i32 @parse_arguments(ptr noundef %23, i32 noundef %24, ptr noundef %25)
  store i32 %26, ptr %6, align 4, !tbaa !5
  %27 = load i32, ptr %6, align 4, !tbaa !5
  %28 = icmp ne i32 %27, 0
  br i1 %28, label %29, label %32

29:                                               ; preds = %21
  call void @PRINT_ERR(ptr noundef @.str.21)
  %30 = load ptr, ptr %8, align 8, !tbaa !9
  call void @print_flags(ptr noundef %30)
  %31 = load ptr, ptr %8, align 8, !tbaa !9
  call void @free(ptr noundef %31) #7
  call void @exit(i32 noundef -1) #8
  unreachable

32:                                               ; preds = %21
  %33 = load ptr, ptr %8, align 8, !tbaa !9
  %34 = call i32 @verify_args(ptr noundef %33)
  store i32 %34, ptr %6, align 4, !tbaa !5
  %35 = load i32, ptr %6, align 4, !tbaa !5
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %40

37:                                               ; preds = %32
  call void @PRINT_ERR(ptr noundef @.str.22)
  %38 = load ptr, ptr %8, align 8, !tbaa !9
  call void @print_flags(ptr noundef %38)
  %39 = load ptr, ptr %8, align 8, !tbaa !9
  call void @free(ptr noundef %39) #7
  call void @exit(i32 noundef -1) #8
  unreachable

40:                                               ; preds = %32
  %41 = load ptr, ptr %8, align 8, !tbaa !9
  %42 = getelementptr inbounds %struct.ntttcp_test, ptr %41, i32 0, i32 35
  %43 = load i8, ptr %42, align 1, !tbaa !11, !range !15, !noundef !16
  %44 = trunc i8 %43 to i1
  %45 = load ptr, ptr %8, align 8, !tbaa !9
  %46 = getelementptr inbounds %struct.ntttcp_test, ptr %45, i32 0, i32 28
  %47 = load i8, ptr %46, align 8, !tbaa !17, !range !15, !noundef !16
  %48 = trunc i8 %47 to i1
  %49 = load ptr, ptr %8, align 8, !tbaa !9
  %50 = getelementptr inbounds %struct.ntttcp_test, ptr %49, i32 0, i32 29
  %51 = load ptr, ptr %50, align 8, !tbaa !18
  call void @prepare_logging(i1 noundef zeroext %44, i1 noundef zeroext %48, ptr noundef %51)
  %52 = load ptr, ptr %8, align 8, !tbaa !9
  %53 = getelementptr inbounds %struct.ntttcp_test, ptr %52, i32 0, i32 35
  %54 = load i8, ptr %53, align 1, !tbaa !11, !range !15, !noundef !16
  %55 = trunc i8 %54 to i1
  br i1 %55, label %56, label %58

56:                                               ; preds = %40
  %57 = load ptr, ptr %8, align 8, !tbaa !9
  call void @print_flags(ptr noundef %57)
  br label %58

58:                                               ; preds = %56, %40
  %59 = load ptr, ptr %8, align 8, !tbaa !9
  %60 = call zeroext i1 @check_resource_limit(ptr noundef %59)
  br i1 %60, label %63, label %61

61:                                               ; preds = %58
  call void @PRINT_ERR(ptr noundef @.str.23)
  %62 = load ptr, ptr %8, align 8, !tbaa !9
  call void @free(ptr noundef %62) #7
  call void @exit(i32 noundef -1) #8
  unreachable

63:                                               ; preds = %58
  call void @turn_off_light()
  %64 = load ptr, ptr %8, align 8, !tbaa !9
  %65 = getelementptr inbounds %struct.ntttcp_test, ptr %64, i32 0, i32 9
  %66 = load i32, ptr %65, align 4, !tbaa !19
  %67 = icmp ne i32 %66, -1
  br i1 %67, label %68, label %99

68:                                               ; preds = %63
  br label %69

69:                                               ; preds = %68
  call void @llvm.memset.p0.i64(ptr align 8 %7, i8 0, i64 128, i1 false)
  br label %70

70:                                               ; preds = %69
  br label %71

71:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %72 = load ptr, ptr %8, align 8, !tbaa !9
  %73 = getelementptr inbounds %struct.ntttcp_test, ptr %72, i32 0, i32 9
  %74 = load i32, ptr %73, align 4, !tbaa !19
  %75 = sext i32 %74 to i64
  store i64 %75, ptr %10, align 8, !tbaa !20
  %76 = load i64, ptr %10, align 8, !tbaa !20
  %77 = udiv i64 %76, 8
  %78 = icmp ult i64 %77, 128
  br i1 %78, label %79, label %90

79:                                               ; preds = %71
  %80 = load i64, ptr %10, align 8, !tbaa !20
  %81 = urem i64 %80, 64
  %82 = shl i64 1, %81
  %83 = getelementptr inbounds %struct.cpu_set_t, ptr %7, i32 0, i32 0
  %84 = getelementptr inbounds [16 x i64], ptr %83, i64 0, i64 0
  %85 = load i64, ptr %10, align 8, !tbaa !20
  %86 = udiv i64 %85, 64
  %87 = getelementptr inbounds i64, ptr %84, i64 %86
  %88 = load i64, ptr %87, align 8, !tbaa !20
  %89 = or i64 %88, %82
  store i64 %89, ptr %87, align 8, !tbaa !20
  br label %91

90:                                               ; preds = %71
  br label %91

91:                                               ; preds = %90, %79
  %92 = phi i64 [ %89, %79 ], [ 0, %90 ]
  store i64 %92, ptr %11, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  %93 = load i64, ptr %11, align 8, !tbaa !20
  call void @PRINT_INFO(ptr noundef @.str.24)
  %94 = call i64 @pthread_self() #9
  %95 = call i32 @pthread_setaffinity_np(i64 noundef %94, i64 noundef 128, ptr noundef %7) #7
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %98

97:                                               ; preds = %91
  call void @PRINT_ERR(ptr noundef @.str.25)
  br label %98

98:                                               ; preds = %97, %91
  br label %99

99:                                               ; preds = %98, %63
  %100 = load ptr, ptr %8, align 8, !tbaa !9
  %101 = getelementptr inbounds %struct.ntttcp_test, ptr %100, i32 0, i32 4
  %102 = load i8, ptr %101, align 4, !tbaa !21, !range !15, !noundef !16
  %103 = trunc i8 %102 to i1
  br i1 %103, label %104, label %109

104:                                              ; preds = %99
  call void @PRINT_INFO(ptr noundef @.str.26)
  %105 = call i32 @daemon(i32 noundef 0, i32 noundef 0) #7
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %108

107:                                              ; preds = %104
  call void @PRINT_ERR(ptr noundef @.str.27)
  br label %108

108:                                              ; preds = %107, %104
  br label %109

109:                                              ; preds = %108, %99
  %110 = load ptr, ptr %8, align 8, !tbaa !9
  %111 = getelementptr inbounds %struct.ntttcp_test, ptr %110, i32 0, i32 1
  %112 = load i8, ptr %111, align 1, !tbaa !22, !range !15, !noundef !16
  %113 = trunc i8 %112 to i1
  %114 = zext i1 %113 to i32
  %115 = icmp eq i32 %114, 1
  br i1 %115, label %116, label %121

116:                                              ; preds = %109
  %117 = load ptr, ptr %8, align 8, !tbaa !9
  %118 = call ptr @new_ntttcp_test_endpoint(ptr noundef %117, i32 noundef 1)
  store ptr %118, ptr %9, align 8, !tbaa !9
  %119 = load ptr, ptr %9, align 8, !tbaa !9
  %120 = call i32 @run_ntttcp_sender(ptr noundef %119)
  store i32 %120, ptr %6, align 4, !tbaa !5
  br label %126

121:                                              ; preds = %109
  %122 = load ptr, ptr %8, align 8, !tbaa !9
  %123 = call ptr @new_ntttcp_test_endpoint(ptr noundef %122, i32 noundef 2)
  store ptr %123, ptr %9, align 8, !tbaa !9
  %124 = load ptr, ptr %9, align 8, !tbaa !9
  %125 = call i32 @run_ntttcp_receiver(ptr noundef %124)
  store i32 %125, ptr %6, align 4, !tbaa !5
  br label %126

126:                                              ; preds = %121, %116
  %127 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free_ntttcp_test_endpoint_and_test(ptr noundef %127)
  %128 = load i32, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  ret i32 %128
}

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

declare void @sig_handler(i32 noundef) #2

declare void @print_version(...) #2

declare ptr @new_ntttcp_test(...) #2

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

declare void @default_ntttcp_test(ptr noundef) #2

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

declare void @print_flags(ptr noundef) #2

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

declare i32 @verify_args(ptr noundef) #2

declare void @prepare_logging(i1 noundef zeroext, i1 noundef zeroext, ptr noundef) #2

declare zeroext i1 @check_resource_limit(ptr noundef) #2

declare void @turn_off_light() #2

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

; Function Attrs: nounwind
declare i32 @pthread_setaffinity_np(i64 noundef, i64 noundef, ptr noundef) #3

; Function Attrs: nounwind willreturn memory(none)
declare i64 @pthread_self() #6

; Function Attrs: nounwind
declare i32 @daemon(i32 noundef, i32 noundef) #3

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

declare void @free_ntttcp_test_endpoint_and_test(ptr noundef) #2

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 = { "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 "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 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { noreturn nounwind }
attributes #9 = { 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 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !13, i64 177}
!12 = !{!"ntttcp_test", !13, i64 0, !13, i64 1, !13, i64 2, !13, i64 3, !13, i64 4, !13, i64 5, !13, i64 6, !10, i64 8, !6, i64 16, !6, i64 20, !10, i64 24, !6, i64 32, !6, i64 36, !13, i64 40, !6, i64 44, !6, i64 48, !6, i64 52, !6, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !6, i64 96, !6, i64 100, !6, i64 104, !13, i64 108, !10, i64 112, !10, i64 120, !13, i64 128, !10, i64 136, !13, i64 144, !10, i64 152, !13, i64 160, !10, i64 168, !13, i64 176, !13, i64 177}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!12, !13, i64 128}
!18 = !{!12, !10, i64 136}
!19 = !{!12, !6, i64 20}
!20 = !{!14, !14, i64 0}
!21 = !{!12, !13, i64 4}
!22 = !{!12, !13, i64 1}


; 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.cpu_set_t = type { [16 x i64] }

@.str.19 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [45 x i8], align 1

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

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

declare void @PRINT_ERR(ptr noundef) local_unnamed_addr #2

declare void @PRINT_INFO(ptr 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: nounwind uwtable
declare dso_local i32 @run_ntttcp_receiver(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca %struct.cpu_set_t, align 8
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %3) #8
  %4 = tail call ptr @signal(i32 noundef 2, ptr noundef nonnull @sig_handler) #8
  %5 = icmp eq ptr %4, inttoptr (i64 -1 to ptr)
  br i1 %5, label %6, label %7

6:                                                ; preds = %2
  tail call void @PRINT_ERR(ptr noundef nonnull @.str.19) #8
  br label %7

7:                                                ; preds = %6, %2
  %8 = tail call ptr @signal(i32 noundef 13, ptr noundef nonnull inttoptr (i64 1 to ptr)) #8
  tail call void (...) @print_version() #8
  %9 = tail call ptr (...) @new_ntttcp_test() #8
  %.not = icmp eq ptr %9, null
  br i1 %.not, label %10, label %11

10:                                               ; preds = %7
  tail call void @PRINT_ERR(ptr noundef nonnull @.str.20) #8
  tail call void @exit(i32 noundef -1) #9
  unreachable

11:                                               ; preds = %7
  tail call void @default_ntttcp_test(ptr noundef nonnull %9) #8
  %12 = tail call i32 @parse_arguments(ptr noundef nonnull %9, i32 noundef %0, ptr noundef %1) #8
  %.not34 = icmp eq i32 %12, 0
  br i1 %.not34, label %14, label %13

13:                                               ; preds = %11
  tail call void @PRINT_ERR(ptr noundef nonnull @.str.21) #8
  tail call void @print_flags(ptr noundef nonnull %9) #8
  tail call void @free(ptr noundef nonnull %9) #8
  tail call void @exit(i32 noundef -1) #9
  unreachable

14:                                               ; preds = %11
  %15 = tail call i32 @verify_args(ptr noundef nonnull %9) #8
  %.not35 = icmp eq i32 %15, 0
  br i1 %.not35, label %17, label %16

16:                                               ; preds = %14
  tail call void @PRINT_ERR(ptr noundef nonnull @.str.22) #8
  tail call void @print_flags(ptr noundef nonnull %9) #8
  tail call void @free(ptr noundef nonnull %9) #8
  tail call void @exit(i32 noundef -1) #9
  unreachable

17:                                               ; preds = %14
  %18 = getelementptr inbounds i8, ptr %9, i64 177
  %19 = load i8, ptr %18, align 1, !tbaa !5, !range !13, !noundef !14
  %20 = trunc nuw i8 %19 to i1
  %21 = getelementptr inbounds i8, ptr %9, i64 128
  %22 = load i8, ptr %21, align 8, !tbaa !15, !range !13, !noundef !14
  %23 = trunc nuw i8 %22 to i1
  %24 = getelementptr inbounds i8, ptr %9, i64 136
  %25 = load ptr, ptr %24, align 8, !tbaa !16
  tail call void @prepare_logging(i1 noundef zeroext %20, i1 noundef zeroext %23, ptr noundef %25) #8
  %26 = load i8, ptr %18, align 1, !tbaa !5, !range !13, !noundef !14
  %27 = trunc nuw i8 %26 to i1
  br i1 %27, label %28, label %29

28:                                               ; preds = %17
  tail call void @print_flags(ptr noundef nonnull %9) #8
  br label %29

29:                                               ; preds = %28, %17
  %30 = tail call zeroext i1 @check_resource_limit(ptr noundef nonnull %9) #8
  br i1 %30, label %32, label %31

31:                                               ; preds = %29
  tail call void @PRINT_ERR(ptr noundef nonnull @.str.23) #8
  tail call void @free(ptr noundef nonnull %9) #8
  tail call void @exit(i32 noundef -1) #9
  unreachable

32:                                               ; preds = %29
  tail call void @turn_off_light() #8
  %33 = getelementptr inbounds i8, ptr %9, i64 20
  %34 = load i32, ptr %33, align 4, !tbaa !17
  %.not36 = icmp eq i32 %34, -1
  br i1 %.not36, label %49, label %35

35:                                               ; preds = %32
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(128) %3, i8 0, i64 128, i1 false)
  %36 = icmp ult i32 %34, 1024
  br i1 %36, label %37, label %45

37:                                               ; preds = %35
  %38 = zext nneg i32 %34 to i64
  %39 = and i64 %38, 63
  %40 = shl nuw i64 1, %39
  %41 = lshr i64 %38, 6
  %42 = getelementptr inbounds i64, ptr %3, i64 %41
  %43 = load i64, ptr %42, align 8, !tbaa !18
  %44 = or i64 %43, %40
  store i64 %44, ptr %42, align 8, !tbaa !18
  br label %45

45:                                               ; preds = %35, %37
  tail call void @PRINT_INFO(ptr noundef nonnull @.str.24) #8
  %46 = tail call i64 @pthread_self() #10
  %47 = call i32 @pthread_setaffinity_np(i64 noundef %46, i64 noundef 128, ptr noundef nonnull %3) #8
  %.not37 = icmp eq i32 %47, 0
  br i1 %.not37, label %49, label %48

48:                                               ; preds = %45
  call void @PRINT_ERR(ptr noundef nonnull @.str.25) #8
  br label %49

49:                                               ; preds = %45, %48, %32
  %50 = getelementptr inbounds i8, ptr %9, i64 4
  %51 = load i8, ptr %50, align 4, !tbaa !19, !range !13, !noundef !14
  %52 = trunc nuw i8 %51 to i1
  br i1 %52, label %53, label %56

53:                                               ; preds = %49
  call void @PRINT_INFO(ptr noundef nonnull @.str.26) #8
  %54 = call i32 @daemon(i32 noundef 0, i32 noundef 0) #8
  %.not38 = icmp eq i32 %54, 0
  br i1 %.not38, label %56, label %55

55:                                               ; preds = %53
  call void @PRINT_ERR(ptr noundef nonnull @.str.27) #8
  br label %56

56:                                               ; preds = %53, %55, %49
  %57 = getelementptr inbounds i8, ptr %9, i64 1
  %58 = load i8, ptr %57, align 1, !tbaa !20, !range !13, !noundef !14
  %59 = trunc nuw i8 %58 to i1
  br i1 %59, label %60, label %63

60:                                               ; preds = %56
  %61 = call ptr @new_ntttcp_test_endpoint(ptr noundef nonnull %9, i32 noundef 1) #8
  %62 = call i32 @run_ntttcp_sender(ptr noundef %61)
  br label %66

63:                                               ; preds = %56
  %64 = call ptr @new_ntttcp_test_endpoint(ptr noundef nonnull %9, i32 noundef 2) #8
  %65 = call i32 @run_ntttcp_receiver(ptr noundef %64)
  br label %66

66:                                               ; preds = %63, %60
  %.032 = phi ptr [ %61, %60 ], [ %64, %63 ]
  %.0 = phi i32 [ %62, %60 ], [ %65, %63 ]
  call void @free_ntttcp_test_endpoint_and_test(ptr noundef %.032) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %3) #8
  ret i32 %.0
}

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

declare void @sig_handler(i32 noundef) #2

declare void @print_version(...) local_unnamed_addr #2

declare ptr @new_ntttcp_test(...) local_unnamed_addr #2

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

declare void @default_ntttcp_test(ptr noundef) local_unnamed_addr #2

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

declare void @print_flags(ptr noundef) local_unnamed_addr #2

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

declare i32 @verify_args(ptr noundef) local_unnamed_addr #2

declare void @prepare_logging(i1 noundef zeroext, i1 noundef zeroext, ptr noundef) local_unnamed_addr #2

declare zeroext i1 @check_resource_limit(ptr noundef) local_unnamed_addr #2

declare void @turn_off_light() local_unnamed_addr #2

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

; Function Attrs: nounwind
declare i32 @pthread_setaffinity_np(i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare i64 @pthread_self() local_unnamed_addr #7

; Function Attrs: nounwind
declare i32 @daemon(i32 noundef, i32 noundef) local_unnamed_addr #3

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

declare void @free_ntttcp_test_endpoint_and_test(ptr noundef) local_unnamed_addr #2

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 = { "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 "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 = { 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 #5 = { 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 #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { 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, !7, i64 177}
!6 = !{!"ntttcp_test", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6, !10, i64 8, !11, i64 16, !11, i64 20, !10, i64 24, !11, i64 32, !11, i64 36, !7, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !11, i64 96, !11, i64 100, !11, i64 104, !7, i64 108, !10, i64 112, !10, i64 120, !7, i64 128, !10, i64 136, !7, i64 144, !10, i64 152, !7, i64 160, !10, i64 168, !7, i64 176, !7, i64 177}
!7 = !{!"_Bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!6, !7, i64 128}
!16 = !{!6, !10, i64 136}
!17 = !{!6, !11, i64 20}
!18 = !{!12, !12, i64 0}
!19 = !{!6, !7, i64 4}
!20 = !{!6, !7, i64 1}


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