; 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: nounwind uwtable
define dso_local i32 @s2n_result_test(ptr noundef %0) #0 {
  %2 = alloca %struct.s2n_result, 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
  %24 = alloca %struct.s2n_result, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  br label %25

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

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

33:                                               ; preds = %27
  %34 = getelementptr inbounds %struct.s2n_result, ptr %2, i32 0, i32 0
  store i32 -1, ptr %34, align 4, !tbaa !9
  store i32 1, ptr %6, align 4
  br label %42

35:                                               ; preds = %27
  br label %36

36:                                               ; preds = %35
  br label %37

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

40:                                               ; preds = %37
  store ptr null, ptr %4, align 8, !tbaa !5
  br label %41

41:                                               ; preds = %40, %37
  store i32 0, ptr %6, align 4
  br label %42

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

46:                                               ; preds = %42
  br label %47

47:                                               ; preds = %46
  br label %48

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

54:                                               ; preds = %48
  br label %55

55:                                               ; preds = %54
  br label %56

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

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

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

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

102:                                              ; preds = %85, %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %103

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

104:                                              ; No predecessors!
  br label %105

105:                                              ; preds = %104, %48
  br label %106

106:                                              ; preds = %105
  br label %107

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

112:                                              ; preds = %107
  br label %113

113:                                              ; preds = %112
  br label %114

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

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

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

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

160:                                              ; preds = %143, %126
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %161

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

162:                                              ; No predecessors!
  br label %163

163:                                              ; preds = %162, %107
  br label %164

164:                                              ; preds = %163
  br label %165

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

167:                                              ; preds = %165
  br label %168

168:                                              ; preds = %167
  br label %169

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

172:                                              ; preds = %169
  store ptr null, ptr %10, align 8, !tbaa !5
  br label %173

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

176:                                              ; preds = %173
  br label %177

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

183:                                              ; preds = %177
  br label %184

184:                                              ; preds = %183
  br label %185

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

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

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

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

231:                                              ; preds = %214, %197
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %232

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

233:                                              ; No predecessors!
  br label %234

234:                                              ; preds = %233, %177
  br label %235

235:                                              ; preds = %234
  br label %236

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

241:                                              ; preds = %236
  br label %242

242:                                              ; preds = %241
  br label %243

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

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

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

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

289:                                              ; preds = %272, %255
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  br label %290

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

291:                                              ; No predecessors!
  br label %292

292:                                              ; preds = %291, %236
  br label %293

293:                                              ; preds = %292
  br label %294

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

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

299:                                              ; preds = %296
  %300 = getelementptr inbounds %struct.s2n_result, ptr %2, i32 0, i32 0
  store i32 -1, ptr %300, align 4, !tbaa !9
  store i32 1, ptr %6, align 4
  br label %308

301:                                              ; preds = %296
  br label %302

302:                                              ; preds = %301
  br label %303

303:                                              ; preds = %302
  %304 = load ptr, ptr %14, align 8, !tbaa !5
  %305 = icmp ne ptr %304, null
  br i1 %305, label %306, label %307

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

307:                                              ; preds = %306, %303
  store i32 0, ptr %6, align 4
  br label %308

308:                                              ; preds = %307, %299
  %309 = call i32 @s2n_connection_apply_error_blinding(ptr noundef %14)
  %310 = getelementptr inbounds %struct.s2n_result, ptr %15, i32 0, i32 0
  store i32 %309, ptr %310, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  %311 = load i32, ptr %6, align 4
  switch i32 %311, label %595 [
    i32 0, label %312
    i32 1, label %592
  ]

312:                                              ; preds = %308
  br label %313

313:                                              ; preds = %312
  br label %314

314:                                              ; preds = %313
  %315 = load i32, ptr @test_count, align 4, !tbaa !12
  %316 = add nsw i32 %315, 1
  store i32 %316, ptr @test_count, align 4, !tbaa !12
  %317 = load ptr, ptr %3, align 8, !tbaa !5
  %318 = call i64 @s2n_connection_get_delay(ptr noundef %317)
  %319 = icmp eq i64 %318, 0
  br i1 %319, label %371, label %320

