; LLVM IR from aws/s2n-tls :: tests/unit (s2n_self_talk_alerts_test)

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

@s2n_use_color_in_output = external dso_local global i8, align 1
@test_count = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [84 x i8], align 1
@s2n_errno = external thread_local global i32, align 4
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [90 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @mock_client(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca [65535 x i8], align 16
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  store ptr null, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !9
  %16 = call i32 @sleep(i32 noundef 1)
  %17 = call ptr @s2n_connection_new(i32 noundef 1)
  store ptr %17, ptr %7, align 8, !tbaa !5
  %18 = call ptr @s2n_config_new()
  store ptr %18, ptr %8, align 8, !tbaa !5
  br label %19

19:                                               ; preds = %3
  %20 = load i32, ptr @test_count, align 4, !tbaa !9
  %21 = add nsw i32 %20, 1
  store i32 %21, ptr @test_count, align 4, !tbaa !9
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = call i32 @s2n_config_set_cipher_preferences(ptr noundef %22, ptr noundef @.str)
  %24 = icmp eq i32 %23, -1
  br i1 %24, label %25, label %78

25:                                               ; preds = %19
  br label %26

26:                                               ; preds = %25
  br label %27

27:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %28 = call ptr @__errno_location() #9
  %29 = load i32, ptr %28, align 4, !tbaa !9
  store i32 %29, ptr %12, align 4, !tbaa !9
  %30 = load ptr, ptr @stderr, align 8, !tbaa !5
  %31 = call i32 @s2n_print_stacktrace(ptr noundef %30)
  %32 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %33 = trunc i8 %32 to i1
  br i1 %33, label %34, label %56

34:                                               ; preds = %27
  %35 = load ptr, ptr @stderr, align 8, !tbaa !5
  %36 = call i32 @fileno(ptr noundef %35) #8
  %37 = call i32 @isatty(i32 noundef %36) #8
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %56

39:                                               ; preds = %34
  %40 = load i32, ptr %12, align 4, !tbaa !9
  %41 = call ptr @__errno_location() #9
  store i32 %40, ptr %41, align 4, !tbaa !9
  %42 = load ptr, ptr @stderr, align 8, !tbaa !5
  %43 = load i32, ptr @test_count, align 4, !tbaa !9
  %44 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %45 = load i32, ptr %44, align 4, !tbaa !9
  %46 = call ptr @s2n_strerror(i32 noundef %45, ptr noundef @.str.4)
  %47 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %48 = load i32, ptr %47, align 4, !tbaa !9
  %49 = call ptr @s2n_strerror_debug(i32 noundef %48, ptr noundef @.str.4)
  %50 = call ptr @__errno_location() #9
  %51 = load i32, ptr %50, align 4, !tbaa !9
  %52 = call ptr @strerror(i32 noundef %51) #8
  %53 = call ptr @__errno_location() #9
  %54 = load i32, ptr %53, align 4, !tbaa !9
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef @.str.1, i32 noundef %43, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 58, ptr noundef %46, ptr noundef %49, ptr noundef %52, i32 noundef %54) #8
  br label %73

56:                                               ; preds = %34, %27
  %57 = load i32, ptr %12, align 4, !tbaa !9
  %58 = call ptr @__errno_location() #9
  store i32 %57, ptr %58, align 4, !tbaa !9
  %59 = load ptr, ptr @stderr, align 8, !tbaa !5
  %60 = load i32, ptr @test_count, align 4, !tbaa !9
  %61 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %62 = load i32, ptr %61, align 4, !tbaa !9
  %63 = call ptr @s2n_strerror(i32 noundef %62, ptr noundef @.str.4)
  %64 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %65 = load i32, ptr %64, align 4, !tbaa !9
  %66 = call ptr @s2n_strerror_debug(i32 noundef %65, ptr noundef @.str.4)
  %67 = call ptr @__errno_location() #9
  %68 = load i32, ptr %67, align 4, !tbaa !9
  %69 = call ptr @strerror(i32 noundef %68) #8
  %70 = call ptr @__errno_location() #9
  %71 = load i32, ptr %70, align 4, !tbaa !9
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str.5, i32 noundef %60, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 58, ptr noundef %63, ptr noundef %66, ptr noundef %69, i32 noundef %71) #8
  br label %73

