; LLVM IR from aws/s2n-tls :: tests/unit (s2n_self_talk_client_hello_cb_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
@stderr = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [93 x i8], align 1
@s2n_errno = external thread_local global i32, align 4
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [90 x i8], align 1
@server_recv.buffer = external hidden global [65535 x i8], align 16
@.str.17 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [35 x i8], align 1

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

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

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

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

declare i32 @s2n_print_stacktrace(ptr noundef) #3

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @server_recv(ptr noundef %0) #6 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 1, ptr %4, align 4, !tbaa !9
  br label %12

12:                                               ; preds = %171, %1
  %13 = load i32, ptr %4, align 4, !tbaa !9
  %14 = icmp slt i32 %13, 65535
  br i1 %14, label %16, label %15

15:                                               ; preds = %12
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  br label %174

16:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  store ptr @server_recv.buffer, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %17 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %17, ptr %7, align 4, !tbaa !9
  br label %18

18:                                               ; preds = %92, %16
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %19

19:                                               ; preds = %18
  %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 %2, align 8, !tbaa !5
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = load i32, ptr %7, align 4, !tbaa !9
  %25 = sext i32 %24 to i64
  %26 = call i64 @s2n_recv(ptr noundef %22, ptr noundef %23, i64 noundef %25, ptr noundef %3)
  %27 = trunc i64 %26 to i32
  store i32 %27, ptr %8, align 4, !tbaa !9
  %28 = icmp eq i32 %27, -1
  br i1 %28, label %29, label %82

29:                                               ; preds = %19
  br label %30

30:                                               ; preds = %29
  br label %31

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

38:                                               ; preds = %31
  %39 = load ptr, ptr @stderr, align 8, !tbaa !5
  %40 = call i32 @fileno(ptr noundef %39) #7
  %41 = call i32 @isatty(i32 noundef %40) #7
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %43, label %60

43:                                               ; preds = %38
  %44 = load i32, ptr %9, align 4, !tbaa !9
  %45 = call ptr @__errno_location() #8
  store i32 %44, ptr %45, align 4, !tbaa !9
  %46 = load ptr, ptr @stderr, align 8, !tbaa !5
  %47 = load i32, ptr @test_count, align 4, !tbaa !9
  %48 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %49 = load i32, ptr %48, align 4, !tbaa !9
  %50 = call ptr @s2n_strerror(i32 noundef %49, ptr noundef @.str.6)
  %51 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %52 = load i32, ptr %51, align 4, !tbaa !9
  %53 = call ptr @s2n_strerror_debug(i32 noundef %52, ptr noundef @.str.6)
  %54 = call ptr @__errno_location() #8
  %55 = load i32, ptr %54, align 4, !tbaa !9
  %56 = call ptr @strerror(i32 noundef %55) #7
  %57 = call ptr @__errno_location() #8
  %58 = load i32, ptr %57, align 4, !tbaa !9
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef @.str.3, i32 noundef %47, ptr noundef @.str.17, ptr noundef @.str.5, i32 noundef 235, ptr noundef %50, ptr noundef %53, ptr noundef %56, i32 noundef %58) #7
  br label %77

60:                                               ; preds = %38, %31
  %61 = load i32, ptr %9, align 4, !tbaa !9
  %62 = call ptr @__errno_location() #8
  store i32 %61, ptr %62, align 4, !tbaa !9
  %63 = load ptr, ptr @stderr, align 8, !tbaa !5
  %64 = load i32, ptr @test_count, align 4, !tbaa !9
  %65 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %66 = load i32, ptr %65, align 4, !tbaa !9
  %67 = call ptr @s2n_strerror(i32 noundef %66, ptr noundef @.str.6)
  %68 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %69 = load i32, ptr %68, align 4, !tbaa !9
  %70 = call ptr @s2n_strerror_debug(i32 noundef %69, ptr noundef @.str.6)
  %71 = call ptr @__errno_location() #8
  %72 = load i32, ptr %71, align 4, !tbaa !9
  %73 = call ptr @strerror(i32 noundef %72) #7
  %74 = call ptr @__errno_location() #8
  %75 = load i32, ptr %74, align 4, !tbaa !9
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef @.str.7, i32 noundef %64, ptr noundef @.str.17, ptr noundef @.str.5, i32 noundef 235, ptr noundef %67, ptr noundef %70, ptr noundef %73, i32 noundef %75) #7
  br label %77

