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

%struct.s2n_test_io_pair = type { i32, i32 }

@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
@.str.26 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [200 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [77 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

declare ptr @s2n_config_new() #1

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

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

declare ptr @s2n_get_server_name(ptr noundef) #1

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

declare i32 @s2n_print_stacktrace(ptr noundef) #1

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

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

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

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

; Function Attrs: 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) #1

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @s2n_negotiate_nonblocking_ch_cb(ptr noundef, ptr noundef, i1 noundef zeroext) #3

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @server_recv(ptr noundef) #3

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

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

declare i32 @s2n_test_cert_chain_and_key_new(ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @s2n_config_add_cert_chain_and_key_to_store(ptr noundef, ptr noundef) #1

declare i32 @s2n_config_set_client_hello_cb_mode(ptr noundef, i32 noundef) #1

declare i32 @s2n_config_set_client_hello_cb(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @test_case_clean(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @run_test_no_config_swap_ch_cb(i32 noundef %0, ptr noundef %1) #3 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca %struct.s2n_test_io_pair, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  store ptr null, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store ptr null, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store ptr null, ptr %9, align 8, !tbaa !9
  br label %23

23:                                               ; preds = %2
  %24 = load i32, ptr @test_count, align 4, !tbaa !5
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr @test_count, align 4, !tbaa !5
  %26 = call i32 @start_client_conn(ptr noundef %5, ptr noundef %8, i32 noundef 0, i32 noundef 0)
  %27 = icmp eq i32 %26, -1
  br i1 %27, label %28, label %81

28:                                               ; preds = %23
  br label %29

29:                                               ; preds = %28
  br label %30

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

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

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

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

76:                                               ; preds = %59, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %77

77:                                               ; preds = %76
  br label %78

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

79:                                               ; No predecessors!
  br label %80

80:                                               ; preds = %79
  br label %81

81:                                               ; preds = %80, %23
  br label %82

82:                                               ; preds = %81
  br label %83

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83
  %85 = load i32, ptr @test_count, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr @test_count, align 4, !tbaa !5
  %87 = call i32 @s2n_test_cert_chain_and_key_new(ptr noundef %9, ptr noundef @.str.26, ptr noundef @.str.27)
  %88 = icmp eq i32 %87, -1
  br i1 %88, label %89, label %142

89:                                               ; preds = %84
  br label %90

90:                                               ; preds = %89
  br label %91

91:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %92 = call ptr @__errno_location() #8
  %93 = load i32, ptr %92, align 4, !tbaa !5
  store i32 %93, ptr %11, align 4, !tbaa !5
  %94 = load ptr, ptr @stderr, align 8, !tbaa !9
  %95 = call i32 @s2n_print_stacktrace(ptr noundef %94)
  %96 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %97 = trunc i8 %96 to i1
  br i1 %97, label %98, label %120

98:                                               ; preds = %91
  %99 = load ptr, ptr @stderr, align 8, !tbaa !9
  %100 = call i32 @fileno(ptr noundef %99) #7
  %101 = call i32 @isatty(i32 noundef %100) #7
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %103, label %120

103:                                              ; preds = %98
  %104 = load i32, ptr %11, align 4, !tbaa !5
  %105 = call ptr @__errno_location() #8
  store i32 %104, ptr %105, align 4, !tbaa !5
  %106 = load ptr, ptr @stderr, align 8, !tbaa !9
  %107 = load i32, ptr @test_count, align 4, !tbaa !5
  %108 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = call ptr @s2n_strerror(i32 noundef %109, ptr noundef @.str.6)
  %111 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = call ptr @s2n_strerror_debug(i32 noundef %112, ptr noundef @.str.6)
  %114 = call ptr @__errno_location() #8
  %115 = load i32, ptr %114, align 4, !tbaa !5
  %116 = call ptr @strerror(i32 noundef %115) #7
  %117 = call ptr @__errno_location() #8
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %106, ptr noundef @.str.3, i32 noundef %107, ptr noundef @.str.28, ptr noundef @.str.5, i32 noundef 369, ptr noundef %110, ptr noundef %113, ptr noundef %116, i32 noundef %118) #7
  br label %137

120:                                              ; preds = %98, %91
  %121 = load i32, ptr %11, align 4, !tbaa !5
  %122 = call ptr @__errno_location() #8
  store i32 %121, ptr %122, align 4, !tbaa !5
  %123 = load ptr, ptr @stderr, align 8, !tbaa !9
  %124 = load i32, ptr @test_count, align 4, !tbaa !5
  %125 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %127 = call ptr @s2n_strerror(i32 noundef %126, ptr noundef @.str.6)
  %128 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %129 = load i32, ptr %128, align 4, !tbaa !5
  %130 = call ptr @s2n_strerror_debug(i32 noundef %129, ptr noundef @.str.6)
  %131 = call ptr @__errno_location() #8
  %132 = load i32, ptr %131, align 4, !tbaa !5
  %133 = call ptr @strerror(i32 noundef %132) #7
  %134 = call ptr @__errno_location() #8
  %135 = load i32, ptr %134, align 4, !tbaa !5
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %123, ptr noundef @.str.7, i32 noundef %124, ptr noundef @.str.28, ptr noundef @.str.5, i32 noundef 369, ptr noundef %127, ptr noundef %130, ptr noundef %133, i32 noundef %135) #7
  br label %137

137:                                              ; preds = %120, %103
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %138

138:                                              ; preds = %137
  br label %139

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

140:                                              ; No predecessors!
  br label %141

141:                                              ; preds = %140
  br label %142

142:                                              ; preds = %141, %84
  br label %143

143:                                              ; preds = %142
  br label %144

144:                                              ; preds = %143
  br label %145

145:                                              ; preds = %144
  %146 = load i32, ptr @test_count, align 4, !tbaa !5
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr @test_count, align 4, !tbaa !5
  %148 = call ptr @s2n_config_new()
  store ptr %148, ptr %6, align 8, !tbaa !9
  %149 = icmp eq ptr %148, null
  br i1 %149, label %150, label %203

150:                                              ; preds = %145
  br label %151

151:                                              ; preds = %150
  br label %152

152:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %153 = call ptr @__errno_location() #8
  %154 = load i32, ptr %153, align 4, !tbaa !5
  store i32 %154, ptr %12, align 4, !tbaa !5
  %155 = load ptr, ptr @stderr, align 8, !tbaa !9
  %156 = call i32 @s2n_print_stacktrace(ptr noundef %155)
  %157 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %158 = trunc i8 %157 to i1
  br i1 %158, label %159, label %181

159:                                              ; preds = %152
  %160 = load ptr, ptr @stderr, align 8, !tbaa !9
  %161 = call i32 @fileno(ptr noundef %160) #7
  %162 = call i32 @isatty(i32 noundef %161) #7
  %163 = icmp ne i32 %162, 0
  br i1 %163, label %164, label %181

164:                                              ; preds = %159
  %165 = load i32, ptr %12, align 4, !tbaa !5
  %166 = call ptr @__errno_location() #8
  store i32 %165, ptr %166, align 4, !tbaa !5
  %167 = load ptr, ptr @stderr, align 8, !tbaa !9
  %168 = load i32, ptr @test_count, align 4, !tbaa !5
  %169 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %170 = load i32, ptr %169, align 4, !tbaa !5
  %171 = call ptr @s2n_strerror(i32 noundef %170, ptr noundef @.str.6)
  %172 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %173 = load i32, ptr %172, align 4, !tbaa !5
  %174 = call ptr @s2n_strerror_debug(i32 noundef %173, ptr noundef @.str.6)
  %175 = call ptr @__errno_location() #8
  %176 = load i32, ptr %175, align 4, !tbaa !5
  %177 = call ptr @strerror(i32 noundef %176) #7
  %178 = call ptr @__errno_location() #8
  %179 = load i32, ptr %178, align 4, !tbaa !5
  %180 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %167, ptr noundef @.str.3, i32 noundef %168, ptr noundef @.str.33, ptr noundef @.str.5, i32 noundef 370, ptr noundef %171, ptr noundef %174, ptr noundef %177, i32 noundef %179) #7
  br label %198

181:                                              ; preds = %159, %152
  %182 = load i32, ptr %12, align 4, !tbaa !5
  %183 = call ptr @__errno_location() #8
  store i32 %182, ptr %183, align 4, !tbaa !5
  %184 = load ptr, ptr @stderr, align 8, !tbaa !9
  %185 = load i32, ptr @test_count, align 4, !tbaa !5
  %186 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %187 = load i32, ptr %186, align 4, !tbaa !5
  %188 = call ptr @s2n_strerror(i32 noundef %187, ptr noundef @.str.6)
  %189 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %190 = load i32, ptr %189, align 4, !tbaa !5
  %191 = call ptr @s2n_strerror_debug(i32 noundef %190, ptr noundef @.str.6)
  %192 = call ptr @__errno_location() #8
  %193 = load i32, ptr %192, align 4, !tbaa !5
  %194 = call ptr @strerror(i32 noundef %193) #7
  %195 = call ptr @__errno_location() #8
  %196 = load i32, ptr %195, align 4, !tbaa !5
  %197 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %184, ptr noundef @.str.7, i32 noundef %185, ptr noundef @.str.33, ptr noundef @.str.5, i32 noundef 370, ptr noundef %188, ptr noundef %191, ptr noundef %194, i32 noundef %196) #7
  br label %198

198:                                              ; preds = %181, %164
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %199

199:                                              ; preds = %198
  br label %200

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

201:                                              ; No predecessors!
  br label %202

202:                                              ; preds = %201
  br label %203

203:                                              ; preds = %202, %145
  br label %204

204:                                              ; preds = %203
  br label %205

205:                                              ; preds = %204
  br label %206

206:                                              ; preds = %205
  %207 = load i32, ptr @test_count, align 4, !tbaa !5
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr @test_count, align 4, !tbaa !5
  %209 = load ptr, ptr %6, align 8, !tbaa !9
  %210 = load ptr, ptr %9, align 8, !tbaa !9
  %211 = call i32 @s2n_config_add_cert_chain_and_key_to_store(ptr noundef %209, ptr noundef %210)
  %212 = icmp eq i32 %211, -1
  br i1 %212, label %213, label %266

213:                                              ; preds = %206
  br label %214

214:                                              ; preds = %213
  br label %215

215:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %216 = call ptr @__errno_location() #8
  %217 = load i32, ptr %216, align 4, !tbaa !5
  store i32 %217, ptr %13, align 4, !tbaa !5
  %218 = load ptr, ptr @stderr, align 8, !tbaa !9
  %219 = call i32 @s2n_print_stacktrace(ptr noundef %218)
  %220 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %221 = trunc i8 %220 to i1
  br i1 %221, label %222, label %244

