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

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

@s2n_use_color_in_output = external dso_local global i8, align 1
@test_count = external dso_local global i32, align 4
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [101 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [78 x i8], align 1
@s2n_errno = external thread_local global i32, align 4
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [55 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @async_pkey_apply_in_callback(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  br label %13

13:                                               ; preds = %2
  %14 = load i32, ptr @test_count, align 4, !tbaa !9
  %15 = add nsw i32 %14, 1
  store i32 %15, ptr @test_count, align 4, !tbaa !9
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = icmp eq ptr %16, null
  br i1 %17, label %18, label %69

18:                                               ; preds = %13
  br label %19

19:                                               ; preds = %18
  br label %20

20:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %21 = call ptr @__errno_location() #8
  %22 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %22, ptr %5, align 4, !tbaa !9
  %23 = load ptr, ptr @stderr, align 8, !tbaa !5
  %24 = call i32 @s2n_print_stacktrace(ptr noundef %23)
  %25 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %26 = trunc i8 %25 to i1
  br i1 %26, label %27, label %49

27:                                               ; preds = %20
  %28 = load ptr, ptr @stderr, align 8, !tbaa !5
  %29 = call i32 @fileno(ptr noundef %28) #7
  %30 = call i32 @isatty(i32 noundef %29) #7
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %32, label %49

32:                                               ; preds = %27
  %33 = load i32, ptr %5, align 4, !tbaa !9
  %34 = call ptr @__errno_location() #8
  store i32 %33, ptr %34, align 4, !tbaa !9
  %35 = load ptr, ptr @stderr, align 8, !tbaa !5
  %36 = load i32, ptr @test_count, align 4, !tbaa !9
  %37 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %38 = load i32, ptr %37, align 4, !tbaa !9
  %39 = call ptr @s2n_strerror(i32 noundef %38, ptr noundef @.str.3)
  %40 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %41 = load i32, ptr %40, align 4, !tbaa !9
  %42 = call ptr @s2n_strerror_debug(i32 noundef %41, ptr noundef @.str.3)
  %43 = call ptr @__errno_location() #8
  %44 = load i32, ptr %43, align 4, !tbaa !9
  %45 = call ptr @strerror(i32 noundef %44) #7
  %46 = call ptr @__errno_location() #8
  %47 = load i32, ptr %46, align 4, !tbaa !9
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef @.str, i32 noundef %36, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 186, ptr noundef %39, ptr noundef %42, ptr noundef %45, i32 noundef %47) #7
  br label %66

49:                                               ; preds = %27, %20
  %50 = load i32, ptr %5, align 4, !tbaa !9
  %51 = call ptr @__errno_location() #8
  store i32 %50, ptr %51, align 4, !tbaa !9
  %52 = load ptr, ptr @stderr, align 8, !tbaa !5
  %53 = load i32, ptr @test_count, align 4, !tbaa !9
  %54 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %55 = load i32, ptr %54, align 4, !tbaa !9
  %56 = call ptr @s2n_strerror(i32 noundef %55, ptr noundef @.str.3)
  %57 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %58 = load i32, ptr %57, align 4, !tbaa !9
  %59 = call ptr @s2n_strerror_debug(i32 noundef %58, ptr noundef @.str.3)
  %60 = call ptr @__errno_location() #8
  %61 = load i32, ptr %60, align 4, !tbaa !9
  %62 = call ptr @strerror(i32 noundef %61) #7
  %63 = call ptr @__errno_location() #8
  %64 = load i32, ptr %63, align 4, !tbaa !9
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef @.str.4, i32 noundef %53, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 186, ptr noundef %56, ptr noundef %59, ptr noundef %62, i32 noundef %64) #7
  br label %66

66:                                               ; preds = %49, %32
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %67

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

68:                                               ; No predecessors!
  br label %69

69:                                               ; preds = %68, %13
  br label %70

70:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = call ptr @s2n_connection_get_selected_cert(ptr noundef %71)
  store ptr %72, ptr %6, align 8, !tbaa !5
  br label %73

73:                                               ; preds = %70
  %74 = load i32, ptr @test_count, align 4, !tbaa !9
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr @test_count, align 4, !tbaa !9
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = icmp eq ptr %76, null
  br i1 %77, label %78, label %131

78:                                               ; preds = %73
  br label %79

79:                                               ; preds = %78
  br label %80

80:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %81 = call ptr @__errno_location() #8
  %82 = load i32, ptr %81, align 4, !tbaa !9
  store i32 %82, ptr %7, align 4, !tbaa !9
  %83 = load ptr, ptr @stderr, align 8, !tbaa !5
  %84 = call i32 @s2n_print_stacktrace(ptr noundef %83)
  %85 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %86 = trunc i8 %85 to i1
  br i1 %86, label %87, label %109

87:                                               ; preds = %80
  %88 = load ptr, ptr @stderr, align 8, !tbaa !5
  %89 = call i32 @fileno(ptr noundef %88) #7
  %90 = call i32 @isatty(i32 noundef %89) #7
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %92, label %109

92:                                               ; preds = %87
  %93 = load i32, ptr %7, align 4, !tbaa !9
  %94 = call ptr @__errno_location() #8
  store i32 %93, ptr %94, align 4, !tbaa !9
  %95 = load ptr, ptr @stderr, align 8, !tbaa !5
  %96 = load i32, ptr @test_count, align 4, !tbaa !9
  %97 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %98 = load i32, ptr %97, align 4, !tbaa !9
  %99 = call ptr @s2n_strerror(i32 noundef %98, ptr noundef @.str.3)
  %100 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %101 = load i32, ptr %100, align 4, !tbaa !9
  %102 = call ptr @s2n_strerror_debug(i32 noundef %101, ptr noundef @.str.3)
  %103 = call ptr @__errno_location() #8
  %104 = load i32, ptr %103, align 4, !tbaa !9
  %105 = call ptr @strerror(i32 noundef %104) #7
  %106 = call ptr @__errno_location() #8
  %107 = load i32, ptr %106, align 4, !tbaa !9
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef @.str, i32 noundef %96, ptr noundef @.str.5, ptr noundef @.str.2, i32 noundef 190, ptr noundef %99, ptr noundef %102, ptr noundef %105, i32 noundef %107) #7
  br label %126