77:                                               ; preds = %60, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %78

78:                                               ; preds = %77
  br label %79

79:                                               ; preds = %78
  call void @exit(i32 noundef 1) #9
  unreachable

80:                                               ; No predecessors!
  br label %81

81:                                               ; preds = %80
  br label %82

82:                                               ; preds = %81, %19
  br label %83

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83
  %85 = load i32, ptr %8, align 4, !tbaa !9
  %86 = load i32, ptr %7, align 4, !tbaa !9
  %87 = sub nsw i32 %86, %85
  store i32 %87, ptr %7, align 4, !tbaa !9
  %88 = load i32, ptr %8, align 4, !tbaa !9
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = sext i32 %88 to i64
  %91 = getelementptr inbounds i8, ptr %89, i64 %90
  store ptr %91, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %92

92:                                               ; preds = %84
  %93 = load i32, ptr %7, align 4, !tbaa !9
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %18, label %95, !llvm.loop !15

95:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %96

96:                                               ; preds = %167, %95
  %97 = load i32, ptr %10, align 4, !tbaa !9
  %98 = load i32, ptr %4, align 4, !tbaa !9
  %99 = icmp slt i32 %97, %98
  br i1 %99, label %101, label %100

100:                                              ; preds = %96
  store i32 13, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %170

101:                                              ; preds = %96
  br label %102

102:                                              ; preds = %101
  %103 = load i32, ptr @test_count, align 4, !tbaa !9
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr @test_count, align 4, !tbaa !9
  %105 = load i32, ptr %10, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [65535 x i8], ptr @server_recv.buffer, i64 0, i64 %106
  %108 = load i8, ptr %107, align 1, !tbaa !17
  %109 = sext i8 %108 to i32
  %110 = icmp eq i32 %109, 33
  br i1 %110, label %164, label %111

111:                                              ; preds = %102
  br label %112

112:                                              ; preds = %111
  br label %113

113:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %114 = call ptr @__errno_location() #8
  %115 = load i32, ptr %114, align 4, !tbaa !9
  store i32 %115, ptr %11, align 4, !tbaa !9
  %116 = load ptr, ptr @stderr, align 8, !tbaa !5
  %117 = call i32 @s2n_print_stacktrace(ptr noundef %116)
  %118 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %119 = trunc i8 %118 to i1
  br i1 %119, label %120, label %142

120:                                              ; preds = %113
  %121 = load ptr, ptr @stderr, align 8, !tbaa !5
  %122 = call i32 @fileno(ptr noundef %121) #7
  %123 = call i32 @isatty(i32 noundef %122) #7
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %125, label %142

125:                                              ; preds = %120
  %126 = load i32, ptr %11, align 4, !tbaa !9
  %127 = call ptr @__errno_location() #8
  store i32 %126, ptr %127, align 4, !tbaa !9
  %128 = load ptr, ptr @stderr, align 8, !tbaa !5
  %129 = load i32, ptr @test_count, align 4, !tbaa !9
  %130 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %131 = load i32, ptr %130, align 4, !tbaa !9
  %132 = call ptr @s2n_strerror(i32 noundef %131, ptr noundef @.str.6)
  %133 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %134 = load i32, ptr %133, align 4, !tbaa !9
  %135 = call ptr @s2n_strerror_debug(i32 noundef %134, ptr noundef @.str.6)
  %136 = call ptr @__errno_location() #8
  %137 = load i32, ptr %136, align 4, !tbaa !9
  %138 = call ptr @strerror(i32 noundef %137) #7
  %139 = call ptr @__errno_location() #8
  %140 = load i32, ptr %139, align 4, !tbaa !9
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %128, ptr noundef @.str.3, i32 noundef %129, ptr noundef @.str.18, ptr noundef @.str.5, i32 noundef 242, ptr noundef %132, ptr noundef %135, ptr noundef %138, i32 noundef %140) #7
  br label %159

