; 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.client_hello_context = type { i32, i32, i32, i32, ptr, 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.4 = external hidden unnamed_addr constant [59 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.9 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [76 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 i32 @s2n_connection_set_config(ptr noundef, ptr noundef) #1

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

declare i32 @s2n_client_hello_cb_done(ptr noundef) #1

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

declare i32 @s2n_print_stacktrace(ptr noundef) #1

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

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

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

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

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

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

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

declare i32 @s2n_connection_server_name_extension_used(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @s2n_negotiate_nonblocking_ch_cb(ptr noundef %0, ptr noundef %1, i1 noundef zeroext %2) #6 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %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
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %21 = zext i1 %2 to i8
  store i8 %21, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  br label %22

22:                                               ; preds = %3
  %23 = load i32, ptr @test_count, align 4, !tbaa !11
  %24 = add nsw i32 %23, 1
  store i32 %24, ptr @test_count, align 4, !tbaa !11
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = icmp eq ptr %25, null
  br i1 %26, label %27, label %80

27:                                               ; preds = %22
  br label %28

28:                                               ; preds = %27
  br label %29

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

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

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

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

75:                                               ; preds = %58, %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %76

76:                                               ; preds = %75
  br label %77

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

78:                                               ; No predecessors!
  br label %79

79:                                               ; preds = %78
  br label %80

80:                                               ; preds = %79, %22
  br label %81

81:                                               ; preds = %80
  br label %82

82:                                               ; preds = %81
  br label %83

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr @test_count, align 4, !tbaa !11
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr @test_count, align 4, !tbaa !11
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = call i32 @s2n_negotiate(ptr noundef %88, ptr noundef %7)
  %90 = icmp eq i32 %89, -1
  br i1 %90, label %144, label %91

91:                                               ; preds = %85
  br label %92

92:                                               ; preds = %91
  br label %93

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

100:                                              ; preds = %93
  %101 = load ptr, ptr @stderr, align 8, !tbaa !5
  %102 = call i32 @fileno(ptr noundef %101) #7
  %103 = call i32 @isatty(i32 noundef %102) #7
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %122

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

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

139:                                              ; preds = %122, %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %140

140:                                              ; preds = %139
  br label %141

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

142:                                              ; No predecessors!
  br label %143

143:                                              ; preds = %142
  br label %144

144:                                              ; preds = %143, %85
  br label %145

145:                                              ; preds = %144
  br label %146

146:                                              ; preds = %145
  br label %147

147:                                              ; preds = %146
  %148 = load i32, ptr @test_count, align 4, !tbaa !11
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr @test_count, align 4, !tbaa !11
  %150 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %151 = load i32, ptr %150, align 4, !tbaa !11
  %152 = icmp eq i32 %151, 201326593
  br i1 %152, label %206, label %153

153:                                              ; preds = %147
  br label %154

154:                                              ; preds = %153
  br label %155

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

162:                                              ; preds = %155
  %163 = load ptr, ptr @stderr, align 8, !tbaa !5
  %164 = call i32 @fileno(ptr noundef %163) #7
  %165 = call i32 @isatty(i32 noundef %164) #7
  %166 = icmp ne i32 %165, 0
  br i1 %166, label %167, label %184

167:                                              ; preds = %162
  %168 = load i32, ptr %10, align 4, !tbaa !11
  %169 = call ptr @__errno_location() #8
  store i32 %168, ptr %169, align 4, !tbaa !11
  %170 = load ptr, ptr @stderr, align 8, !tbaa !5
  %171 = load i32, ptr @test_count, align 4, !tbaa !11
  %172 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %173 = load i32, ptr %172, align 4, !tbaa !11
  %174 = call ptr @s2n_strerror(i32 noundef %173, ptr noundef @.str.6)
  %175 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %176 = load i32, ptr %175, align 4, !tbaa !11
  %177 = call ptr @s2n_strerror_debug(i32 noundef %176, ptr noundef @.str.6)
  %178 = call ptr @__errno_location() #8
  %179 = load i32, ptr %178, align 4, !tbaa !11
  %180 = call ptr @strerror(i32 noundef %179) #7
  %181 = call ptr @__errno_location() #8
  %182 = load i32, ptr %181, align 4, !tbaa !11
  %183 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %170, ptr noundef @.str.3, i32 noundef %171, ptr noundef @.str.12, ptr noundef @.str.5, i32 noundef 191, ptr noundef %174, ptr noundef %177, ptr noundef %180, i32 noundef %182) #7
  br label %201

184:                                              ; preds = %162, %155
  %185 = load i32, ptr %10, align 4, !tbaa !11
  %186 = call ptr @__errno_location() #8
  store i32 %185, ptr %186, align 4, !tbaa !11
  %187 = load ptr, ptr @stderr, align 8, !tbaa !5
  %188 = load i32, ptr @test_count, align 4, !tbaa !11
  %189 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %190 = load i32, ptr %189, align 4, !tbaa !11
  %191 = call ptr @s2n_strerror(i32 noundef %190, ptr noundef @.str.6)
  %192 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %193 = load i32, ptr %192, align 4, !tbaa !11
  %194 = call ptr @s2n_strerror_debug(i32 noundef %193, ptr noundef @.str.6)
  %195 = call ptr @__errno_location() #8
  %196 = load i32, ptr %195, align 4, !tbaa !11
  %197 = call ptr @strerror(i32 noundef %196) #7
  %198 = call ptr @__errno_location() #8
  %199 = load i32, ptr %198, align 4, !tbaa !11
  %200 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %187, ptr noundef @.str.7, i32 noundef %188, ptr noundef @.str.12, ptr noundef @.str.5, i32 noundef 191, ptr noundef %191, ptr noundef %194, ptr noundef %197, i32 noundef %199) #7
  br label %201

201:                                              ; preds = %184, %167
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %202

202:                                              ; preds = %201
  br label %203

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

204:                                              ; No predecessors!
  br label %205

205:                                              ; preds = %204
  br label %206

206:                                              ; preds = %205, %147
  br label %207

207:                                              ; preds = %206
  br label %208

208:                                              ; preds = %207
  br label %209

209:                                              ; preds = %208
  %210 = load i32, ptr @test_count, align 4, !tbaa !11
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr @test_count, align 4, !tbaa !11
  %212 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %213 = load i32, ptr %212, align 4, !tbaa !11
  %214 = call ptr @s2n_strerror_debug(i32 noundef %213, ptr noundef @.str.6)
  %215 = icmp eq ptr %214, null
  br i1 %215, label %216, label %269

216:                                              ; preds = %209
  br label %217

217:                                              ; preds = %216
  br label %218

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

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

230:                                              ; preds = %225
  %231 = load i32, ptr %11, align 4, !tbaa !11
  %232 = call ptr @__errno_location() #8
  store i32 %231, ptr %232, align 4, !tbaa !11
  %233 = load ptr, ptr @stderr, align 8, !tbaa !5
  %234 = load i32, ptr @test_count, align 4, !tbaa !11
  %235 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %236 = load i32, ptr %235, align 4, !tbaa !11
  %237 = call ptr @s2n_strerror(i32 noundef %236, ptr noundef @.str.6)
  %238 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %239 = load i32, ptr %238, align 4, !tbaa !11
  %240 = call ptr @s2n_strerror_debug(i32 noundef %239, ptr noundef @.str.6)
  %241 = call ptr @__errno_location() #8
  %242 = load i32, ptr %241, align 4, !tbaa !11
  %243 = call ptr @strerror(i32 noundef %242) #7
  %244 = call ptr @__errno_location() #8
  %245 = load i32, ptr %244, align 4, !tbaa !11
  %246 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %233, ptr noundef @.str.3, i32 noundef %234, ptr noundef @.str.13, ptr noundef @.str.5, i32 noundef 191, ptr noundef %237, ptr noundef %240, ptr noundef %243, i32 noundef %245) #7
  br label %264

247:                                              ; preds = %225, %218
  %248 = load i32, ptr %11, align 4, !tbaa !11
  %249 = call ptr @__errno_location() #8
  store i32 %248, ptr %249, align 4, !tbaa !11
  %250 = load ptr, ptr @stderr, align 8, !tbaa !5
  %251 = load i32, ptr @test_count, align 4, !tbaa !11
  %252 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %253 = load i32, ptr %252, align 4, !tbaa !11
  %254 = call ptr @s2n_strerror(i32 noundef %253, ptr noundef @.str.6)
  %255 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %256 = load i32, ptr %255, align 4, !tbaa !11
  %257 = call ptr @s2n_strerror_debug(i32 noundef %256, ptr noundef @.str.6)
  %258 = call ptr @__errno_location() #8
  %259 = load i32, ptr %258, align 4, !tbaa !11
  %260 = call ptr @strerror(i32 noundef %259) #7
  %261 = call ptr @__errno_location() #8
  %262 = load i32, ptr %261, align 4, !tbaa !11
  %263 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %250, ptr noundef @.str.7, i32 noundef %251, ptr noundef @.str.13, ptr noundef @.str.5, i32 noundef 191, ptr noundef %254, ptr noundef %257, ptr noundef %260, i32 noundef %262) #7
  br label %264

264:                                              ; preds = %247, %230
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %265

265:                                              ; preds = %264
  br label %266

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

267:                                              ; No predecessors!
  br label %268

268:                                              ; preds = %267
  br label %269

269:                                              ; preds = %268, %209
  br label %270

270:                                              ; preds = %269
  br label %271

271:                                              ; preds = %270
  br label %272

272:                                              ; preds = %271
  br label %273

273:                                              ; preds = %272
  br label %274

274:                                              ; preds = %273
  %275 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 0, ptr %275, align 4, !tbaa !11
  call void @s2n_debug_info_reset()
  %276 = call ptr @__errno_location() #8
  store i32 0, ptr %276, align 4, !tbaa !11
  br label %277

277:                                              ; preds = %274
  br label %278

278:                                              ; preds = %277
  br label %279

279:                                              ; preds = %278
  br label %280

280:                                              ; preds = %279
  br label %281

281:                                              ; preds = %280
  %282 = load i32, ptr @test_count, align 4, !tbaa !11
  %283 = add nsw i32 %282, 1
  store i32 %283, ptr @test_count, align 4, !tbaa !11
  %284 = load i32, ptr %7, align 4, !tbaa !11
  %285 = icmp eq i32 %284, 3
  br i1 %285, label %339, label %286

286:                                              ; preds = %281
  br label %287

287:                                              ; preds = %286
  br label %288

288:                                              ; preds = %287
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %289 = call ptr @__errno_location() #8
  %290 = load i32, ptr %289, align 4, !tbaa !11
  store i32 %290, ptr %12, align 4, !tbaa !11
  %291 = load ptr, ptr @stderr, align 8, !tbaa !5
  %292 = call i32 @s2n_print_stacktrace(ptr noundef %291)
  %293 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !9, !range !13, !noundef !14
  %294 = trunc i8 %293 to i1
  br i1 %294, label %295, label %317

295:                                              ; preds = %288
  %296 = load ptr, ptr @stderr, align 8, !tbaa !5
  %297 = call i32 @fileno(ptr noundef %296) #7
  %298 = call i32 @isatty(i32 noundef %297) #7
  %299 = icmp ne i32 %298, 0
  br i1 %299, label %300, label %317

300:                                              ; preds = %295
  %301 = load i32, ptr %12, align 4, !tbaa !11
  %302 = call ptr @__errno_location() #8
  store i32 %301, ptr %302, align 4, !tbaa !11
  %303 = load ptr, ptr @stderr, align 8, !tbaa !5
  %304 = load i32, ptr @test_count, align 4, !tbaa !11
  %305 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %306 = load i32, ptr %305, align 4, !tbaa !11
  %307 = call ptr @s2n_strerror(i32 noundef %306, ptr noundef @.str.6)
  %308 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %309 = load i32, ptr %308, align 4, !tbaa !11
  %310 = call ptr @s2n_strerror_debug(i32 noundef %309, ptr noundef @.str.6)
  %311 = call ptr @__errno_location() #8
  %312 = load i32, ptr %311, align 4, !tbaa !11
  %313 = call ptr @strerror(i32 noundef %312) #7
  %314 = call ptr @__errno_location() #8
  %315 = load i32, ptr %314, align 4, !tbaa !11
  %316 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %303, ptr noundef @.str.3, i32 noundef %304, ptr noundef @.str.14, ptr noundef @.str.5, i32 noundef 192, ptr noundef %307, ptr noundef %310, ptr noundef %313, i32 noundef %315) #7
  br label %334

317:                                              ; preds = %295, %288
  %318 = load i32, ptr %12, align 4, !tbaa !11
  %319 = call ptr @__errno_location() #8
  store i32 %318, ptr %319, align 4, !tbaa !11
  %320 = load ptr, ptr @stderr, align 8, !tbaa !5
  %321 = load i32, ptr @test_count, align 4, !tbaa !11
  %322 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %323 = load i32, ptr %322, align 4, !tbaa !11
  %324 = call ptr @s2n_strerror(i32 noundef %323, ptr noundef @.str.6)
  %325 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %326 = load i32, ptr %325, align 4, !tbaa !11
  %327 = call ptr @s2n_strerror_debug(i32 noundef %326, ptr noundef @.str.6)
  %328 = call ptr @__errno_location() #8
  %329 = load i32, ptr %328, align 4, !tbaa !11
  %330 = call ptr @strerror(i32 noundef %329) #7
  %331 = call ptr @__errno_location() #8
  %332 = load i32, ptr %331, align 4, !tbaa !11
  %333 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %320, ptr noundef @.str.7, i32 noundef %321, ptr noundef @.str.14, ptr noundef @.str.5, i32 noundef 192, ptr noundef %324, ptr noundef %327, ptr noundef %330, i32 noundef %332) #7
  br label %334

334:                                              ; preds = %317, %300
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %335

335:                                              ; preds = %334
  br label %336

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

337:                                              ; No predecessors!
  br label %338

338:                                              ; preds = %337
  br label %339

339:                                              ; preds = %338, %281
  br label %340

340:                                              ; preds = %339
  br label %341

341:                                              ; preds = %340
  br label %342

342:                                              ; preds = %341
  %343 = load i32, ptr @test_count, align 4, !tbaa !11
  %344 = add nsw i32 %343, 1
  store i32 %344, ptr @test_count, align 4, !tbaa !11
  %345 = load ptr, ptr %5, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct.client_hello_context, ptr %345, i32 0, i32 0
  %347 = load i32, ptr %346, align 8, !tbaa !15
  %348 = icmp eq i32 %347, 1
  br i1 %348, label %402, label %349

349:                                              ; preds = %342
  br label %350

350:                                              ; preds = %349
  br label %351

351:                                              ; preds = %350
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %352 = call ptr @__errno_location() #8
  %353 = load i32, ptr %352, align 4, !tbaa !11
  store i32 %353, ptr %13, align 4, !tbaa !11
  %354 = load ptr, ptr @stderr, align 8, !tbaa !5
  %355 = call i32 @s2n_print_stacktrace(ptr noundef %354)
  %356 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !9, !range !13, !noundef !14
  %357 = trunc i8 %356 to i1
  br i1 %357, label %358, label %380

358:                                              ; preds = %351
  %359 = load ptr, ptr @stderr, align 8, !tbaa !5
  %360 = call i32 @fileno(ptr noundef %359) #7
  %361 = call i32 @isatty(i32 noundef %360) #7
  %362 = icmp ne i32 %361, 0
  br i1 %362, label %363, label %380

363:                                              ; preds = %358
  %364 = load i32, ptr %13, align 4, !tbaa !11
  %365 = call ptr @__errno_location() #8
  store i32 %364, ptr %365, align 4, !tbaa !11
  %366 = load ptr, ptr @stderr, align 8, !tbaa !5
  %367 = load i32, ptr @test_count, align 4, !tbaa !11
  %368 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %369 = load i32, ptr %368, align 4, !tbaa !11
  %370 = call ptr @s2n_strerror(i32 noundef %369, ptr noundef @.str.6)
  %371 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %372 = load i32, ptr %371, align 4, !tbaa !11
  %373 = call ptr @s2n_strerror_debug(i32 noundef %372, ptr noundef @.str.6)
  %374 = call ptr @__errno_location() #8
  %375 = load i32, ptr %374, align 4, !tbaa !11
  %376 = call ptr @strerror(i32 noundef %375) #7
  %377 = call ptr @__errno_location() #8
  %378 = load i32, ptr %377, align 4, !tbaa !11
  %379 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %366, ptr noundef @.str.3, i32 noundef %367, ptr noundef @.str.15, ptr noundef @.str.5, i32 noundef 195, ptr noundef %370, ptr noundef %373, ptr noundef %376, i32 noundef %378) #7
  br label %397

380:                                              ; preds = %358, %351
  %381 = load i32, ptr %13, align 4, !tbaa !11
  %382 = call ptr @__errno_location() #8
  store i32 %381, ptr %382, align 4, !tbaa !11
  %383 = load ptr, ptr @stderr, align 8, !tbaa !5
  %384 = load i32, ptr @test_count, align 4, !tbaa !11
  %385 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %386 = load i32, ptr %385, align 4, !tbaa !11
  %387 = call ptr @s2n_strerror(i32 noundef %386, ptr noundef @.str.6)
  %388 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %389 = load i32, ptr %388, align 4, !tbaa !11
  %390 = call ptr @s2n_strerror_debug(i32 noundef %389, ptr noundef @.str.6)
  %391 = call ptr @__errno_location() #8
  %392 = load i32, ptr %391, align 4, !tbaa !11
  %393 = call ptr @strerror(i32 noundef %392) #7
  %394 = call ptr @__errno_location() #8
  %395 = load i32, ptr %394, align 4, !tbaa !11
  %396 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %383, ptr noundef @.str.7, i32 noundef %384, ptr noundef @.str.15, ptr noundef @.str.5, i32 noundef 195, ptr noundef %387, ptr noundef %390, ptr noundef %393, i32 noundef %395) #7
  br label %397

397:                                              ; preds = %380, %363
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %398

398:                                              ; preds = %397
  br label %399

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

400:                                              ; No predecessors!
  br label %401

401:                                              ; preds = %400
  br label %402

402:                                              ; preds = %401, %342
  br label %403

403:                                              ; preds = %402
  br label %404

404:                                              ; preds = %403
  %405 = load ptr, ptr %5, align 8, !tbaa !5
  %406 = getelementptr inbounds %struct.client_hello_context, ptr %405, i32 0, i32 2
  %407 = load i32, ptr %406, align 8, !tbaa !17
  %408 = icmp ne i32 %407, 0
  br i1 %408, label %409, label %475

409:                                              ; preds = %404
  br label %410

410:                                              ; preds = %409
  %411 = load i32, ptr @test_count, align 4, !tbaa !11
  %412 = add nsw i32 %411, 1
  store i32 %412, ptr @test_count, align 4, !tbaa !11
  %413 = load ptr, ptr %4, align 8, !tbaa !5
  %414 = load ptr, ptr %5, align 8, !tbaa !5
  %415 = getelementptr inbounds %struct.client_hello_context, ptr %414, i32 0, i32 4
  %416 = load ptr, ptr %415, align 8, !tbaa !18
  %417 = call i32 @s2n_connection_set_config(ptr noundef %413, ptr noundef %416)
  %418 = icmp eq i32 %417, -1
  br i1 %418, label %419, label %472

419:                                              ; preds = %410
  br label %420

420:                                              ; preds = %419
  br label %421

421:                                              ; preds = %420
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %422 = call ptr @__errno_location() #8
  %423 = load i32, ptr %422, align 4, !tbaa !11
  store i32 %423, ptr %14, align 4, !tbaa !11
  %424 = load ptr, ptr @stderr, align 8, !tbaa !5
  %425 = call i32 @s2n_print_stacktrace(ptr noundef %424)
  %426 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !9, !range !13, !noundef !14
  %427 = trunc i8 %426 to i1
  br i1 %427, label %428, label %450

428:                                              ; preds = %421
  %429 = load ptr, ptr @stderr, align 8, !tbaa !5
  %430 = call i32 @fileno(ptr noundef %429) #7
  %431 = call i32 @isatty(i32 noundef %430) #7
  %432 = icmp ne i32 %431, 0
  br i1 %432, label %433, label %450

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

450:                                              ; preds = %428, %421
  %451 = load i32, ptr %14, align 4, !tbaa !11
  %452 = call ptr @__errno_location() #8
  store i32 %451, ptr %452, align 4, !tbaa !11
  %453 = load ptr, ptr @stderr, align 8, !tbaa !5
  %454 = load i32, ptr @test_count, align 4, !tbaa !11
  %455 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %456 = load i32, ptr %455, align 4, !tbaa !11
  %457 = call ptr @s2n_strerror(i32 noundef %456, ptr noundef @.str.6)
  %458 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %459 = load i32, ptr %458, align 4, !tbaa !11
  %460 = call ptr @s2n_strerror_debug(i32 noundef %459, ptr noundef @.str.6)
  %461 = call ptr @__errno_location() #8
  %462 = load i32, ptr %461, align 4, !tbaa !11
  %463 = call ptr @strerror(i32 noundef %462) #7
  %464 = call ptr @__errno_location() #8
  %465 = load i32, ptr %464, align 4, !tbaa !11
  %466 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %453, ptr noundef @.str.7, i32 noundef %454, ptr noundef @.str.16, ptr noundef @.str.5, i32 noundef 199, ptr noundef %457, ptr noundef %460, ptr noundef %463, i32 noundef %465) #7
  br label %467

467:                                              ; preds = %450, %433
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %468

468:                                              ; preds = %467
  br label %469

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

470:                                              ; No predecessors!
  br label %471

471:                                              ; preds = %470
  br label %472

472:                                              ; preds = %471, %410
  br label %473

473:                                              ; preds = %472
  br label %474

474:                                              ; preds = %473
  br label %475

475:                                              ; preds = %474, %404
  br label %476

476:                                              ; preds = %475
  br label %477

477:                                              ; preds = %476
  br label %478

478:                                              ; preds = %477
  %479 = load i32, ptr @test_count, align 4, !tbaa !11
  %480 = add nsw i32 %479, 1
  store i32 %480, ptr @test_count, align 4, !tbaa !11
  %481 = load ptr, ptr %4, align 8, !tbaa !5
  %482 = call i32 @s2n_negotiate(ptr noundef %481, ptr noundef %7)
  %483 = icmp eq i32 %482, -1
  br i1 %483, label %537, label %484

484:                                              ; preds = %478
  br label %485

485:                                              ; preds = %484
  br label %486

486:                                              ; preds = %485
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %487 = call ptr @__errno_location() #8
  %488 = load i32, ptr %487, align 4, !tbaa !11
  store i32 %488, ptr %15, align 4, !tbaa !11
  %489 = load ptr, ptr @stderr, align 8, !tbaa !5
  %490 = call i32 @s2n_print_stacktrace(ptr noundef %489)
  %491 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !9, !range !13, !noundef !14
  %492 = trunc i8 %491 to i1
  br i1 %492, label %493, label %515

493:                                              ; preds = %486
  %494 = load ptr, ptr @stderr, align 8, !tbaa !5
  %495 = call i32 @fileno(ptr noundef %494) #7
  %496 = call i32 @isatty(i32 noundef %495) #7
  %497 = icmp ne i32 %496, 0
  br i1 %497, label %498, label %515

498:                                              ; preds = %493
  %499 = load i32, ptr %15, align 4, !tbaa !11
  %500 = call ptr @__errno_location() #8
  store i32 %499, ptr %500, align 4, !tbaa !11
  %501 = load ptr, ptr @stderr, align 8, !tbaa !5
  %502 = load i32, ptr @test_count, align 4, !tbaa !11
  %503 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %504 = load i32, ptr %503, align 4, !tbaa !11
  %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 !11
  %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 !11
  %511 = call ptr @strerror(i32 noundef %510) #7
  %512 = call ptr @__errno_location() #8
  %513 = load i32, ptr %512, align 4, !tbaa !11
  %514 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %501, ptr noundef @.str.3, i32 noundef %502, ptr noundef @.str.11, ptr noundef @.str.5, i32 noundef 202, ptr noundef %505, ptr noundef %508, ptr noundef %511, i32 noundef %513) #7
  br label %532

515:                                              ; preds = %493, %486
  %516 = load i32, ptr %15, align 4, !tbaa !11
  %517 = call ptr @__errno_location() #8
  store i32 %516, ptr %517, align 4, !tbaa !11
  %518 = load ptr, ptr @stderr, align 8, !tbaa !5
  %519 = load i32, ptr @test_count, align 4, !tbaa !11
  %520 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %521 = load i32, ptr %520, align 4, !tbaa !11
  %522 = call ptr @s2n_strerror(i32 noundef %521, ptr noundef @.str.6)
  %523 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %524 = load i32, ptr %523, align 4, !tbaa !11
  %525 = call ptr @s2n_strerror_debug(i32 noundef %524, ptr noundef @.str.6)
  %526 = call ptr @__errno_location() #8
  %527 = load i32, ptr %526, align 4, !tbaa !11
  %528 = call ptr @strerror(i32 noundef %527) #7
  %529 = call ptr @__errno_location() #8
  %530 = load i32, ptr %529, align 4, !tbaa !11
  %531 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %518, ptr noundef @.str.7, i32 noundef %519, ptr noundef @.str.11, ptr noundef @.str.5, i32 noundef 202, ptr noundef %522, ptr noundef %525, ptr noundef %528, i32 noundef %530) #7
  br label %532

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

533:                                              ; preds = %532
  br label %534

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

535:                                              ; No predecessors!
  br label %536

536:                                              ; preds = %535
  br label %537

537:                                              ; preds = %536, %478
  br label %538

538:                                              ; preds = %537
  br label %539

539:                                              ; preds = %538
  br label %540

540:                                              ; preds = %539
  %541 = load i32, ptr @test_count, align 4, !tbaa !11
  %542 = add nsw i32 %541, 1
  store i32 %542, ptr @test_count, align 4, !tbaa !11
  %543 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %544 = load i32, ptr %543, align 4, !tbaa !11
  %545 = icmp eq i32 %544, 201326593
  br i1 %545, label %599, label %546

546:                                              ; preds = %540
  br label %547

547:                                              ; preds = %546
  br label %548

548:                                              ; preds = %547
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %549 = call ptr @__errno_location() #8
  %550 = load i32, ptr %549, align 4, !tbaa !11
  store i32 %550, ptr %16, align 4, !tbaa !11
  %551 = load ptr, ptr @stderr, align 8, !tbaa !5
  %552 = call i32 @s2n_print_stacktrace(ptr noundef %551)
  %553 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !9, !range !13, !noundef !14
  %554 = trunc i8 %553 to i1
  br i1 %554, label %555, label %577

555:                                              ; preds = %548
  %556 = load ptr, ptr @stderr, align 8, !tbaa !5
  %557 = call i32 @fileno(ptr noundef %556) #7
  %558 = call i32 @isatty(i32 noundef %557) #7
  %559 = icmp ne i32 %558, 0
  br i1 %559, label %560, label %577

560:                                              ; preds = %555
  %561 = load i32, ptr %16, align 4, !tbaa !11
  %562 = call ptr @__errno_location() #8
  store i32 %561, ptr %562, align 4, !tbaa !11
  %563 = load ptr, ptr @stderr, align 8, !tbaa !5
  %564 = load i32, ptr @test_count, align 4, !tbaa !11
  %565 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %566 = load i32, ptr %565, align 4, !tbaa !11
  %567 = call ptr @s2n_strerror(i32 noundef %566, ptr noundef @.str.6)
  %568 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %569 = load i32, ptr %568, align 4, !tbaa !11
  %570 = call ptr @s2n_strerror_debug(i32 noundef %569, ptr noundef @.str.6)
  %571 = call ptr @__errno_location() #8
  %572 = load i32, ptr %571, align 4, !tbaa !11
  %573 = call ptr @strerror(i32 noundef %572) #7
  %574 = call ptr @__errno_location() #8
  %575 = load i32, ptr %574, align 4, !tbaa !11
  %576 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %563, ptr noundef @.str.3, i32 noundef %564, ptr noundef @.str.12, ptr noundef @.str.5, i32 noundef 202, ptr noundef %567, ptr noundef %570, ptr noundef %573, i32 noundef %575) #7
  br label %594

577:                                              ; preds = %555, %548
  %578 = load i32, ptr %16, align 4, !tbaa !11
  %579 = call ptr @__errno_location() #8
  store i32 %578, ptr %579, align 4, !tbaa !11
  %580 = load ptr, ptr @stderr, align 8, !tbaa !5
  %581 = load i32, ptr @test_count, align 4, !tbaa !11
  %582 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %583 = load i32, ptr %582, align 4, !tbaa !11
  %584 = call ptr @s2n_strerror(i32 noundef %583, ptr noundef @.str.6)
  %585 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %586 = load i32, ptr %585, align 4, !tbaa !11
  %587 = call ptr @s2n_strerror_debug(i32 noundef %586, ptr noundef @.str.6)
  %588 = call ptr @__errno_location() #8
  %589 = load i32, ptr %588, align 4, !tbaa !11
  %590 = call ptr @strerror(i32 noundef %589) #7
  %591 = call ptr @__errno_location() #8
  %592 = load i32, ptr %591, align 4, !tbaa !11
  %593 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %580, ptr noundef @.str.7, i32 noundef %581, ptr noundef @.str.12, ptr noundef @.str.5, i32 noundef 202, ptr noundef %584, ptr noundef %587, ptr noundef %590, i32 noundef %592) #7
  br label %594

594:                                              ; preds = %577, %560
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %595

595:                                              ; preds = %594
  br label %596

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

597:                                              ; No predecessors!
  br label %598

598:                                              ; preds = %597
  br label %599

599:                                              ; preds = %598, %540
  br label %600

600:                                              ; preds = %599
  br label %601

601:                                              ; preds = %600
  br label %602

602:                                              ; preds = %601
  %603 = load i32, ptr @test_count, align 4, !tbaa !11
  %604 = add nsw i32 %603, 1
  store i32 %604, ptr @test_count, align 4, !tbaa !11
  %605 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %606 = load i32, ptr %605, align 4, !tbaa !11
  %607 = call ptr @s2n_strerror_debug(i32 noundef %606, ptr noundef @.str.6)
  %608 = icmp eq ptr %607, null
  br i1 %608, label %609, label %662

609:                                              ; preds = %602
  br label %610

610:                                              ; preds = %609
  br label %611

611:                                              ; preds = %610
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %612 = call ptr @__errno_location() #8
  %613 = load i32, ptr %612, align 4, !tbaa !11
  store i32 %613, ptr %17, align 4, !tbaa !11
  %614 = load ptr, ptr @stderr, align 8, !tbaa !5
  %615 = call i32 @s2n_print_stacktrace(ptr noundef %614)
  %616 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !9, !range !13, !noundef !14
  %617 = trunc i8 %616 to i1
  br i1 %617, label %618, label %640

618:                                              ; preds = %611
  %619 = load ptr, ptr @stderr, align 8, !tbaa !5
  %620 = call i32 @fileno(ptr noundef %619) #7
  %621 = call i32 @isatty(i32 noundef %620) #7
  %622 = icmp ne i32 %621, 0
  br i1 %622, label %623, label %640

623:                                              ; preds = %618
  %624 = load i32, ptr %17, align 4, !tbaa !11
  %625 = call ptr @__errno_location() #8
  store i32 %624, ptr %625, align 4, !tbaa !11
  %626 = load ptr, ptr @stderr, align 8, !tbaa !5
  %627 = load i32, ptr @test_count, align 4, !tbaa !11
  %628 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %629 = load i32, ptr %628, align 4, !tbaa !11
  %630 = call ptr @s2n_strerror(i32 noundef %629, ptr noundef @.str.6)
  %631 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %632 = load i32, ptr %631, align 4, !tbaa !11
  %633 = call ptr @s2n_strerror_debug(i32 noundef %632, ptr noundef @.str.6)
  %634 = call ptr @__errno_location() #8
  %635 = load i32, ptr %634, align 4, !tbaa !11
  %636 = call ptr @strerror(i32 noundef %635) #7
  %637 = call ptr @__errno_location() #8
  %638 = load i32, ptr %637, align 4, !tbaa !11
  %639 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %626, ptr noundef @.str.3, i32 noundef %627, ptr noundef @.str.13, ptr noundef @.str.5, i32 noundef 202, ptr noundef %630, ptr noundef %633, ptr noundef %636, i32 noundef %638) #7
  br label %657

640:                                              ; preds = %618, %611
  %641 = load i32, ptr %17, align 4, !tbaa !11
  %642 = call ptr @__errno_location() #8
  store i32 %641, ptr %642, align 4, !tbaa !11
  %643 = load ptr, ptr @stderr, align 8, !tbaa !5
  %644 = load i32, ptr @test_count, align 4, !tbaa !11
  %645 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %646 = load i32, ptr %645, align 4, !tbaa !11
  %647 = call ptr @s2n_strerror(i32 noundef %646, ptr noundef @.str.6)
  %648 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %649 = load i32, ptr %648, align 4, !tbaa !11
  %650 = call ptr @s2n_strerror_debug(i32 noundef %649, ptr noundef @.str.6)
  %651 = call ptr @__errno_location() #8
  %652 = load i32, ptr %651, align 4, !tbaa !11
  %653 = call ptr @strerror(i32 noundef %652) #7
  %654 = call ptr @__errno_location() #8
  %655 = load i32, ptr %654, align 4, !tbaa !11
  %656 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %643, ptr noundef @.str.7, i32 noundef %644, ptr noundef @.str.13, ptr noundef @.str.5, i32 noundef 202, ptr noundef %647, ptr noundef %650, ptr noundef %653, i32 noundef %655) #7
  br label %657

657:                                              ; preds = %640, %623
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %658

658:                                              ; preds = %657
  br label %659

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

660:                                              ; No predecessors!
  br label %661

661:                                              ; preds = %660
  br label %662

662:                                              ; preds = %661, %602
  br label %663

663:                                              ; preds = %662
  br label %664

664:                                              ; preds = %663
  br label %665

665:                                              ; preds = %664
  br label %666

666:                                              ; preds = %665
  br label %667

667:                                              ; preds = %666
  %668 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 0, ptr %668, align 4, !tbaa !11
  call void @s2n_debug_info_reset()
  %669 = call ptr @__errno_location() #8
  store i32 0, ptr %669, align 4, !tbaa !11
  br label %670

670:                                              ; preds = %667
  br label %671

671:                                              ; preds = %670
  br label %672

672:                                              ; preds = %671
  br label %673

673:                                              ; preds = %672
  br label %674

674:                                              ; preds = %673
  %675 = load i32, ptr @test_count, align 4, !tbaa !11
  %676 = add nsw i32 %675, 1
  store i32 %676, ptr @test_count, align 4, !tbaa !11
  %677 = load i32, ptr %7, align 4, !tbaa !11
  %678 = icmp eq i32 %677, 3
  br i1 %678, label %732, label %679

679:                                              ; preds = %674
  br label %680

680:                                              ; preds = %679
  br label %681

681:                                              ; preds = %680
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %682 = call ptr @__errno_location() #8
  %683 = load i32, ptr %682, align 4, !tbaa !11
  store i32 %683, ptr %18, align 4, !tbaa !11
  %684 = load ptr, ptr @stderr, align 8, !tbaa !5
  %685 = call i32 @s2n_print_stacktrace(ptr noundef %684)
  %686 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !9, !range !13, !noundef !14
  %687 = trunc i8 %686 to i1
  br i1 %687, label %688, label %710

688:                                              ; preds = %681
  %689 = load ptr, ptr @stderr, align 8, !tbaa !5
  %690 = call i32 @fileno(ptr noundef %689) #7
  %691 = call i32 @isatty(i32 noundef %690) #7
  %692 = icmp ne i32 %691, 0
  br i1 %692, label %693, label %710

693:                                              ; preds = %688
  %694 = load i32, ptr %18, align 4, !tbaa !11
  %695 = call ptr @__errno_location() #8
  store i32 %694, ptr %695, align 4, !tbaa !11
  %696 = load ptr, ptr @stderr, align 8, !tbaa !5
  %697 = load i32, ptr @test_count, align 4, !tbaa !11
  %698 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %699 = load i32, ptr %698, align 4, !tbaa !11
  %700 = call ptr @s2n_strerror(i32 noundef %699, ptr noundef @.str.6)
  %701 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %702 = load i32, ptr %701, align 4, !tbaa !11
  %703 = call ptr @s2n_strerror_debug(i32 noundef %702, ptr noundef @.str.6)
  %704 = call ptr @__errno_location() #8
  %705 = load i32, ptr %704, align 4, !tbaa !11
  %706 = call ptr @strerror(i32 noundef %705) #7
  %707 = call ptr @__errno_location() #8
  %708 = load i32, ptr %707, align 4, !tbaa !11
  %709 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %696, ptr noundef @.str.3, i32 noundef %697, ptr noundef @.str.14, ptr noundef @.str.5, i32 noundef 203, ptr noundef %700, ptr noundef %703, ptr noundef %706, i32 noundef %708) #7
  br label %727

710:                                              ; preds = %688, %681
  %711 = load i32, ptr %18, align 4, !tbaa !11
  %712 = call ptr @__errno_location() #8
  store i32 %711, ptr %712, align 4, !tbaa !11
  %713 = load ptr, ptr @stderr, align 8, !tbaa !5
  %714 = load i32, ptr @test_count, align 4, !tbaa !11
  %715 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %716 = load i32, ptr %715, align 4, !tbaa !11
  %717 = call ptr @s2n_strerror(i32 noundef %716, ptr noundef @.str.6)
  %718 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %719 = load i32, ptr %718, align 4, !tbaa !11
  %720 = call ptr @s2n_strerror_debug(i32 noundef %719, ptr noundef @.str.6)
  %721 = call ptr @__errno_location() #8
  %722 = load i32, ptr %721, align 4, !tbaa !11
  %723 = call ptr @strerror(i32 noundef %722) #7
  %724 = call ptr @__errno_location() #8
  %725 = load i32, ptr %724, align 4, !tbaa !11
  %726 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %713, ptr noundef @.str.7, i32 noundef %714, ptr noundef @.str.14, ptr noundef @.str.5, i32 noundef 203, ptr noundef %717, ptr noundef %720, ptr noundef %723, i32 noundef %725) #7
  br label %727

727:                                              ; preds = %710, %693
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %728

728:                                              ; preds = %727
  br label %729

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

730:                                              ; No predecessors!
  br label %731

731:                                              ; preds = %730
  br label %732

732:                                              ; preds = %731, %674
  br label %733

733:                                              ; preds = %732
  br label %734

734:                                              ; preds = %733
  br label %735

735:                                              ; preds = %734
  %736 = load i32, ptr @test_count, align 4, !tbaa !11
  %737 = add nsw i32 %736, 1
  store i32 %737, ptr @test_count, align 4, !tbaa !11
  %738 = load ptr, ptr %4, align 8, !tbaa !5
  %739 = call i32 @s2n_client_hello_cb_done(ptr noundef %738)
  %740 = icmp eq i32 %739, -1
  br i1 %740, label %741, label %794

741:                                              ; preds = %735
  br label %742

742:                                              ; preds = %741
  br label %743

743:                                              ; preds = %742
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %744 = call ptr @__errno_location() #8
  %745 = load i32, ptr %744, align 4, !tbaa !11
  store i32 %745, ptr %19, align 4, !tbaa !11
  %746 = load ptr, ptr @stderr, align 8, !tbaa !5
  %747 = call i32 @s2n_print_stacktrace(ptr noundef %746)
  %748 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !9, !range !13, !noundef !14
  %749 = trunc i8 %748 to i1
  br i1 %749, label %750, label %772

750:                                              ; preds = %743
  %751 = load ptr, ptr @stderr, align 8, !tbaa !5
  %752 = call i32 @fileno(ptr noundef %751) #7
  %753 = call i32 @isatty(i32 noundef %752) #7
  %754 = icmp ne i32 %753, 0
  br i1 %754, label %755, label %772

755:                                              ; preds = %750
  %756 = load i32, ptr %19, align 4, !tbaa !11
  %757 = call ptr @__errno_location() #8
  store i32 %756, ptr %757, align 4, !tbaa !11
  %758 = load ptr, ptr @stderr, align 8, !tbaa !5
  %759 = load i32, ptr @test_count, align 4, !tbaa !11
  %760 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %761 = load i32, ptr %760, align 4, !tbaa !11
  %762 = call ptr @s2n_strerror(i32 noundef %761, ptr noundef @.str.6)
  %763 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %764 = load i32, ptr %763, align 4, !tbaa !11
  %765 = call ptr @s2n_strerror_debug(i32 noundef %764, ptr noundef @.str.6)
  %766 = call ptr @__errno_location() #8
  %767 = load i32, ptr %766, align 4, !tbaa !11
  %768 = call ptr @strerror(i32 noundef %767) #7
  %769 = call ptr @__errno_location() #8
  %770 = load i32, ptr %769, align 4, !tbaa !11
  %771 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %758, ptr noundef @.str.3, i32 noundef %759, ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 206, ptr noundef %762, ptr noundef %765, ptr noundef %768, i32 noundef %770) #7
  br label %789

772:                                              ; preds = %750, %743
  %773 = load i32, ptr %19, align 4, !tbaa !11
  %774 = call ptr @__errno_location() #8
  store i32 %773, ptr %774, align 4, !tbaa !11
  %775 = load ptr, ptr @stderr, align 8, !tbaa !5
  %776 = load i32, ptr @test_count, align 4, !tbaa !11
  %777 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %778 = load i32, ptr %777, align 4, !tbaa !11
  %779 = call ptr @s2n_strerror(i32 noundef %778, ptr noundef @.str.6)
  %780 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %781 = load i32, ptr %780, align 4, !tbaa !11
  %782 = call ptr @s2n_strerror_debug(i32 noundef %781, ptr noundef @.str.6)
  %783 = call ptr @__errno_location() #8
  %784 = load i32, ptr %783, align 4, !tbaa !11
  %785 = call ptr @strerror(i32 noundef %784) #7
  %786 = call ptr @__errno_location() #8
  %787 = load i32, ptr %786, align 4, !tbaa !11
  %788 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %775, ptr noundef @.str.7, i32 noundef %776, ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 206, ptr noundef %779, ptr noundef %782, ptr noundef %785, i32 noundef %787) #7
  br label %789

789:                                              ; preds = %772, %755
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %790

790:                                              ; preds = %789
  br label %791

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

792:                                              ; No predecessors!
  br label %793

793:                                              ; preds = %792
  br label %794

794:                                              ; preds = %793, %735
  br label %795

795:                                              ; preds = %794
  br label %796

796:                                              ; preds = %795
  %797 = load i8, ptr %6, align 1, !tbaa !9, !range !13, !noundef !14
  %798 = trunc i8 %797 to i1
  br i1 %798, label %799, label %862

799:                                              ; preds = %796
  br label %800

800:                                              ; preds = %799
  %801 = load i32, ptr @test_count, align 4, !tbaa !11
  %802 = add nsw i32 %801, 1
  store i32 %802, ptr @test_count, align 4, !tbaa !11
  %803 = load ptr, ptr %4, align 8, !tbaa !5
  %804 = call i32 @s2n_connection_server_name_extension_used(ptr noundef %803)
  %805 = icmp eq i32 %804, -1
  br i1 %805, label %806, label %859

806:                                              ; preds = %800
  br label %807

807:                                              ; preds = %806
  br label %808

808:                                              ; preds = %807
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %809 = call ptr @__errno_location() #8
  %810 = load i32, ptr %809, align 4, !tbaa !11
  store i32 %810, ptr %20, align 4, !tbaa !11
  %811 = load ptr, ptr @stderr, align 8, !tbaa !5
  %812 = call i32 @s2n_print_stacktrace(ptr noundef %811)
  %813 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !9, !range !13, !noundef !14
  %814 = trunc i8 %813 to i1
  br i1 %814, label %815, label %837

815:                                              ; preds = %808
  %816 = load ptr, ptr @stderr, align 8, !tbaa !5
  %817 = call i32 @fileno(ptr noundef %816) #7
  %818 = call i32 @isatty(i32 noundef %817) #7
  %819 = icmp ne i32 %818, 0
  br i1 %819, label %820, label %837

820:                                              ; preds = %815
  %821 = load i32, ptr %20, align 4, !tbaa !11
  %822 = call ptr @__errno_location() #8
  store i32 %821, ptr %822, align 4, !tbaa !11
  %823 = load ptr, ptr @stderr, align 8, !tbaa !5
  %824 = load i32, ptr @test_count, align 4, !tbaa !11
  %825 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %826 = load i32, ptr %825, align 4, !tbaa !11
  %827 = call ptr @s2n_strerror(i32 noundef %826, ptr noundef @.str.6)
  %828 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %829 = load i32, ptr %828, align 4, !tbaa !11
  %830 = call ptr @s2n_strerror_debug(i32 noundef %829, ptr noundef @.str.6)
  %831 = call ptr @__errno_location() #8
  %832 = load i32, ptr %831, align 4, !tbaa !11
  %833 = call ptr @strerror(i32 noundef %832) #7
  %834 = call ptr @__errno_location() #8
  %835 = load i32, ptr %834, align 4, !tbaa !11
  %836 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %823, ptr noundef @.str.3, i32 noundef %824, ptr noundef @.str.9, ptr noundef @.str.5, i32 noundef 208, ptr noundef %827, ptr noundef %830, ptr noundef %833, i32 noundef %835) #7
  br label %854

837:                                              ; preds = %815, %808
  %838 = load i32, ptr %20, align 4, !tbaa !11
  %839 = call ptr @__errno_location() #8
  store i32 %838, ptr %839, align 4, !tbaa !11
  %840 = load ptr, ptr @stderr, align 8, !tbaa !5
  %841 = load i32, ptr @test_count, align 4, !tbaa !11
  %842 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %843 = load i32, ptr %842, align 4, !tbaa !11
  %844 = call ptr @s2n_strerror(i32 noundef %843, ptr noundef @.str.6)
  %845 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %846 = load i32, ptr %845, align 4, !tbaa !11
  %847 = call ptr @s2n_strerror_debug(i32 noundef %846, ptr noundef @.str.6)
  %848 = call ptr @__errno_location() #8
  %849 = load i32, ptr %848, align 4, !tbaa !11
  %850 = call ptr @strerror(i32 noundef %849) #7
  %851 = call ptr @__errno_location() #8
  %852 = load i32, ptr %851, align 4, !tbaa !11
  %853 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %840, ptr noundef @.str.7, i32 noundef %841, ptr noundef @.str.9, ptr noundef @.str.5, i32 noundef 208, ptr noundef %844, ptr noundef %847, ptr noundef %850, i32 noundef %852) #7
  br label %854

854:                                              ; preds = %837, %820
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %855

855:                                              ; preds = %854
  br label %856

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

857:                                              ; No predecessors!
  br label %858

858:                                              ; preds = %857
  br label %859

859:                                              ; preds = %858, %800
  br label %860

860:                                              ; preds = %859
  br label %861

861:                                              ; preds = %860
  br label %862

862:                                              ; preds = %861, %796
  %863 = load ptr, ptr %4, align 8, !tbaa !5
  %864 = call i32 @s2n_negotiate(ptr noundef %863, ptr noundef %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  ret i32 %864
}

declare void @s2n_debug_info_reset() #1

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

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@s2n_use_color_in_output = external dso_local local_unnamed_addr global i8, align 1
@test_count = external dso_local local_unnamed_addr global i32, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [59 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.9 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [76 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 i32 @s2n_connection_set_config(ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare i32 @s2n_client_hello_cb_done(ptr noundef) local_unnamed_addr #1

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

declare i32 @s2n_print_stacktrace(ptr noundef) local_unnamed_addr #1

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

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

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

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

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

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

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

declare i32 @s2n_connection_server_name_extension_used(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local i32 @s2n_negotiate_nonblocking_ch_cb(ptr noundef %0, ptr nocapture noundef readonly %1, i1 noundef zeroext %2) local_unnamed_addr #7 {
  %4 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  %5 = load i32, ptr @test_count, align 4, !tbaa !5
  %6 = add nsw i32 %5, 1
  store i32 %6, ptr @test_count, align 4, !tbaa !5
  %7 = icmp eq ptr %0, null
  br i1 %7, label %8, label %32

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

15:                                               ; preds = %8
  %16 = load ptr, ptr @stderr, align 8, !tbaa !9
  %17 = tail call i32 @fileno(ptr noundef %16) #8
  %18 = tail call i32 @isatty(i32 noundef %17) #8
  %.not48 = icmp eq i32 %18, 0
  br i1 %.not48, label %19, label %20

19:                                               ; preds = %15, %8
  br label %20

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

32:                                               ; preds = %3
  %33 = add nsw i32 %5, 2
  store i32 %33, ptr @test_count, align 4, !tbaa !5
  %34 = call i32 @s2n_negotiate(ptr noundef nonnull %0, ptr noundef nonnull %4) #8
  %35 = icmp eq i32 %34, -1
  br i1 %35, label %60, label %36

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

43:                                               ; preds = %36
  %44 = load ptr, ptr @stderr, align 8, !tbaa !9
  %45 = call i32 @fileno(ptr noundef %44) #8
  %46 = call i32 @isatty(i32 noundef %45) #8
  %.not = icmp eq i32 %46, 0
  br i1 %.not, label %47, label %48

47:                                               ; preds = %43, %36
  br label %48

48:                                               ; preds = %43, %47
  %.str.7.sink59 = phi ptr [ @.str.7, %47 ], [ @.str.3, %43 ]
  store i32 %38, ptr %37, align 4, !tbaa !5
  %49 = load ptr, ptr @stderr, align 8, !tbaa !9
  %50 = load i32, ptr @test_count, align 4, !tbaa !5
  %51 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = call ptr @s2n_strerror(i32 noundef %52, ptr noundef nonnull @.str.6) #8
  %54 = load i32, ptr %51, align 4, !tbaa !5
  %55 = call ptr @s2n_strerror_debug(i32 noundef %54, ptr noundef nonnull @.str.6) #8
  %56 = load i32, ptr %37, align 4, !tbaa !5
  %57 = call ptr @strerror(i32 noundef %56) #8
  %58 = load i32, ptr %37, align 4, !tbaa !5
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef nonnull %.str.7.sink59, i32 noundef %50, ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.5, i32 noundef 191, ptr noundef %53, ptr noundef %55, ptr noundef %57, i32 noundef %58) #10
  call void @exit(i32 noundef 1) #11
  unreachable

60:                                               ; preds = %32
  %61 = load i32, ptr @test_count, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr @test_count, align 4, !tbaa !5
  %63 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = icmp eq i32 %64, 201326593
  br i1 %65, label %89, label %66

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

73:                                               ; preds = %66
  %74 = load ptr, ptr @stderr, align 8, !tbaa !9
  %75 = call i32 @fileno(ptr noundef %74) #8
  %76 = call i32 @isatty(i32 noundef %75) #8
  %.not36 = icmp eq i32 %76, 0
  br i1 %.not36, label %77, label %78

77:                                               ; preds = %73, %66
  br label %78

78:                                               ; preds = %73, %77
  %.str.7.sink70 = phi ptr [ @.str.7, %77 ], [ @.str.3, %73 ]
  store i32 %68, ptr %67, align 4, !tbaa !5
  %79 = load ptr, ptr @stderr, align 8, !tbaa !9
  %80 = load i32, ptr @test_count, align 4, !tbaa !5
  %81 = load i32, ptr %63, align 4, !tbaa !5
  %82 = call ptr @s2n_strerror(i32 noundef %81, ptr noundef nonnull @.str.6) #8
  %83 = load i32, ptr %63, align 4, !tbaa !5
  %84 = call ptr @s2n_strerror_debug(i32 noundef %83, ptr noundef nonnull @.str.6) #8
  %85 = load i32, ptr %67, align 4, !tbaa !5
  %86 = call ptr @strerror(i32 noundef %85) #8
  %87 = load i32, ptr %67, align 4, !tbaa !5
  %88 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef nonnull %.str.7.sink70, i32 noundef %80, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.5, i32 noundef 191, ptr noundef %82, ptr noundef %84, ptr noundef %86, i32 noundef %87) #10
  call void @exit(i32 noundef 1) #11
  unreachable

89:                                               ; preds = %60
  %90 = add nsw i32 %61, 2
  store i32 %90, ptr @test_count, align 4, !tbaa !5
  %91 = call ptr @s2n_strerror_debug(i32 noundef 201326593, ptr noundef nonnull @.str.6) #8
  %92 = icmp eq ptr %91, null
  br i1 %92, label %93, label %116

93:                                               ; preds = %89
  %94 = tail call ptr @__errno_location() #9
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = load ptr, ptr @stderr, align 8, !tbaa !9
  %97 = call i32 @s2n_print_stacktrace(ptr noundef %96) #8
  %98 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %99 = trunc nuw i8 %98 to i1
  br i1 %99, label %100, label %104

100:                                              ; preds = %93
  %101 = load ptr, ptr @stderr, align 8, !tbaa !9
  %102 = call i32 @fileno(ptr noundef %101) #8
  %103 = call i32 @isatty(i32 noundef %102) #8
  %.not47 = icmp eq i32 %103, 0
  br i1 %.not47, label %104, label %105

104:                                              ; preds = %100, %93
  br label %105

105:                                              ; preds = %100, %104
  %.str.7.sink79 = phi ptr [ @.str.7, %104 ], [ @.str.3, %100 ]
  store i32 %95, ptr %94, align 4, !tbaa !5
  %106 = load ptr, ptr @stderr, align 8, !tbaa !9
  %107 = load i32, ptr @test_count, align 4, !tbaa !5
  %108 = load i32, ptr %63, align 4, !tbaa !5
  %109 = call ptr @s2n_strerror(i32 noundef %108, ptr noundef nonnull @.str.6) #8
  %110 = load i32, ptr %63, align 4, !tbaa !5
  %111 = call ptr @s2n_strerror_debug(i32 noundef %110, ptr noundef nonnull @.str.6) #8
  %112 = load i32, ptr %94, align 4, !tbaa !5
  %113 = call ptr @strerror(i32 noundef %112) #8
  %114 = load i32, ptr %94, align 4, !tbaa !5
  %115 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %106, ptr noundef nonnull %.str.7.sink79, i32 noundef %107, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.5, i32 noundef 191, ptr noundef %109, ptr noundef %111, ptr noundef %113, i32 noundef %114) #10
  call void @exit(i32 noundef 1) #11
  unreachable

116:                                              ; preds = %89
  store i32 0, ptr %63, align 4, !tbaa !5
  call void @s2n_debug_info_reset() #8
  %117 = tail call ptr @__errno_location() #9
  store i32 0, ptr %117, align 4, !tbaa !5
  %118 = load i32, ptr @test_count, align 4, !tbaa !5
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr @test_count, align 4, !tbaa !5
  %120 = load i32, ptr %4, align 4, !tbaa !5
  %121 = icmp eq i32 %120, 3
  br i1 %121, label %144, label %122

122:                                              ; preds = %116
  %123 = load i32, ptr %117, align 4, !tbaa !5
  %124 = load ptr, ptr @stderr, align 8, !tbaa !9
  %125 = call i32 @s2n_print_stacktrace(ptr noundef %124) #8
  %126 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %127 = trunc nuw i8 %126 to i1
  br i1 %127, label %128, label %132

128:                                              ; preds = %122
  %129 = load ptr, ptr @stderr, align 8, !tbaa !9
  %130 = call i32 @fileno(ptr noundef %129) #8
  %131 = call i32 @isatty(i32 noundef %130) #8
  %.not37 = icmp eq i32 %131, 0
  br i1 %.not37, label %132, label %133

132:                                              ; preds = %128, %122
  br label %133

133:                                              ; preds = %128, %132
  %.str.7.sink88 = phi ptr [ @.str.7, %132 ], [ @.str.3, %128 ]
  store i32 %123, ptr %117, align 4, !tbaa !5
  %134 = load ptr, ptr @stderr, align 8, !tbaa !9
  %135 = load i32, ptr @test_count, align 4, !tbaa !5
  %136 = load i32, ptr %63, align 4, !tbaa !5
  %137 = call ptr @s2n_strerror(i32 noundef %136, ptr noundef nonnull @.str.6) #8
  %138 = load i32, ptr %63, align 4, !tbaa !5
  %139 = call ptr @s2n_strerror_debug(i32 noundef %138, ptr noundef nonnull @.str.6) #8
  %140 = load i32, ptr %117, align 4, !tbaa !5
  %141 = call ptr @strerror(i32 noundef %140) #8
  %142 = load i32, ptr %117, align 4, !tbaa !5
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef nonnull %.str.7.sink88, i32 noundef %135, ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.5, i32 noundef 192, ptr noundef %137, ptr noundef %139, ptr noundef %141, i32 noundef %142) #10
  call void @exit(i32 noundef 1) #11
  unreachable

144:                                              ; preds = %116
  %145 = add nsw i32 %118, 2
  store i32 %145, ptr @test_count, align 4, !tbaa !5
  %146 = load i32, ptr %1, align 8, !tbaa !15
  %147 = icmp eq i32 %146, 1
  br i1 %147, label %170, label %148

148:                                              ; preds = %144
  %149 = load i32, ptr %117, align 4, !tbaa !5
  %150 = load ptr, ptr @stderr, align 8, !tbaa !9
  %151 = call i32 @s2n_print_stacktrace(ptr noundef %150) #8
  %152 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %153 = trunc nuw i8 %152 to i1
  br i1 %153, label %154, label %158

154:                                              ; preds = %148
  %155 = load ptr, ptr @stderr, align 8, !tbaa !9
  %156 = call i32 @fileno(ptr noundef %155) #8
  %157 = call i32 @isatty(i32 noundef %156) #8
  %.not38 = icmp eq i32 %157, 0
  br i1 %.not38, label %158, label %159

158:                                              ; preds = %154, %148
  br label %159

159:                                              ; preds = %154, %158
  %.str.7.sink97 = phi ptr [ @.str.7, %158 ], [ @.str.3, %154 ]
  store i32 %149, ptr %117, align 4, !tbaa !5
  %160 = load ptr, ptr @stderr, align 8, !tbaa !9
  %161 = load i32, ptr @test_count, align 4, !tbaa !5
  %162 = load i32, ptr %63, align 4, !tbaa !5
  %163 = call ptr @s2n_strerror(i32 noundef %162, ptr noundef nonnull @.str.6) #8
  %164 = load i32, ptr %63, align 4, !tbaa !5
  %165 = call ptr @s2n_strerror_debug(i32 noundef %164, ptr noundef nonnull @.str.6) #8
  %166 = load i32, ptr %117, align 4, !tbaa !5
  %167 = call ptr @strerror(i32 noundef %166) #8
  %168 = load i32, ptr %117, align 4, !tbaa !5
  %169 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %160, ptr noundef nonnull %.str.7.sink97, i32 noundef %161, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.5, i32 noundef 195, ptr noundef %163, ptr noundef %165, ptr noundef %167, i32 noundef %168) #10
  call void @exit(i32 noundef 1) #11
  unreachable

170:                                              ; preds = %144
  %171 = getelementptr inbounds i8, ptr %1, i64 8
  %172 = load i32, ptr %171, align 8, !tbaa !17
  %.not39 = icmp eq i32 %172, 0
  br i1 %.not39, label %201, label %173

173:                                              ; preds = %170
  %174 = add nsw i32 %118, 3
  store i32 %174, ptr @test_count, align 4, !tbaa !5
  %175 = getelementptr inbounds i8, ptr %1, i64 16
  %176 = load ptr, ptr %175, align 8, !tbaa !18
  %177 = call i32 @s2n_connection_set_config(ptr noundef nonnull %0, ptr noundef %176) #8
  %178 = icmp eq i32 %177, -1
  br i1 %178, label %179, label %._crit_edge

._crit_edge:                                      ; preds = %173
  %.pre = load i32, ptr @test_count, align 4, !tbaa !5
  br label %201

179:                                              ; preds = %173
  %180 = load i32, ptr %117, align 4, !tbaa !5
  %181 = load ptr, ptr @stderr, align 8, !tbaa !9
  %182 = call i32 @s2n_print_stacktrace(ptr noundef %181) #8
  %183 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %184 = trunc nuw i8 %183 to i1
  br i1 %184, label %185, label %189

185:                                              ; preds = %179
  %186 = load ptr, ptr @stderr, align 8, !tbaa !9
  %187 = call i32 @fileno(ptr noundef %186) #8
  %188 = call i32 @isatty(i32 noundef %187) #8
  %.not46 = icmp eq i32 %188, 0
  br i1 %.not46, label %189, label %190

189:                                              ; preds = %185, %179
  br label %190

190:                                              ; preds = %185, %189
  %.str.7.sink106 = phi ptr [ @.str.7, %189 ], [ @.str.3, %185 ]
  store i32 %180, ptr %117, align 4, !tbaa !5
  %191 = load ptr, ptr @stderr, align 8, !tbaa !9
  %192 = load i32, ptr @test_count, align 4, !tbaa !5
  %193 = load i32, ptr %63, align 4, !tbaa !5
  %194 = call ptr @s2n_strerror(i32 noundef %193, ptr noundef nonnull @.str.6) #8
  %195 = load i32, ptr %63, align 4, !tbaa !5
  %196 = call ptr @s2n_strerror_debug(i32 noundef %195, ptr noundef nonnull @.str.6) #8
  %197 = load i32, ptr %117, align 4, !tbaa !5
  %198 = call ptr @strerror(i32 noundef %197) #8
  %199 = load i32, ptr %117, align 4, !tbaa !5
  %200 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %191, ptr noundef nonnull %.str.7.sink106, i32 noundef %192, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.5, i32 noundef 199, ptr noundef %194, ptr noundef %196, ptr noundef %198, i32 noundef %199) #10
  call void @exit(i32 noundef 1) #11
  unreachable

201:                                              ; preds = %._crit_edge, %170
  %202 = phi i32 [ %.pre, %._crit_edge ], [ %145, %170 ]
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr @test_count, align 4, !tbaa !5
  %204 = call i32 @s2n_negotiate(ptr noundef nonnull %0, ptr noundef nonnull %4) #8
  %205 = icmp eq i32 %204, -1
  br i1 %205, label %228, label %206

206:                                              ; preds = %201
  %207 = load i32, ptr %117, align 4, !tbaa !5
  %208 = load ptr, ptr @stderr, align 8, !tbaa !9
  %209 = call i32 @s2n_print_stacktrace(ptr noundef %208) #8
  %210 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %211 = trunc nuw i8 %210 to i1
  br i1 %211, label %212, label %216

212:                                              ; preds = %206
  %213 = load ptr, ptr @stderr, align 8, !tbaa !9
  %214 = call i32 @fileno(ptr noundef %213) #8
  %215 = call i32 @isatty(i32 noundef %214) #8
  %.not40 = icmp eq i32 %215, 0
  br i1 %.not40, label %216, label %217

216:                                              ; preds = %212, %206
  br label %217

217:                                              ; preds = %212, %216
  %.str.7.sink115 = phi ptr [ @.str.7, %216 ], [ @.str.3, %212 ]
  store i32 %207, ptr %117, align 4, !tbaa !5
  %218 = load ptr, ptr @stderr, align 8, !tbaa !9
  %219 = load i32, ptr @test_count, align 4, !tbaa !5
  %220 = load i32, ptr %63, align 4, !tbaa !5
  %221 = call ptr @s2n_strerror(i32 noundef %220, ptr noundef nonnull @.str.6) #8
  %222 = load i32, ptr %63, align 4, !tbaa !5
  %223 = call ptr @s2n_strerror_debug(i32 noundef %222, ptr noundef nonnull @.str.6) #8
  %224 = load i32, ptr %117, align 4, !tbaa !5
  %225 = call ptr @strerror(i32 noundef %224) #8
  %226 = load i32, ptr %117, align 4, !tbaa !5
  %227 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %218, ptr noundef nonnull %.str.7.sink115, i32 noundef %219, ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.5, i32 noundef 202, ptr noundef %221, ptr noundef %223, ptr noundef %225, i32 noundef %226) #10
  call void @exit(i32 noundef 1) #11
  unreachable

228:                                              ; preds = %201
  %229 = load i32, ptr @test_count, align 4, !tbaa !5
  %230 = add nsw i32 %229, 1
  store i32 %230, ptr @test_count, align 4, !tbaa !5
  %231 = load i32, ptr %63, align 4, !tbaa !5
  %232 = icmp eq i32 %231, 201326593
  br i1 %232, label %255, label %233

233:                                              ; preds = %228
  %234 = load i32, ptr %117, align 4, !tbaa !5
  %235 = load ptr, ptr @stderr, align 8, !tbaa !9
  %236 = call i32 @s2n_print_stacktrace(ptr noundef %235) #8
  %237 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %238 = trunc nuw i8 %237 to i1
  br i1 %238, label %239, label %243

239:                                              ; preds = %233
  %240 = load ptr, ptr @stderr, align 8, !tbaa !9
  %241 = call i32 @fileno(ptr noundef %240) #8
  %242 = call i32 @isatty(i32 noundef %241) #8
  %.not41 = icmp eq i32 %242, 0
  br i1 %.not41, label %243, label %244

243:                                              ; preds = %239, %233
  br label %244

244:                                              ; preds = %239, %243
  %.str.7.sink124 = phi ptr [ @.str.7, %243 ], [ @.str.3, %239 ]
  store i32 %234, ptr %117, align 4, !tbaa !5
  %245 = load ptr, ptr @stderr, align 8, !tbaa !9
  %246 = load i32, ptr @test_count, align 4, !tbaa !5
  %247 = load i32, ptr %63, align 4, !tbaa !5
  %248 = call ptr @s2n_strerror(i32 noundef %247, ptr noundef nonnull @.str.6) #8
  %249 = load i32, ptr %63, align 4, !tbaa !5
  %250 = call ptr @s2n_strerror_debug(i32 noundef %249, ptr noundef nonnull @.str.6) #8
  %251 = load i32, ptr %117, align 4, !tbaa !5
  %252 = call ptr @strerror(i32 noundef %251) #8
  %253 = load i32, ptr %117, align 4, !tbaa !5
  %254 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %245, ptr noundef nonnull %.str.7.sink124, i32 noundef %246, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.5, i32 noundef 202, ptr noundef %248, ptr noundef %250, ptr noundef %252, i32 noundef %253) #10
  call void @exit(i32 noundef 1) #11
  unreachable

255:                                              ; preds = %228
  %256 = add nsw i32 %229, 2
  store i32 %256, ptr @test_count, align 4, !tbaa !5
  %257 = call ptr @s2n_strerror_debug(i32 noundef 201326593, ptr noundef nonnull @.str.6) #8
  %258 = icmp eq ptr %257, null
  br i1 %258, label %259, label %281

259:                                              ; preds = %255
  %260 = load i32, ptr %117, align 4, !tbaa !5
  %261 = load ptr, ptr @stderr, align 8, !tbaa !9
  %262 = call i32 @s2n_print_stacktrace(ptr noundef %261) #8
  %263 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %264 = trunc nuw i8 %263 to i1
  br i1 %264, label %265, label %269

265:                                              ; preds = %259
  %266 = load ptr, ptr @stderr, align 8, !tbaa !9
  %267 = call i32 @fileno(ptr noundef %266) #8
  %268 = call i32 @isatty(i32 noundef %267) #8
  %.not45 = icmp eq i32 %268, 0
  br i1 %.not45, label %269, label %270

269:                                              ; preds = %265, %259
  br label %270

270:                                              ; preds = %265, %269
  %.str.7.sink133 = phi ptr [ @.str.7, %269 ], [ @.str.3, %265 ]
  store i32 %260, ptr %117, align 4, !tbaa !5
  %271 = load ptr, ptr @stderr, align 8, !tbaa !9
  %272 = load i32, ptr @test_count, align 4, !tbaa !5
  %273 = load i32, ptr %63, align 4, !tbaa !5
  %274 = call ptr @s2n_strerror(i32 noundef %273, ptr noundef nonnull @.str.6) #8
  %275 = load i32, ptr %63, align 4, !tbaa !5
  %276 = call ptr @s2n_strerror_debug(i32 noundef %275, ptr noundef nonnull @.str.6) #8
  %277 = load i32, ptr %117, align 4, !tbaa !5
  %278 = call ptr @strerror(i32 noundef %277) #8
  %279 = load i32, ptr %117, align 4, !tbaa !5
  %280 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %271, ptr noundef nonnull %.str.7.sink133, i32 noundef %272, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.5, i32 noundef 202, ptr noundef %274, ptr noundef %276, ptr noundef %278, i32 noundef %279) #10
  call void @exit(i32 noundef 1) #11
  unreachable

281:                                              ; preds = %255
  store i32 0, ptr %63, align 4, !tbaa !5
  call void @s2n_debug_info_reset() #8
  store i32 0, ptr %117, align 4, !tbaa !5
  %282 = load i32, ptr @test_count, align 4, !tbaa !5
  %283 = add nsw i32 %282, 1
  store i32 %283, ptr @test_count, align 4, !tbaa !5
  %284 = load i32, ptr %4, align 4, !tbaa !5
  %285 = icmp eq i32 %284, 3
  br i1 %285, label %308, label %286

286:                                              ; preds = %281
  %287 = load i32, ptr %117, align 4, !tbaa !5
  %288 = load ptr, ptr @stderr, align 8, !tbaa !9
  %289 = call i32 @s2n_print_stacktrace(ptr noundef %288) #8
  %290 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %291 = trunc nuw i8 %290 to i1
  br i1 %291, label %292, label %296

292:                                              ; preds = %286
  %293 = load ptr, ptr @stderr, align 8, !tbaa !9
  %294 = call i32 @fileno(ptr noundef %293) #8
  %295 = call i32 @isatty(i32 noundef %294) #8
  %.not42 = icmp eq i32 %295, 0
  br i1 %.not42, label %296, label %297

296:                                              ; preds = %292, %286
  br label %297

297:                                              ; preds = %292, %296
  %.str.7.sink142 = phi ptr [ @.str.7, %296 ], [ @.str.3, %292 ]
  store i32 %287, ptr %117, align 4, !tbaa !5
  %298 = load ptr, ptr @stderr, align 8, !tbaa !9
  %299 = load i32, ptr @test_count, align 4, !tbaa !5
  %300 = load i32, ptr %63, align 4, !tbaa !5
  %301 = call ptr @s2n_strerror(i32 noundef %300, ptr noundef nonnull @.str.6) #8
  %302 = load i32, ptr %63, align 4, !tbaa !5
  %303 = call ptr @s2n_strerror_debug(i32 noundef %302, ptr noundef nonnull @.str.6) #8
  %304 = load i32, ptr %117, align 4, !tbaa !5
  %305 = call ptr @strerror(i32 noundef %304) #8
  %306 = load i32, ptr %117, align 4, !tbaa !5
  %307 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %298, ptr noundef nonnull %.str.7.sink142, i32 noundef %299, ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.5, i32 noundef 203, ptr noundef %301, ptr noundef %303, ptr noundef %305, i32 noundef %306) #10
  call void @exit(i32 noundef 1) #11
  unreachable

308:                                              ; preds = %281
  %309 = add nsw i32 %282, 2
  store i32 %309, ptr @test_count, align 4, !tbaa !5
  %310 = call i32 @s2n_client_hello_cb_done(ptr noundef nonnull %0) #8
  %311 = icmp eq i32 %310, -1
  br i1 %311, label %312, label %334

312:                                              ; preds = %308
  %313 = load i32, ptr %117, align 4, !tbaa !5
  %314 = load ptr, ptr @stderr, align 8, !tbaa !9
  %315 = call i32 @s2n_print_stacktrace(ptr noundef %314) #8
  %316 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %317 = trunc nuw i8 %316 to i1
  br i1 %317, label %318, label %322

318:                                              ; preds = %312
  %319 = load ptr, ptr @stderr, align 8, !tbaa !9
  %320 = call i32 @fileno(ptr noundef %319) #8
  %321 = call i32 @isatty(i32 noundef %320) #8
  %.not44 = icmp eq i32 %321, 0
  br i1 %.not44, label %322, label %323

322:                                              ; preds = %318, %312
  br label %323

323:                                              ; preds = %318, %322
  %.str.7.sink151 = phi ptr [ @.str.7, %322 ], [ @.str.3, %318 ]
  store i32 %313, ptr %117, align 4, !tbaa !5
  %324 = load ptr, ptr @stderr, align 8, !tbaa !9
  %325 = load i32, ptr @test_count, align 4, !tbaa !5
  %326 = load i32, ptr %63, align 4, !tbaa !5
  %327 = call ptr @s2n_strerror(i32 noundef %326, ptr noundef nonnull @.str.6) #8
  %328 = load i32, ptr %63, align 4, !tbaa !5
  %329 = call ptr @s2n_strerror_debug(i32 noundef %328, ptr noundef nonnull @.str.6) #8
  %330 = load i32, ptr %117, align 4, !tbaa !5
  %331 = call ptr @strerror(i32 noundef %330) #8
  %332 = load i32, ptr %117, align 4, !tbaa !5
  %333 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %324, ptr noundef nonnull %.str.7.sink151, i32 noundef %325, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef 206, ptr noundef %327, ptr noundef %329, ptr noundef %331, i32 noundef %332) #10
  call void @exit(i32 noundef 1) #11
  unreachable

334:                                              ; preds = %308
  br i1 %2, label %335, label %362

335:                                              ; preds = %334
  %336 = load i32, ptr @test_count, align 4, !tbaa !5
  %337 = add nsw i32 %336, 1
  store i32 %337, ptr @test_count, align 4, !tbaa !5
  %338 = call i32 @s2n_connection_server_name_extension_used(ptr noundef nonnull %0) #8
  %339 = icmp eq i32 %338, -1
  br i1 %339, label %340, label %362

340:                                              ; preds = %335
  %341 = load i32, ptr %117, align 4, !tbaa !5
  %342 = load ptr, ptr @stderr, align 8, !tbaa !9
  %343 = call i32 @s2n_print_stacktrace(ptr noundef %342) #8
  %344 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %345 = trunc nuw i8 %344 to i1
  br i1 %345, label %346, label %350

346:                                              ; preds = %340
  %347 = load ptr, ptr @stderr, align 8, !tbaa !9
  %348 = call i32 @fileno(ptr noundef %347) #8
  %349 = call i32 @isatty(i32 noundef %348) #8
  %.not43 = icmp eq i32 %349, 0
  br i1 %.not43, label %350, label %351

350:                                              ; preds = %346, %340
  br label %351

351:                                              ; preds = %346, %350
  %.str.7.sink160 = phi ptr [ @.str.7, %350 ], [ @.str.3, %346 ]
  store i32 %341, ptr %117, align 4, !tbaa !5
  %352 = load ptr, ptr @stderr, align 8, !tbaa !9
  %353 = load i32, ptr @test_count, align 4, !tbaa !5
  %354 = load i32, ptr %63, align 4, !tbaa !5
  %355 = call ptr @s2n_strerror(i32 noundef %354, ptr noundef nonnull @.str.6) #8
  %356 = load i32, ptr %63, align 4, !tbaa !5
  %357 = call ptr @s2n_strerror_debug(i32 noundef %356, ptr noundef nonnull @.str.6) #8
  %358 = load i32, ptr %117, align 4, !tbaa !5
  %359 = call ptr @strerror(i32 noundef %358) #8
  %360 = load i32, ptr %117, align 4, !tbaa !5
  %361 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %352, ptr noundef nonnull %.str.7.sink160, i32 noundef %353, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.5, i32 noundef 208, ptr noundef %355, ptr noundef %357, ptr noundef %359, i32 noundef %360) #10
  call void @exit(i32 noundef 1) #11
  unreachable

362:                                              ; preds = %335, %334
  %363 = call i32 @s2n_negotiate(ptr noundef nonnull %0, ptr noundef nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  ret i32 %363
}

declare void @s2n_debug_info_reset() local_unnamed_addr #1

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

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

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


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