222:                                              ; preds = %215
  %223 = load ptr, ptr @stderr, align 8, !tbaa !9
  %224 = call i32 @fileno(ptr noundef %223) #7
  %225 = call i32 @isatty(i32 noundef %224) #7
  %226 = icmp ne i32 %225, 0
  br i1 %226, label %227, label %244

227:                                              ; preds = %222
  %228 = load i32, ptr %13, align 4, !tbaa !5
  %229 = call ptr @__errno_location() #8
  store i32 %228, ptr %229, align 4, !tbaa !5
  %230 = load ptr, ptr @stderr, align 8, !tbaa !9
  %231 = load i32, ptr @test_count, align 4, !tbaa !5
  %232 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %233 = load i32, ptr %232, align 4, !tbaa !5
  %234 = call ptr @s2n_strerror(i32 noundef %233, ptr noundef @.str.6)
  %235 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %236 = load i32, ptr %235, align 4, !tbaa !5
  %237 = call ptr @s2n_strerror_debug(i32 noundef %236, ptr noundef @.str.6)
  %238 = call ptr @__errno_location() #8
  %239 = load i32, ptr %238, align 4, !tbaa !5
  %240 = call ptr @strerror(i32 noundef %239) #7
  %241 = call ptr @__errno_location() #8
  %242 = load i32, ptr %241, align 4, !tbaa !5
  %243 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %230, ptr noundef @.str.3, i32 noundef %231, ptr noundef @.str.46, ptr noundef @.str.5, i32 noundef 371, ptr noundef %234, ptr noundef %237, ptr noundef %240, i32 noundef %242) #7
  br label %261

244:                                              ; preds = %222, %215
  %245 = load i32, ptr %13, align 4, !tbaa !5
  %246 = call ptr @__errno_location() #8
  store i32 %245, ptr %246, align 4, !tbaa !5
  %247 = load ptr, ptr @stderr, align 8, !tbaa !9
  %248 = load i32, ptr @test_count, align 4, !tbaa !5
  %249 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %250 = load i32, ptr %249, align 4, !tbaa !5
  %251 = call ptr @s2n_strerror(i32 noundef %250, ptr noundef @.str.6)
  %252 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %253 = load i32, ptr %252, align 4, !tbaa !5
  %254 = call ptr @s2n_strerror_debug(i32 noundef %253, ptr noundef @.str.6)
  %255 = call ptr @__errno_location() #8
  %256 = load i32, ptr %255, align 4, !tbaa !5
  %257 = call ptr @strerror(i32 noundef %256) #7
  %258 = call ptr @__errno_location() #8
  %259 = load i32, ptr %258, align 4, !tbaa !5
  %260 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %247, ptr noundef @.str.7, i32 noundef %248, ptr noundef @.str.46, ptr noundef @.str.5, i32 noundef 371, ptr noundef %251, ptr noundef %254, ptr noundef %257, i32 noundef %259) #7
  br label %261

261:                                              ; preds = %244, %227
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %262

262:                                              ; preds = %261
  br label %263

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

264:                                              ; No predecessors!
  br label %265

265:                                              ; preds = %264
  br label %266

266:                                              ; preds = %265, %206
  br label %267

267:                                              ; preds = %266
  br label %268

268:                                              ; preds = %267
  br label %269

269:                                              ; preds = %268
  %270 = load i32, ptr @test_count, align 4, !tbaa !5
  %271 = add nsw i32 %270, 1
  store i32 %271, ptr @test_count, align 4, !tbaa !5
  %272 = load ptr, ptr %6, align 8, !tbaa !9
  %273 = load ptr, ptr %4, align 8, !tbaa !9
  %274 = call i32 @s2n_config_set_client_hello_cb(ptr noundef %272, ptr noundef @client_hello_swap_config, ptr noundef %273)
  %275 = icmp eq i32 %274, -1
  br i1 %275, label %276, label %329

276:                                              ; preds = %269
  br label %277

277:                                              ; preds = %276
  br label %278

278:                                              ; preds = %277
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %279 = call ptr @__errno_location() #8
  %280 = load i32, ptr %279, align 4, !tbaa !5
  store i32 %280, ptr %14, align 4, !tbaa !5
  %281 = load ptr, ptr @stderr, align 8, !tbaa !9
  %282 = call i32 @s2n_print_stacktrace(ptr noundef %281)
  %283 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %284 = trunc i8 %283 to i1
  br i1 %284, label %285, label %307

285:                                              ; preds = %278
  %286 = load ptr, ptr @stderr, align 8, !tbaa !9
  %287 = call i32 @fileno(ptr noundef %286) #7
  %288 = call i32 @isatty(i32 noundef %287) #7
  %289 = icmp ne i32 %288, 0
  br i1 %289, label %290, label %307

290:                                              ; preds = %285
  %291 = load i32, ptr %14, align 4, !tbaa !5
  %292 = call ptr @__errno_location() #8
  store i32 %291, ptr %292, align 4, !tbaa !5
  %293 = load ptr, ptr @stderr, align 8, !tbaa !9
  %294 = load i32, ptr @test_count, align 4, !tbaa !5
  %295 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %296 = load i32, ptr %295, align 4, !tbaa !5
  %297 = call ptr @s2n_strerror(i32 noundef %296, ptr noundef @.str.6)
  %298 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %299 = load i32, ptr %298, align 4, !tbaa !5
  %300 = call ptr @s2n_strerror_debug(i32 noundef %299, ptr noundef @.str.6)
  %301 = call ptr @__errno_location() #8
  %302 = load i32, ptr %301, align 4, !tbaa !5
  %303 = call ptr @strerror(i32 noundef %302) #7
  %304 = call ptr @__errno_location() #8
  %305 = load i32, ptr %304, align 4, !tbaa !5
  %306 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %293, ptr noundef @.str.3, i32 noundef %294, ptr noundef @.str.35, ptr noundef @.str.5, i32 noundef 374, ptr noundef %297, ptr noundef %300, ptr noundef %303, i32 noundef %305) #7
  br label %324

307:                                              ; preds = %285, %278
  %308 = load i32, ptr %14, align 4, !tbaa !5
  %309 = call ptr @__errno_location() #8
  store i32 %308, ptr %309, align 4, !tbaa !5
  %310 = load ptr, ptr @stderr, align 8, !tbaa !9
  %311 = load i32, ptr @test_count, align 4, !tbaa !5
  %312 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %313 = load i32, ptr %312, align 4, !tbaa !5
  %314 = call ptr @s2n_strerror(i32 noundef %313, ptr noundef @.str.6)
  %315 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %316 = load i32, ptr %315, align 4, !tbaa !5
  %317 = call ptr @s2n_strerror_debug(i32 noundef %316, ptr noundef @.str.6)
  %318 = call ptr @__errno_location() #8
  %319 = load i32, ptr %318, align 4, !tbaa !5
  %320 = call ptr @strerror(i32 noundef %319) #7
  %321 = call ptr @__errno_location() #8
  %322 = load i32, ptr %321, align 4, !tbaa !5
  %323 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %310, ptr noundef @.str.7, i32 noundef %311, ptr noundef @.str.35, ptr noundef @.str.5, i32 noundef 374, ptr noundef %314, ptr noundef %317, ptr noundef %320, i32 noundef %322) #7
  br label %324

324:                                              ; preds = %307, %290
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %325

325:                                              ; preds = %324
  br label %326

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

327:                                              ; No predecessors!
  br label %328

328:                                              ; preds = %327
  br label %329

329:                                              ; preds = %328, %269
  br label %330

330:                                              ; preds = %329
  br label %331

331:                                              ; preds = %330
  br label %332

332:                                              ; preds = %331
  %333 = load i32, ptr @test_count, align 4, !tbaa !5
  %334 = add nsw i32 %333, 1
  store i32 %334, ptr @test_count, align 4, !tbaa !5
  %335 = load ptr, ptr %6, align 8, !tbaa !9
  %336 = load i32, ptr %3, align 4, !tbaa !5
  %337 = call i32 @s2n_config_set_client_hello_cb_mode(ptr noundef %335, i32 noundef %336)
  %338 = icmp eq i32 %337, -1
  br i1 %338, label %339, label %392

339:                                              ; preds = %332
  br label %340

340:                                              ; preds = %339
  br label %341

341:                                              ; preds = %340
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %342 = call ptr @__errno_location() #8
  %343 = load i32, ptr %342, align 4, !tbaa !5
  store i32 %343, ptr %15, align 4, !tbaa !5
  %344 = load ptr, ptr @stderr, align 8, !tbaa !9
  %345 = call i32 @s2n_print_stacktrace(ptr noundef %344)
  %346 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %347 = trunc i8 %346 to i1
  br i1 %347, label %348, label %370

348:                                              ; preds = %341
  %349 = load ptr, ptr @stderr, align 8, !tbaa !9
  %350 = call i32 @fileno(ptr noundef %349) #7
  %351 = call i32 @isatty(i32 noundef %350) #7
  %352 = icmp ne i32 %351, 0
  br i1 %352, label %353, label %370

353:                                              ; preds = %348
  %354 = load i32, ptr %15, align 4, !tbaa !5
  %355 = call ptr @__errno_location() #8
  store i32 %354, ptr %355, align 4, !tbaa !5
  %356 = load ptr, ptr @stderr, align 8, !tbaa !9
  %357 = load i32, ptr @test_count, align 4, !tbaa !5
  %358 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %359 = load i32, ptr %358, align 4, !tbaa !5
  %360 = call ptr @s2n_strerror(i32 noundef %359, ptr noundef @.str.6)
  %361 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %362 = load i32, ptr %361, align 4, !tbaa !5
  %363 = call ptr @s2n_strerror_debug(i32 noundef %362, ptr noundef @.str.6)
  %364 = call ptr @__errno_location() #8
  %365 = load i32, ptr %364, align 4, !tbaa !5
  %366 = call ptr @strerror(i32 noundef %365) #7
  %367 = call ptr @__errno_location() #8
  %368 = load i32, ptr %367, align 4, !tbaa !5
  %369 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %356, ptr noundef @.str.3, i32 noundef %357, ptr noundef @.str.34, ptr noundef @.str.5, i32 noundef 375, ptr noundef %360, ptr noundef %363, ptr noundef %366, i32 noundef %368) #7
  br label %387