109:                                              ; preds = %87, %80
  %110 = load i32, ptr %7, align 4, !tbaa !9
  %111 = call ptr @__errno_location() #8
  store i32 %110, ptr %111, align 4, !tbaa !9
  %112 = load ptr, ptr @stderr, align 8, !tbaa !5
  %113 = load i32, ptr @test_count, align 4, !tbaa !9
  %114 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %115 = load i32, ptr %114, align 4, !tbaa !9
  %116 = call ptr @s2n_strerror(i32 noundef %115, ptr noundef @.str.3)
  %117 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %118 = load i32, ptr %117, align 4, !tbaa !9
  %119 = call ptr @s2n_strerror_debug(i32 noundef %118, ptr noundef @.str.3)
  %120 = call ptr @__errno_location() #8
  %121 = load i32, ptr %120, align 4, !tbaa !9
  %122 = call ptr @strerror(i32 noundef %121) #7
  %123 = call ptr @__errno_location() #8
  %124 = load i32, ptr %123, align 4, !tbaa !9
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %112, ptr noundef @.str.4, i32 noundef %113, ptr noundef @.str.5, ptr noundef @.str.2, i32 noundef 190, ptr noundef %116, ptr noundef %119, ptr noundef %122, i32 noundef %124) #7
  br label %126

126:                                              ; preds = %109, %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %127

127:                                              ; preds = %126
  br label %128

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

129:                                              ; No predecessors!
  br label %130

130:                                              ; preds = %129
  br label %131

131:                                              ; preds = %130, %73
  br label %132

132:                                              ; preds = %131
  br label %133

133:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = call ptr @s2n_cert_chain_and_key_get_private_key(ptr noundef %134)
  store ptr %135, ptr %8, align 8, !tbaa !5
  br label %136

136:                                              ; preds = %133
  %137 = load i32, ptr @test_count, align 4, !tbaa !9
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr @test_count, align 4, !tbaa !9
  %139 = load ptr, ptr %8, align 8, !tbaa !5
  %140 = icmp eq ptr %139, null
  br i1 %140, label %141, label %194

141:                                              ; preds = %136
  br label %142

142:                                              ; preds = %141
  br label %143

143:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %144 = call ptr @__errno_location() #8
  %145 = load i32, ptr %144, align 4, !tbaa !9
  store i32 %145, ptr %9, align 4, !tbaa !9
  %146 = load ptr, ptr @stderr, align 8, !tbaa !5
  %147 = call i32 @s2n_print_stacktrace(ptr noundef %146)
  %148 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %149 = trunc i8 %148 to i1
  br i1 %149, label %150, label %172

150:                                              ; preds = %143
  %151 = load ptr, ptr @stderr, align 8, !tbaa !5
  %152 = call i32 @fileno(ptr noundef %151) #7
  %153 = call i32 @isatty(i32 noundef %152) #7
  %154 = icmp ne i32 %153, 0
  br i1 %154, label %155, label %172

155:                                              ; preds = %150
  %156 = load i32, ptr %9, align 4, !tbaa !9
  %157 = call ptr @__errno_location() #8
  store i32 %156, ptr %157, align 4, !tbaa !9
  %158 = load ptr, ptr @stderr, align 8, !tbaa !5
  %159 = load i32, ptr @test_count, align 4, !tbaa !9
  %160 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %161 = load i32, ptr %160, align 4, !tbaa !9
  %162 = call ptr @s2n_strerror(i32 noundef %161, ptr noundef @.str.3)
  %163 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %164 = load i32, ptr %163, align 4, !tbaa !9
  %165 = call ptr @s2n_strerror_debug(i32 noundef %164, ptr noundef @.str.3)
  %166 = call ptr @__errno_location() #8
  %167 = load i32, ptr %166, align 4, !tbaa !9
  %168 = call ptr @strerror(i32 noundef %167) #7
  %169 = call ptr @__errno_location() #8
  %170 = load i32, ptr %169, align 4, !tbaa !9
  %171 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %158, ptr noundef @.str, i32 noundef %159, ptr noundef @.str.6, ptr noundef @.str.2, i32 noundef 193, ptr noundef %162, ptr noundef %165, ptr noundef %168, i32 noundef %170) #7
  br label %189

172:                                              ; preds = %150, %143
  %173 = load i32, ptr %9, align 4, !tbaa !9
  %174 = call ptr @__errno_location() #8
  store i32 %173, ptr %174, align 4, !tbaa !9
  %175 = load ptr, ptr @stderr, align 8, !tbaa !5
  %176 = load i32, ptr @test_count, align 4, !tbaa !9
  %177 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %178 = load i32, ptr %177, align 4, !tbaa !9
  %179 = call ptr @s2n_strerror(i32 noundef %178, ptr noundef @.str.3)
  %180 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %181 = load i32, ptr %180, align 4, !tbaa !9
  %182 = call ptr @s2n_strerror_debug(i32 noundef %181, ptr noundef @.str.3)
  %183 = call ptr @__errno_location() #8
  %184 = load i32, ptr %183, align 4, !tbaa !9
  %185 = call ptr @strerror(i32 noundef %184) #7
  %186 = call ptr @__errno_location() #8
  %187 = load i32, ptr %186, align 4, !tbaa !9
  %188 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %175, ptr noundef @.str.4, i32 noundef %176, ptr noundef @.str.6, ptr noundef @.str.2, i32 noundef 193, ptr noundef %179, ptr noundef %182, ptr noundef %185, i32 noundef %187) #7
  br label %189

189:                                              ; preds = %172, %155
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %190

190:                                              ; preds = %189
  br label %191

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

192:                                              ; No predecessors!
  br label %193

193:                                              ; preds = %192
  br label %194

194:                                              ; preds = %193, %136
  br label %195

195:                                              ; preds = %194
  br label %196

196:                                              ; preds = %195
  br label %197

197:                                              ; preds = %196
  %198 = load i32, ptr @test_count, align 4, !tbaa !9
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr @test_count, align 4, !tbaa !9
  %200 = load ptr, ptr %4, align 8, !tbaa !5
  %201 = load ptr, ptr %8, align 8, !tbaa !5
  %202 = call i32 @s2n_async_pkey_op_perform(ptr noundef %200, ptr noundef %201)
  %203 = icmp eq i32 %202, -1
  br i1 %203, label %204, label %257

204:                                              ; preds = %197
  br label %205

205:                                              ; preds = %204
  br label %206

206:                                              ; preds = %205
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %207 = call ptr @__errno_location() #8
  %208 = load i32, ptr %207, align 4, !tbaa !9
  store i32 %208, ptr %10, align 4, !tbaa !9
  %209 = load ptr, ptr @stderr, align 8, !tbaa !5
  %210 = call i32 @s2n_print_stacktrace(ptr noundef %209)
  %211 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %212 = trunc i8 %211 to i1
  br i1 %212, label %213, label %235

213:                                              ; preds = %206
  %214 = load ptr, ptr @stderr, align 8, !tbaa !5
  %215 = call i32 @fileno(ptr noundef %214) #7
  %216 = call i32 @isatty(i32 noundef %215) #7
  %217 = icmp ne i32 %216, 0
  br i1 %217, label %218, label %235

218:                                              ; preds = %213
  %219 = load i32, ptr %10, align 4, !tbaa !9
  %220 = call ptr @__errno_location() #8
  store i32 %219, ptr %220, align 4, !tbaa !9
  %221 = load ptr, ptr @stderr, align 8, !tbaa !5
  %222 = load i32, ptr @test_count, align 4, !tbaa !9
  %223 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %224 = load i32, ptr %223, align 4, !tbaa !9
  %225 = call ptr @s2n_strerror(i32 noundef %224, ptr noundef @.str.3)
  %226 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %227 = load i32, ptr %226, align 4, !tbaa !9
  %228 = call ptr @s2n_strerror_debug(i32 noundef %227, ptr noundef @.str.3)
  %229 = call ptr @__errno_location() #8
  %230 = load i32, ptr %229, align 4, !tbaa !9
  %231 = call ptr @strerror(i32 noundef %230) #7
  %232 = call ptr @__errno_location() #8
  %233 = load i32, ptr %232, align 4, !tbaa !9
  %234 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %221, ptr noundef @.str, i32 noundef %222, ptr noundef @.str.7, ptr noundef @.str.2, i32 noundef 196, ptr noundef %225, ptr noundef %228, ptr noundef %231, i32 noundef %233) #7
  br label %252

235:                                              ; preds = %213, %206
  %236 = load i32, ptr %10, align 4, !tbaa !9
  %237 = call ptr @__errno_location() #8
  store i32 %236, ptr %237, align 4, !tbaa !9
  %238 = load ptr, ptr @stderr, align 8, !tbaa !5
  %239 = load i32, ptr @test_count, align 4, !tbaa !9
  %240 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %241 = load i32, ptr %240, align 4, !tbaa !9
  %242 = call ptr @s2n_strerror(i32 noundef %241, ptr noundef @.str.3)
  %243 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %244 = load i32, ptr %243, align 4, !tbaa !9
  %245 = call ptr @s2n_strerror_debug(i32 noundef %244, ptr noundef @.str.3)
  %246 = call ptr @__errno_location() #8
  %247 = load i32, ptr %246, align 4, !tbaa !9
  %248 = call ptr @strerror(i32 noundef %247) #7
  %249 = call ptr @__errno_location() #8
  %250 = load i32, ptr %249, align 4, !tbaa !9
  %251 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %238, ptr noundef @.str.4, i32 noundef %239, ptr noundef @.str.7, ptr noundef @.str.2, i32 noundef 196, ptr noundef %242, ptr noundef %245, ptr noundef %248, i32 noundef %250) #7
  br label %252

252:                                              ; preds = %235, %218
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %253

253:                                              ; preds = %252
  br label %254

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

255:                                              ; No predecessors!
  br label %256

256:                                              ; preds = %255
  br label %257

257:                                              ; preds = %256, %197
  br label %258

258:                                              ; preds = %257
  br label %259

259:                                              ; preds = %258
  br label %260

260:                                              ; preds = %259
  %261 = load i32, ptr @test_count, align 4, !tbaa !9
  %262 = add nsw i32 %261, 1
  store i32 %262, ptr @test_count, align 4, !tbaa !9
  %263 = load ptr, ptr %4, align 8, !tbaa !5
  %264 = load ptr, ptr %3, align 8, !tbaa !5
  %265 = call i32 @s2n_async_pkey_op_apply(ptr noundef %263, ptr noundef %264)
  %266 = icmp eq i32 %265, -1
  br i1 %266, label %267, label %320

267:                                              ; preds = %260
  br label %268

268:                                              ; preds = %267
  br label %269

269:                                              ; preds = %268
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %270 = call ptr @__errno_location() #8
  %271 = load i32, ptr %270, align 4, !tbaa !9
  store i32 %271, ptr %11, align 4, !tbaa !9
  %272 = load ptr, ptr @stderr, align 8, !tbaa !5
  %273 = call i32 @s2n_print_stacktrace(ptr noundef %272)
  %274 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %275 = trunc i8 %274 to i1
  br i1 %275, label %276, label %298

276:                                              ; preds = %269
  %277 = load ptr, ptr @stderr, align 8, !tbaa !5
  %278 = call i32 @fileno(ptr noundef %277) #7
  %279 = call i32 @isatty(i32 noundef %278) #7
  %280 = icmp ne i32 %279, 0
  br i1 %280, label %281, label %298

281:                                              ; preds = %276
  %282 = load i32, ptr %11, align 4, !tbaa !9
  %283 = call ptr @__errno_location() #8
  store i32 %282, ptr %283, align 4, !tbaa !9
  %284 = load ptr, ptr @stderr, align 8, !tbaa !5
  %285 = load i32, ptr @test_count, align 4, !tbaa !9
  %286 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %287 = load i32, ptr %286, align 4, !tbaa !9
  %288 = call ptr @s2n_strerror(i32 noundef %287, ptr noundef @.str.3)
  %289 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %290 = load i32, ptr %289, align 4, !tbaa !9
  %291 = call ptr @s2n_strerror_debug(i32 noundef %290, ptr noundef @.str.3)
  %292 = call ptr @__errno_location() #8
  %293 = load i32, ptr %292, align 4, !tbaa !9
  %294 = call ptr @strerror(i32 noundef %293) #7
  %295 = call ptr @__errno_location() #8
  %296 = load i32, ptr %295, align 4, !tbaa !9
  %297 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %284, ptr noundef @.str, i32 noundef %285, ptr noundef @.str.8, ptr noundef @.str.2, i32 noundef 199, ptr noundef %288, ptr noundef %291, ptr noundef %294, i32 noundef %296) #7
  br label %315

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

315:                                              ; preds = %298, %281
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %316

316:                                              ; preds = %315
  br label %317

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

318:                                              ; No predecessors!
  br label %319

319:                                              ; preds = %318
  br label %320

320:                                              ; preds = %319, %260
  br label %321

321:                                              ; preds = %320
  br label %322

322:                                              ; preds = %321
  br label %323

323:                                              ; preds = %322
  %324 = load i32, ptr @test_count, align 4, !tbaa !9
  %325 = add nsw i32 %324, 1
  store i32 %325, ptr @test_count, align 4, !tbaa !9
  %326 = load ptr, ptr %4, align 8, !tbaa !5
  %327 = call i32 @s2n_async_pkey_op_free(ptr noundef %326)
  %328 = icmp eq i32 %327, -1
  br i1 %328, label %329, label %382

329:                                              ; preds = %323
  br label %330

330:                                              ; preds = %329
  br label %331

331:                                              ; preds = %330
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %332 = call ptr @__errno_location() #8
  %333 = load i32, ptr %332, align 4, !tbaa !9
  store i32 %333, ptr %12, align 4, !tbaa !9
  %334 = load ptr, ptr @stderr, align 8, !tbaa !5
  %335 = call i32 @s2n_print_stacktrace(ptr noundef %334)
  %336 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %337 = trunc i8 %336 to i1
  br i1 %337, label %338, label %360

338:                                              ; preds = %331
  %339 = load ptr, ptr @stderr, align 8, !tbaa !5
  %340 = call i32 @fileno(ptr noundef %339) #7
  %341 = call i32 @isatty(i32 noundef %340) #7
  %342 = icmp ne i32 %341, 0
  br i1 %342, label %343, label %360