320:                                              ; preds = %314
  br label %321

321:                                              ; preds = %320
  br label %322

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

329:                                              ; preds = %322
  %330 = load ptr, ptr @stderr, align 8, !tbaa !5
  %331 = call i32 @fileno(ptr noundef %330) #8
  %332 = call i32 @isatty(i32 noundef %331) #8
  %333 = icmp ne i32 %332, 0
  br i1 %333, label %334, label %351

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

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

368:                                              ; preds = %351, %334
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %369

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

370:                                              ; No predecessors!
  br label %371

371:                                              ; preds = %370, %314
  br label %372

372:                                              ; preds = %371
  br label %373

373:                                              ; preds = %372
  %374 = load i32, ptr @test_count, align 4, !tbaa !12
  %375 = add nsw i32 %374, 1
  store i32 %375, ptr @test_count, align 4, !tbaa !12
  %376 = load ptr, ptr %3, align 8, !tbaa !5
  %377 = call zeroext i1 @s2n_connection_check_io_status(ptr noundef %376, i32 noundef 2)
  br i1 %377, label %429, label %378

378:                                              ; preds = %373
  br label %379

379:                                              ; preds = %378
  br label %380

380:                                              ; preds = %379
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  %381 = call ptr @__errno_location() #9
  %382 = load i32, ptr %381, align 4, !tbaa !12
  store i32 %382, ptr %17, align 4, !tbaa !12
  %383 = load ptr, ptr @stderr, align 8, !tbaa !5
  %384 = call i32 @s2n_print_stacktrace(ptr noundef %383)
  %385 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !13, !range !15, !noundef !16
  %386 = trunc i8 %385 to i1
  br i1 %386, label %387, label %409

387:                                              ; preds = %380
  %388 = load ptr, ptr @stderr, align 8, !tbaa !5
  %389 = call i32 @fileno(ptr noundef %388) #8
  %390 = call i32 @isatty(i32 noundef %389) #8
  %391 = icmp ne i32 %390, 0
  br i1 %391, label %392, label %409

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

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

426:                                              ; preds = %409, %392
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %427

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

428:                                              ; No predecessors!
  br label %429

429:                                              ; preds = %428, %373
  br label %430

430:                                              ; preds = %429
  br label %431

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

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

436:                                              ; preds = %433
  %437 = getelementptr inbounds %struct.s2n_result, ptr %2, i32 0, i32 0
  store i32 -1, ptr %437, align 4, !tbaa !9
  store i32 1, ptr %6, align 4
  br label %445

438:                                              ; preds = %433
  br label %439

439:                                              ; preds = %438
  br label %440

440:                                              ; preds = %439
  %441 = load ptr, ptr %18, align 8, !tbaa !5
  %442 = icmp ne ptr %441, null
  br i1 %442, label %443, label %444

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

444:                                              ; preds = %443, %440
  store i32 0, ptr %6, align 4
  br label %445

445:                                              ; preds = %444, %436
  %446 = call i32 @s2n_connection_apply_error_blinding(ptr noundef %18)
  %447 = getelementptr inbounds %struct.s2n_result, ptr %19, i32 0, i32 0
  store i32 %446, ptr %447, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  %448 = load i32, ptr %6, align 4
  switch i32 %448, label %595 [
    i32 0, label %449
    i32 1, label %592
  ]

449:                                              ; preds = %445
  br label %450

450:                                              ; preds = %449
  br label %451

451:                                              ; preds = %450
  %452 = load i32, ptr @test_count, align 4, !tbaa !12
  %453 = add nsw i32 %452, 1
  store i32 %453, ptr @test_count, align 4, !tbaa !12
  %454 = load ptr, ptr %3, align 8, !tbaa !5
  %455 = call i64 @s2n_connection_get_delay(ptr noundef %454)
  %456 = icmp eq i64 %455, 0
  br i1 %456, label %508, label %457