73:                                               ; preds = %56, %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %74

74:                                               ; preds = %73
  br label %75

75:                                               ; preds = %74
  call void @exit(i32 noundef 1) #10
  unreachable

76:                                               ; No predecessors!
  br label %77

77:                                               ; preds = %76
  br label %78

78:                                               ; preds = %77, %19
  br label %79

79:                                               ; preds = %78
  br label %80

80:                                               ; preds = %79
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = call i32 @s2n_config_disable_x509_verification(ptr noundef %81)
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = load i32, ptr %5, align 4, !tbaa !9
  %85 = call i32 @s2n_config_set_alert_behavior(ptr noundef %83, i32 noundef %84)
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = call i32 @s2n_connection_set_config(ptr noundef %86, ptr noundef %87)
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = call i32 @s2n_connection_set_io_pair(ptr noundef %89, ptr noundef %90)
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = call i32 @s2n_negotiate(ptr noundef %92, ptr noundef %9)
  store i32 %93, ptr %11, align 4, !tbaa !9
  %94 = load i32, ptr %6, align 4, !tbaa !9
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %101

96:                                               ; preds = %80
  %97 = load i32, ptr %11, align 4, !tbaa !9
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %100, label %99

99:                                               ; preds = %96
  store i32 1, ptr %10, align 4, !tbaa !9
  br label %100

100:                                              ; preds = %99, %96
  br label %129

101:                                              ; preds = %80
  call void @llvm.lifetime.start.p0(i64 65535, ptr %13) #8
  %102 = load i32, ptr %11, align 4, !tbaa !9
  %103 = icmp slt i32 %102, 0
  br i1 %103, label %104, label %105

104:                                              ; preds = %101
  store i32 1, ptr %10, align 4, !tbaa !9
  br label %105

105:                                              ; preds = %104, %101
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  store i64 1, ptr %14, align 8, !tbaa !15
  br label %106

106:                                              ; preds = %118, %105
  %107 = load i64, ptr %14, align 8, !tbaa !15
  %108 = icmp ult i64 %107, 65535
  br i1 %108, label %110, label %109

109:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %121

110:                                              ; preds = %106
  %111 = getelementptr inbounds [65535 x i8], ptr %13, i64 0, i64 0
  %112 = load i64, ptr %14, align 8, !tbaa !15
  %113 = mul i64 1, %112
  call void @llvm.memset.p0.i64(ptr align 16 %111, i8 33, i64 %113, i1 false)
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = getelementptr inbounds [65535 x i8], ptr %13, i64 0, i64 0
  %116 = load i64, ptr %14, align 8, !tbaa !15
  %117 = call i64 @s2n_send(ptr noundef %114, ptr noundef %115, i64 noundef %116, ptr noundef %9)
  br label %118

118:                                              ; preds = %110
  %119 = load i64, ptr %14, align 8, !tbaa !15
  %120 = add i64 %119, 100
  store i64 %120, ptr %14, align 8, !tbaa !15
  br label %106, !llvm.loop !17

121:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 -1, ptr %15, align 4, !tbaa !9
  br label %122

122:                                              ; preds = %125, %121
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = call i32 @s2n_shutdown(ptr noundef %123, ptr noundef %9)
  store i32 %124, ptr %15, align 4, !tbaa !9
  br label %125

125:                                              ; preds = %122
  %126 = load i32, ptr %15, align 4, !tbaa !9
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %122, label %128, !llvm.loop !19

128:                                              ; preds = %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 65535, ptr %13) #8
  br label %129