343:                                              ; preds = %338
  %344 = load i32, ptr %12, align 4, !tbaa !9
  %345 = call ptr @__errno_location() #8
  store i32 %344, ptr %345, align 4, !tbaa !9
  %346 = load ptr, ptr @stderr, align 8, !tbaa !5
  %347 = load i32, ptr @test_count, align 4, !tbaa !9
  %348 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %349 = load i32, ptr %348, align 4, !tbaa !9
  %350 = call ptr @s2n_strerror(i32 noundef %349, ptr noundef @.str.3)
  %351 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %352 = load i32, ptr %351, align 4, !tbaa !9
  %353 = call ptr @s2n_strerror_debug(i32 noundef %352, ptr noundef @.str.3)
  %354 = call ptr @__errno_location() #8
  %355 = load i32, ptr %354, align 4, !tbaa !9
  %356 = call ptr @strerror(i32 noundef %355) #7
  %357 = call ptr @__errno_location() #8
  %358 = load i32, ptr %357, align 4, !tbaa !9
  %359 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %346, ptr noundef @.str, i32 noundef %347, ptr noundef @.str.9, ptr noundef @.str.2, i32 noundef 202, ptr noundef %350, ptr noundef %353, ptr noundef %356, i32 noundef %358) #7
  br label %377

360:                                              ; preds = %338, %331
  %361 = load i32, ptr %12, align 4, !tbaa !9
  %362 = call ptr @__errno_location() #8
  store i32 %361, ptr %362, align 4, !tbaa !9
  %363 = load ptr, ptr @stderr, align 8, !tbaa !5
  %364 = load i32, ptr @test_count, align 4, !tbaa !9
  %365 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %366 = load i32, ptr %365, align 4, !tbaa !9
  %367 = call ptr @s2n_strerror(i32 noundef %366, ptr noundef @.str.3)
  %368 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %369 = load i32, ptr %368, align 4, !tbaa !9
  %370 = call ptr @s2n_strerror_debug(i32 noundef %369, ptr noundef @.str.3)
  %371 = call ptr @__errno_location() #8
  %372 = load i32, ptr %371, align 4, !tbaa !9
  %373 = call ptr @strerror(i32 noundef %372) #7
  %374 = call ptr @__errno_location() #8
  %375 = load i32, ptr %374, align 4, !tbaa !9
  %376 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %363, ptr noundef @.str.4, i32 noundef %364, ptr noundef @.str.9, ptr noundef @.str.2, i32 noundef 202, ptr noundef %367, ptr noundef %370, ptr noundef %373, i32 noundef %375) #7
  br label %377

377:                                              ; preds = %360, %343
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %378

378:                                              ; preds = %377
  br label %379

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

380:                                              ; No predecessors!
  br label %381

381:                                              ; preds = %380
  br label %382

382:                                              ; preds = %381, %323
  br label %383

383:                                              ; preds = %382
  br label %384

384:                                              ; preds = %383
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  ret i32 0
}

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

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

declare i32 @s2n_print_stacktrace(ptr noundef) #3

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

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

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

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

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

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

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

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

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

declare ptr @s2n_connection_get_selected_cert(ptr noundef) #3

declare ptr @s2n_cert_chain_and_key_get_private_key(ptr noundef) #3

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

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

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

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

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


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

@s2n_use_color_in_output = external dso_local local_unnamed_addr global i8, align 1
@test_count = external dso_local local_unnamed_addr global i32, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [101 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [78 x i8], align 1
@s2n_errno = external thread_local local_unnamed_addr global i32, align 4
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [55 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @async_pkey_apply_in_callback(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = load i32, ptr @test_count, align 4, !tbaa !5
  %4 = add nsw i32 %3, 1
  store i32 %4, ptr @test_count, align 4, !tbaa !5
  %5 = icmp eq ptr %1, null
  br i1 %5, label %6, label %30

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

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

17:                                               ; preds = %13, %6
  br label %18

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

30:                                               ; preds = %2
  %31 = tail call ptr @s2n_connection_get_selected_cert(ptr noundef %0) #8
  %32 = load i32, ptr @test_count, align 4, !tbaa !5
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr @test_count, align 4, !tbaa !5
  %34 = icmp eq ptr %31, null
  br i1 %34, label %35, label %59

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

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

46:                                               ; preds = %42, %35
  br label %47

47:                                               ; preds = %42, %46
  %.str.4.sink38 = phi ptr [ @.str.4, %46 ], [ @.str, %42 ]
  store i32 %37, ptr %36, align 4, !tbaa !5
  %48 = load ptr, ptr @stderr, align 8, !tbaa !9
  %49 = load i32, ptr @test_count, align 4, !tbaa !5
  %50 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = tail call ptr @s2n_strerror(i32 noundef %51, ptr noundef nonnull @.str.3) #8
  %53 = load i32, ptr %50, align 4, !tbaa !5
  %54 = tail call ptr @s2n_strerror_debug(i32 noundef %53, ptr noundef nonnull @.str.3) #8
  %55 = load i32, ptr %36, align 4, !tbaa !5
  %56 = tail call ptr @strerror(i32 noundef %55) #8
  %57 = load i32, ptr %36, align 4, !tbaa !5
  %58 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef nonnull %.str.4.sink38, i32 noundef %49, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.2, i32 noundef 190, ptr noundef %52, ptr noundef %54, ptr noundef %56, i32 noundef %57) #9
  tail call void @exit(i32 noundef 1) #10
  unreachable

59:                                               ; preds = %30
  %60 = tail call ptr @s2n_cert_chain_and_key_get_private_key(ptr noundef nonnull %31) #8
  %61 = load i32, ptr @test_count, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr @test_count, align 4, !tbaa !5
  %63 = icmp eq ptr %60, null
  br i1 %63, label %64, label %88

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

71:                                               ; preds = %64
  %72 = load ptr, ptr @stderr, align 8, !tbaa !9
  %73 = tail call i32 @fileno(ptr noundef %72) #8
  %74 = tail call i32 @isatty(i32 noundef %73) #8
  %.not25 = icmp eq i32 %74, 0
  br i1 %.not25, label %75, label %76

75:                                               ; preds = %71, %64
  br label %76

76:                                               ; preds = %71, %75
  %.str.4.sink49 = phi ptr [ @.str.4, %75 ], [ @.str, %71 ]
  store i32 %66, ptr %65, align 4, !tbaa !5
  %77 = load ptr, ptr @stderr, align 8, !tbaa !9
  %78 = load i32, ptr @test_count, align 4, !tbaa !5
  %79 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = tail call ptr @s2n_strerror(i32 noundef %80, ptr noundef nonnull @.str.3) #8
  %82 = load i32, ptr %79, align 4, !tbaa !5
  %83 = tail call ptr @s2n_strerror_debug(i32 noundef %82, ptr noundef nonnull @.str.3) #8
  %84 = load i32, ptr %65, align 4, !tbaa !5
  %85 = tail call ptr @strerror(i32 noundef %84) #8
  %86 = load i32, ptr %65, align 4, !tbaa !5
  %87 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef nonnull %.str.4.sink49, i32 noundef %78, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.2, i32 noundef 193, ptr noundef %81, ptr noundef %83, ptr noundef %85, i32 noundef %86) #9
  tail call void @exit(i32 noundef 1) #10
  unreachable

88:                                               ; preds = %59
  %89 = add nsw i32 %61, 2
  store i32 %89, ptr @test_count, align 4, !tbaa !5
  %90 = tail call i32 @s2n_async_pkey_op_perform(ptr noundef nonnull %1, ptr noundef nonnull %60) #8
  %91 = icmp eq i32 %90, -1
  br i1 %91, label %92, label %116

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

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

103:                                              ; preds = %99, %92
  br label %104

104:                                              ; preds = %99, %103
  %.str.4.sink60 = phi ptr [ @.str.4, %103 ], [ @.str, %99 ]
  store i32 %94, ptr %93, align 4, !tbaa !5
  %105 = load ptr, ptr @stderr, align 8, !tbaa !9
  %106 = load i32, ptr @test_count, align 4, !tbaa !5
  %107 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = tail call ptr @s2n_strerror(i32 noundef %108, ptr noundef nonnull @.str.3) #8
  %110 = load i32, ptr %107, align 4, !tbaa !5
  %111 = tail call ptr @s2n_strerror_debug(i32 noundef %110, ptr noundef nonnull @.str.3) #8
  %112 = load i32, ptr %93, align 4, !tbaa !5
  %113 = tail call ptr @strerror(i32 noundef %112) #8
  %114 = load i32, ptr %93, align 4, !tbaa !5
  %115 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef nonnull %.str.4.sink60, i32 noundef %106, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.2, i32 noundef 196, ptr noundef %109, ptr noundef %111, ptr noundef %113, i32 noundef %114) #9
  tail call void @exit(i32 noundef 1) #10
  unreachable

116:                                              ; preds = %88
  %117 = load i32, ptr @test_count, align 4, !tbaa !5
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr @test_count, align 4, !tbaa !5
  %119 = tail call i32 @s2n_async_pkey_op_apply(ptr noundef nonnull %1, ptr noundef %0) #8
  %120 = icmp eq i32 %119, -1
  br i1 %120, label %121, label %145

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

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

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