370:                                              ; preds = %348, %341
  %371 = load i32, ptr %15, align 4, !tbaa !5
  %372 = call ptr @__errno_location() #8
  store i32 %371, ptr %372, align 4, !tbaa !5
  %373 = load ptr, ptr @stderr, align 8, !tbaa !9
  %374 = load i32, ptr @test_count, align 4, !tbaa !5
  %375 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %376 = load i32, ptr %375, align 4, !tbaa !5
  %377 = call ptr @s2n_strerror(i32 noundef %376, ptr noundef @.str.6)
  %378 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %379 = load i32, ptr %378, align 4, !tbaa !5
  %380 = call ptr @s2n_strerror_debug(i32 noundef %379, ptr noundef @.str.6)
  %381 = call ptr @__errno_location() #8
  %382 = load i32, ptr %381, align 4, !tbaa !5
  %383 = call ptr @strerror(i32 noundef %382) #7
  %384 = call ptr @__errno_location() #8
  %385 = load i32, ptr %384, align 4, !tbaa !5
  %386 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %373, ptr noundef @.str.7, i32 noundef %374, ptr noundef @.str.34, ptr noundef @.str.5, i32 noundef 375, ptr noundef %377, ptr noundef %380, ptr noundef %383, i32 noundef %385) #7
  br label %387

387:                                              ; preds = %370, %353
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %388

388:                                              ; preds = %387
  br label %389

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

390:                                              ; No predecessors!
  br label %391

391:                                              ; preds = %390
  br label %392

392:                                              ; preds = %391, %332
  br label %393

393:                                              ; preds = %392
  br label %394

394:                                              ; preds = %393
  br label %395

395:                                              ; preds = %394
  %396 = load i32, ptr @test_count, align 4, !tbaa !5
  %397 = add nsw i32 %396, 1
  store i32 %397, ptr @test_count, align 4, !tbaa !5
  %398 = load ptr, ptr %6, align 8, !tbaa !9
  %399 = call i32 @init_server_conn(ptr noundef %7, ptr noundef %5, ptr noundef %398)
  %400 = icmp eq i32 %399, -1
  br i1 %400, label %401, label %454

401:                                              ; preds = %395
  br label %402

402:                                              ; preds = %401
  br label %403

403:                                              ; preds = %402
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %404 = call ptr @__errno_location() #8
  %405 = load i32, ptr %404, align 4, !tbaa !5
  store i32 %405, ptr %16, align 4, !tbaa !5
  %406 = load ptr, ptr @stderr, align 8, !tbaa !9
  %407 = call i32 @s2n_print_stacktrace(ptr noundef %406)
  %408 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %409 = trunc i8 %408 to i1
  br i1 %409, label %410, label %432

410:                                              ; preds = %403
  %411 = load ptr, ptr @stderr, align 8, !tbaa !9
  %412 = call i32 @fileno(ptr noundef %411) #7
  %413 = call i32 @isatty(i32 noundef %412) #7
  %414 = icmp ne i32 %413, 0
  br i1 %414, label %415, label %432

415:                                              ; preds = %410
  %416 = load i32, ptr %16, align 4, !tbaa !5
  %417 = call ptr @__errno_location() #8
  store i32 %416, ptr %417, align 4, !tbaa !5
  %418 = load ptr, ptr @stderr, align 8, !tbaa !9
  %419 = load i32, ptr @test_count, align 4, !tbaa !5
  %420 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %421 = load i32, ptr %420, align 4, !tbaa !5
  %422 = call ptr @s2n_strerror(i32 noundef %421, ptr noundef @.str.6)
  %423 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %424 = load i32, ptr %423, align 4, !tbaa !5
  %425 = call ptr @s2n_strerror_debug(i32 noundef %424, ptr noundef @.str.6)
  %426 = call ptr @__errno_location() #8
  %427 = load i32, ptr %426, align 4, !tbaa !5
  %428 = call ptr @strerror(i32 noundef %427) #7
  %429 = call ptr @__errno_location() #8
  %430 = load i32, ptr %429, align 4, !tbaa !5
  %431 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %418, ptr noundef @.str.3, i32 noundef %419, ptr noundef @.str.36, ptr noundef @.str.5, i32 noundef 376, ptr noundef %422, ptr noundef %425, ptr noundef %428, i32 noundef %430) #7
  br label %449

432:                                              ; preds = %410, %403
  %433 = load i32, ptr %16, align 4, !tbaa !5
  %434 = call ptr @__errno_location() #8
  store i32 %433, ptr %434, align 4, !tbaa !5
  %435 = load ptr, ptr @stderr, align 8, !tbaa !9
  %436 = load i32, ptr @test_count, align 4, !tbaa !5
  %437 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %438 = load i32, ptr %437, align 4, !tbaa !5
  %439 = call ptr @s2n_strerror(i32 noundef %438, ptr noundef @.str.6)
  %440 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %441 = load i32, ptr %440, align 4, !tbaa !5
  %442 = call ptr @s2n_strerror_debug(i32 noundef %441, ptr noundef @.str.6)
  %443 = call ptr @__errno_location() #8
  %444 = load i32, ptr %443, align 4, !tbaa !5
  %445 = call ptr @strerror(i32 noundef %444) #7
  %446 = call ptr @__errno_location() #8
  %447 = load i32, ptr %446, align 4, !tbaa !5
  %448 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %435, ptr noundef @.str.7, i32 noundef %436, ptr noundef @.str.36, ptr noundef @.str.5, i32 noundef 376, ptr noundef %439, ptr noundef %442, ptr noundef %445, i32 noundef %447) #7
  br label %449

449:                                              ; preds = %432, %415
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %450

450:                                              ; preds = %449
  br label %451

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

452:                                              ; No predecessors!
  br label %453

453:                                              ; preds = %452
  br label %454

454:                                              ; preds = %453, %395
  br label %455

455:                                              ; preds = %454
  br label %456

456:                                              ; preds = %455
  %457 = load i32, ptr %3, align 4, !tbaa !5
  %458 = icmp eq i32 %457, 1
  br i1 %458, label %459, label %523

459:                                              ; preds = %456
  br label %460

460:                                              ; preds = %459
  %461 = load i32, ptr @test_count, align 4, !tbaa !5
  %462 = add nsw i32 %461, 1
  store i32 %462, ptr @test_count, align 4, !tbaa !5
  %463 = load ptr, ptr %7, align 8, !tbaa !9
  %464 = load ptr, ptr %4, align 8, !tbaa !9
  %465 = call i32 @s2n_negotiate_nonblocking_ch_cb(ptr noundef %463, ptr noundef %464, i1 noundef zeroext false)
  %466 = icmp eq i32 %465, -1
  br i1 %466, label %467, label %520

467:                                              ; preds = %460
  br label %468

468:                                              ; preds = %467
  br label %469

469:                                              ; preds = %468
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %470 = call ptr @__errno_location() #8
  %471 = load i32, ptr %470, align 4, !tbaa !5
  store i32 %471, ptr %17, align 4, !tbaa !5
  %472 = load ptr, ptr @stderr, align 8, !tbaa !9
  %473 = call i32 @s2n_print_stacktrace(ptr noundef %472)
  %474 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %475 = trunc i8 %474 to i1
  br i1 %475, label %476, label %498

476:                                              ; preds = %469
  %477 = load ptr, ptr @stderr, align 8, !tbaa !9
  %478 = call i32 @fileno(ptr noundef %477) #7
  %479 = call i32 @isatty(i32 noundef %478) #7
  %480 = icmp ne i32 %479, 0
  br i1 %480, label %481, label %498

481:                                              ; preds = %476
  %482 = load i32, ptr %17, align 4, !tbaa !5
  %483 = call ptr @__errno_location() #8
  store i32 %482, ptr %483, align 4, !tbaa !5
  %484 = load ptr, ptr @stderr, align 8, !tbaa !9
  %485 = load i32, ptr @test_count, align 4, !tbaa !5
  %486 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %487 = load i32, ptr %486, align 4, !tbaa !5
  %488 = call ptr @s2n_strerror(i32 noundef %487, ptr noundef @.str.6)
  %489 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %490 = load i32, ptr %489, align 4, !tbaa !5
  %491 = call ptr @s2n_strerror_debug(i32 noundef %490, ptr noundef @.str.6)
  %492 = call ptr @__errno_location() #8
  %493 = load i32, ptr %492, align 4, !tbaa !5
  %494 = call ptr @strerror(i32 noundef %493) #7
  %495 = call ptr @__errno_location() #8
  %496 = load i32, ptr %495, align 4, !tbaa !5
  %497 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %484, ptr noundef @.str.3, i32 noundef %485, ptr noundef @.str.47, ptr noundef @.str.5, i32 noundef 381, ptr noundef %488, ptr noundef %491, ptr noundef %494, i32 noundef %496) #7
  br label %515

498:                                              ; preds = %476, %469
  %499 = load i32, ptr %17, align 4, !tbaa !5
  %500 = call ptr @__errno_location() #8
  store i32 %499, ptr %500, align 4, !tbaa !5
  %501 = load ptr, ptr @stderr, align 8, !tbaa !9
  %502 = load i32, ptr @test_count, align 4, !tbaa !5
  %503 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %504 = load i32, ptr %503, align 4, !tbaa !5
  %505 = call ptr @s2n_strerror(i32 noundef %504, ptr noundef @.str.6)
  %506 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %507 = load i32, ptr %506, align 4, !tbaa !5
  %508 = call ptr @s2n_strerror_debug(i32 noundef %507, ptr noundef @.str.6)
  %509 = call ptr @__errno_location() #8
  %510 = load i32, ptr %509, align 4, !tbaa !5
  %511 = call ptr @strerror(i32 noundef %510) #7
  %512 = call ptr @__errno_location() #8
  %513 = load i32, ptr %512, align 4, !tbaa !5
  %514 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %501, ptr noundef @.str.7, i32 noundef %502, ptr noundef @.str.47, ptr noundef @.str.5, i32 noundef 381, ptr noundef %505, ptr noundef %508, ptr noundef %511, i32 noundef %513) #7
  br label %515

515:                                              ; preds = %498, %481
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %516

516:                                              ; preds = %515
  br label %517

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

518:                                              ; No predecessors!
  br label %519

519:                                              ; preds = %518
  br label %520

520:                                              ; preds = %519, %460
  br label %521

521:                                              ; preds = %520
  br label %522

522:                                              ; preds = %521
  br label %587

523:                                              ; preds = %456
  br label %524