457:                                              ; preds = %451
  br label %458

458:                                              ; preds = %457
  br label %459

459:                                              ; preds = %458
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %460 = call ptr @__errno_location() #9
  %461 = load i32, ptr %460, align 4, !tbaa !12
  store i32 %461, ptr %20, align 4, !tbaa !12
  %462 = load ptr, ptr @stderr, align 8, !tbaa !5
  %463 = call i32 @s2n_print_stacktrace(ptr noundef %462)
  %464 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !13, !range !15, !noundef !16
  %465 = trunc i8 %464 to i1
  br i1 %465, label %466, label %488

466:                                              ; preds = %459
  %467 = load ptr, ptr @stderr, align 8, !tbaa !5
  %468 = call i32 @fileno(ptr noundef %467) #8
  %469 = call i32 @isatty(i32 noundef %468) #8
  %470 = icmp ne i32 %469, 0
  br i1 %470, label %471, label %488

471:                                              ; preds = %466
  %472 = load i32, ptr %20, align 4, !tbaa !12
  %473 = call ptr @__errno_location() #9
  store i32 %472, ptr %473, align 4, !tbaa !12
  %474 = load ptr, ptr @stderr, align 8, !tbaa !5
  %475 = load i32, ptr @test_count, align 4, !tbaa !12
  %476 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %477 = load i32, ptr %476, align 4, !tbaa !12
  %478 = call ptr @s2n_strerror(i32 noundef %477, ptr noundef @.str.6)
  %479 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %480 = load i32, ptr %479, align 4, !tbaa !12
  %481 = call ptr @s2n_strerror_debug(i32 noundef %480, ptr noundef @.str.6)
  %482 = call ptr @__errno_location() #9
  %483 = load i32, ptr %482, align 4, !tbaa !12
  %484 = call ptr @strerror(i32 noundef %483) #8
  %485 = call ptr @__errno_location() #9
  %486 = load i32, ptr %485, align 4, !tbaa !12
  %487 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %474, ptr noundef @.str.3, i32 noundef %475, ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 65, ptr noundef %478, ptr noundef %481, ptr noundef %484, i32 noundef %486) #8
  br label %505

488:                                              ; preds = %466, %459
  %489 = load i32, ptr %20, align 4, !tbaa !12
  %490 = call ptr @__errno_location() #9
  store i32 %489, ptr %490, align 4, !tbaa !12
  %491 = load ptr, ptr @stderr, align 8, !tbaa !5
  %492 = load i32, ptr @test_count, align 4, !tbaa !12
  %493 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %494 = load i32, ptr %493, align 4, !tbaa !12
  %495 = call ptr @s2n_strerror(i32 noundef %494, ptr noundef @.str.6)
  %496 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %497 = load i32, ptr %496, align 4, !tbaa !12
  %498 = call ptr @s2n_strerror_debug(i32 noundef %497, ptr noundef @.str.6)
  %499 = call ptr @__errno_location() #9
  %500 = load i32, ptr %499, align 4, !tbaa !12
  %501 = call ptr @strerror(i32 noundef %500) #8
  %502 = call ptr @__errno_location() #9
  %503 = load i32, ptr %502, align 4, !tbaa !12
  %504 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %491, ptr noundef @.str.7, i32 noundef %492, ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 65, ptr noundef %495, ptr noundef %498, ptr noundef %501, i32 noundef %503) #8
  br label %505

505:                                              ; preds = %488, %471
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %506

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

507:                                              ; No predecessors!
  br label %508

508:                                              ; preds = %507, %451
  br label %509

509:                                              ; preds = %508
  br label %510

510:                                              ; preds = %509
  %511 = load i32, ptr @test_count, align 4, !tbaa !12
  %512 = add nsw i32 %511, 1
  store i32 %512, ptr @test_count, align 4, !tbaa !12
  %513 = load ptr, ptr %3, align 8, !tbaa !5
  %514 = call zeroext i1 @s2n_connection_check_io_status(ptr noundef %513, i32 noundef 2)
  br i1 %514, label %566, label %515

515:                                              ; preds = %510
  br label %516

516:                                              ; preds = %515
  br label %517

517:                                              ; preds = %516
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %518 = call ptr @__errno_location() #9
  %519 = load i32, ptr %518, align 4, !tbaa !12
  store i32 %519, ptr %21, align 4, !tbaa !12
  %520 = load ptr, ptr @stderr, align 8, !tbaa !5
  %521 = call i32 @s2n_print_stacktrace(ptr noundef %520)
  %522 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !13, !range !15, !noundef !16
  %523 = trunc i8 %522 to i1
  br i1 %523, label %524, label %546

524:                                              ; preds = %517
  %525 = load ptr, ptr @stderr, align 8, !tbaa !5
  %526 = call i32 @fileno(ptr noundef %525) #8
  %527 = call i32 @isatty(i32 noundef %526) #8
  %528 = icmp ne i32 %527, 0
  br i1 %528, label %529, label %546

529:                                              ; preds = %524
  %530 = load i32, ptr %21, align 4, !tbaa !12
  %531 = call ptr @__errno_location() #9
  store i32 %530, ptr %531, align 4, !tbaa !12
  %532 = load ptr, ptr @stderr, align 8, !tbaa !5
  %533 = load i32, ptr @test_count, align 4, !tbaa !12
  %534 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %535 = load i32, ptr %534, align 4, !tbaa !12
  %536 = call ptr @s2n_strerror(i32 noundef %535, ptr noundef @.str.6)
  %537 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %538 = load i32, ptr %537, align 4, !tbaa !12
  %539 = call ptr @s2n_strerror_debug(i32 noundef %538, ptr noundef @.str.6)
  %540 = call ptr @__errno_location() #9
  %541 = load i32, ptr %540, align 4, !tbaa !12
  %542 = call ptr @strerror(i32 noundef %541) #8
  %543 = call ptr @__errno_location() #9
  %544 = load i32, ptr %543, align 4, !tbaa !12
  %545 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %532, ptr noundef @.str.3, i32 noundef %533, ptr noundef @.str.8, ptr noundef @.str.5, i32 noundef 65, ptr noundef %536, ptr noundef %539, ptr noundef %542, i32 noundef %544) #8
  br label %563

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

563:                                              ; preds = %546, %529
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %564

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

565:                                              ; No predecessors!
  br label %566

566:                                              ; preds = %565, %510
  br label %567

567:                                              ; preds = %566
  br label %568

568:                                              ; preds = %567
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %569 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %569, ptr %22, align 8, !tbaa !5
  br label %570

570:                                              ; preds = %568
  %571 = call i32 @s2n_result_func(i1 noundef zeroext false)
  %572 = getelementptr inbounds %struct.s2n_result, ptr %23, i32 0, i32 0
  store i32 %571, ptr %572, align 4
  %573 = getelementptr inbounds %struct.s2n_result, ptr %23, i32 0, i32 0
  %574 = load i32, ptr %573, align 4
  %575 = call zeroext i1 @s2n_result_is_ok(i32 %574)
  br i1 %575, label %578, label %576

576:                                              ; preds = %570
  %577 = getelementptr inbounds %struct.s2n_result, ptr %2, i32 0, i32 0
  store i32 -1, ptr %577, align 4, !tbaa !9
  store i32 1, ptr %6, align 4
  br label %585

578:                                              ; preds = %570
  br label %579

579:                                              ; preds = %578
  br label %580

580:                                              ; preds = %579
  %581 = load ptr, ptr %22, align 8, !tbaa !5
  %582 = icmp ne ptr %581, null
  br i1 %582, label %583, label %584

583:                                              ; preds = %580
  store ptr null, ptr %22, align 8, !tbaa !5
  br label %584

584:                                              ; preds = %583, %580
  store i32 0, ptr %6, align 4
  br label %585