133:                                              ; preds = %128, %132
  %.str.4.sink71 = phi ptr [ @.str.4, %132 ], [ @.str, %128 ]
  store i32 %123, ptr %122, align 4, !tbaa !5
  %134 = load ptr, ptr @stderr, align 8, !tbaa !9
  %135 = load i32, ptr @test_count, align 4, !tbaa !5
  %136 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = tail call ptr @s2n_strerror(i32 noundef %137, ptr noundef nonnull @.str.3) #8
  %139 = load i32, ptr %136, align 4, !tbaa !5
  %140 = tail call ptr @s2n_strerror_debug(i32 noundef %139, ptr noundef nonnull @.str.3) #8
  %141 = load i32, ptr %122, align 4, !tbaa !5
  %142 = tail call ptr @strerror(i32 noundef %141) #8
  %143 = load i32, ptr %122, align 4, !tbaa !5
  %144 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef nonnull %.str.4.sink71, i32 noundef %135, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.2, i32 noundef 199, ptr noundef %138, ptr noundef %140, ptr noundef %142, i32 noundef %143) #9
  tail call void @exit(i32 noundef 1) #10
  unreachable

145:                                              ; preds = %116
  %146 = load i32, ptr @test_count, align 4, !tbaa !5
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr @test_count, align 4, !tbaa !5
  %148 = tail call i32 @s2n_async_pkey_op_free(ptr noundef nonnull %1) #8
  %149 = icmp eq i32 %148, -1
  br i1 %149, label %150, label %174

150:                                              ; preds = %145
  %151 = tail call ptr @__errno_location() #7
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = load ptr, ptr @stderr, align 8, !tbaa !9
  %154 = tail call i32 @s2n_print_stacktrace(ptr noundef %153) #8
  %155 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %156 = trunc nuw i8 %155 to i1
  br i1 %156, label %157, label %161

157:                                              ; preds = %150
  %158 = load ptr, ptr @stderr, align 8, !tbaa !9
  %159 = tail call i32 @fileno(ptr noundef %158) #8
  %160 = tail call i32 @isatty(i32 noundef %159) #8
  %.not = icmp eq i32 %160, 0
  br i1 %.not, label %161, label %162

161:                                              ; preds = %157, %150
  br label %162

162:                                              ; preds = %157, %161
  %.str.4.sink82 = phi ptr [ @.str.4, %161 ], [ @.str, %157 ]
  store i32 %152, ptr %151, align 4, !tbaa !5
  %163 = load ptr, ptr @stderr, align 8, !tbaa !9
  %164 = load i32, ptr @test_count, align 4, !tbaa !5
  %165 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %166 = load i32, ptr %165, align 4, !tbaa !5
  %167 = tail call ptr @s2n_strerror(i32 noundef %166, ptr noundef nonnull @.str.3) #8
  %168 = load i32, ptr %165, align 4, !tbaa !5
  %169 = tail call ptr @s2n_strerror_debug(i32 noundef %168, ptr noundef nonnull @.str.3) #8
  %170 = load i32, ptr %151, align 4, !tbaa !5
  %171 = tail call ptr @strerror(i32 noundef %170) #8
  %172 = load i32, ptr %151, align 4, !tbaa !5
  %173 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %163, ptr noundef nonnull %.str.4.sink82, i32 noundef %164, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.2, i32 noundef 202, ptr noundef %167, ptr noundef %169, ptr noundef %171, i32 noundef %172) #9
  tail call void @exit(i32 noundef 1) #10
  unreachable

174:                                              ; preds = %145
  ret i32 0
}

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

declare i32 @s2n_print_stacktrace(ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

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

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

declare ptr @s2n_connection_get_selected_cert(ptr noundef) local_unnamed_addr #2

declare ptr @s2n_cert_chain_and_key_get_private_key(ptr noundef) local_unnamed_addr #2

declare i32 @s2n_async_pkey_op_perform(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @s2n_async_pkey_op_apply(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @s2n_async_pkey_op_free(ptr noundef) local_unnamed_addr #2

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 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "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 = { 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 #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { nounwind willreturn memory(none) }
attributes #8 = { nounwind }
attributes #9 = { cold nounwind }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_Bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}


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