129:                                              ; preds = %128, %100
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = call i32 @s2n_connection_free(ptr noundef %130)
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = call i32 @s2n_config_free(ptr noundef %132)
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = call i32 @s2n_io_pair_close_one_end(ptr noundef %134, i32 noundef 1)
  %136 = call i32 @s2n_cleanup()
  %137 = load i32, ptr %10, align 4, !tbaa !9
  call void @exit(i32 noundef %137) #10
  unreachable
}

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

declare i32 @sleep(i32 noundef) #2

declare ptr @s2n_connection_new(i32 noundef) #2

declare ptr @s2n_config_new() #2

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

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

declare i32 @s2n_print_stacktrace(ptr noundef) #2

; Function Attrs: nounwind
declare i32 @isatty(i32 noundef) #4

; Function Attrs: nounwind
declare i32 @fileno(ptr noundef) #4

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #5

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

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

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

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

declare i32 @s2n_config_disable_x509_verification(ptr noundef) #2

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

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

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

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

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

declare i64 @s2n_send(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #2

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

declare i32 @s2n_connection_free(ptr noundef) #2

declare i32 @s2n_config_free(ptr noundef) #2

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

declare i32 @s2n_cleanup() #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 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 = { 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 nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(none) }
attributes #10 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!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, !12, i64 0}
!12 = !{!"_Bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


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

@s2n_use_color_in_output = external dso_local local_unnamed_addr global i8, align 1
@test_count = external dso_local local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [9 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [84 x i8], align 1
@s2n_errno = external thread_local local_unnamed_addr global i32, align 4
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [90 x i8], align 1

; Function Attrs: noreturn nounwind uwtable
define dso_local noundef i32 @mock_client(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = alloca i32, align 4
  %5 = alloca [65535 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %6 = tail call i32 @sleep(i32 noundef 1) #9
  %7 = tail call ptr @s2n_connection_new(i32 noundef 1) #9
  %8 = tail call ptr @s2n_config_new() #9
  %9 = load i32, ptr @test_count, align 4, !tbaa !5
  %10 = add nsw i32 %9, 1
  store i32 %10, ptr @test_count, align 4, !tbaa !5
  %11 = tail call i32 @s2n_config_set_cipher_preferences(ptr noundef %8, ptr noundef nonnull @.str) #9
  %12 = icmp eq i32 %11, -1
  br i1 %12, label %13, label %37

13:                                               ; preds = %3
  %14 = tail call ptr @__errno_location() #10
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = load ptr, ptr @stderr, align 8, !tbaa !9
  %17 = tail call i32 @s2n_print_stacktrace(ptr noundef %16) #9
  %18 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %19 = trunc nuw i8 %18 to i1
  br i1 %19, label %20, label %24

20:                                               ; preds = %13
  %21 = load ptr, ptr @stderr, align 8, !tbaa !9
  %22 = tail call i32 @fileno(ptr noundef %21) #9
  %23 = tail call i32 @isatty(i32 noundef %22) #9
  %.not27 = icmp eq i32 %23, 0
  br i1 %.not27, label %24, label %25

24:                                               ; preds = %20, %13
  br label %25

25:                                               ; preds = %20, %24
  %.str.5.sink = phi ptr [ @.str.5, %24 ], [ @.str.1, %20 ]
  store i32 %15, ptr %14, align 4, !tbaa !5
  %26 = load ptr, ptr @stderr, align 8, !tbaa !9
  %27 = load i32, ptr @test_count, align 4, !tbaa !5
  %28 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %29 = load i32, ptr %28, align 4, !tbaa !5
  %30 = tail call ptr @s2n_strerror(i32 noundef %29, ptr noundef nonnull @.str.4) #9
  %31 = load i32, ptr %28, align 4, !tbaa !5
  %32 = tail call ptr @s2n_strerror_debug(i32 noundef %31, ptr noundef nonnull @.str.4) #9
  %33 = load i32, ptr %14, align 4, !tbaa !5
  %34 = tail call ptr @strerror(i32 noundef %33) #9
  %35 = load i32, ptr %14, align 4, !tbaa !5
  %36 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull %.str.5.sink, i32 noundef %27, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 58, ptr noundef %30, ptr noundef %32, ptr noundef %34, i32 noundef %35) #11
  tail call void @exit(i32 noundef 1) #12
  unreachable

37:                                               ; preds = %3
  %38 = tail call i32 @s2n_config_disable_x509_verification(ptr noundef %8) #9
  %39 = tail call i32 @s2n_config_set_alert_behavior(ptr noundef %8, i32 noundef %1) #9
  %40 = tail call i32 @s2n_connection_set_config(ptr noundef %7, ptr noundef %8) #9
  %41 = tail call i32 @s2n_connection_set_io_pair(ptr noundef %7, ptr noundef %0) #9
  %42 = call i32 @s2n_negotiate(ptr noundef %7, ptr noundef nonnull %4) #9
  %.not = icmp eq i32 %2, 0
  br i1 %.not, label %44, label %43

43:                                               ; preds = %37
  %.not26 = icmp eq i32 %42, 0
  %spec.select = zext i1 %.not26 to i32
  br label %51

44:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 65535, ptr nonnull %5) #9
  br label %45

45:                                               ; preds = %44, %45
  %.029 = phi i64 [ 1, %44 ], [ %47, %45 ]
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1) %5, i8 33, i64 %.029, i1 false)
  %46 = call i64 @s2n_send(ptr noundef %7, ptr noundef nonnull %5, i64 noundef %.029, ptr noundef nonnull %4) #9
  %47 = add nuw nsw i64 %.029, 100
  %48 = icmp ult i64 %.029, 65435
  br i1 %48, label %45, label %.preheader, !llvm.loop !15

.preheader:                                       ; preds = %45, %.preheader
  %49 = call i32 @s2n_shutdown(ptr noundef %7, ptr noundef nonnull %4) #9
  %.not25 = icmp eq i32 %49, 0
  br i1 %.not25, label %50, label %.preheader, !llvm.loop !17

50:                                               ; preds = %.preheader
  %.lobit = lshr i32 %42, 31
  call void @llvm.lifetime.end.p0(i64 65535, ptr nonnull %5) #9
  br label %51

51:                                               ; preds = %43, %50
  %.1 = phi i32 [ %.lobit, %50 ], [ %spec.select, %43 ]
  %52 = call i32 @s2n_connection_free(ptr noundef %7) #9
  %53 = call i32 @s2n_config_free(ptr noundef %8) #9
  %54 = call i32 @s2n_io_pair_close_one_end(ptr noundef %0, i32 noundef 1) #9
  %55 = call i32 @s2n_cleanup() #9
  call void @exit(i32 noundef %.1) #12
  unreachable
}

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

declare i32 @sleep(i32 noundef) local_unnamed_addr #2

declare ptr @s2n_connection_new(i32 noundef) local_unnamed_addr #2

declare ptr @s2n_config_new() local_unnamed_addr #2

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

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

declare i32 @s2n_print_stacktrace(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare i32 @isatty(i32 noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @fileno(ptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #5

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare nonnull ptr @llvm.threadlocal.address.p0(ptr nonnull) #6

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

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

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

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

declare i32 @s2n_config_disable_x509_verification(ptr noundef) local_unnamed_addr #2

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

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

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

declare i32 @s2n_negotiate(ptr noundef, ptr noundef) 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) #8

declare i64 @s2n_send(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

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

declare i32 @s2n_connection_free(ptr noundef) local_unnamed_addr #2

declare i32 @s2n_config_free(ptr noundef) local_unnamed_addr #2

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

declare i32 @s2n_cleanup() local_unnamed_addr #2

attributes #0 = { noreturn 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 = { 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 = { 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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 #8 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(none) }
attributes #11 = { cold nounwind }
attributes #12 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_Bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass