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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.s2n_result = type { i32 }

@s2n_use_color_in_output = external dso_local global i8, align 1
@s2n_errno = external thread_local global i32, align 4
@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 [53 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [83 x i8], align 1
@.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.8 = external hidden unnamed_addr constant [70 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @s2n_result_func(i1 noundef zeroext) #0

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @s2n_posix_func(i1 noundef zeroext) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @s2n_ptr_func(i1 noundef zeroext) #0

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

declare i32 @s2n_connection_apply_error_blinding(ptr noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @s2n_result_is_ok(i32) #4

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

declare i64 @s2n_connection_get_delay(ptr noundef) #3

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

declare i32 @s2n_print_stacktrace(ptr noundef) #3

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

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

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

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

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

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

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

declare zeroext i1 @s2n_connection_check_io_status(ptr noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @s2n_posix_test(ptr noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.s2n_result, align 4
  %6 = alloca i32, align 4
  %7 = alloca %struct.s2n_result, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %struct.s2n_result, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca %struct.s2n_result, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca %struct.s2n_result, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca %struct.s2n_result, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  br label %24

24:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %25, ptr %4, align 8, !tbaa !5
  br label %26

26:                                               ; preds = %24
  %27 = call i32 @s2n_result_func(i1 noundef zeroext true)
  %28 = getelementptr inbounds %struct.s2n_result, ptr %5, i32 0, i32 0
  store i32 %27, ptr %28, align 4
  %29 = getelementptr inbounds %struct.s2n_result, ptr %5, i32 0, i32 0
  %30 = load i32, ptr %29, align 4
  %31 = call zeroext i1 @s2n_result_is_ok(i32 %30)
  br i1 %31, label %33, label %32

32:                                               ; preds = %26
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %40

33:                                               ; preds = %26
  br label %34

34:                                               ; preds = %33
  br label %35

35:                                               ; preds = %34
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %39

38:                                               ; preds = %35
  store ptr null, ptr %4, align 8, !tbaa !5
  br label %39

39:                                               ; preds = %38, %35
  store i32 0, ptr %6, align 4
  br label %40

40:                                               ; preds = %39, %32
  %41 = call i32 @s2n_connection_apply_error_blinding(ptr noundef %4)
  %42 = getelementptr inbounds %struct.s2n_result, ptr %7, i32 0, i32 0
  store i32 %41, ptr %42, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  %43 = load i32, ptr %6, align 4
  switch i32 %43, label %585 [
    i32 0, label %44
    i32 1, label %583
  ]

44:                                               ; preds = %40
  br label %45

45:                                               ; preds = %44
  br label %46

46:                                               ; preds = %45
  %47 = load i32, ptr @test_count, align 4, !tbaa !9
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr @test_count, align 4, !tbaa !9
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = call i64 @s2n_connection_get_delay(ptr noundef %49)
  %51 = icmp eq i64 %50, 0
  br i1 %51, label %103, label %52

52:                                               ; preds = %46
  br label %53

53:                                               ; preds = %52
  br label %54

54:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  %55 = call ptr @__errno_location() #9
  %56 = load i32, ptr %55, align 4, !tbaa !9
  store i32 %56, ptr %8, align 4, !tbaa !9
  %57 = load ptr, ptr @stderr, align 8, !tbaa !5
  %58 = call i32 @s2n_print_stacktrace(ptr noundef %57)
  %59 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %60 = trunc i8 %59 to i1
  br i1 %60, label %61, label %83

61:                                               ; preds = %54
  %62 = load ptr, ptr @stderr, align 8, !tbaa !5
  %63 = call i32 @fileno(ptr noundef %62) #8
  %64 = call i32 @isatty(i32 noundef %63) #8
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %83

66:                                               ; preds = %61
  %67 = load i32, ptr %8, align 4, !tbaa !9
  %68 = call ptr @__errno_location() #9
  store i32 %67, ptr %68, align 4, !tbaa !9
  %69 = load ptr, ptr @stderr, align 8, !tbaa !5
  %70 = load i32, ptr @test_count, align 4, !tbaa !9
  %71 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %72 = load i32, ptr %71, align 4, !tbaa !9
  %73 = call ptr @s2n_strerror(i32 noundef %72, ptr noundef @.str.6)
  %74 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %75 = load i32, ptr %74, align 4, !tbaa !9
  %76 = call ptr @s2n_strerror_debug(i32 noundef %75, ptr noundef @.str.6)
  %77 = call ptr @__errno_location() #9
  %78 = load i32, ptr %77, align 4, !tbaa !9
  %79 = call ptr @strerror(i32 noundef %78) #8
  %80 = call ptr @__errno_location() #9
  %81 = load i32, ptr %80, align 4, !tbaa !9
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef @.str.3, i32 noundef %70, ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 74, ptr noundef %73, ptr noundef %76, ptr noundef %79, i32 noundef %81) #8
  br label %100

83:                                               ; preds = %61, %54
  %84 = load i32, ptr %8, align 4, !tbaa !9
  %85 = call ptr @__errno_location() #9
  store i32 %84, ptr %85, align 4, !tbaa !9
  %86 = load ptr, ptr @stderr, align 8, !tbaa !5
  %87 = load i32, ptr @test_count, align 4, !tbaa !9
  %88 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %89 = load i32, ptr %88, align 4, !tbaa !9
  %90 = call ptr @s2n_strerror(i32 noundef %89, ptr noundef @.str.6)
  %91 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %92 = load i32, ptr %91, align 4, !tbaa !9
  %93 = call ptr @s2n_strerror_debug(i32 noundef %92, ptr noundef @.str.6)
  %94 = call ptr @__errno_location() #9
  %95 = load i32, ptr %94, align 4, !tbaa !9
  %96 = call ptr @strerror(i32 noundef %95) #8
  %97 = call ptr @__errno_location() #9
  %98 = load i32, ptr %97, align 4, !tbaa !9
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef @.str.7, i32 noundef %87, ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 74, ptr noundef %90, ptr noundef %93, ptr noundef %96, i32 noundef %98) #8
  br label %100

100:                                              ; preds = %83, %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %101

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

102:                                              ; No predecessors!
  br label %103

103:                                              ; preds = %102, %46
  br label %104

104:                                              ; preds = %103
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr @test_count, align 4, !tbaa !9
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr @test_count, align 4, !tbaa !9
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = call zeroext i1 @s2n_connection_check_io_status(ptr noundef %108, i32 noundef 2)
  br i1 %109, label %161, label %110

110:                                              ; preds = %105
  br label %111

111:                                              ; preds = %110
  br label %112

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

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

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

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

158:                                              ; preds = %141, %124
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %159

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

160:                                              ; No predecessors!
  br label %161

161:                                              ; preds = %160, %105
  br label %162

162:                                              ; preds = %161
  br label %163

163:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %164 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %164, ptr %10, align 8, !tbaa !5
  br label %165

165:                                              ; preds = %163
  br label %166

166:                                              ; preds = %165
  br label %167

167:                                              ; preds = %166
  %168 = load ptr, ptr %10, align 8, !tbaa !5
  %169 = icmp ne ptr %168, null
  br i1 %169, label %170, label %171

170:                                              ; preds = %167
  store ptr null, ptr %10, align 8, !tbaa !5
  br label %171

171:                                              ; preds = %170, %167
  %172 = call i32 @s2n_connection_apply_error_blinding(ptr noundef %10)
  %173 = getelementptr inbounds %struct.s2n_result, ptr %11, i32 0, i32 0
  store i32 %172, ptr %173, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  br label %174

174:                                              ; preds = %171
  br label %175

175:                                              ; preds = %174
  %176 = load i32, ptr @test_count, align 4, !tbaa !9
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr @test_count, align 4, !tbaa !9
  %178 = load ptr, ptr %3, align 8, !tbaa !5
  %179 = call i64 @s2n_connection_get_delay(ptr noundef %178)
  %180 = icmp eq i64 %179, 0
  br i1 %180, label %232, label %181

181:                                              ; preds = %175
  br label %182

182:                                              ; preds = %181
  br label %183

183:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %184 = call ptr @__errno_location() #9
  %185 = load i32, ptr %184, align 4, !tbaa !9
  store i32 %185, ptr %12, align 4, !tbaa !9
  %186 = load ptr, ptr @stderr, align 8, !tbaa !5
  %187 = call i32 @s2n_print_stacktrace(ptr noundef %186)
  %188 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %189 = trunc i8 %188 to i1
  br i1 %189, label %190, label %212

190:                                              ; preds = %183
  %191 = load ptr, ptr @stderr, align 8, !tbaa !5
  %192 = call i32 @fileno(ptr noundef %191) #8
  %193 = call i32 @isatty(i32 noundef %192) #8
  %194 = icmp ne i32 %193, 0
  br i1 %194, label %195, label %212

195:                                              ; preds = %190
  %196 = load i32, ptr %12, align 4, !tbaa !9
  %197 = call ptr @__errno_location() #9
  store i32 %196, ptr %197, align 4, !tbaa !9
  %198 = load ptr, ptr @stderr, align 8, !tbaa !5
  %199 = load i32, ptr @test_count, align 4, !tbaa !9
  %200 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %201 = load i32, ptr %200, align 4, !tbaa !9
  %202 = call ptr @s2n_strerror(i32 noundef %201, ptr noundef @.str.6)
  %203 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %204 = load i32, ptr %203, align 4, !tbaa !9
  %205 = call ptr @s2n_strerror_debug(i32 noundef %204, ptr noundef @.str.6)
  %206 = call ptr @__errno_location() #9
  %207 = load i32, ptr %206, align 4, !tbaa !9
  %208 = call ptr @strerror(i32 noundef %207) #8
  %209 = call ptr @__errno_location() #9
  %210 = load i32, ptr %209, align 4, !tbaa !9
  %211 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %198, ptr noundef @.str.3, i32 noundef %199, ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 77, ptr noundef %202, ptr noundef %205, ptr noundef %208, i32 noundef %210) #8
  br label %229

212:                                              ; preds = %190, %183
  %213 = load i32, ptr %12, align 4, !tbaa !9
  %214 = call ptr @__errno_location() #9
  store i32 %213, ptr %214, align 4, !tbaa !9
  %215 = load ptr, ptr @stderr, align 8, !tbaa !5
  %216 = load i32, ptr @test_count, align 4, !tbaa !9
  %217 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %218 = load i32, ptr %217, align 4, !tbaa !9
  %219 = call ptr @s2n_strerror(i32 noundef %218, ptr noundef @.str.6)
  %220 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %221 = load i32, ptr %220, align 4, !tbaa !9
  %222 = call ptr @s2n_strerror_debug(i32 noundef %221, ptr noundef @.str.6)
  %223 = call ptr @__errno_location() #9
  %224 = load i32, ptr %223, align 4, !tbaa !9
  %225 = call ptr @strerror(i32 noundef %224) #8
  %226 = call ptr @__errno_location() #9
  %227 = load i32, ptr %226, align 4, !tbaa !9
  %228 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %215, ptr noundef @.str.7, i32 noundef %216, ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 77, ptr noundef %219, ptr noundef %222, ptr noundef %225, i32 noundef %227) #8
  br label %229

229:                                              ; preds = %212, %195
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %230

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

231:                                              ; No predecessors!
  br label %232

232:                                              ; preds = %231, %175
  br label %233

233:                                              ; preds = %232
  br label %234

234:                                              ; preds = %233
  %235 = load i32, ptr @test_count, align 4, !tbaa !9
  %236 = add nsw i32 %235, 1
  store i32 %236, ptr @test_count, align 4, !tbaa !9
  %237 = load ptr, ptr %3, align 8, !tbaa !5
  %238 = call zeroext i1 @s2n_connection_check_io_status(ptr noundef %237, i32 noundef 2)
  br i1 %238, label %290, label %239

239:                                              ; preds = %234
  br label %240

240:                                              ; preds = %239
  br label %241

241:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %242 = call ptr @__errno_location() #9
  %243 = load i32, ptr %242, align 4, !tbaa !9
  store i32 %243, ptr %13, align 4, !tbaa !9
  %244 = load ptr, ptr @stderr, align 8, !tbaa !5
  %245 = call i32 @s2n_print_stacktrace(ptr noundef %244)
  %246 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %247 = trunc i8 %246 to i1
  br i1 %247, label %248, label %270

248:                                              ; preds = %241
  %249 = load ptr, ptr @stderr, align 8, !tbaa !5
  %250 = call i32 @fileno(ptr noundef %249) #8
  %251 = call i32 @isatty(i32 noundef %250) #8
  %252 = icmp ne i32 %251, 0
  br i1 %252, label %253, label %270

253:                                              ; preds = %248
  %254 = load i32, ptr %13, align 4, !tbaa !9
  %255 = call ptr @__errno_location() #9
  store i32 %254, ptr %255, align 4, !tbaa !9
  %256 = load ptr, ptr @stderr, align 8, !tbaa !5
  %257 = load i32, ptr @test_count, align 4, !tbaa !9
  %258 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %259 = load i32, ptr %258, align 4, !tbaa !9
  %260 = call ptr @s2n_strerror(i32 noundef %259, ptr noundef @.str.6)
  %261 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %262 = load i32, ptr %261, align 4, !tbaa !9
  %263 = call ptr @s2n_strerror_debug(i32 noundef %262, ptr noundef @.str.6)
  %264 = call ptr @__errno_location() #9
  %265 = load i32, ptr %264, align 4, !tbaa !9
  %266 = call ptr @strerror(i32 noundef %265) #8
  %267 = call ptr @__errno_location() #9
  %268 = load i32, ptr %267, align 4, !tbaa !9
  %269 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %256, ptr noundef @.str.3, i32 noundef %257, ptr noundef @.str.8, ptr noundef @.str.5, i32 noundef 77, ptr noundef %260, ptr noundef %263, ptr noundef %266, i32 noundef %268) #8
  br label %287

270:                                              ; preds = %248, %241
  %271 = load i32, ptr %13, align 4, !tbaa !9
  %272 = call ptr @__errno_location() #9
  store i32 %271, ptr %272, align 4, !tbaa !9
  %273 = load ptr, ptr @stderr, align 8, !tbaa !5
  %274 = load i32, ptr @test_count, align 4, !tbaa !9
  %275 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %276 = load i32, ptr %275, align 4, !tbaa !9
  %277 = call ptr @s2n_strerror(i32 noundef %276, ptr noundef @.str.6)
  %278 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %279 = load i32, ptr %278, align 4, !tbaa !9
  %280 = call ptr @s2n_strerror_debug(i32 noundef %279, ptr noundef @.str.6)
  %281 = call ptr @__errno_location() #9
  %282 = load i32, ptr %281, align 4, !tbaa !9
  %283 = call ptr @strerror(i32 noundef %282) #8
  %284 = call ptr @__errno_location() #9
  %285 = load i32, ptr %284, align 4, !tbaa !9
  %286 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %273, ptr noundef @.str.7, i32 noundef %274, ptr noundef @.str.8, ptr noundef @.str.5, i32 noundef 77, ptr noundef %277, ptr noundef %280, ptr noundef %283, i32 noundef %285) #8
  br label %287

287:                                              ; preds = %270, %253
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %288

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

289:                                              ; No predecessors!
  br label %290

290:                                              ; preds = %289, %234
  br label %291

291:                                              ; preds = %290
  br label %292

292:                                              ; preds = %291
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %293 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %293, ptr %14, align 8, !tbaa !5
  br label %294

294:                                              ; preds = %292
  %295 = call i32 @s2n_posix_func(i1 noundef zeroext true)
  %296 = icmp sgt i32 %295, -1
  br i1 %296, label %298, label %297

297:                                              ; preds = %294
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %305

298:                                              ; preds = %294
  br label %299

299:                                              ; preds = %298
  br label %300

300:                                              ; preds = %299
  %301 = load ptr, ptr %14, align 8, !tbaa !5
  %302 = icmp ne ptr %301, null
  br i1 %302, label %303, label %304

303:                                              ; preds = %300
  store ptr null, ptr %14, align 8, !tbaa !5
  br label %304

304:                                              ; preds = %303, %300
  store i32 0, ptr %6, align 4
  br label %305

305:                                              ; preds = %304, %297
  %306 = call i32 @s2n_connection_apply_error_blinding(ptr noundef %14)
  %307 = getelementptr inbounds %struct.s2n_result, ptr %15, i32 0, i32 0
  store i32 %306, ptr %307, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  %308 = load i32, ptr %6, align 4
  switch i32 %308, label %585 [
    i32 0, label %309
    i32 1, label %583
  ]

309:                                              ; preds = %305
  br label %310

310:                                              ; preds = %309
  br label %311

311:                                              ; preds = %310
  %312 = load i32, ptr @test_count, align 4, !tbaa !9
  %313 = add nsw i32 %312, 1
  store i32 %313, ptr @test_count, align 4, !tbaa !9
  %314 = load ptr, ptr %3, align 8, !tbaa !5
  %315 = call i64 @s2n_connection_get_delay(ptr noundef %314)
  %316 = icmp eq i64 %315, 0
  br i1 %316, label %368, label %317

317:                                              ; preds = %311
  br label %318

318:                                              ; preds = %317
  br label %319

319:                                              ; preds = %318
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %320 = call ptr @__errno_location() #9
  %321 = load i32, ptr %320, align 4, !tbaa !9
  store i32 %321, ptr %16, align 4, !tbaa !9
  %322 = load ptr, ptr @stderr, align 8, !tbaa !5
  %323 = call i32 @s2n_print_stacktrace(ptr noundef %322)
  %324 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %325 = trunc i8 %324 to i1
  br i1 %325, label %326, label %348

326:                                              ; preds = %319
  %327 = load ptr, ptr @stderr, align 8, !tbaa !5
  %328 = call i32 @fileno(ptr noundef %327) #8
  %329 = call i32 @isatty(i32 noundef %328) #8
  %330 = icmp ne i32 %329, 0
  br i1 %330, label %331, label %348

331:                                              ; preds = %326
  %332 = load i32, ptr %16, align 4, !tbaa !9
  %333 = call ptr @__errno_location() #9
  store i32 %332, ptr %333, align 4, !tbaa !9
  %334 = load ptr, ptr @stderr, align 8, !tbaa !5
  %335 = load i32, ptr @test_count, align 4, !tbaa !9
  %336 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %337 = load i32, ptr %336, align 4, !tbaa !9
  %338 = call ptr @s2n_strerror(i32 noundef %337, ptr noundef @.str.6)
  %339 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %340 = load i32, ptr %339, align 4, !tbaa !9
  %341 = call ptr @s2n_strerror_debug(i32 noundef %340, ptr noundef @.str.6)
  %342 = call ptr @__errno_location() #9
  %343 = load i32, ptr %342, align 4, !tbaa !9
  %344 = call ptr @strerror(i32 noundef %343) #8
  %345 = call ptr @__errno_location() #9
  %346 = load i32, ptr %345, align 4, !tbaa !9
  %347 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %334, ptr noundef @.str.3, i32 noundef %335, ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 80, ptr noundef %338, ptr noundef %341, ptr noundef %344, i32 noundef %346) #8
  br label %365

348:                                              ; preds = %326, %319
  %349 = load i32, ptr %16, align 4, !tbaa !9
  %350 = call ptr @__errno_location() #9
  store i32 %349, ptr %350, align 4, !tbaa !9
  %351 = load ptr, ptr @stderr, align 8, !tbaa !5
  %352 = load i32, ptr @test_count, align 4, !tbaa !9
  %353 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %354 = load i32, ptr %353, align 4, !tbaa !9
  %355 = call ptr @s2n_strerror(i32 noundef %354, ptr noundef @.str.6)
  %356 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %357 = load i32, ptr %356, align 4, !tbaa !9
  %358 = call ptr @s2n_strerror_debug(i32 noundef %357, ptr noundef @.str.6)
  %359 = call ptr @__errno_location() #9
  %360 = load i32, ptr %359, align 4, !tbaa !9
  %361 = call ptr @strerror(i32 noundef %360) #8
  %362 = call ptr @__errno_location() #9
  %363 = load i32, ptr %362, align 4, !tbaa !9
  %364 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %351, ptr noundef @.str.7, i32 noundef %352, ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 80, ptr noundef %355, ptr noundef %358, ptr noundef %361, i32 noundef %363) #8
  br label %365

365:                                              ; preds = %348, %331
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %366

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

367:                                              ; No predecessors!
  br label %368

368:                                              ; preds = %367, %311
  br label %369

369:                                              ; preds = %368
  br label %370

370:                                              ; preds = %369
  %371 = load i32, ptr @test_count, align 4, !tbaa !9
  %372 = add nsw i32 %371, 1
  store i32 %372, ptr @test_count, align 4, !tbaa !9
  %373 = load ptr, ptr %3, align 8, !tbaa !5
  %374 = call zeroext i1 @s2n_connection_check_io_status(ptr noundef %373, i32 noundef 2)
  br i1 %374, label %426, label %375

375:                                              ; preds = %370
  br label %376

376:                                              ; preds = %375
  br label %377

377:                                              ; preds = %376
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %378 = call ptr @__errno_location() #9
  %379 = load i32, ptr %378, align 4, !tbaa !9
  store i32 %379, ptr %17, align 4, !tbaa !9
  %380 = load ptr, ptr @stderr, align 8, !tbaa !5
  %381 = call i32 @s2n_print_stacktrace(ptr noundef %380)
  %382 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %383 = trunc i8 %382 to i1
  br i1 %383, label %384, label %406

384:                                              ; preds = %377
  %385 = load ptr, ptr @stderr, align 8, !tbaa !5
  %386 = call i32 @fileno(ptr noundef %385) #8
  %387 = call i32 @isatty(i32 noundef %386) #8
  %388 = icmp ne i32 %387, 0
  br i1 %388, label %389, label %406

389:                                              ; preds = %384
  %390 = load i32, ptr %17, align 4, !tbaa !9
  %391 = call ptr @__errno_location() #9
  store i32 %390, ptr %391, align 4, !tbaa !9
  %392 = load ptr, ptr @stderr, align 8, !tbaa !5
  %393 = load i32, ptr @test_count, align 4, !tbaa !9
  %394 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %395 = load i32, ptr %394, align 4, !tbaa !9
  %396 = call ptr @s2n_strerror(i32 noundef %395, ptr noundef @.str.6)
  %397 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %398 = load i32, ptr %397, align 4, !tbaa !9
  %399 = call ptr @s2n_strerror_debug(i32 noundef %398, ptr noundef @.str.6)
  %400 = call ptr @__errno_location() #9
  %401 = load i32, ptr %400, align 4, !tbaa !9
  %402 = call ptr @strerror(i32 noundef %401) #8
  %403 = call ptr @__errno_location() #9
  %404 = load i32, ptr %403, align 4, !tbaa !9
  %405 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %392, ptr noundef @.str.3, i32 noundef %393, ptr noundef @.str.8, ptr noundef @.str.5, i32 noundef 80, ptr noundef %396, ptr noundef %399, ptr noundef %402, i32 noundef %404) #8
  br label %423

406:                                              ; preds = %384, %377
  %407 = load i32, ptr %17, align 4, !tbaa !9
  %408 = call ptr @__errno_location() #9
  store i32 %407, ptr %408, align 4, !tbaa !9
  %409 = load ptr, ptr @stderr, align 8, !tbaa !5
  %410 = load i32, ptr @test_count, align 4, !tbaa !9
  %411 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %412 = load i32, ptr %411, align 4, !tbaa !9
  %413 = call ptr @s2n_strerror(i32 noundef %412, ptr noundef @.str.6)
  %414 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %415 = load i32, ptr %414, align 4, !tbaa !9
  %416 = call ptr @s2n_strerror_debug(i32 noundef %415, ptr noundef @.str.6)
  %417 = call ptr @__errno_location() #9
  %418 = load i32, ptr %417, align 4, !tbaa !9
  %419 = call ptr @strerror(i32 noundef %418) #8
  %420 = call ptr @__errno_location() #9
  %421 = load i32, ptr %420, align 4, !tbaa !9
  %422 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %409, ptr noundef @.str.7, i32 noundef %410, ptr noundef @.str.8, ptr noundef @.str.5, i32 noundef 80, ptr noundef %413, ptr noundef %416, ptr noundef %419, i32 noundef %421) #8
  br label %423

423:                                              ; preds = %406, %389
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %424

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

425:                                              ; No predecessors!
  br label %426

426:                                              ; preds = %425, %370
  br label %427

427:                                              ; preds = %426
  br label %428

428:                                              ; preds = %427
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %429 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %429, ptr %18, align 8, !tbaa !5
  br label %430

430:                                              ; preds = %428
  %431 = call ptr @s2n_ptr_func(i1 noundef zeroext true)
  %432 = icmp ne ptr %431, null
  br i1 %432, label %434, label %433

433:                                              ; preds = %430
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %441

434:                                              ; preds = %430
  br label %435

435:                                              ; preds = %434
  br label %436

436:                                              ; preds = %435
  %437 = load ptr, ptr %18, align 8, !tbaa !5
  %438 = icmp ne ptr %437, null
  br i1 %438, label %439, label %440

439:                                              ; preds = %436
  store ptr null, ptr %18, align 8, !tbaa !5
  br label %440

440:                                              ; preds = %439, %436
  store i32 0, ptr %6, align 4
  br label %441

441:                                              ; preds = %440, %433
  %442 = call i32 @s2n_connection_apply_error_blinding(ptr noundef %18)
  %443 = getelementptr inbounds %struct.s2n_result, ptr %19, i32 0, i32 0
  store i32 %442, ptr %443, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  %444 = load i32, ptr %6, align 4
  switch i32 %444, label %585 [
    i32 0, label %445
    i32 1, label %583
  ]

445:                                              ; preds = %441
  br label %446

446:                                              ; preds = %445
  br label %447

447:                                              ; preds = %446
  %448 = load i32, ptr @test_count, align 4, !tbaa !9
  %449 = add nsw i32 %448, 1
  store i32 %449, ptr @test_count, align 4, !tbaa !9
  %450 = load ptr, ptr %3, align 8, !tbaa !5
  %451 = call i64 @s2n_connection_get_delay(ptr noundef %450)
  %452 = icmp eq i64 %451, 0
  br i1 %452, label %504, label %453

453:                                              ; preds = %447
  br label %454

454:                                              ; preds = %453
  br label %455

455:                                              ; preds = %454
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %456 = call ptr @__errno_location() #9
  %457 = load i32, ptr %456, align 4, !tbaa !9
  store i32 %457, ptr %20, align 4, !tbaa !9
  %458 = load ptr, ptr @stderr, align 8, !tbaa !5
  %459 = call i32 @s2n_print_stacktrace(ptr noundef %458)
  %460 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %461 = trunc i8 %460 to i1
  br i1 %461, label %462, label %484

462:                                              ; preds = %455
  %463 = load ptr, ptr @stderr, align 8, !tbaa !5
  %464 = call i32 @fileno(ptr noundef %463) #8
  %465 = call i32 @isatty(i32 noundef %464) #8
  %466 = icmp ne i32 %465, 0
  br i1 %466, label %467, label %484

467:                                              ; preds = %462
  %468 = load i32, ptr %20, align 4, !tbaa !9
  %469 = call ptr @__errno_location() #9
  store i32 %468, ptr %469, align 4, !tbaa !9
  %470 = load ptr, ptr @stderr, align 8, !tbaa !5
  %471 = load i32, ptr @test_count, align 4, !tbaa !9
  %472 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %473 = load i32, ptr %472, align 4, !tbaa !9
  %474 = call ptr @s2n_strerror(i32 noundef %473, ptr noundef @.str.6)
  %475 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %476 = load i32, ptr %475, align 4, !tbaa !9
  %477 = call ptr @s2n_strerror_debug(i32 noundef %476, ptr noundef @.str.6)
  %478 = call ptr @__errno_location() #9
  %479 = load i32, ptr %478, align 4, !tbaa !9
  %480 = call ptr @strerror(i32 noundef %479) #8
  %481 = call ptr @__errno_location() #9
  %482 = load i32, ptr %481, align 4, !tbaa !9
  %483 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %470, ptr noundef @.str.3, i32 noundef %471, ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 83, ptr noundef %474, ptr noundef %477, ptr noundef %480, i32 noundef %482) #8
  br label %501