142:                                              ; preds = %120, %113
  %143 = load i32, ptr %11, align 4, !tbaa !9
  %144 = call ptr @__errno_location() #8
  store i32 %143, ptr %144, align 4, !tbaa !9
  %145 = load ptr, ptr @stderr, align 8, !tbaa !5
  %146 = load i32, ptr @test_count, align 4, !tbaa !9
  %147 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %148 = load i32, ptr %147, align 4, !tbaa !9
  %149 = call ptr @s2n_strerror(i32 noundef %148, ptr noundef @.str.6)
  %150 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %151 = load i32, ptr %150, align 4, !tbaa !9
  %152 = call ptr @s2n_strerror_debug(i32 noundef %151, ptr noundef @.str.6)
  %153 = call ptr @__errno_location() #8
  %154 = load i32, ptr %153, align 4, !tbaa !9
  %155 = call ptr @strerror(i32 noundef %154) #7
  %156 = call ptr @__errno_location() #8
  %157 = load i32, ptr %156, align 4, !tbaa !9
  %158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %145, ptr noundef @.str.7, i32 noundef %146, ptr noundef @.str.18, ptr noundef @.str.5, i32 noundef 242, ptr noundef %149, ptr noundef %152, ptr noundef %155, i32 noundef %157) #7
  br label %159

159:                                              ; preds = %142, %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %160

160:                                              ; preds = %159
  br label %161

161:                                              ; preds = %160
  call void @exit(i32 noundef 1) #9
  unreachable

162:                                              ; No predecessors!
  br label %163

163:                                              ; preds = %162
  br label %164

164:                                              ; preds = %163, %102
  br label %165

165:                                              ; preds = %164
  br label %166

166:                                              ; preds = %165
  br label %167

167:                                              ; preds = %166
  %168 = load i32, ptr %10, align 4, !tbaa !9
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %10, align 4, !tbaa !9
  br label %96, !llvm.loop !18

170:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %171

171:                                              ; preds = %170
  %172 = load i32, ptr %4, align 4, !tbaa !9
  %173 = add nsw i32 %172, 100
  store i32 %173, ptr %4, align 4, !tbaa !9
  br label %12, !llvm.loop !19

174:                                              ; preds = %15
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  ret i32 0
}