524:                                              ; preds = %523
  %525 = load i32, ptr @test_count, align 4, !tbaa !5
  %526 = add nsw i32 %525, 1
  store i32 %526, ptr @test_count, align 4, !tbaa !5
  %527 = load ptr, ptr %7, align 8, !tbaa !9
  %528 = load ptr, ptr %4, align 8, !tbaa !9
  %529 = call i32 @s2n_negotiate_blocking_ch_cb(ptr noundef %527, ptr noundef %528)
  %530 = icmp eq i32 %529, -1
  br i1 %530, label %531, label %584

531:                                              ; preds = %524
  br label %532

532:                                              ; preds = %531
  br label %533

533:                                              ; preds = %532
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %534 = call ptr @__errno_location() #8
  %535 = load i32, ptr %534, align 4, !tbaa !5
  store i32 %535, ptr %18, align 4, !tbaa !5
  %536 = load ptr, ptr @stderr, align 8, !tbaa !9
  %537 = call i32 @s2n_print_stacktrace(ptr noundef %536)
  %538 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %539 = trunc i8 %538 to i1
  br i1 %539, label %540, label %562

540:                                              ; preds = %533
  %541 = load ptr, ptr @stderr, align 8, !tbaa !9
  %542 = call i32 @fileno(ptr noundef %541) #7
  %543 = call i32 @isatty(i32 noundef %542) #7
  %544 = icmp ne i32 %543, 0
  br i1 %544, label %545, label %562

545:                                              ; preds = %540
  %546 = load i32, ptr %18, align 4, !tbaa !5
  %547 = call ptr @__errno_location() #8
  store i32 %546, ptr %547, align 4, !tbaa !5
  %548 = load ptr, ptr @stderr, align 8, !tbaa !9
  %549 = load i32, ptr @test_count, align 4, !tbaa !5
  %550 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %551 = load i32, ptr %550, align 4, !tbaa !5
  %552 = call ptr @s2n_strerror(i32 noundef %551, ptr noundef @.str.6)
  %553 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %554 = load i32, ptr %553, align 4, !tbaa !5
  %555 = call ptr @s2n_strerror_debug(i32 noundef %554, ptr noundef @.str.6)
  %556 = call ptr @__errno_location() #8
  %557 = load i32, ptr %556, align 4, !tbaa !5
  %558 = call ptr @strerror(i32 noundef %557) #7
  %559 = call ptr @__errno_location() #8
  %560 = load i32, ptr %559, align 4, !tbaa !5
  %561 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %548, ptr noundef @.str.3, i32 noundef %549, ptr noundef @.str.38, ptr noundef @.str.5, i32 noundef 383, ptr noundef %552, ptr noundef %555, ptr noundef %558, i32 noundef %560) #7
  br label %579

562:                                              ; preds = %540, %533
  %563 = load i32, ptr %18, align 4, !tbaa !5
  %564 = call ptr @__errno_location() #8
  store i32 %563, ptr %564, align 4, !tbaa !5
  %565 = load ptr, ptr @stderr, align 8, !tbaa !9
  %566 = load i32, ptr @test_count, align 4, !tbaa !5
  %567 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %568 = load i32, ptr %567, align 4, !tbaa !5
  %569 = call ptr @s2n_strerror(i32 noundef %568, ptr noundef @.str.6)
  %570 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %571 = load i32, ptr %570, align 4, !tbaa !5
  %572 = call ptr @s2n_strerror_debug(i32 noundef %571, ptr noundef @.str.6)
  %573 = call ptr @__errno_location() #8
  %574 = load i32, ptr %573, align 4, !tbaa !5
  %575 = call ptr @strerror(i32 noundef %574) #7
  %576 = call ptr @__errno_location() #8
  %577 = load i32, ptr %576, align 4, !tbaa !5
  %578 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %565, ptr noundef @.str.7, i32 noundef %566, ptr noundef @.str.38, ptr noundef @.str.5, i32 noundef 383, ptr noundef %569, ptr noundef %572, ptr noundef %575, i32 noundef %577) #7
  br label %579

579:                                              ; preds = %562, %545
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %580

580:                                              ; preds = %579
  br label %581

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

582:                                              ; No predecessors!
  br label %583

583:                                              ; preds = %582
  br label %584

584:                                              ; preds = %583, %524
  br label %585

585:                                              ; preds = %584
  br label %586

586:                                              ; preds = %585
  br label %587

587:                                              ; preds = %586, %522
  br label %588

588:                                              ; preds = %587
  %589 = load i32, ptr @test_count, align 4, !tbaa !5
  %590 = add nsw i32 %589, 1
  store i32 %590, ptr @test_count, align 4, !tbaa !5
  %591 = call ptr @s2n_get_server_name(ptr noundef null)
  %592 = icmp eq ptr %591, null
  br i1 %592, label %646, label %593

593:                                              ; preds = %588
  br label %594

594:                                              ; preds = %593
  br label %595

595:                                              ; preds = %594
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %596 = call ptr @__errno_location() #8
  %597 = load i32, ptr %596, align 4, !tbaa !5
  store i32 %597, ptr %19, align 4, !tbaa !5
  %598 = load ptr, ptr @stderr, align 8, !tbaa !9
  %599 = call i32 @s2n_print_stacktrace(ptr noundef %598)
  %600 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %601 = trunc i8 %600 to i1
  br i1 %601, label %602, label %624

602:                                              ; preds = %595
  %603 = load ptr, ptr @stderr, align 8, !tbaa !9
  %604 = call i32 @fileno(ptr noundef %603) #7
  %605 = call i32 @isatty(i32 noundef %604) #7
  %606 = icmp ne i32 %605, 0
  br i1 %606, label %607, label %624

607:                                              ; preds = %602
  %608 = load i32, ptr %19, align 4, !tbaa !5
  %609 = call ptr @__errno_location() #8
  store i32 %608, ptr %609, align 4, !tbaa !5
  %610 = load ptr, ptr @stderr, align 8, !tbaa !9
  %611 = load i32, ptr @test_count, align 4, !tbaa !5
  %612 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %613 = load i32, ptr %612, align 4, !tbaa !5
  %614 = call ptr @s2n_strerror(i32 noundef %613, ptr noundef @.str.6)
  %615 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %616 = load i32, ptr %615, align 4, !tbaa !5
  %617 = call ptr @s2n_strerror_debug(i32 noundef %616, ptr noundef @.str.6)
  %618 = call ptr @__errno_location() #8
  %619 = load i32, ptr %618, align 4, !tbaa !5
  %620 = call ptr @strerror(i32 noundef %619) #7
  %621 = call ptr @__errno_location() #8
  %622 = load i32, ptr %621, align 4, !tbaa !5
  %623 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %610, ptr noundef @.str.3, i32 noundef %611, ptr noundef @.str.39, ptr noundef @.str.5, i32 noundef 387, ptr noundef %614, ptr noundef %617, ptr noundef %620, i32 noundef %622) #7
  br label %641

624:                                              ; preds = %602, %595
  %625 = load i32, ptr %19, align 4, !tbaa !5
  %626 = call ptr @__errno_location() #8
  store i32 %625, ptr %626, align 4, !tbaa !5
  %627 = load ptr, ptr @stderr, align 8, !tbaa !9
  %628 = load i32, ptr @test_count, align 4, !tbaa !5
  %629 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %630 = load i32, ptr %629, align 4, !tbaa !5
  %631 = call ptr @s2n_strerror(i32 noundef %630, ptr noundef @.str.6)
  %632 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %633 = load i32, ptr %632, align 4, !tbaa !5
  %634 = call ptr @s2n_strerror_debug(i32 noundef %633, ptr noundef @.str.6)
  %635 = call ptr @__errno_location() #8
  %636 = load i32, ptr %635, align 4, !tbaa !5
  %637 = call ptr @strerror(i32 noundef %636) #7
  %638 = call ptr @__errno_location() #8
  %639 = load i32, ptr %638, align 4, !tbaa !5
  %640 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %627, ptr noundef @.str.7, i32 noundef %628, ptr noundef @.str.39, ptr noundef @.str.5, i32 noundef 387, ptr noundef %631, ptr noundef %634, ptr noundef %637, i32 noundef %639) #7
  br label %641

641:                                              ; preds = %624, %607
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %642

642:                                              ; preds = %641
  br label %643

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

644:                                              ; No predecessors!
  br label %645

645:                                              ; preds = %644
  br label %646

646:                                              ; preds = %645, %588
  br label %647

647:                                              ; preds = %646
  br label %648

648:                                              ; preds = %647
  br label %649

649:                                              ; preds = %648
  %650 = load i32, ptr @test_count, align 4, !tbaa !5
  %651 = add nsw i32 %650, 1
  store i32 %651, ptr @test_count, align 4, !tbaa !5
  %652 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %653 = load i32, ptr %652, align 4, !tbaa !5
  %654 = icmp eq i32 %653, 402653193
  br i1 %654, label %708, label %655

655:                                              ; preds = %649
  br label %656

656:                                              ; preds = %655
  br label %657

657:                                              ; preds = %656
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %658 = call ptr @__errno_location() #8
  %659 = load i32, ptr %658, align 4, !tbaa !5
  store i32 %659, ptr %20, align 4, !tbaa !5
  %660 = load ptr, ptr @stderr, align 8, !tbaa !9
  %661 = call i32 @s2n_print_stacktrace(ptr noundef %660)
  %662 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %663 = trunc i8 %662 to i1
  br i1 %663, label %664, label %686

664:                                              ; preds = %657
  %665 = load ptr, ptr @stderr, align 8, !tbaa !9
  %666 = call i32 @fileno(ptr noundef %665) #7
  %667 = call i32 @isatty(i32 noundef %666) #7
  %668 = icmp ne i32 %667, 0
  br i1 %668, label %669, label %686

669:                                              ; preds = %664
  %670 = load i32, ptr %20, align 4, !tbaa !5
  %671 = call ptr @__errno_location() #8
  store i32 %670, ptr %671, align 4, !tbaa !5
  %672 = load ptr, ptr @stderr, align 8, !tbaa !9
  %673 = load i32, ptr @test_count, align 4, !tbaa !5
  %674 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %675 = load i32, ptr %674, align 4, !tbaa !5
  %676 = call ptr @s2n_strerror(i32 noundef %675, ptr noundef @.str.6)
  %677 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %678 = load i32, ptr %677, align 4, !tbaa !5
  %679 = call ptr @s2n_strerror_debug(i32 noundef %678, ptr noundef @.str.6)
  %680 = call ptr @__errno_location() #8
  %681 = load i32, ptr %680, align 4, !tbaa !5
  %682 = call ptr @strerror(i32 noundef %681) #7
  %683 = call ptr @__errno_location() #8
  %684 = load i32, ptr %683, align 4, !tbaa !5
  %685 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %672, ptr noundef @.str.3, i32 noundef %673, ptr noundef @.str.40, ptr noundef @.str.5, i32 noundef 388, ptr noundef %676, ptr noundef %679, ptr noundef %682, i32 noundef %684) #7
  br label %703

686:                                              ; preds = %664, %657
  %687 = load i32, ptr %20, align 4, !tbaa !5
  %688 = call ptr @__errno_location() #8
  store i32 %687, ptr %688, align 4, !tbaa !5
  %689 = load ptr, ptr @stderr, align 8, !tbaa !9
  %690 = load i32, ptr @test_count, align 4, !tbaa !5
  %691 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %692 = load i32, ptr %691, align 4, !tbaa !5
  %693 = call ptr @s2n_strerror(i32 noundef %692, ptr noundef @.str.6)
  %694 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %695 = load i32, ptr %694, align 4, !tbaa !5
  %696 = call ptr @s2n_strerror_debug(i32 noundef %695, ptr noundef @.str.6)
  %697 = call ptr @__errno_location() #8
  %698 = load i32, ptr %697, align 4, !tbaa !5
  %699 = call ptr @strerror(i32 noundef %698) #7
  %700 = call ptr @__errno_location() #8
  %701 = load i32, ptr %700, align 4, !tbaa !5
  %702 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %689, ptr noundef @.str.7, i32 noundef %690, ptr noundef @.str.40, ptr noundef @.str.5, i32 noundef 388, ptr noundef %693, ptr noundef %696, ptr noundef %699, i32 noundef %701) #7
  br label %703

703:                                              ; preds = %686, %669
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %704

704:                                              ; preds = %703
  br label %705

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

706:                                              ; No predecessors!
  br label %707

707:                                              ; preds = %706
  br label %708

708:                                              ; preds = %707, %649
  br label %709

709:                                              ; preds = %708
  br label %710

710:                                              ; preds = %709
  br label %711

711:                                              ; preds = %710
  %712 = load i32, ptr @test_count, align 4, !tbaa !5
  %713 = add nsw i32 %712, 1
  store i32 %713, ptr @test_count, align 4, !tbaa !5
  %714 = load ptr, ptr %7, align 8, !tbaa !9
  %715 = call i32 @server_recv(ptr noundef %714)
  %716 = icmp eq i32 %715, -1
  br i1 %716, label %717, label %770

717:                                              ; preds = %711
  br label %718

718:                                              ; preds = %717
  br label %719

719:                                              ; preds = %718
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %720 = call ptr @__errno_location() #8
  %721 = load i32, ptr %720, align 4, !tbaa !5
  store i32 %721, ptr %21, align 4, !tbaa !5
  %722 = load ptr, ptr @stderr, align 8, !tbaa !9
  %723 = call i32 @s2n_print_stacktrace(ptr noundef %722)
  %724 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %725 = trunc i8 %724 to i1
  br i1 %725, label %726, label %748

726:                                              ; preds = %719
  %727 = load ptr, ptr @stderr, align 8, !tbaa !9
  %728 = call i32 @fileno(ptr noundef %727) #7
  %729 = call i32 @isatty(i32 noundef %728) #7
  %730 = icmp ne i32 %729, 0
  br i1 %730, label %731, label %748

731:                                              ; preds = %726
  %732 = load i32, ptr %21, align 4, !tbaa !5
  %733 = call ptr @__errno_location() #8
  store i32 %732, ptr %733, align 4, !tbaa !5
  %734 = load ptr, ptr @stderr, align 8, !tbaa !9
  %735 = load i32, ptr @test_count, align 4, !tbaa !5
  %736 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %737 = load i32, ptr %736, align 4, !tbaa !5
  %738 = call ptr @s2n_strerror(i32 noundef %737, ptr noundef @.str.6)
  %739 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %740 = load i32, ptr %739, align 4, !tbaa !5
  %741 = call ptr @s2n_strerror_debug(i32 noundef %740, ptr noundef @.str.6)
  %742 = call ptr @__errno_location() #8
  %743 = load i32, ptr %742, align 4, !tbaa !5
  %744 = call ptr @strerror(i32 noundef %743) #7
  %745 = call ptr @__errno_location() #8
  %746 = load i32, ptr %745, align 4, !tbaa !5
  %747 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %734, ptr noundef @.str.3, i32 noundef %735, ptr noundef @.str.42, ptr noundef @.str.5, i32 noundef 390, ptr noundef %738, ptr noundef %741, ptr noundef %744, i32 noundef %746) #7
  br label %765

748:                                              ; preds = %726, %719
  %749 = load i32, ptr %21, align 4, !tbaa !5
  %750 = call ptr @__errno_location() #8
  store i32 %749, ptr %750, align 4, !tbaa !5
  %751 = load ptr, ptr @stderr, align 8, !tbaa !9
  %752 = load i32, ptr @test_count, align 4, !tbaa !5
  %753 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %754 = load i32, ptr %753, align 4, !tbaa !5
  %755 = call ptr @s2n_strerror(i32 noundef %754, ptr noundef @.str.6)
  %756 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %757 = load i32, ptr %756, align 4, !tbaa !5
  %758 = call ptr @s2n_strerror_debug(i32 noundef %757, ptr noundef @.str.6)
  %759 = call ptr @__errno_location() #8
  %760 = load i32, ptr %759, align 4, !tbaa !5
  %761 = call ptr @strerror(i32 noundef %760) #7
  %762 = call ptr @__errno_location() #8
  %763 = load i32, ptr %762, align 4, !tbaa !5
  %764 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %751, ptr noundef @.str.7, i32 noundef %752, ptr noundef @.str.42, ptr noundef @.str.5, i32 noundef 390, ptr noundef %755, ptr noundef %758, ptr noundef %761, i32 noundef %763) #7
  br label %765

765:                                              ; preds = %748, %731
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %766

766:                                              ; preds = %765
  br label %767

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

768:                                              ; No predecessors!
  br label %769

769:                                              ; preds = %768
  br label %770

770:                                              ; preds = %769, %711
  br label %771

771:                                              ; preds = %770
  br label %772

772:                                              ; preds = %771
  br label %773

773:                                              ; preds = %772
  %774 = load i32, ptr @test_count, align 4, !tbaa !5
  %775 = add nsw i32 %774, 1
  store i32 %775, ptr @test_count, align 4, !tbaa !5
  %776 = load ptr, ptr %7, align 8, !tbaa !9
  %777 = load i32, ptr %8, align 4, !tbaa !5
  %778 = load ptr, ptr %6, align 8, !tbaa !9
  %779 = load ptr, ptr %4, align 8, !tbaa !9
  %780 = load ptr, ptr %9, align 8, !tbaa !9
  %781 = call i32 @test_case_clean(ptr noundef %776, i32 noundef %777, ptr noundef %778, ptr noundef %5, ptr noundef %779, ptr noundef %780)
  %782 = icmp eq i32 %781, -1
  br i1 %782, label %783, label %836

783:                                              ; preds = %773
  br label %784

784:                                              ; preds = %783
  br label %785

785:                                              ; preds = %784
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %786 = call ptr @__errno_location() #8
  %787 = load i32, ptr %786, align 4, !tbaa !5
  store i32 %787, ptr %22, align 4, !tbaa !5
  %788 = load ptr, ptr @stderr, align 8, !tbaa !9
  %789 = call i32 @s2n_print_stacktrace(ptr noundef %788)
  %790 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %791 = trunc i8 %790 to i1
  br i1 %791, label %792, label %814

792:                                              ; preds = %785
  %793 = load ptr, ptr @stderr, align 8, !tbaa !9
  %794 = call i32 @fileno(ptr noundef %793) #7
  %795 = call i32 @isatty(i32 noundef %794) #7
  %796 = icmp ne i32 %795, 0
  br i1 %796, label %797, label %814

797:                                              ; preds = %792
  %798 = load i32, ptr %22, align 4, !tbaa !5
  %799 = call ptr @__errno_location() #8
  store i32 %798, ptr %799, align 4, !tbaa !5
  %800 = load ptr, ptr @stderr, align 8, !tbaa !9
  %801 = load i32, ptr @test_count, align 4, !tbaa !5
  %802 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %803 = load i32, ptr %802, align 4, !tbaa !5
  %804 = call ptr @s2n_strerror(i32 noundef %803, ptr noundef @.str.6)
  %805 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %806 = load i32, ptr %805, align 4, !tbaa !5
  %807 = call ptr @s2n_strerror_debug(i32 noundef %806, ptr noundef @.str.6)
  %808 = call ptr @__errno_location() #8
  %809 = load i32, ptr %808, align 4, !tbaa !5
  %810 = call ptr @strerror(i32 noundef %809) #7
  %811 = call ptr @__errno_location() #8
  %812 = load i32, ptr %811, align 4, !tbaa !5
  %813 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %800, ptr noundef @.str.3, i32 noundef %801, ptr noundef @.str.43, ptr noundef @.str.5, i32 noundef 392, ptr noundef %804, ptr noundef %807, ptr noundef %810, i32 noundef %812) #7
  br label %831

814:                                              ; preds = %792, %785
  %815 = load i32, ptr %22, align 4, !tbaa !5
  %816 = call ptr @__errno_location() #8
  store i32 %815, ptr %816, align 4, !tbaa !5
  %817 = load ptr, ptr @stderr, align 8, !tbaa !9
  %818 = load i32, ptr @test_count, align 4, !tbaa !5
  %819 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %820 = load i32, ptr %819, align 4, !tbaa !5
  %821 = call ptr @s2n_strerror(i32 noundef %820, ptr noundef @.str.6)
  %822 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %823 = load i32, ptr %822, align 4, !tbaa !5
  %824 = call ptr @s2n_strerror_debug(i32 noundef %823, ptr noundef @.str.6)
  %825 = call ptr @__errno_location() #8
  %826 = load i32, ptr %825, align 4, !tbaa !5
  %827 = call ptr @strerror(i32 noundef %826) #7
  %828 = call ptr @__errno_location() #8
  %829 = load i32, ptr %828, align 4, !tbaa !5
  %830 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %817, ptr noundef @.str.7, i32 noundef %818, ptr noundef @.str.43, ptr noundef @.str.5, i32 noundef 392, ptr noundef %821, ptr noundef %824, ptr noundef %827, i32 noundef %829) #7
  br label %831

831:                                              ; preds = %814, %797
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %832

832:                                              ; preds = %831
  br label %833

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