484:                                              ; preds = %462, %455
  %485 = load i32, ptr %20, align 4, !tbaa !9
  %486 = call ptr @__errno_location() #9
  store i32 %485, ptr %486, align 4, !tbaa !9
  %487 = load ptr, ptr @stderr, align 8, !tbaa !5
  %488 = load i32, ptr @test_count, align 4, !tbaa !9
  %489 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %490 = load i32, ptr %489, align 4, !tbaa !9
  %491 = call ptr @s2n_strerror(i32 noundef %490, ptr noundef @.str.6)
  %492 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %493 = load i32, ptr %492, align 4, !tbaa !9
  %494 = call ptr @s2n_strerror_debug(i32 noundef %493, ptr noundef @.str.6)
  %495 = call ptr @__errno_location() #9
  %496 = load i32, ptr %495, align 4, !tbaa !9
  %497 = call ptr @strerror(i32 noundef %496) #8
  %498 = call ptr @__errno_location() #9
  %499 = load i32, ptr %498, align 4, !tbaa !9
  %500 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %487, ptr noundef @.str.7, i32 noundef %488, ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 83, ptr noundef %491, ptr noundef %494, ptr noundef %497, i32 noundef %499) #8
  br label %501

501:                                              ; preds = %484, %467
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %502

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

503:                                              ; No predecessors!
  br label %504

504:                                              ; preds = %503, %447
  br label %505

505:                                              ; preds = %504
  br label %506

506:                                              ; preds = %505
  %507 = load i32, ptr @test_count, align 4, !tbaa !9
  %508 = add nsw i32 %507, 1
  store i32 %508, ptr @test_count, align 4, !tbaa !9
  %509 = load ptr, ptr %3, align 8, !tbaa !5
  %510 = call zeroext i1 @s2n_connection_check_io_status(ptr noundef %509, i32 noundef 2)
  br i1 %510, label %562, label %511

511:                                              ; preds = %506
  br label %512

512:                                              ; preds = %511
  br label %513

513:                                              ; preds = %512
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %514 = call ptr @__errno_location() #9
  %515 = load i32, ptr %514, align 4, !tbaa !9
  store i32 %515, ptr %21, align 4, !tbaa !9
  %516 = load ptr, ptr @stderr, align 8, !tbaa !5
  %517 = call i32 @s2n_print_stacktrace(ptr noundef %516)
  %518 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %519 = trunc i8 %518 to i1
  br i1 %519, label %520, label %542

520:                                              ; preds = %513
  %521 = load ptr, ptr @stderr, align 8, !tbaa !5
  %522 = call i32 @fileno(ptr noundef %521) #8
  %523 = call i32 @isatty(i32 noundef %522) #8
  %524 = icmp ne i32 %523, 0
  br i1 %524, label %525, label %542

525:                                              ; preds = %520
  %526 = load i32, ptr %21, align 4, !tbaa !9
  %527 = call ptr @__errno_location() #9
  store i32 %526, ptr %527, align 4, !tbaa !9
  %528 = load ptr, ptr @stderr, align 8, !tbaa !5
  %529 = load i32, ptr @test_count, align 4, !tbaa !9
  %530 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %531 = load i32, ptr %530, align 4, !tbaa !9
  %532 = call ptr @s2n_strerror(i32 noundef %531, ptr noundef @.str.6)
  %533 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %534 = load i32, ptr %533, align 4, !tbaa !9
  %535 = call ptr @s2n_strerror_debug(i32 noundef %534, ptr noundef @.str.6)
  %536 = call ptr @__errno_location() #9
  %537 = load i32, ptr %536, align 4, !tbaa !9
  %538 = call ptr @strerror(i32 noundef %537) #8
  %539 = call ptr @__errno_location() #9
  %540 = load i32, ptr %539, align 4, !tbaa !9
  %541 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %528, ptr noundef @.str.3, i32 noundef %529, ptr noundef @.str.8, ptr noundef @.str.5, i32 noundef 83, ptr noundef %532, ptr noundef %535, ptr noundef %538, i32 noundef %540) #8
  br label %559

542:                                              ; preds = %520, %513
  %543 = load i32, ptr %21, align 4, !tbaa !9
  %544 = call ptr @__errno_location() #9
  store i32 %543, ptr %544, align 4, !tbaa !9
  %545 = load ptr, ptr @stderr, align 8, !tbaa !5
  %546 = load i32, ptr @test_count, align 4, !tbaa !9
  %547 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %548 = load i32, ptr %547, align 4, !tbaa !9
  %549 = call ptr @s2n_strerror(i32 noundef %548, ptr noundef @.str.6)
  %550 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %551 = load i32, ptr %550, align 4, !tbaa !9
  %552 = call ptr @s2n_strerror_debug(i32 noundef %551, ptr noundef @.str.6)
  %553 = call ptr @__errno_location() #9
  %554 = load i32, ptr %553, align 4, !tbaa !9
  %555 = call ptr @strerror(i32 noundef %554) #8
  %556 = call ptr @__errno_location() #9
  %557 = load i32, ptr %556, align 4, !tbaa !9
  %558 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %545, ptr noundef @.str.7, i32 noundef %546, ptr noundef @.str.8, ptr noundef @.str.5, i32 noundef 83, ptr noundef %549, ptr noundef %552, ptr noundef %555, i32 noundef %557) #8
  br label %559

559:                                              ; preds = %542, %525
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %560

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

561:                                              ; No predecessors!
  br label %562

562:                                              ; preds = %561, %506
  br label %563

563:                                              ; preds = %562
  br label %564

564:                                              ; preds = %563
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %565 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %565, ptr %22, align 8, !tbaa !5
  br label %566

566:                                              ; preds = %564
  %567 = call i32 @s2n_posix_func(i1 noundef zeroext false)
  %568 = icmp sgt i32 %567, -1
  br i1 %568, label %570, label %569

569:                                              ; preds = %566
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %577

570:                                              ; preds = %566
  br label %571

571:                                              ; preds = %570
  br label %572

572:                                              ; preds = %571
  %573 = load ptr, ptr %22, align 8, !tbaa !5
  %574 = icmp ne ptr %573, null
  br i1 %574, label %575, label %576

575:                                              ; preds = %572
  store ptr null, ptr %22, align 8, !tbaa !5
  br label %576

576:                                              ; preds = %575, %572
  store i32 0, ptr %6, align 4
  br label %577

577:                                              ; preds = %576, %569
  %578 = call i32 @s2n_connection_apply_error_blinding(ptr noundef %22)
  %579 = getelementptr inbounds %struct.s2n_result, ptr %23, i32 0, i32 0
  store i32 %578, ptr %579, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  %580 = load i32, ptr %6, align 4
  switch i32 %580, label %585 [
    i32 0, label %581
    i32 1, label %583
  ]

581:                                              ; preds = %577
  br label %582

582:                                              ; preds = %581
  store i32 0, ptr %2, align 4
  br label %583

583:                                              ; preds = %582, %577, %441, %305, %40
  %584 = load i32, ptr %2, align 4
  ret i32 %584