declare i64 @s2n_recv(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { "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 = { 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(none) }
attributes #9 = { 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 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}


; 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
@stderr = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [93 x i8], align 1
@s2n_errno = external thread_local local_unnamed_addr global i32, align 4
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [90 x i8], align 1
@server_recv.buffer = external hidden global [65535 x i8], align 16
@.str.17 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [35 x i8], align 1

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

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

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

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

declare i32 @s2n_print_stacktrace(ptr noundef) local_unnamed_addr #3

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

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @server_recv(ptr noundef %0) local_unnamed_addr #7 {
  %2 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  br label %.preheader25

.preheader25:                                     ; preds = %1, %42
  %indvars.iv31 = phi i64 [ 1, %1 ], [ %indvars.iv.next32, %42 ]
  %3 = trunc nuw nsw i64 %indvars.iv31 to i32
  br label %5

4:                                                ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  ret i32 0

5:                                                ; preds = %.preheader25, %36
  %.020 = phi ptr [ %39, %36 ], [ @server_recv.buffer, %.preheader25 ]
  %.019 = phi i32 [ %37, %36 ], [ %3, %.preheader25 ]
  %6 = load i32, ptr @test_count, align 4, !tbaa !5
  %7 = add nsw i32 %6, 1
  store i32 %7, ptr @test_count, align 4, !tbaa !5
  %8 = sext i32 %.019 to i64
  %9 = call i64 @s2n_recv(ptr noundef %0, ptr noundef %.020, i64 noundef %8, ptr noundef nonnull %2) #8
  %10 = trunc i64 %9 to i32
  %11 = icmp eq i32 %10, -1
  br i1 %11, label %12, label %36

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

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

23:                                               ; preds = %19, %12
  br label %24

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

36:                                               ; preds = %5
  %37 = sub nsw i32 %.019, %10
  %sext = shl i64 %9, 32
  %38 = ashr exact i64 %sext, 32
  %39 = getelementptr inbounds i8, ptr %.020, i64 %38
  %.not = icmp eq i32 %37, 0
  br i1 %.not, label %.preheader, label %5, !llvm.loop !15

.preheader:                                       ; preds = %36
  %test_count.promoted = load i32, ptr @test_count, align 4, !tbaa !5
  %40 = add i32 %test_count.promoted, %3
  br label %44

41:                                               ; preds = %44
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %indvars.iv31
  br i1 %exitcond.not, label %42, label %44, !llvm.loop !17

42:                                               ; preds = %41
  store i32 %40, ptr @test_count, align 4, !tbaa !5
  %indvars.iv.next32 = add nuw nsw i64 %indvars.iv31, 100
  %43 = icmp ult i64 %indvars.iv31, 65435
  br i1 %43, label %.preheader25, label %4, !llvm.loop !18

44:                                               ; preds = %.preheader, %41
  %indvars.iv = phi i64 [ 0, %.preheader ], [ %indvars.iv.next, %41 ]
  %45 = phi i32 [ %test_count.promoted, %.preheader ], [ %46, %41 ]
  %46 = add nsw i32 %45, 1
  %47 = getelementptr inbounds [65535 x i8], ptr @server_recv.buffer, i64 0, i64 %indvars.iv
  %48 = load i8, ptr %47, align 1, !tbaa !19
  %49 = icmp eq i8 %48, 33
  br i1 %49, label %41, label %50

50:                                               ; preds = %44
  store i32 %46, ptr @test_count, align 4, !tbaa !5
  %51 = tail call ptr @__errno_location() #9
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = load ptr, ptr @stderr, align 8, !tbaa !9
  %54 = call i32 @s2n_print_stacktrace(ptr noundef %53) #8
  %55 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %56 = trunc nuw i8 %55 to i1
  br i1 %56, label %57, label %61

57:                                               ; preds = %50
  %58 = load ptr, ptr @stderr, align 8, !tbaa !9
  %59 = call i32 @fileno(ptr noundef %58) #8
  %60 = call i32 @isatty(i32 noundef %59) #8
  %.not23 = icmp eq i32 %60, 0
  br i1 %.not23, label %61, label %62

61:                                               ; preds = %57, %50
  br label %62

62:                                               ; preds = %57, %61
  %.str.7.sink45 = phi ptr [ @.str.7, %61 ], [ @.str.3, %57 ]
  store i32 %52, ptr %51, align 4, !tbaa !5
  %63 = load ptr, ptr @stderr, align 8, !tbaa !9
  %64 = load i32, ptr @test_count, align 4, !tbaa !5
  %65 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = call ptr @s2n_strerror(i32 noundef %66, ptr noundef nonnull @.str.6) #8
  %68 = load i32, ptr %65, align 4, !tbaa !5
  %69 = call ptr @s2n_strerror_debug(i32 noundef %68, ptr noundef nonnull @.str.6) #8
  %70 = load i32, ptr %51, align 4, !tbaa !5
  %71 = call ptr @strerror(i32 noundef %70) #8
  %72 = load i32, ptr %51, align 4, !tbaa !5
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef nonnull %.str.7.sink45, i32 noundef %64, ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.5, i32 noundef 242, ptr noundef %67, ptr noundef %69, ptr noundef %71, i32 noundef %72) #10
  call void @exit(i32 noundef 1) #11
  unreachable
}

declare i64 @s2n_recv(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { "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 = { 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 #8 = { nounwind }
attributes #9 = { nounwind willreturn memory(none) }
attributes #10 = { cold nounwind }
attributes #11 = { 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}
!18 = distinct !{!18, !16}
!19 = !{!7, !7, i64 0}


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