585:                                              ; preds = %584, %576
  %586 = call i32 @s2n_connection_apply_error_blinding(ptr noundef %22)
  %587 = getelementptr inbounds %struct.s2n_result, ptr %24, i32 0, i32 0
  store i32 %586, ptr %587, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  %588 = load i32, ptr %6, align 4
  switch i32 %588, label %595 [
    i32 0, label %589
    i32 1, label %592
  ]

589:                                              ; preds = %585
  br label %590

590:                                              ; preds = %589
  %591 = getelementptr inbounds %struct.s2n_result, ptr %2, i32 0, i32 0
  store i32 0, ptr %591, align 4, !tbaa !9
  br label %592

592:                                              ; preds = %590, %585, %445, %308, %42
  %593 = getelementptr inbounds %struct.s2n_result, ptr %2, i32 0, i32 0
  %594 = load i32, ptr %593, align 4
  ret i32 %594

595:                                              ; preds = %585, %445, %308, %42
  unreachable
}

; 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

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, !11, i64 0}
!10 = !{!"", !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_Bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!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
@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: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @s2n_result_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
  %.not39 = icmp eq i32 %27, 0
  br i1 %.not39, 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 56, 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
  %.not40 = icmp eq i32 %55, 0
  br i1 %.not40, label %56, label %57

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

57:                                               ; preds = %52, %56
  %.str.7.sink73 = 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.sink73, i32 noundef %59, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.5, i32 noundef 56, 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
  %.not41 = icmp eq i32 %85, 0
  br i1 %.not41, label %86, label %87

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

87:                                               ; preds = %82, %86
  %.str.7.sink84 = 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.sink84, i32 noundef %89, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef 59, 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
  %.not42 = icmp eq i32 %113, 0
  br i1 %.not42, label %114, label %115

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

115:                                              ; preds = %110, %114
  %.str.7.sink95 = 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.sink95, i32 noundef %117, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.5, i32 noundef 59, 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
  %.not43 = icmp eq ptr %130, null
  %or.cond58 = select i1 %129, i1 true, i1 %.not43
  br i1 %or.cond58, 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
  %.not44 = icmp eq i32 %149, 0
  br i1 %.not44, label %150, label %151

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

151:                                              ; preds = %146, %150
  %.str.7.sink106 = 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.sink106, i32 noundef %153, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef 62, 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
  %.not45 = icmp eq i32 %177, 0
  br i1 %.not45, label %178, label %179

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

179:                                              ; preds = %174, %178
  %.str.7.sink117 = 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.sink117, i32 noundef %181, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.5, i32 noundef 62, 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)
  %.not46 = icmp eq ptr %192, null
  %.not47 = icmp eq ptr %0, null
  %or.cond59 = or i1 %.not46, %.not47
  br i1 %or.cond59, label %194, label %.thread62

.thread62:                                        ; 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 %.not46, label %259, label %196

196:                                              ; preds = %.thread62, %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
  %.not48 = icmp eq i32 %211, 0
  br i1 %.not48, label %212, label %213

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

213:                                              ; preds = %208, %212
  %.str.7.sink128 = 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.sink128, i32 noundef %215, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef 65, 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
  %.not49 = icmp eq i32 %239, 0
  br i1 %.not49, label %240, label %241

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

241:                                              ; preds = %236, %240
  %.str.7.sink139 = 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.sink139, i32 noundef %243, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.5, i32 noundef 65, 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_result_func(i1 noundef zeroext false)
  %255 = call zeroext i1 @s2n_result_is_ok(i32 %254)
  %or.cond61.not = and i1 %255, %.not
  br i1 %or.cond61.not, label %256, label %257

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
  %not. = xor i1 %255, true
  %spec.select = sext i1 %not. to i32
  br label %259

259:                                              ; preds = %257, %194, %132, %10
  %.sroa.038.4 = phi i32 [ -1, %10 ], [ -1, %132 ], [ -1, %194 ], [ %spec.select, %257 ]
  ret i32 %.sroa.038.4
}

; 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

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