834:                                              ; No predecessors!
  br label %835

835:                                              ; preds = %834
  br label %836

836:                                              ; preds = %835, %773
  br label %837

837:                                              ; preds = %836
  br label %838

838:                                              ; preds = %837
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  ret i32 0
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #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 #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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"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 = !{}


; 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.s2n_test_io_pair = type { i32, i32 }

@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
@.str.26 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [200 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [77 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

declare ptr @s2n_config_new() local_unnamed_addr #1

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

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

declare ptr @s2n_get_server_name(ptr noundef) local_unnamed_addr #1

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

declare i32 @s2n_print_stacktrace(ptr noundef) local_unnamed_addr #1

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @s2n_negotiate_nonblocking_ch_cb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #3

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

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

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

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

declare i32 @s2n_test_cert_chain_and_key_new(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @s2n_config_add_cert_chain_and_key_to_store(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @s2n_config_set_client_hello_cb_mode(ptr noundef, i32 noundef) local_unnamed_addr #1

declare i32 @s2n_config_set_client_hello_cb(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @run_test_no_config_swap_ch_cb(i32 noundef %0, ptr noundef %1) local_unnamed_addr #3 {
  %3 = alloca %struct.s2n_test_io_pair, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  store ptr null, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  store ptr null, ptr %6, align 8, !tbaa !5
  %7 = load i32, ptr @test_count, align 4, !tbaa !9
  %8 = add nsw i32 %7, 1
  store i32 %8, ptr @test_count, align 4, !tbaa !9
  %9 = call i32 @start_client_conn(ptr noundef nonnull %3, ptr noundef nonnull %5, i32 noundef 0, i32 noundef 0)
  %10 = icmp eq i32 %9, -1
  br i1 %10, label %11, label %35

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

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

22:                                               ; preds = %18, %11
  br label %23

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

35:                                               ; preds = %2
  %36 = load i32, ptr @test_count, align 4, !tbaa !9
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr @test_count, align 4, !tbaa !9
  %38 = call i32 @s2n_test_cert_chain_and_key_new(ptr noundef nonnull %6, ptr noundef nonnull @.str.26, ptr noundef nonnull @.str.27) #8
  %39 = icmp eq i32 %38, -1
  br i1 %39, label %40, label %64

40:                                               ; preds = %35
  %41 = tail call ptr @__errno_location() #9
  %42 = load i32, ptr %41, align 4, !tbaa !9
  %43 = load ptr, ptr @stderr, align 8, !tbaa !5
  %44 = call i32 @s2n_print_stacktrace(ptr noundef %43) #8
  %45 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %46 = trunc nuw i8 %45 to i1
  br i1 %46, label %47, label %51

47:                                               ; preds = %40
  %48 = load ptr, ptr @stderr, align 8, !tbaa !5
  %49 = call i32 @fileno(ptr noundef %48) #8
  %50 = call i32 @isatty(i32 noundef %49) #8
  %.not46 = icmp eq i32 %50, 0
  br i1 %.not46, label %51, label %52

51:                                               ; preds = %47, %40
  br label %52

52:                                               ; preds = %47, %51
  %.str.7.sink58 = phi ptr [ @.str.7, %51 ], [ @.str.3, %47 ]
  store i32 %42, ptr %41, align 4, !tbaa !9
  %53 = load ptr, ptr @stderr, align 8, !tbaa !5
  %54 = load i32, ptr @test_count, align 4, !tbaa !9
  %55 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %56 = load i32, ptr %55, align 4, !tbaa !9
  %57 = call ptr @s2n_strerror(i32 noundef %56, ptr noundef nonnull @.str.6) #8
  %58 = load i32, ptr %55, align 4, !tbaa !9
  %59 = call ptr @s2n_strerror_debug(i32 noundef %58, ptr noundef nonnull @.str.6) #8
  %60 = load i32, ptr %41, align 4, !tbaa !9
  %61 = call ptr @strerror(i32 noundef %60) #8
  %62 = load i32, ptr %41, align 4, !tbaa !9
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull %.str.7.sink58, i32 noundef %54, ptr noundef nonnull @.str.28, ptr noundef nonnull @.str.5, i32 noundef 369, ptr noundef %57, ptr noundef %59, ptr noundef %61, i32 noundef %62) #10
  call void @exit(i32 noundef 1) #11
  unreachable

64:                                               ; preds = %35
  %65 = load i32, ptr @test_count, align 4, !tbaa !9
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr @test_count, align 4, !tbaa !9
  %67 = call ptr @s2n_config_new() #8
  %68 = icmp eq ptr %67, null
  br i1 %68, label %69, label %93

69:                                               ; preds = %64
  %70 = tail call ptr @__errno_location() #9
  %71 = load i32, ptr %70, align 4, !tbaa !9
  %72 = load ptr, ptr @stderr, align 8, !tbaa !5
  %73 = call i32 @s2n_print_stacktrace(ptr noundef %72) #8
  %74 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %75 = trunc nuw i8 %74 to i1
  br i1 %75, label %76, label %80

76:                                               ; preds = %69
  %77 = load ptr, ptr @stderr, align 8, !tbaa !5
  %78 = call i32 @fileno(ptr noundef %77) #8
  %79 = call i32 @isatty(i32 noundef %78) #8
  %.not45 = icmp eq i32 %79, 0
  br i1 %.not45, label %80, label %81

80:                                               ; preds = %76, %69
  br label %81

81:                                               ; preds = %76, %80
  %.str.7.sink69 = phi ptr [ @.str.7, %80 ], [ @.str.3, %76 ]
  store i32 %71, ptr %70, align 4, !tbaa !9
  %82 = load ptr, ptr @stderr, align 8, !tbaa !5
  %83 = load i32, ptr @test_count, align 4, !tbaa !9
  %84 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %85 = load i32, ptr %84, align 4, !tbaa !9
  %86 = call ptr @s2n_strerror(i32 noundef %85, ptr noundef nonnull @.str.6) #8
  %87 = load i32, ptr %84, align 4, !tbaa !9
  %88 = call ptr @s2n_strerror_debug(i32 noundef %87, ptr noundef nonnull @.str.6) #8
  %89 = load i32, ptr %70, align 4, !tbaa !9
  %90 = call ptr @strerror(i32 noundef %89) #8
  %91 = load i32, ptr %70, align 4, !tbaa !9
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef nonnull %.str.7.sink69, i32 noundef %83, ptr noundef nonnull @.str.33, ptr noundef nonnull @.str.5, i32 noundef 370, ptr noundef %86, ptr noundef %88, ptr noundef %90, i32 noundef %91) #10
  call void @exit(i32 noundef 1) #11
  unreachable

93:                                               ; preds = %64
  %94 = load i32, ptr @test_count, align 4, !tbaa !9
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr @test_count, align 4, !tbaa !9
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = call i32 @s2n_config_add_cert_chain_and_key_to_store(ptr noundef nonnull %67, ptr noundef %96) #8
  %98 = icmp eq i32 %97, -1
  br i1 %98, label %99, label %123

99:                                               ; preds = %93
  %100 = tail call ptr @__errno_location() #9
  %101 = load i32, ptr %100, align 4, !tbaa !9
  %102 = load ptr, ptr @stderr, align 8, !tbaa !5
  %103 = call i32 @s2n_print_stacktrace(ptr noundef %102) #8
  %104 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %105 = trunc nuw i8 %104 to i1
  br i1 %105, label %106, label %110

106:                                              ; preds = %99
  %107 = load ptr, ptr @stderr, align 8, !tbaa !5
  %108 = call i32 @fileno(ptr noundef %107) #8
  %109 = call i32 @isatty(i32 noundef %108) #8
  %.not44 = icmp eq i32 %109, 0
  br i1 %.not44, label %110, label %111

110:                                              ; preds = %106, %99
  br label %111

111:                                              ; preds = %106, %110
  %.str.7.sink80 = phi ptr [ @.str.7, %110 ], [ @.str.3, %106 ]
  store i32 %101, ptr %100, align 4, !tbaa !9
  %112 = load ptr, ptr @stderr, align 8, !tbaa !5
  %113 = load i32, ptr @test_count, align 4, !tbaa !9
  %114 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %115 = load i32, ptr %114, align 4, !tbaa !9
  %116 = call ptr @s2n_strerror(i32 noundef %115, ptr noundef nonnull @.str.6) #8
  %117 = load i32, ptr %114, align 4, !tbaa !9
  %118 = call ptr @s2n_strerror_debug(i32 noundef %117, ptr noundef nonnull @.str.6) #8
  %119 = load i32, ptr %100, align 4, !tbaa !9
  %120 = call ptr @strerror(i32 noundef %119) #8
  %121 = load i32, ptr %100, align 4, !tbaa !9
  %122 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %112, ptr noundef nonnull %.str.7.sink80, i32 noundef %113, ptr noundef nonnull @.str.46, ptr noundef nonnull @.str.5, i32 noundef 371, ptr noundef %116, ptr noundef %118, ptr noundef %120, i32 noundef %121) #10
  call void @exit(i32 noundef 1) #11
  unreachable

123:                                              ; preds = %93
  %124 = load i32, ptr @test_count, align 4, !tbaa !9
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr @test_count, align 4, !tbaa !9
  %126 = call i32 @s2n_config_set_client_hello_cb(ptr noundef nonnull %67, ptr noundef nonnull @client_hello_swap_config, ptr noundef %1) #8
  %127 = icmp eq i32 %126, -1
  br i1 %127, label %128, label %152

128:                                              ; preds = %123
  %129 = tail call ptr @__errno_location() #9
  %130 = load i32, ptr %129, align 4, !tbaa !9
  %131 = load ptr, ptr @stderr, align 8, !tbaa !5
  %132 = call i32 @s2n_print_stacktrace(ptr noundef %131) #8
  %133 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %134 = trunc nuw i8 %133 to i1
  br i1 %134, label %135, label %139

135:                                              ; preds = %128
  %136 = load ptr, ptr @stderr, align 8, !tbaa !5
  %137 = call i32 @fileno(ptr noundef %136) #8
  %138 = call i32 @isatty(i32 noundef %137) #8
  %.not43 = icmp eq i32 %138, 0
  br i1 %.not43, label %139, label %140

139:                                              ; preds = %135, %128
  br label %140

140:                                              ; preds = %135, %139
  %.str.7.sink91 = phi ptr [ @.str.7, %139 ], [ @.str.3, %135 ]
  store i32 %130, ptr %129, align 4, !tbaa !9
  %141 = load ptr, ptr @stderr, align 8, !tbaa !5
  %142 = load i32, ptr @test_count, align 4, !tbaa !9
  %143 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %144 = load i32, ptr %143, align 4, !tbaa !9
  %145 = call ptr @s2n_strerror(i32 noundef %144, ptr noundef nonnull @.str.6) #8
  %146 = load i32, ptr %143, align 4, !tbaa !9
  %147 = call ptr @s2n_strerror_debug(i32 noundef %146, ptr noundef nonnull @.str.6) #8
  %148 = load i32, ptr %129, align 4, !tbaa !9
  %149 = call ptr @strerror(i32 noundef %148) #8
  %150 = load i32, ptr %129, align 4, !tbaa !9
  %151 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %141, ptr noundef nonnull %.str.7.sink91, i32 noundef %142, ptr noundef nonnull @.str.35, ptr noundef nonnull @.str.5, i32 noundef 374, ptr noundef %145, ptr noundef %147, ptr noundef %149, i32 noundef %150) #10
  call void @exit(i32 noundef 1) #11
  unreachable

152:                                              ; preds = %123
  %153 = load i32, ptr @test_count, align 4, !tbaa !9
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr @test_count, align 4, !tbaa !9
  %155 = call i32 @s2n_config_set_client_hello_cb_mode(ptr noundef nonnull %67, i32 noundef %0) #8
  %156 = icmp eq i32 %155, -1
  br i1 %156, label %157, label %181

157:                                              ; preds = %152
  %158 = tail call ptr @__errno_location() #9
  %159 = load i32, ptr %158, align 4, !tbaa !9
  %160 = load ptr, ptr @stderr, align 8, !tbaa !5
  %161 = call i32 @s2n_print_stacktrace(ptr noundef %160) #8
  %162 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %163 = trunc nuw i8 %162 to i1
  br i1 %163, label %164, label %168

164:                                              ; preds = %157
  %165 = load ptr, ptr @stderr, align 8, !tbaa !5
  %166 = call i32 @fileno(ptr noundef %165) #8
  %167 = call i32 @isatty(i32 noundef %166) #8
  %.not42 = icmp eq i32 %167, 0
  br i1 %.not42, label %168, label %169

168:                                              ; preds = %164, %157
  br label %169

169:                                              ; preds = %164, %168
  %.str.7.sink102 = phi ptr [ @.str.7, %168 ], [ @.str.3, %164 ]
  store i32 %159, ptr %158, align 4, !tbaa !9
  %170 = load ptr, ptr @stderr, align 8, !tbaa !5
  %171 = load i32, ptr @test_count, align 4, !tbaa !9
  %172 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %173 = load i32, ptr %172, align 4, !tbaa !9
  %174 = call ptr @s2n_strerror(i32 noundef %173, ptr noundef nonnull @.str.6) #8
  %175 = load i32, ptr %172, align 4, !tbaa !9
  %176 = call ptr @s2n_strerror_debug(i32 noundef %175, ptr noundef nonnull @.str.6) #8
  %177 = load i32, ptr %158, align 4, !tbaa !9
  %178 = call ptr @strerror(i32 noundef %177) #8
  %179 = load i32, ptr %158, align 4, !tbaa !9
  %180 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %170, ptr noundef nonnull %.str.7.sink102, i32 noundef %171, ptr noundef nonnull @.str.34, ptr noundef nonnull @.str.5, i32 noundef 375, ptr noundef %174, ptr noundef %176, ptr noundef %178, i32 noundef %179) #10
  call void @exit(i32 noundef 1) #11
  unreachable

181:                                              ; preds = %152
  %182 = load i32, ptr @test_count, align 4, !tbaa !9
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr @test_count, align 4, !tbaa !9
  %184 = call i32 @init_server_conn(ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef nonnull %67)
  %185 = icmp eq i32 %184, -1
  br i1 %185, label %186, label %210

186:                                              ; preds = %181
  %187 = tail call ptr @__errno_location() #9
  %188 = load i32, ptr %187, align 4, !tbaa !9
  %189 = load ptr, ptr @stderr, align 8, !tbaa !5
  %190 = call i32 @s2n_print_stacktrace(ptr noundef %189) #8
  %191 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %192 = trunc nuw i8 %191 to i1
  br i1 %192, label %193, label %197

193:                                              ; preds = %186
  %194 = load ptr, ptr @stderr, align 8, !tbaa !5
  %195 = call i32 @fileno(ptr noundef %194) #8
  %196 = call i32 @isatty(i32 noundef %195) #8
  %.not41 = icmp eq i32 %196, 0
  br i1 %.not41, label %197, label %198

197:                                              ; preds = %193, %186
  br label %198

198:                                              ; preds = %193, %197
  %.str.7.sink113 = phi ptr [ @.str.7, %197 ], [ @.str.3, %193 ]
  store i32 %188, ptr %187, align 4, !tbaa !9
  %199 = load ptr, ptr @stderr, align 8, !tbaa !5
  %200 = load i32, ptr @test_count, align 4, !tbaa !9
  %201 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %202 = load i32, ptr %201, align 4, !tbaa !9
  %203 = call ptr @s2n_strerror(i32 noundef %202, ptr noundef nonnull @.str.6) #8
  %204 = load i32, ptr %201, align 4, !tbaa !9
  %205 = call ptr @s2n_strerror_debug(i32 noundef %204, ptr noundef nonnull @.str.6) #8
  %206 = load i32, ptr %187, align 4, !tbaa !9
  %207 = call ptr @strerror(i32 noundef %206) #8
  %208 = load i32, ptr %187, align 4, !tbaa !9
  %209 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %199, ptr noundef nonnull %.str.7.sink113, i32 noundef %200, ptr noundef nonnull @.str.36, ptr noundef nonnull @.str.5, i32 noundef 376, ptr noundef %203, ptr noundef %205, ptr noundef %207, i32 noundef %208) #10
  call void @exit(i32 noundef 1) #11
  unreachable

210:                                              ; preds = %181
  %211 = icmp eq i32 %0, 1
  %212 = load i32, ptr @test_count, align 4, !tbaa !9
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr @test_count, align 4, !tbaa !9
  %214 = load ptr, ptr %4, align 8, !tbaa !5
  br i1 %211, label %215, label %242

215:                                              ; preds = %210
  %216 = call i32 @s2n_negotiate_nonblocking_ch_cb(ptr noundef %214, ptr noundef %1, i1 noundef zeroext false)
  %217 = icmp eq i32 %216, -1
  br i1 %217, label %218, label %269

218:                                              ; preds = %215
  %219 = tail call ptr @__errno_location() #9
  %220 = load i32, ptr %219, align 4, !tbaa !9
  %221 = load ptr, ptr @stderr, align 8, !tbaa !5
  %222 = call i32 @s2n_print_stacktrace(ptr noundef %221) #8
  %223 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %224 = trunc nuw i8 %223 to i1
  br i1 %224, label %225, label %229

225:                                              ; preds = %218
  %226 = load ptr, ptr @stderr, align 8, !tbaa !5
  %227 = call i32 @fileno(ptr noundef %226) #8
  %228 = call i32 @isatty(i32 noundef %227) #8
  %.not40 = icmp eq i32 %228, 0
  br i1 %.not40, label %229, label %230

229:                                              ; preds = %225, %218
  br label %230

230:                                              ; preds = %225, %229
  %.str.7.sink124 = phi ptr [ @.str.7, %229 ], [ @.str.3, %225 ]
  store i32 %220, ptr %219, align 4, !tbaa !9
  %231 = load ptr, ptr @stderr, align 8, !tbaa !5
  %232 = load i32, ptr @test_count, align 4, !tbaa !9
  %233 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %234 = load i32, ptr %233, align 4, !tbaa !9
  %235 = call ptr @s2n_strerror(i32 noundef %234, ptr noundef nonnull @.str.6) #8
  %236 = load i32, ptr %233, align 4, !tbaa !9
  %237 = call ptr @s2n_strerror_debug(i32 noundef %236, ptr noundef nonnull @.str.6) #8
  %238 = load i32, ptr %219, align 4, !tbaa !9
  %239 = call ptr @strerror(i32 noundef %238) #8
  %240 = load i32, ptr %219, align 4, !tbaa !9
  %241 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %231, ptr noundef nonnull %.str.7.sink124, i32 noundef %232, ptr noundef nonnull @.str.47, ptr noundef nonnull @.str.5, i32 noundef 381, ptr noundef %235, ptr noundef %237, ptr noundef %239, i32 noundef %240) #10
  call void @exit(i32 noundef 1) #11
  unreachable

242:                                              ; preds = %210
  %243 = call i32 @s2n_negotiate_blocking_ch_cb(ptr noundef %214, ptr noundef %1)
  %244 = icmp eq i32 %243, -1
  br i1 %244, label %245, label %269

245:                                              ; preds = %242
  %246 = tail call ptr @__errno_location() #9
  %247 = load i32, ptr %246, align 4, !tbaa !9
  %248 = load ptr, ptr @stderr, align 8, !tbaa !5
  %249 = call i32 @s2n_print_stacktrace(ptr noundef %248) #8
  %250 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %251 = trunc nuw i8 %250 to i1
  br i1 %251, label %252, label %256

252:                                              ; preds = %245
  %253 = load ptr, ptr @stderr, align 8, !tbaa !5
  %254 = call i32 @fileno(ptr noundef %253) #8
  %255 = call i32 @isatty(i32 noundef %254) #8
  %.not = icmp eq i32 %255, 0
  br i1 %.not, label %256, label %257

256:                                              ; preds = %252, %245
  br label %257

257:                                              ; preds = %252, %256
  %.str.7.sink135 = phi ptr [ @.str.7, %256 ], [ @.str.3, %252 ]
  store i32 %247, ptr %246, align 4, !tbaa !9
  %258 = load ptr, ptr @stderr, align 8, !tbaa !5
  %259 = load i32, ptr @test_count, align 4, !tbaa !9
  %260 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %261 = load i32, ptr %260, align 4, !tbaa !9
  %262 = call ptr @s2n_strerror(i32 noundef %261, ptr noundef nonnull @.str.6) #8
  %263 = load i32, ptr %260, align 4, !tbaa !9
  %264 = call ptr @s2n_strerror_debug(i32 noundef %263, ptr noundef nonnull @.str.6) #8
  %265 = load i32, ptr %246, align 4, !tbaa !9
  %266 = call ptr @strerror(i32 noundef %265) #8
  %267 = load i32, ptr %246, align 4, !tbaa !9
  %268 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %258, ptr noundef nonnull %.str.7.sink135, i32 noundef %259, ptr noundef nonnull @.str.38, ptr noundef nonnull @.str.5, i32 noundef 383, ptr noundef %262, ptr noundef %264, ptr noundef %266, i32 noundef %267) #10
  call void @exit(i32 noundef 1) #11
  unreachable