585:                                              ; preds = %577, %441, %305, %40
  unreachable
}

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

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

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


; 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
@s2n_errno = external thread_local local_unnamed_addr global i32, align 4
@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 [53 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [83 x i8], align 1
@.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.8 = external hidden unnamed_addr constant [70 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @s2n_result_func(i1 noundef zeroext) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @s2n_posix_func(i1 noundef zeroext) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @s2n_ptr_func(i1 noundef zeroext) local_unnamed_addr #0

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

declare i32 @s2n_connection_apply_error_blinding(ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @s2n_result_is_ok(i32) local_unnamed_addr #4

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

declare i64 @s2n_connection_get_delay(ptr noundef) local_unnamed_addr #3

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

declare i32 @s2n_print_stacktrace(ptr noundef) local_unnamed_addr #3

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

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

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

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

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

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

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

declare zeroext i1 @s2n_connection_check_io_status(ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @s2n_posix_test(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #9
  store ptr %0, ptr %2, align 8, !tbaa !5
  %7 = tail call i32 @s2n_result_func(i1 noundef zeroext true)
  %8 = tail call zeroext i1 @s2n_result_is_ok(i32 %7)
  %.not = icmp ne ptr %0, null
  %or.cond.not = and i1 %8, %.not
  br i1 %or.cond.not, label %9, label %10

9:                                                ; preds = %1
  store ptr null, ptr %2, align 8, !tbaa !5
  br label %10

10:                                               ; preds = %9, %1
  %11 = call i32 @s2n_connection_apply_error_blinding(ptr noundef nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  br i1 %8, label %12, label %259

12:                                               ; preds = %10
  %13 = load i32, ptr @test_count, align 4, !tbaa !9
  %14 = add nsw i32 %13, 1
  store i32 %14, ptr @test_count, align 4, !tbaa !9
  %15 = call i64 @s2n_connection_get_delay(ptr noundef %0) #9
  %16 = icmp eq i64 %15, 0
  br i1 %16, label %41, label %17

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

24:                                               ; preds = %17
  %25 = load ptr, ptr @stderr, align 8, !tbaa !5
  %26 = call i32 @fileno(ptr noundef %25) #9
  %27 = call i32 @isatty(i32 noundef %26) #9
  %.not42 = icmp eq i32 %27, 0
  br i1 %.not42, label %28, label %29

28:                                               ; preds = %24, %17
  br label %29

29:                                               ; preds = %24, %28
  %.str.7.sink = phi ptr [ @.str.7, %28 ], [ @.str.3, %24 ]
  store i32 %19, ptr %18, align 4, !tbaa !9
  %30 = load ptr, ptr @stderr, align 8, !tbaa !5
  %31 = load i32, ptr @test_count, align 4, !tbaa !9
  %32 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %33 = load i32, ptr %32, align 4, !tbaa !9
  %34 = call ptr @s2n_strerror(i32 noundef %33, ptr noundef nonnull @.str.6) #9
  %35 = load i32, ptr %32, align 4, !tbaa !9
  %36 = call ptr @s2n_strerror_debug(i32 noundef %35, ptr noundef nonnull @.str.6) #9
  %37 = load i32, ptr %18, align 4, !tbaa !9
  %38 = call ptr @strerror(i32 noundef %37) #9
  %39 = load i32, ptr %18, align 4, !tbaa !9
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef nonnull %.str.7.sink, i32 noundef %31, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef 74, ptr noundef %34, ptr noundef %36, ptr noundef %38, i32 noundef %39) #11
  call void @exit(i32 noundef 1) #12
  unreachable

41:                                               ; preds = %12
  %42 = load i32, ptr @test_count, align 4, !tbaa !9
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr @test_count, align 4, !tbaa !9
  %44 = call zeroext i1 @s2n_connection_check_io_status(ptr noundef %0, i32 noundef 2) #9
  br i1 %44, label %69, label %45

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

52:                                               ; preds = %45
  %53 = load ptr, ptr @stderr, align 8, !tbaa !5
  %54 = call i32 @fileno(ptr noundef %53) #9
  %55 = call i32 @isatty(i32 noundef %54) #9
  %.not43 = icmp eq i32 %55, 0
  br i1 %.not43, label %56, label %57

56:                                               ; preds = %52, %45
  br label %57

57:                                               ; preds = %52, %56
  %.str.7.sink75 = phi ptr [ @.str.7, %56 ], [ @.str.3, %52 ]
  store i32 %47, ptr %46, align 4, !tbaa !9
  %58 = load ptr, ptr @stderr, align 8, !tbaa !5
  %59 = load i32, ptr @test_count, align 4, !tbaa !9
  %60 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %61 = load i32, ptr %60, align 4, !tbaa !9
  %62 = call ptr @s2n_strerror(i32 noundef %61, ptr noundef nonnull @.str.6) #9
  %63 = load i32, ptr %60, align 4, !tbaa !9
  %64 = call ptr @s2n_strerror_debug(i32 noundef %63, ptr noundef nonnull @.str.6) #9
  %65 = load i32, ptr %46, align 4, !tbaa !9
  %66 = call ptr @strerror(i32 noundef %65) #9
  %67 = load i32, ptr %46, align 4, !tbaa !9
  %68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef nonnull %.str.7.sink75, i32 noundef %59, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.5, i32 noundef 74, ptr noundef %62, ptr noundef %64, ptr noundef %66, i32 noundef %67) #11
  call void @exit(i32 noundef 1) #12
  unreachable

69:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  store ptr null, ptr %3, align 8
  %70 = call i32 @s2n_connection_apply_error_blinding(ptr noundef nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  %71 = load i32, ptr @test_count, align 4, !tbaa !9
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr @test_count, align 4, !tbaa !9
  %73 = call i64 @s2n_connection_get_delay(ptr noundef %0) #9
  %74 = icmp eq i64 %73, 0
  br i1 %74, label %99, label %75

75:                                               ; preds = %69
  %76 = tail call ptr @__errno_location() #10
  %77 = load i32, ptr %76, align 4, !tbaa !9
  %78 = load ptr, ptr @stderr, align 8, !tbaa !5
  %79 = call i32 @s2n_print_stacktrace(ptr noundef %78) #9
  %80 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %81 = trunc nuw i8 %80 to i1
  br i1 %81, label %82, label %86

82:                                               ; preds = %75
  %83 = load ptr, ptr @stderr, align 8, !tbaa !5
  %84 = call i32 @fileno(ptr noundef %83) #9
  %85 = call i32 @isatty(i32 noundef %84) #9
  %.not44 = icmp eq i32 %85, 0
  br i1 %.not44, label %86, label %87

86:                                               ; preds = %82, %75
  br label %87

87:                                               ; preds = %82, %86
  %.str.7.sink86 = phi ptr [ @.str.7, %86 ], [ @.str.3, %82 ]
  store i32 %77, ptr %76, align 4, !tbaa !9
  %88 = load ptr, ptr @stderr, align 8, !tbaa !5
  %89 = load i32, ptr @test_count, align 4, !tbaa !9
  %90 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %91 = load i32, ptr %90, align 4, !tbaa !9
  %92 = call ptr @s2n_strerror(i32 noundef %91, ptr noundef nonnull @.str.6) #9
  %93 = load i32, ptr %90, align 4, !tbaa !9
  %94 = call ptr @s2n_strerror_debug(i32 noundef %93, ptr noundef nonnull @.str.6) #9
  %95 = load i32, ptr %76, align 4, !tbaa !9
  %96 = call ptr @strerror(i32 noundef %95) #9
  %97 = load i32, ptr %76, align 4, !tbaa !9
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef nonnull %.str.7.sink86, i32 noundef %89, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef 77, ptr noundef %92, ptr noundef %94, ptr noundef %96, i32 noundef %97) #11
  call void @exit(i32 noundef 1) #12
  unreachable

99:                                               ; preds = %69
  %100 = load i32, ptr @test_count, align 4, !tbaa !9
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr @test_count, align 4, !tbaa !9
  %102 = call zeroext i1 @s2n_connection_check_io_status(ptr noundef %0, i32 noundef 2) #9
  br i1 %102, label %127, label %103

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

110:                                              ; preds = %103
  %111 = load ptr, ptr @stderr, align 8, !tbaa !5
  %112 = call i32 @fileno(ptr noundef %111) #9
  %113 = call i32 @isatty(i32 noundef %112) #9
  %.not45 = icmp eq i32 %113, 0
  br i1 %.not45, label %114, label %115

114:                                              ; preds = %110, %103
  br label %115

115:                                              ; preds = %110, %114
  %.str.7.sink97 = phi ptr [ @.str.7, %114 ], [ @.str.3, %110 ]
  store i32 %105, ptr %104, align 4, !tbaa !9
  %116 = load ptr, ptr @stderr, align 8, !tbaa !5
  %117 = load i32, ptr @test_count, align 4, !tbaa !9
  %118 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %119 = load i32, ptr %118, align 4, !tbaa !9
  %120 = call ptr @s2n_strerror(i32 noundef %119, ptr noundef nonnull @.str.6) #9
  %121 = load i32, ptr %118, align 4, !tbaa !9
  %122 = call ptr @s2n_strerror_debug(i32 noundef %121, ptr noundef nonnull @.str.6) #9
  %123 = load i32, ptr %104, align 4, !tbaa !9
  %124 = call ptr @strerror(i32 noundef %123) #9
  %125 = load i32, ptr %104, align 4, !tbaa !9
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %116, ptr noundef nonnull %.str.7.sink97, i32 noundef %117, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.5, i32 noundef 77, ptr noundef %120, ptr noundef %122, ptr noundef %124, i32 noundef %125) #11
  call void @exit(i32 noundef 1) #12
  unreachable

127:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  store ptr %0, ptr %4, align 8, !tbaa !5
  %128 = call i32 @s2n_posix_func(i1 noundef zeroext true)
  %129 = icmp slt i32 %128, 0
  %130 = load ptr, ptr %4, align 8
  %.not46 = icmp eq ptr %130, null
  %or.cond61 = select i1 %129, i1 true, i1 %.not46
  br i1 %or.cond61, label %132, label %.thread

.thread:                                          ; preds = %127
  store ptr null, ptr %4, align 8, !tbaa !5
  %131 = call i32 @s2n_connection_apply_error_blinding(ptr noundef nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  br label %134

132:                                              ; preds = %127
  %133 = call i32 @s2n_connection_apply_error_blinding(ptr noundef nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  br i1 %129, label %259, label %134

134:                                              ; preds = %.thread, %132
  %135 = load i32, ptr @test_count, align 4, !tbaa !9
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr @test_count, align 4, !tbaa !9
  %137 = call i64 @s2n_connection_get_delay(ptr noundef %0) #9
  %138 = icmp eq i64 %137, 0
  br i1 %138, label %163, label %139

139:                                              ; preds = %134
  %140 = tail call ptr @__errno_location() #10
  %141 = load i32, ptr %140, align 4, !tbaa !9
  %142 = load ptr, ptr @stderr, align 8, !tbaa !5
  %143 = call i32 @s2n_print_stacktrace(ptr noundef %142) #9
  %144 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %145 = trunc nuw i8 %144 to i1
  br i1 %145, label %146, label %150

146:                                              ; preds = %139
  %147 = load ptr, ptr @stderr, align 8, !tbaa !5
  %148 = call i32 @fileno(ptr noundef %147) #9
  %149 = call i32 @isatty(i32 noundef %148) #9
  %.not47 = icmp eq i32 %149, 0
  br i1 %.not47, label %150, label %151

150:                                              ; preds = %146, %139
  br label %151

151:                                              ; preds = %146, %150
  %.str.7.sink108 = phi ptr [ @.str.7, %150 ], [ @.str.3, %146 ]
  store i32 %141, ptr %140, align 4, !tbaa !9
  %152 = load ptr, ptr @stderr, align 8, !tbaa !5
  %153 = load i32, ptr @test_count, align 4, !tbaa !9
  %154 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %155 = load i32, ptr %154, align 4, !tbaa !9
  %156 = call ptr @s2n_strerror(i32 noundef %155, ptr noundef nonnull @.str.6) #9
  %157 = load i32, ptr %154, align 4, !tbaa !9
  %158 = call ptr @s2n_strerror_debug(i32 noundef %157, ptr noundef nonnull @.str.6) #9
  %159 = load i32, ptr %140, align 4, !tbaa !9
  %160 = call ptr @strerror(i32 noundef %159) #9
  %161 = load i32, ptr %140, align 4, !tbaa !9
  %162 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef nonnull %.str.7.sink108, i32 noundef %153, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef 80, ptr noundef %156, ptr noundef %158, ptr noundef %160, i32 noundef %161) #11
  call void @exit(i32 noundef 1) #12
  unreachable

163:                                              ; preds = %134
  %164 = load i32, ptr @test_count, align 4, !tbaa !9
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr @test_count, align 4, !tbaa !9
  %166 = call zeroext i1 @s2n_connection_check_io_status(ptr noundef %0, i32 noundef 2) #9
  br i1 %166, label %191, label %167

167:                                              ; preds = %163
  %168 = tail call ptr @__errno_location() #10
  %169 = load i32, ptr %168, align 4, !tbaa !9
  %170 = load ptr, ptr @stderr, align 8, !tbaa !5
  %171 = call i32 @s2n_print_stacktrace(ptr noundef %170) #9
  %172 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %173 = trunc nuw i8 %172 to i1
  br i1 %173, label %174, label %178

174:                                              ; preds = %167
  %175 = load ptr, ptr @stderr, align 8, !tbaa !5
  %176 = call i32 @fileno(ptr noundef %175) #9
  %177 = call i32 @isatty(i32 noundef %176) #9
  %.not48 = icmp eq i32 %177, 0
  br i1 %.not48, label %178, label %179

178:                                              ; preds = %174, %167
  br label %179

179:                                              ; preds = %174, %178
  %.str.7.sink119 = phi ptr [ @.str.7, %178 ], [ @.str.3, %174 ]
  store i32 %169, ptr %168, align 4, !tbaa !9
  %180 = load ptr, ptr @stderr, align 8, !tbaa !5
  %181 = load i32, ptr @test_count, align 4, !tbaa !9
  %182 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %183 = load i32, ptr %182, align 4, !tbaa !9
  %184 = call ptr @s2n_strerror(i32 noundef %183, ptr noundef nonnull @.str.6) #9
  %185 = load i32, ptr %182, align 4, !tbaa !9
  %186 = call ptr @s2n_strerror_debug(i32 noundef %185, ptr noundef nonnull @.str.6) #9
  %187 = load i32, ptr %168, align 4, !tbaa !9
  %188 = call ptr @strerror(i32 noundef %187) #9
  %189 = load i32, ptr %168, align 4, !tbaa !9
  %190 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %180, ptr noundef nonnull %.str.7.sink119, i32 noundef %181, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.5, i32 noundef 80, ptr noundef %184, ptr noundef %186, ptr noundef %188, i32 noundef %189) #11
  call void @exit(i32 noundef 1) #12
  unreachable

191:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  store ptr %0, ptr %5, align 8, !tbaa !5
  %192 = call ptr @s2n_ptr_func(i1 noundef zeroext true)
  %.not49 = icmp eq ptr %192, null
  %.not50 = icmp eq ptr %0, null
  %or.cond62 = or i1 %.not49, %.not50
  br i1 %or.cond62, label %194, label %.thread64

.thread64:                                        ; preds = %191
  store ptr null, ptr %5, align 8, !tbaa !5
  %193 = call i32 @s2n_connection_apply_error_blinding(ptr noundef nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  br label %196

194:                                              ; preds = %191
  %195 = call i32 @s2n_connection_apply_error_blinding(ptr noundef nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  br i1 %.not49, label %259, label %196

196:                                              ; preds = %.thread64, %194
  %197 = load i32, ptr @test_count, align 4, !tbaa !9
  %198 = add nsw i32 %197, 1
  store i32 %198, ptr @test_count, align 4, !tbaa !9
  %199 = call i64 @s2n_connection_get_delay(ptr noundef %0) #9
  %200 = icmp eq i64 %199, 0
  br i1 %200, label %225, label %201

201:                                              ; preds = %196
  %202 = tail call ptr @__errno_location() #10
  %203 = load i32, ptr %202, align 4, !tbaa !9
  %204 = load ptr, ptr @stderr, align 8, !tbaa !5
  %205 = call i32 @s2n_print_stacktrace(ptr noundef %204) #9
  %206 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %207 = trunc nuw i8 %206 to i1
  br i1 %207, label %208, label %212

208:                                              ; preds = %201
  %209 = load ptr, ptr @stderr, align 8, !tbaa !5
  %210 = call i32 @fileno(ptr noundef %209) #9
  %211 = call i32 @isatty(i32 noundef %210) #9
  %.not51 = icmp eq i32 %211, 0
  br i1 %.not51, label %212, label %213

212:                                              ; preds = %208, %201
  br label %213

213:                                              ; preds = %208, %212
  %.str.7.sink130 = phi ptr [ @.str.7, %212 ], [ @.str.3, %208 ]
  store i32 %203, ptr %202, align 4, !tbaa !9
  %214 = load ptr, ptr @stderr, align 8, !tbaa !5
  %215 = load i32, ptr @test_count, align 4, !tbaa !9
  %216 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %217 = load i32, ptr %216, align 4, !tbaa !9
  %218 = call ptr @s2n_strerror(i32 noundef %217, ptr noundef nonnull @.str.6) #9
  %219 = load i32, ptr %216, align 4, !tbaa !9
  %220 = call ptr @s2n_strerror_debug(i32 noundef %219, ptr noundef nonnull @.str.6) #9
  %221 = load i32, ptr %202, align 4, !tbaa !9
  %222 = call ptr @strerror(i32 noundef %221) #9
  %223 = load i32, ptr %202, align 4, !tbaa !9
  %224 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %214, ptr noundef nonnull %.str.7.sink130, i32 noundef %215, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef 83, ptr noundef %218, ptr noundef %220, ptr noundef %222, i32 noundef %223) #11
  call void @exit(i32 noundef 1) #12
  unreachable

225:                                              ; preds = %196
  %226 = load i32, ptr @test_count, align 4, !tbaa !9
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr @test_count, align 4, !tbaa !9
  %228 = call zeroext i1 @s2n_connection_check_io_status(ptr noundef %0, i32 noundef 2) #9
  br i1 %228, label %253, label %229

229:                                              ; preds = %225
  %230 = tail call ptr @__errno_location() #10
  %231 = load i32, ptr %230, align 4, !tbaa !9
  %232 = load ptr, ptr @stderr, align 8, !tbaa !5
  %233 = call i32 @s2n_print_stacktrace(ptr noundef %232) #9
  %234 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %235 = trunc nuw i8 %234 to i1
  br i1 %235, label %236, label %240

236:                                              ; preds = %229
  %237 = load ptr, ptr @stderr, align 8, !tbaa !5
  %238 = call i32 @fileno(ptr noundef %237) #9
  %239 = call i32 @isatty(i32 noundef %238) #9
  %.not52 = icmp eq i32 %239, 0
  br i1 %.not52, label %240, label %241

240:                                              ; preds = %236, %229
  br label %241

241:                                              ; preds = %236, %240
  %.str.7.sink141 = phi ptr [ @.str.7, %240 ], [ @.str.3, %236 ]
  store i32 %231, ptr %230, align 4, !tbaa !9
  %242 = load ptr, ptr @stderr, align 8, !tbaa !5
  %243 = load i32, ptr @test_count, align 4, !tbaa !9
  %244 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %245 = load i32, ptr %244, align 4, !tbaa !9
  %246 = call ptr @s2n_strerror(i32 noundef %245, ptr noundef nonnull @.str.6) #9
  %247 = load i32, ptr %244, align 4, !tbaa !9
  %248 = call ptr @s2n_strerror_debug(i32 noundef %247, ptr noundef nonnull @.str.6) #9
  %249 = load i32, ptr %230, align 4, !tbaa !9
  %250 = call ptr @strerror(i32 noundef %249) #9
  %251 = load i32, ptr %230, align 4, !tbaa !9
  %252 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %242, ptr noundef nonnull %.str.7.sink141, i32 noundef %243, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.5, i32 noundef 83, ptr noundef %246, ptr noundef %248, ptr noundef %250, i32 noundef %251) #11
  call void @exit(i32 noundef 1) #12
  unreachable

253:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  store ptr %0, ptr %6, align 8, !tbaa !5
  %254 = call i32 @s2n_posix_func(i1 noundef zeroext false)
  %255 = icmp slt i32 %254, 0
  %or.cond63 = or i1 %255, %.not50
  br i1 %or.cond63, label %257, label %256

256:                                              ; preds = %253
  store ptr null, ptr %6, align 8, !tbaa !5
  br label %257

257:                                              ; preds = %256, %253
  %258 = call i32 @s2n_connection_apply_error_blinding(ptr noundef nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  %.lobit = ashr i32 %254, 31
  br label %259

259:                                              ; preds = %257, %194, %132, %10
  %.4 = phi i32 [ -1, %10 ], [ -1, %132 ], [ -1, %194 ], [ %.lobit, %257 ]
  ret i32 %.4
}

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

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

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


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