269:                                              ; preds = %215, %242
  %270 = load i32, ptr @test_count, align 4, !tbaa !9
  %271 = add nsw i32 %270, 1
  store i32 %271, ptr @test_count, align 4, !tbaa !9
  %272 = call ptr @s2n_get_server_name(ptr noundef null) #8
  %273 = icmp eq ptr %272, null
  br i1 %273, label %298, label %274

274:                                              ; preds = %269
  %275 = tail call ptr @__errno_location() #9
  %276 = load i32, ptr %275, align 4, !tbaa !9
  %277 = load ptr, ptr @stderr, align 8, !tbaa !5
  %278 = call i32 @s2n_print_stacktrace(ptr noundef %277) #8
  %279 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %280 = trunc nuw i8 %279 to i1
  br i1 %280, label %281, label %285

281:                                              ; preds = %274
  %282 = load ptr, ptr @stderr, align 8, !tbaa !5
  %283 = call i32 @fileno(ptr noundef %282) #8
  %284 = call i32 @isatty(i32 noundef %283) #8
  %.not36 = icmp eq i32 %284, 0
  br i1 %.not36, label %285, label %286

285:                                              ; preds = %281, %274
  br label %286

286:                                              ; preds = %281, %285
  %.str.7.sink146 = phi ptr [ @.str.7, %285 ], [ @.str.3, %281 ]
  store i32 %276, ptr %275, align 4, !tbaa !9
  %287 = load ptr, ptr @stderr, align 8, !tbaa !5
  %288 = load i32, ptr @test_count, align 4, !tbaa !9
  %289 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %290 = load i32, ptr %289, align 4, !tbaa !9
  %291 = call ptr @s2n_strerror(i32 noundef %290, ptr noundef nonnull @.str.6) #8
  %292 = load i32, ptr %289, align 4, !tbaa !9
  %293 = call ptr @s2n_strerror_debug(i32 noundef %292, ptr noundef nonnull @.str.6) #8
  %294 = load i32, ptr %275, align 4, !tbaa !9
  %295 = call ptr @strerror(i32 noundef %294) #8
  %296 = load i32, ptr %275, align 4, !tbaa !9
  %297 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %287, ptr noundef nonnull %.str.7.sink146, i32 noundef %288, ptr noundef nonnull @.str.39, ptr noundef nonnull @.str.5, i32 noundef 387, ptr noundef %291, ptr noundef %293, ptr noundef %295, i32 noundef %296) #10
  call void @exit(i32 noundef 1) #11
  unreachable

298:                                              ; preds = %269
  %299 = load i32, ptr @test_count, align 4, !tbaa !9
  %300 = add nsw i32 %299, 1
  store i32 %300, ptr @test_count, align 4, !tbaa !9
  %301 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %302 = load i32, ptr %301, align 4, !tbaa !9
  %303 = icmp eq i32 %302, 402653193
  br i1 %303, label %327, label %304

304:                                              ; preds = %298
  %305 = tail call ptr @__errno_location() #9
  %306 = load i32, ptr %305, align 4, !tbaa !9
  %307 = load ptr, ptr @stderr, align 8, !tbaa !5
  %308 = call i32 @s2n_print_stacktrace(ptr noundef %307) #8
  %309 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %310 = trunc nuw i8 %309 to i1
  br i1 %310, label %311, label %315

311:                                              ; preds = %304
  %312 = load ptr, ptr @stderr, align 8, !tbaa !5
  %313 = call i32 @fileno(ptr noundef %312) #8
  %314 = call i32 @isatty(i32 noundef %313) #8
  %.not37 = icmp eq i32 %314, 0
  br i1 %.not37, label %315, label %316

315:                                              ; preds = %311, %304
  br label %316

316:                                              ; preds = %311, %315
  %.str.7.sink157 = phi ptr [ @.str.7, %315 ], [ @.str.3, %311 ]
  store i32 %306, ptr %305, align 4, !tbaa !9
  %317 = load ptr, ptr @stderr, align 8, !tbaa !5
  %318 = load i32, ptr @test_count, align 4, !tbaa !9
  %319 = load i32, ptr %301, align 4, !tbaa !9
  %320 = call ptr @s2n_strerror(i32 noundef %319, ptr noundef nonnull @.str.6) #8
  %321 = load i32, ptr %301, align 4, !tbaa !9
  %322 = call ptr @s2n_strerror_debug(i32 noundef %321, ptr noundef nonnull @.str.6) #8
  %323 = load i32, ptr %305, align 4, !tbaa !9
  %324 = call ptr @strerror(i32 noundef %323) #8
  %325 = load i32, ptr %305, align 4, !tbaa !9
  %326 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %317, ptr noundef nonnull %.str.7.sink157, i32 noundef %318, ptr noundef nonnull @.str.40, ptr noundef nonnull @.str.5, i32 noundef 388, ptr noundef %320, ptr noundef %322, ptr noundef %324, i32 noundef %325) #10
  call void @exit(i32 noundef 1) #11
  unreachable

327:                                              ; preds = %298
  %328 = add nsw i32 %299, 2
  store i32 %328, ptr @test_count, align 4, !tbaa !9
  %329 = load ptr, ptr %4, align 8, !tbaa !5
  %330 = call i32 @server_recv(ptr noundef %329)
  %331 = icmp eq i32 %330, -1
  br i1 %331, label %332, label %355

332:                                              ; preds = %327
  %333 = tail call ptr @__errno_location() #9
  %334 = load i32, ptr %333, align 4, !tbaa !9
  %335 = load ptr, ptr @stderr, align 8, !tbaa !5
  %336 = call i32 @s2n_print_stacktrace(ptr noundef %335) #8
  %337 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %338 = trunc nuw i8 %337 to i1
  br i1 %338, label %339, label %343

339:                                              ; preds = %332
  %340 = load ptr, ptr @stderr, align 8, !tbaa !5
  %341 = call i32 @fileno(ptr noundef %340) #8
  %342 = call i32 @isatty(i32 noundef %341) #8
  %.not39 = icmp eq i32 %342, 0
  br i1 %.not39, label %343, label %344

343:                                              ; preds = %339, %332
  br label %344

344:                                              ; preds = %339, %343
  %.str.7.sink166 = phi ptr [ @.str.7, %343 ], [ @.str.3, %339 ]
  store i32 %334, ptr %333, align 4, !tbaa !9
  %345 = load ptr, ptr @stderr, align 8, !tbaa !5
  %346 = load i32, ptr @test_count, align 4, !tbaa !9
  %347 = load i32, ptr %301, align 4, !tbaa !9
  %348 = call ptr @s2n_strerror(i32 noundef %347, ptr noundef nonnull @.str.6) #8
  %349 = load i32, ptr %301, align 4, !tbaa !9
  %350 = call ptr @s2n_strerror_debug(i32 noundef %349, ptr noundef nonnull @.str.6) #8
  %351 = load i32, ptr %333, align 4, !tbaa !9
  %352 = call ptr @strerror(i32 noundef %351) #8
  %353 = load i32, ptr %333, align 4, !tbaa !9
  %354 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %345, ptr noundef nonnull %.str.7.sink166, i32 noundef %346, ptr noundef nonnull @.str.42, ptr noundef nonnull @.str.5, i32 noundef 390, ptr noundef %348, ptr noundef %350, ptr noundef %352, i32 noundef %353) #10
  call void @exit(i32 noundef 1) #11
  unreachable

355:                                              ; preds = %327
  %356 = load i32, ptr @test_count, align 4, !tbaa !9
  %357 = add nsw i32 %356, 1
  store i32 %357, ptr @test_count, align 4, !tbaa !9
  %358 = load ptr, ptr %4, align 8, !tbaa !5
  %359 = load i32, ptr %5, align 4, !tbaa !9
  %360 = load ptr, ptr %6, align 8, !tbaa !5
  %361 = call i32 @test_case_clean(ptr noundef %358, i32 noundef %359, ptr noundef nonnull %67, ptr noundef nonnull %3, ptr noundef %1, ptr noundef %360)
  %362 = icmp eq i32 %361, -1
  br i1 %362, label %363, label %386

363:                                              ; preds = %355
  %364 = tail call ptr @__errno_location() #9
  %365 = load i32, ptr %364, align 4, !tbaa !9
  %366 = load ptr, ptr @stderr, align 8, !tbaa !5
  %367 = call i32 @s2n_print_stacktrace(ptr noundef %366) #8
  %368 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %369 = trunc nuw i8 %368 to i1
  br i1 %369, label %370, label %374

370:                                              ; preds = %363
  %371 = load ptr, ptr @stderr, align 8, !tbaa !5
  %372 = call i32 @fileno(ptr noundef %371) #8
  %373 = call i32 @isatty(i32 noundef %372) #8
  %.not38 = icmp eq i32 %373, 0
  br i1 %.not38, label %374, label %375

374:                                              ; preds = %370, %363
  br label %375

375:                                              ; preds = %370, %374
  %.str.7.sink175 = phi ptr [ @.str.7, %374 ], [ @.str.3, %370 ]
  store i32 %365, ptr %364, align 4, !tbaa !9
  %376 = load ptr, ptr @stderr, align 8, !tbaa !5
  %377 = load i32, ptr @test_count, align 4, !tbaa !9
  %378 = load i32, ptr %301, align 4, !tbaa !9
  %379 = call ptr @s2n_strerror(i32 noundef %378, ptr noundef nonnull @.str.6) #8
  %380 = load i32, ptr %301, align 4, !tbaa !9
  %381 = call ptr @s2n_strerror_debug(i32 noundef %380, ptr noundef nonnull @.str.6) #8
  %382 = load i32, ptr %364, align 4, !tbaa !9
  %383 = call ptr @strerror(i32 noundef %382) #8
  %384 = load i32, ptr %364, align 4, !tbaa !9
  %385 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %376, ptr noundef nonnull %.str.7.sink175, i32 noundef %377, ptr noundef nonnull @.str.43, ptr noundef nonnull @.str.5, i32 noundef 392, ptr noundef %379, ptr noundef %381, ptr noundef %383, i32 noundef %384) #10
  call void @exit(i32 noundef 1) #11
  unreachable

386:                                              ; preds = %355
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  ret i32 0
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #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 #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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nofree 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 #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 = { 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 #7 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"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 = !{}


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