; LLVM IR from aws/s2n-tls :: tests/fuzz (s2n_certificate_extensions_parse_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_debug_info = type { ptr, ptr }
%struct.s2n_stuffer = type { %struct.s2n_blob, i32, i32, i32, i8 }
%struct.s2n_blob = type { ptr, i32, i32, i8 }
%struct.host_verify_data = type { ptr, i8, i8 }
%struct.s2n_result = type { i32 }
%struct.s2n_pkey = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.s2n_connection = type { i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, [22 x i8], [22 x i8], [22 x i8], i32, i32, %struct.s2n_timer, i64, i64, [32 x i8], i8, i8, i8, i8, i8, i8, i8, ptr, ptr, %struct.s2n_secrets, ptr, ptr, %struct.s2n_kex_parameters, %struct.s2n_handshake_parameters, %struct.s2n_psk_parameters, ptr, i8, i32, [5 x i8], %struct.s2n_stuffer, %struct.s2n_stuffer, %struct.s2n_stuffer, %struct.s2n_stuffer, i32, i64, [2 x i8], %struct.s2n_stuffer, i8, i8, i8, i8, %struct.s2n_atomic_flag, %struct.s2n_atomic_flag, %struct.s2n_handshake, i16, i32, i16, i64, i8, i64, i64, i64, %struct.s2n_atomic_flag, %struct.s2n_atomic_flag, [256 x i8], [256 x i8], i32, %struct.s2n_blob, i32, %struct.s2n_blob, %struct.s2n_blob, %struct.s2n_blob, %struct.s2n_client_hello, %struct.s2n_x509_validator, ptr, ptr, i8, i32, %struct.s2n_blob, i32, %struct.s2n_ticket_fields, [138 x i8], %struct.s2n_stuffer, %struct.s2n_blob, %struct.s2n_blob, i8, i8, i8, i16, i16, i32, i32, %struct.s2n_blob, i32, %struct.s2n_post_handshake, %struct.s2n_atomic_flag, i8, i8 }
%struct.s2n_timer = type { i64 }
%struct.s2n_secrets = type { %union.anon, i32 }
%union.anon = type { %struct.s2n_tls13_secrets }
%struct.s2n_tls13_secrets = type { [48 x i8], [48 x i8], [48 x i8], [48 x i8], [48 x i8], [48 x i8], [48 x i8], [48 x i8], i32 }
%struct.s2n_kex_parameters = type { %struct.s2n_dh_params, %struct.s2n_ecc_evp_params, [4 x ptr], %struct.s2n_ecc_evp_params, %struct.s2n_kem_group_params, %struct.s2n_kem_group_params, [8 x ptr], %struct.s2n_kem_params, %struct.s2n_blob, %struct.s2n_blob }
%struct.s2n_dh_params = type { ptr }
%struct.s2n_ecc_evp_params = type { ptr, ptr }
%struct.s2n_kem_group_params = type { ptr, %struct.s2n_kem_params, %struct.s2n_ecc_evp_params }
%struct.s2n_kem_params = type { ptr, %struct.s2n_blob, %struct.s2n_blob, %struct.s2n_blob, i8 }
%struct.s2n_handshake_parameters = type { %struct.s2n_pkey, %struct.s2n_pkey, %struct.s2n_blob, i32, %struct.s2n_sig_scheme_list, ptr, ptr, ptr, [4 x ptr], [4 x ptr], i8, i8, [32 x i8], [32 x i8] }
%struct.s2n_sig_scheme_list = type { [128 x i16], i8 }
%struct.s2n_psk_parameters = type { i32, %struct.s2n_array, i16, i16, ptr, i32 }
%struct.s2n_array = type { %struct.s2n_blob, i32, i32 }
%struct.s2n_handshake = type { %struct.s2n_stuffer, ptr, [8 x i8], [48 x i8], [48 x i8], i8, i32, i32, i32, i32, %struct.s2n_offered_early_data, i8, i32 }
%struct.s2n_offered_early_data = type { ptr }
%struct.s2n_client_hello = type { %struct.s2n_blob, %struct.s2n_parsed_extensions_list, %struct.s2n_blob, %struct.s2n_blob, %struct.s2n_blob, i8, i8, i8 }
%struct.s2n_parsed_extensions_list = type { [21 x %struct.s2n_parsed_extension], %struct.s2n_blob, i16 }
%struct.s2n_parsed_extension = type { %struct.s2n_blob, i16, i16, i8 }
%struct.s2n_x509_validator = type { ptr, ptr, i8, i8, i16, ptr, i32, ptr, %struct.s2n_cert_validation_info, i8 }
%struct.s2n_cert_validation_info = type { i8, [3 x i8] }
%struct.s2n_ticket_fields = type { %struct.s2n_blob, i32 }
%struct.s2n_post_handshake = type { %struct.s2n_stuffer, [4 x i8] }
%struct.s2n_atomic_flag = type { i32 }

@s2n_use_color_in_output = external dso_local global i8, align 1
@test_count = external dso_local global i32, align 4
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [101 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [96 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 [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [120 x i8], align 1
@_s2n_debug_info = external thread_local global %struct.s2n_debug_info, align 8
@.str.7 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [131 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [45 x i8], align 1
@TLS_VERSIONS = external hidden constant [1 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @s2n_fuzz_test(ptr noundef %0, i64 noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca %struct.s2n_stuffer, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i8, align 1
  %12 = alloca %struct.host_verify_data, align 8
  %13 = alloca [12000 x i8], align 16
  %14 = alloca %struct.s2n_stuffer, 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 i32, align 4
  %20 = alloca %struct.s2n_pkey, align 8
  %21 = alloca i32, align 4
  %22 = alloca %struct.s2n_result, align 4
  %23 = alloca %struct.s2n_result, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  br label %24

24:                                               ; preds = %2
  %25 = load i64, ptr %5, align 8, !tbaa !9
  %26 = icmp ult i64 %25, 1
  br i1 %26, label %27, label %28

27:                                               ; preds = %24
  store i32 0, ptr %3, align 4
  br label %431

28:                                               ; preds = %24
  br label %29

29:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 40, ptr %6) #10
  call void @llvm.memset.p0.i64(ptr align 8 %6, i8 0, i64 40, i1 false)
  br label %30

30:                                               ; preds = %29
  %31 = load i64, ptr %5, align 8, !tbaa !9
  %32 = trunc i64 %31 to i32
  %33 = call i32 @s2n_stuffer_alloc(ptr noundef %6, i32 noundef %32)
  %34 = icmp sgt i32 %33, -1
  br i1 %34, label %36, label %35

35:                                               ; preds = %30
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %430

36:                                               ; preds = %30
  br label %37

37:                                               ; preds = %36
  br label %38

38:                                               ; preds = %37
  br label %39

39:                                               ; preds = %38
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = load i64, ptr %5, align 8, !tbaa !9
  %42 = trunc i64 %41 to i32
  %43 = call i32 @s2n_stuffer_write_bytes(ptr noundef %6, ptr noundef %40, i32 noundef %42)
  %44 = icmp sgt i32 %43, -1
  br i1 %44, label %46, label %45

45:                                               ; preds = %39
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %430

46:                                               ; preds = %39
  br label %47

47:                                               ; preds = %46
  br label %48

48:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #10
  %49 = call ptr @s2n_config_new()
  store ptr %49, ptr %8, align 8, !tbaa !5
  br label %50

50:                                               ; preds = %48
  %51 = load i32, ptr @test_count, align 4, !tbaa !11
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr @test_count, align 4, !tbaa !11
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = icmp eq ptr %53, null
  br i1 %54, label %55, label %108

55:                                               ; preds = %50
  br label %56

56:                                               ; preds = %55
  br label %57

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

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

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

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

103:                                              ; preds = %86, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #10
  br label %104

104:                                              ; preds = %103
  br label %105

105:                                              ; preds = %104
  call void @exit(i32 noundef 1) #12
  unreachable

106:                                              ; No predecessors!
  br label %107

107:                                              ; preds = %106
  br label %108

108:                                              ; preds = %107, %50
  br label %109

109:                                              ; preds = %108
  br label %110

110:                                              ; preds = %109
  br label %111

111:                                              ; preds = %110
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = call i32 @s2n_config_set_cipher_preferences(ptr noundef %112, ptr noundef @.str.5)
  %114 = icmp sgt i32 %113, -1
  br i1 %114, label %116, label %115

115:                                              ; preds = %111
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %427

116:                                              ; preds = %111
  br label %117

117:                                              ; preds = %116
  br label %118

118:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #10
  %119 = call ptr @s2n_connection_new(i32 noundef 1)
  store ptr %119, ptr %10, align 8, !tbaa !5
  br label %120

120:                                              ; preds = %118
  %121 = load ptr, ptr %10, align 8, !tbaa !5
  %122 = icmp ne ptr %121, null
  br i1 %122, label %156, label %123

123:                                              ; preds = %120
  br label %124

124:                                              ; preds = %123
  br label %125

125:                                              ; preds = %124
  %126 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %127 = getelementptr inbounds %struct.s2n_debug_info, ptr %126, i32 0, i32 0
  store ptr @.str.6, ptr %127, align 8, !tbaa !17
  %128 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %129 = getelementptr inbounds %struct.s2n_debug_info, ptr %128, i32 0, i32 0
  %130 = load ptr, ptr %129, align 8, !tbaa !17
  %131 = getelementptr inbounds i8, ptr %130, i64 21
  %132 = call ptr @strrchr(ptr noundef %131, i32 noundef 47) #13
  %133 = icmp ne ptr %132, null
  br i1 %133, label %134, label %141

134:                                              ; preds = %125
  %135 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %136 = getelementptr inbounds %struct.s2n_debug_info, ptr %135, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8, !tbaa !17
  %138 = getelementptr inbounds i8, ptr %137, i64 21
  %139 = call ptr @strrchr(ptr noundef %138, i32 noundef 47) #13
  %140 = getelementptr inbounds i8, ptr %139, i64 1
  br label %146

141:                                              ; preds = %125
  %142 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %143 = getelementptr inbounds %struct.s2n_debug_info, ptr %142, i32 0, i32 0
  %144 = load ptr, ptr %143, align 8, !tbaa !17
  %145 = getelementptr inbounds i8, ptr %144, i64 21
  br label %146

146:                                              ; preds = %141, %134
  %147 = phi ptr [ %140, %134 ], [ %145, %141 ]
  %148 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %149 = getelementptr inbounds %struct.s2n_debug_info, ptr %148, i32 0, i32 1
  store ptr %147, ptr %149, align 8, !tbaa !19
  %150 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %150, align 4, !tbaa !11
  %151 = call i32 @s2n_calculate_stacktrace()
  br label %152

152:                                              ; preds = %146
  br label %153

153:                                              ; preds = %152
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %426

154:                                              ; No predecessors!
  br label %155

155:                                              ; preds = %154
  br label %156

156:                                              ; preds = %155, %120
  br label %157

157:                                              ; preds = %156
  br label %158

158:                                              ; preds = %157
  br label %159

159:                                              ; preds = %158
  %160 = load ptr, ptr %10, align 8, !tbaa !5
  %161 = load ptr, ptr %8, align 8, !tbaa !5
  %162 = call i32 @s2n_connection_set_config(ptr noundef %160, ptr noundef %161)
  %163 = icmp sgt i32 %162, -1
  br i1 %163, label %165, label %164

164:                                              ; preds = %159
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %426

165:                                              ; preds = %159
  br label %166

166:                                              ; preds = %165
  br label %167

167:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #10
  store i8 0, ptr %11, align 1, !tbaa !20
  br label %168

168:                                              ; preds = %167
  %169 = call i32 @s2n_stuffer_read_uint8(ptr noundef %6, ptr noundef %11)
  %170 = icmp sgt i32 %169, -1
  br i1 %170, label %172, label %171

171:                                              ; preds = %168
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %425

172:                                              ; preds = %168
  br label %173

173:                                              ; preds = %172
  br label %174

174:                                              ; preds = %173
  %175 = load i8, ptr %11, align 1, !tbaa !20
  %176 = zext i8 %175 to i32
  %177 = ashr i32 %176, 7
  %178 = srem i32 %177, 2
  %179 = trunc i32 %178 to i8
  %180 = load ptr, ptr %10, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.s2n_connection, ptr %180, i32 0, i32 72
  %182 = getelementptr inbounds %struct.s2n_x509_validator, ptr %181, i32 0, i32 2
  store i8 %179, ptr %182, align 8, !tbaa !21
  %183 = load ptr, ptr %10, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.s2n_connection, ptr %183, i32 0, i32 23
  store i8 33, ptr %184, align 4, !tbaa !47
  %185 = load i8, ptr %11, align 1, !tbaa !20
  %186 = zext i8 %185 to i32
  %187 = ashr i32 %186, 6
  %188 = srem i32 %187, 2
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %190, label %388

190:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #10
  call void @llvm.memset.p0.i64(ptr align 8 %12, i8 0, i64 16, i1 false)
  br label %191

191:                                              ; preds = %190
  %192 = load ptr, ptr %10, align 8, !tbaa !5
  %193 = call i32 @s2n_connection_set_verify_host_callback(ptr noundef %192, ptr noundef @verify_host_accept_everything, ptr noundef %12)
  %194 = icmp sgt i32 %193, -1
  br i1 %194, label %196, label %195

195:                                              ; preds = %191
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %385

196:                                              ; preds = %191
  br label %197

197:                                              ; preds = %196
  br label %198

198:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 12000, ptr %13) #10
  br label %199

199:                                              ; preds = %198
  %200 = getelementptr inbounds [12000 x i8], ptr %13, i64 0, i64 0
  %201 = call i32 @s2n_read_test_pem(ptr noundef @.str.7, ptr noundef %200, i64 noundef 12000)
  %202 = icmp sgt i32 %201, -1
  br i1 %202, label %204, label %203

203:                                              ; preds = %199
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %384

204:                                              ; preds = %199
  br label %205

205:                                              ; preds = %204
  br label %206

206:                                              ; preds = %205
  br label %207

207:                                              ; preds = %206
  %208 = load ptr, ptr %10, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.s2n_connection, ptr %208, i32 0, i32 72
  %210 = getelementptr inbounds %struct.s2n_x509_validator, ptr %209, i32 0, i32 0
  %211 = load ptr, ptr %210, align 8, !tbaa !48
  %212 = getelementptr inbounds [12000 x i8], ptr %13, i64 0, i64 0
  %213 = call i32 @s2n_x509_trust_store_add_pem(ptr noundef %211, ptr noundef %212)
  %214 = icmp sgt i32 %213, -1
  br i1 %214, label %216, label %215

215:                                              ; preds = %207
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %384

216:                                              ; preds = %207
  br label %217

217:                                              ; preds = %216
  br label %218

218:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 40, ptr %14) #10
  call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 40, i1 false)
  br label %219

219:                                              ; preds = %218
  %220 = load i32, ptr @test_count, align 4, !tbaa !11
  %221 = add nsw i32 %220, 1
  store i32 %221, ptr @test_count, align 4, !tbaa !11
  %222 = load ptr, ptr %10, align 8, !tbaa !5
  %223 = call i32 @s2n_test_cert_chain_data_from_pem(ptr noundef %222, ptr noundef @.str.8, ptr noundef %14)
  %224 = getelementptr inbounds %struct.s2n_result, ptr %15, i32 0, i32 0
  store i32 %223, ptr %224, align 4
  %225 = getelementptr inbounds %struct.s2n_result, ptr %15, i32 0, i32 0
  %226 = load i32, ptr %225, align 4
  %227 = call zeroext i1 @s2n_result_is_ok(i32 %226)
  br i1 %227, label %281, label %228

228:                                              ; preds = %219
  br label %229

229:                                              ; preds = %228
  br label %230

230:                                              ; preds = %229
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #10
  %231 = call ptr @__errno_location() #11
  %232 = load i32, ptr %231, align 4, !tbaa !11
  store i32 %232, ptr %16, align 4, !tbaa !11
  %233 = load ptr, ptr @stderr, align 8, !tbaa !5
  %234 = call i32 @s2n_print_stacktrace(ptr noundef %233)
  %235 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !13, !range !15, !noundef !16
  %236 = trunc i8 %235 to i1
  br i1 %236, label %237, label %259

237:                                              ; preds = %230
  %238 = load ptr, ptr @stderr, align 8, !tbaa !5
  %239 = call i32 @fileno(ptr noundef %238) #10
  %240 = call i32 @isatty(i32 noundef %239) #10
  %241 = icmp ne i32 %240, 0
  br i1 %241, label %242, label %259

242:                                              ; preds = %237
  %243 = load i32, ptr %16, align 4, !tbaa !11
  %244 = call ptr @__errno_location() #11
  store i32 %243, ptr %244, align 4, !tbaa !11
  %245 = load ptr, ptr @stderr, align 8, !tbaa !5
  %246 = load i32, ptr @test_count, align 4, !tbaa !11
  %247 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %248 = load i32, ptr %247, align 4, !tbaa !11
  %249 = call ptr @s2n_strerror(i32 noundef %248, ptr noundef @.str.3)
  %250 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %251 = load i32, ptr %250, align 4, !tbaa !11
  %252 = call ptr @s2n_strerror_debug(i32 noundef %251, ptr noundef @.str.3)
  %253 = call ptr @__errno_location() #11
  %254 = load i32, ptr %253, align 4, !tbaa !11
  %255 = call ptr @strerror(i32 noundef %254) #10
  %256 = call ptr @__errno_location() #11
  %257 = load i32, ptr %256, align 4, !tbaa !11
  %258 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %245, ptr noundef @.str, i32 noundef %246, ptr noundef @.str.9, ptr noundef @.str.2, i32 noundef 87, ptr noundef %249, ptr noundef %252, ptr noundef %255, i32 noundef %257) #10
  br label %276

259:                                              ; preds = %237, %230
  %260 = load i32, ptr %16, align 4, !tbaa !11
  %261 = call ptr @__errno_location() #11
  store i32 %260, ptr %261, align 4, !tbaa !11
  %262 = load ptr, ptr @stderr, align 8, !tbaa !5
  %263 = load i32, ptr @test_count, align 4, !tbaa !11
  %264 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %265 = load i32, ptr %264, align 4, !tbaa !11
  %266 = call ptr @s2n_strerror(i32 noundef %265, ptr noundef @.str.3)
  %267 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %268 = load i32, ptr %267, align 4, !tbaa !11
  %269 = call ptr @s2n_strerror_debug(i32 noundef %268, ptr noundef @.str.3)
  %270 = call ptr @__errno_location() #11
  %271 = load i32, ptr %270, align 4, !tbaa !11
  %272 = call ptr @strerror(i32 noundef %271) #10
  %273 = call ptr @__errno_location() #11
  %274 = load i32, ptr %273, align 4, !tbaa !11
  %275 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %262, ptr noundef @.str.4, i32 noundef %263, ptr noundef @.str.9, ptr noundef @.str.2, i32 noundef 87, ptr noundef %266, ptr noundef %269, ptr noundef %272, i32 noundef %274) #10
  br label %276

276:                                              ; preds = %259, %242
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #10
  br label %277

277:                                              ; preds = %276
  br label %278

278:                                              ; preds = %277
  call void @exit(i32 noundef 1) #12
  unreachable

279:                                              ; No predecessors!
  br label %280

280:                                              ; preds = %279
  br label %281

281:                                              ; preds = %280, %219
  br label %282

282:                                              ; preds = %281
  br label %283

283:                                              ; preds = %282
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #10
  %284 = getelementptr inbounds %struct.s2n_stuffer, ptr %14, i32 0, i32 2
  %285 = load i32, ptr %284, align 4, !tbaa !49
  %286 = getelementptr inbounds %struct.s2n_stuffer, ptr %14, i32 0, i32 1
  %287 = load i32, ptr %286, align 8, !tbaa !50
  %288 = sub i32 %285, %287
  store i32 %288, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #10
  %289 = load i32, ptr %17, align 4, !tbaa !11
  %290 = call ptr @s2n_stuffer_raw_read(ptr noundef %14, i32 noundef %289)
  store ptr %290, ptr %18, align 8, !tbaa !5
  br label %291

291:                                              ; preds = %283
  %292 = load i32, ptr @test_count, align 4, !tbaa !11
  %293 = add nsw i32 %292, 1
  store i32 %293, ptr @test_count, align 4, !tbaa !11
  %294 = load ptr, ptr %18, align 8, !tbaa !5
  %295 = icmp eq ptr %294, null
  br i1 %295, label %296, label %349

296:                                              ; preds = %291
  br label %297

297:                                              ; preds = %296
  br label %298

298:                                              ; preds = %297
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #10
  %299 = call ptr @__errno_location() #11
  %300 = load i32, ptr %299, align 4, !tbaa !11
  store i32 %300, ptr %19, align 4, !tbaa !11
  %301 = load ptr, ptr @stderr, align 8, !tbaa !5
  %302 = call i32 @s2n_print_stacktrace(ptr noundef %301)
  %303 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !13, !range !15, !noundef !16
  %304 = trunc i8 %303 to i1
  br i1 %304, label %305, label %327

305:                                              ; preds = %298
  %306 = load ptr, ptr @stderr, align 8, !tbaa !5
  %307 = call i32 @fileno(ptr noundef %306) #10
  %308 = call i32 @isatty(i32 noundef %307) #10
  %309 = icmp ne i32 %308, 0
  br i1 %309, label %310, label %327

310:                                              ; preds = %305
  %311 = load i32, ptr %19, align 4, !tbaa !11
  %312 = call ptr @__errno_location() #11
  store i32 %311, ptr %312, align 4, !tbaa !11
  %313 = load ptr, ptr @stderr, align 8, !tbaa !5
  %314 = load i32, ptr @test_count, align 4, !tbaa !11
  %315 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %316 = load i32, ptr %315, align 4, !tbaa !11
  %317 = call ptr @s2n_strerror(i32 noundef %316, ptr noundef @.str.3)
  %318 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %319 = load i32, ptr %318, align 4, !tbaa !11
  %320 = call ptr @s2n_strerror_debug(i32 noundef %319, ptr noundef @.str.3)
  %321 = call ptr @__errno_location() #11
  %322 = load i32, ptr %321, align 4, !tbaa !11
  %323 = call ptr @strerror(i32 noundef %322) #10
  %324 = call ptr @__errno_location() #11
  %325 = load i32, ptr %324, align 4, !tbaa !11
  %326 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %313, ptr noundef @.str, i32 noundef %314, ptr noundef @.str.10, ptr noundef @.str.2, i32 noundef 90, ptr noundef %317, ptr noundef %320, ptr noundef %323, i32 noundef %325) #10
  br label %344

327:                                              ; preds = %305, %298
  %328 = load i32, ptr %19, align 4, !tbaa !11
  %329 = call ptr @__errno_location() #11
  store i32 %328, ptr %329, align 4, !tbaa !11
  %330 = load ptr, ptr @stderr, align 8, !tbaa !5
  %331 = load i32, ptr @test_count, align 4, !tbaa !11
  %332 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %333 = load i32, ptr %332, align 4, !tbaa !11
  %334 = call ptr @s2n_strerror(i32 noundef %333, ptr noundef @.str.3)
  %335 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %336 = load i32, ptr %335, align 4, !tbaa !11
  %337 = call ptr @s2n_strerror_debug(i32 noundef %336, ptr noundef @.str.3)
  %338 = call ptr @__errno_location() #11
  %339 = load i32, ptr %338, align 4, !tbaa !11
  %340 = call ptr @strerror(i32 noundef %339) #10
  %341 = call ptr @__errno_location() #11
  %342 = load i32, ptr %341, align 4, !tbaa !11
  %343 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %330, ptr noundef @.str.4, i32 noundef %331, ptr noundef @.str.10, ptr noundef @.str.2, i32 noundef 90, ptr noundef %334, ptr noundef %337, ptr noundef %340, i32 noundef %342) #10
  br label %344

344:                                              ; preds = %327, %310
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #10
  br label %345

345:                                              ; preds = %344
  br label %346

346:                                              ; preds = %345
  call void @exit(i32 noundef 1) #12
  unreachable

347:                                              ; No predecessors!
  br label %348

348:                                              ; preds = %347
  br label %349

349:                                              ; preds = %348, %291
  br label %350

350:                                              ; preds = %349
  br label %351

351:                                              ; preds = %350
  call void @llvm.lifetime.start.p0(i64 48, ptr %20) #10
  br label %352

352:                                              ; preds = %351
  %353 = call i32 @s2n_pkey_zero_init(ptr noundef %20)
  %354 = icmp sgt i32 %353, -1
  br i1 %354, label %356, label %355

355:                                              ; preds = %352
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %382

356:                                              ; preds = %352
  br label %357

357:                                              ; preds = %356
  br label %358

358:                                              ; preds = %357
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #10
  br label %359

359:                                              ; preds = %358
  %360 = load ptr, ptr %10, align 8, !tbaa !5
  %361 = getelementptr inbounds %struct.s2n_connection, ptr %360, i32 0, i32 72
  %362 = load ptr, ptr %10, align 8, !tbaa !5
  %363 = load ptr, ptr %18, align 8, !tbaa !5
  %364 = load i32, ptr %17, align 4, !tbaa !11
  %365 = call i32 @s2n_x509_validator_validate_cert_chain(ptr noundef %361, ptr noundef %362, ptr noundef %363, i32 noundef %364, ptr noundef %21, ptr noundef %20)
  %366 = getelementptr inbounds %struct.s2n_result, ptr %22, i32 0, i32 0
  store i32 %365, ptr %366, align 4
  %367 = getelementptr inbounds %struct.s2n_result, ptr %22, i32 0, i32 0
  %368 = load i32, ptr %367, align 4
  %369 = call zeroext i1 @s2n_result_is_ok(i32 %368)
  br i1 %369, label %371, label %370

370:                                              ; preds = %359
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %381

371:                                              ; preds = %359
  br label %372

372:                                              ; preds = %371
  br label %373

373:                                              ; preds = %372
  br label %374

374:                                              ; preds = %373
  %375 = call i32 @s2n_pkey_free(ptr noundef %20)
  %376 = icmp sgt i32 %375, -1
  br i1 %376, label %378, label %377

377:                                              ; preds = %374
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %381

378:                                              ; preds = %374
  br label %379

379:                                              ; preds = %378
  br label %380

380:                                              ; preds = %379
  store i32 0, ptr %7, align 4
  br label %381

381:                                              ; preds = %380, %377, %370
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #10
  br label %382

382:                                              ; preds = %381, %355
  call void @llvm.lifetime.end.p0(i64 48, ptr %20) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #10
  %383 = call i32 @s2n_stuffer_free(ptr noundef %14)
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #10
  br label %384

384:                                              ; preds = %382, %215, %203
  call void @llvm.lifetime.end.p0(i64 12000, ptr %13) #10
  br label %385

385:                                              ; preds = %384, %195
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #10
  %386 = load i32, ptr %7, align 4
  switch i32 %386, label %425 [
    i32 0, label %387
  ]

387:                                              ; preds = %385
  br label %388

388:                                              ; preds = %387, %174
  %389 = load i8, ptr %11, align 1, !tbaa !20
  %390 = zext i8 %389 to i32
  %391 = and i32 %390, 7
  %392 = sext i32 %391 to i64
  %393 = urem i64 %392, 1
  %394 = getelementptr inbounds [1 x i8], ptr @TLS_VERSIONS, i64 0, i64 %393
  %395 = load i8, ptr %394, align 1, !tbaa !20
  %396 = load ptr, ptr %10, align 8, !tbaa !5
  %397 = getelementptr inbounds %struct.s2n_connection, ptr %396, i32 0, i32 23
  store i8 %395, ptr %397, align 4, !tbaa !47
  %398 = load i8, ptr %11, align 1, !tbaa !20
  %399 = zext i8 %398 to i32
  %400 = ashr i32 %399, 3
  %401 = and i32 %400, 7
  %402 = sext i32 %401 to i64
  %403 = urem i64 %402, 1
  %404 = getelementptr inbounds [1 x i8], ptr @TLS_VERSIONS, i64 0, i64 %403
  %405 = load i8, ptr %404, align 1, !tbaa !20
  %406 = load ptr, ptr %10, align 8, !tbaa !5
  %407 = getelementptr inbounds %struct.s2n_connection, ptr %406, i32 0, i32 21
  store i8 %405, ptr %407, align 2, !tbaa !51
  %408 = load ptr, ptr %10, align 8, !tbaa !5
  %409 = call i32 @s2n_extension_list_recv(i32 noundef 6, ptr noundef %408, ptr noundef %6)
  br label %410

410:                                              ; preds = %388
  %411 = load ptr, ptr %10, align 8, !tbaa !5
  %412 = call i32 @s2n_connection_free(ptr noundef %411)
  %413 = icmp sgt i32 %412, -1
  br i1 %413, label %415, label %414

414:                                              ; preds = %410
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %425

415:                                              ; preds = %410
  br label %416

416:                                              ; preds = %415
  br label %417

417:                                              ; preds = %416
  br label %418

418:                                              ; preds = %417
  %419 = call i32 @s2n_stuffer_free(ptr noundef %6)
  %420 = icmp sgt i32 %419, -1
  br i1 %420, label %422, label %421

421:                                              ; preds = %418
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %425

422:                                              ; preds = %418
  br label %423

423:                                              ; preds = %422
  br label %424

424:                                              ; preds = %423
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %425

425:                                              ; preds = %424, %421, %414, %385, %171
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #10
  br label %426

426:                                              ; preds = %425, %164, %153
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #10
  br label %427

427:                                              ; preds = %426, %115
  %428 = call i32 @s2n_config_ptr_free(ptr noundef %8)
  %429 = getelementptr inbounds %struct.s2n_result, ptr %23, i32 0, i32 0
  store i32 %428, ptr %429, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #10
  br label %430

430:                                              ; preds = %427, %45, %35
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #10
  br label %431

431:                                              ; preds = %430, %27
  %432 = load i32, ptr %3, align 4
  ret i32 %432
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

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

declare ptr @s2n_config_new() #3

declare i32 @s2n_config_ptr_free(ptr noundef) #3

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

declare i32 @s2n_print_stacktrace(ptr noundef) #3

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

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

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

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

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

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

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

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

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

declare ptr @s2n_connection_new(i32 noundef) #3

; Function Attrs: nounwind willreturn memory(read)
declare ptr @strrchr(ptr noundef, i32 noundef) #8

declare i32 @s2n_calculate_stacktrace() #3

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

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

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

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @verify_host_accept_everything(ptr noundef, i64 noundef, ptr noundef) #0

declare i32 @s2n_read_test_pem(ptr noundef, ptr noundef, i64 noundef) #3

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

declare i32 @s2n_stuffer_free(ptr noundef) #3

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

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

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

declare i32 @s2n_pkey_zero_init(ptr noundef) #3

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

declare i32 @s2n_pkey_free(ptr noundef) #3

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

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

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_Bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !6, i64 0}
!18 = !{!"s2n_debug_info", !6, i64 0, !6, i64 8}
!19 = !{!18, !6, i64 8}
!20 = !{!7, !7, i64 0}
!21 = !{!22, !7, i64 3720}
!22 = !{!"s2n_connection", !12, i64 0, !12, i64 0, !12, i64 0, !12, i64 0, !12, i64 0, !12, i64 0, !12, i64 0, !12, i64 0, !12, i64 1, !12, i64 1, !12, i64 1, !12, i64 1, !12, i64 1, !12, i64 1, !12, i64 1, !12, i64 1, !12, i64 2, !12, i64 2, !12, i64 2, !12, i64 2, !12, i64 2, !12, i64 2, !12, i64 2, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !7, i64 80, !7, i64 102, !7, i64 124, !12, i64 148, !12, i64 152, !23, i64 160, !10, i64 168, !10, i64 176, !7, i64 184, !7, i64 216, !7, i64 217, !7, i64 218, !7, i64 219, !7, i64 220, !7, i64 221, !7, i64 222, !6, i64 224, !6, i64 232, !24, i64 240, !6, i64 632, !6, i64 640, !25, i64 648, !31, i64 1144, !34, i64 1688, !6, i64 1752, !7, i64 1760, !12, i64 1764, !7, i64 1768, !37, i64 1776, !37, i64 1816, !37, i64 1856, !37, i64 1896, !12, i64 1936, !10, i64 1944, !7, i64 1952, !37, i64 1960, !7, i64 2000, !7, i64 2001, !7, i64 2002, !14, i64 2003, !38, i64 2004, !38, i64 2008, !39, i64 2016, !36, i64 2208, !12, i64 2212, !36, i64 2216, !10, i64 2224, !7, i64 2232, !10, i64 2240, !10, i64 2248, !10, i64 2256, !38, i64 2264, !38, i64 2268, !7, i64 2272, !7, i64 2528, !12, i64 2784, !30, i64 2792, !12, i64 2816, !30, i64 2824, !30, i64 2848, !30, i64 2872, !41, i64 2896, !43, i64 3704, !6, i64 3760, !6, i64 3768, !7, i64 3776, !12, i64 3780, !30, i64 3784, !12, i64 3808, !45, i64 3816, !7, i64 3848, !37, i64 3992, !30, i64 4032, !30, i64 4056, !14, i64 4080, !14, i64 4081, !14, i64 4082, !36, i64 4084, !36, i64 4086, !12, i64 4088, !12, i64 4092, !30, i64 4096, !12, i64 4120, !46, i64 4128, !38, i64 4176, !7, i64 4180, !7, i64 4181}
!23 = !{!"s2n_timer", !10, i64 0}
!24 = !{!"s2n_secrets", !7, i64 0, !12, i64 388}
!25 = !{!"s2n_kex_parameters", !26, i64 0, !27, i64 8, !7, i64 24, !27, i64 56, !28, i64 72, !28, i64 184, !7, i64 296, !29, i64 360, !30, i64 448, !30, i64 472}
!26 = !{!"s2n_dh_params", !6, i64 0}
!27 = !{!"s2n_ecc_evp_params", !6, i64 0, !6, i64 8}
!28 = !{!"s2n_kem_group_params", !6, i64 0, !29, i64 8, !27, i64 96}
!29 = !{!"s2n_kem_params", !6, i64 0, !30, i64 8, !30, i64 32, !30, i64 56, !14, i64 80}
!30 = !{!"s2n_blob", !6, i64 0, !12, i64 8, !12, i64 12, !12, i64 16}
!31 = !{!"s2n_handshake_parameters", !32, i64 0, !32, i64 48, !30, i64 96, !12, i64 120, !33, i64 124, !6, i64 384, !6, i64 392, !6, i64 400, !7, i64 408, !7, i64 440, !7, i64 472, !7, i64 473, !7, i64 474, !7, i64 506}
!32 = !{!"s2n_pkey", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!33 = !{!"s2n_sig_scheme_list", !7, i64 0, !7, i64 256}
!34 = !{!"s2n_psk_parameters", !12, i64 0, !35, i64 8, !36, i64 40, !36, i64 42, !6, i64 48, !12, i64 56}
!35 = !{!"s2n_array", !30, i64 0, !12, i64 24, !12, i64 28}
!36 = !{!"short", !7, i64 0}
!37 = !{!"s2n_stuffer", !30, i64 0, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 36, !12, i64 36}
!38 = !{!"", !12, i64 0}
!39 = !{!"s2n_handshake", !37, i64 0, !6, i64 40, !7, i64 48, !7, i64 56, !7, i64 104, !7, i64 152, !12, i64 156, !12, i64 160, !12, i64 164, !12, i64 168, !40, i64 176, !12, i64 184, !12, i64 184, !12, i64 184, !12, i64 184, !12, i64 188}
!40 = !{!"s2n_offered_early_data", !6, i64 0}
!41 = !{!"s2n_client_hello", !30, i64 0, !42, i64 24, !30, i64 728, !30, i64 752, !30, i64 776, !7, i64 800, !7, i64 801, !12, i64 802, !12, i64 802, !12, i64 802, !12, i64 802, !12, i64 802, !12, i64 802, !12, i64 802}
!42 = !{!"", !7, i64 0, !30, i64 672, !36, i64 696}
!43 = !{!"s2n_x509_validator", !6, i64 0, !6, i64 8, !7, i64 16, !7, i64 17, !36, i64 18, !6, i64 24, !12, i64 32, !6, i64 40, !44, i64 48, !14, i64 52}
!44 = !{!"s2n_cert_validation_info", !12, i64 0, !12, i64 0}
!45 = !{!"s2n_ticket_fields", !30, i64 0, !12, i64 24}
!46 = !{!"s2n_post_handshake", !37, i64 0, !7, i64 40}
!47 = !{!22, !7, i64 220}
!48 = !{!22, !6, i64 3704}
!49 = !{!37, !12, i64 28}
!50 = !{!37, !12, i64 24}
!51 = !{!22, !7, i64 218}


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

%struct.s2n_debug_info = type { ptr, ptr }
%struct.s2n_stuffer = type { %struct.s2n_blob, i32, i32, i32, i8 }
%struct.s2n_blob = type { ptr, i32, i32, i8 }
%struct.host_verify_data = type { ptr, i8, i8 }
%struct.s2n_pkey = type { ptr, ptr, ptr, ptr, ptr, ptr }

@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 [41 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [96 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 [9 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [120 x i8], align 1
@_s2n_debug_info = external thread_local local_unnamed_addr global %struct.s2n_debug_info, align 8
@.str.7 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [131 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [45 x i8], align 1
@TLS_VERSIONS = external hidden local_unnamed_addr constant [1 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @s2n_fuzz_test(ptr noundef %0, i64 noundef %1) local_unnamed_addr #0 {
  %3 = alloca %struct.s2n_stuffer, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca %struct.host_verify_data, align 8
  %7 = alloca [12000 x i8], align 16
  %8 = alloca %struct.s2n_stuffer, align 8
  %9 = alloca %struct.s2n_pkey, align 8
  %10 = alloca i32, align 4
  %11 = icmp eq i64 %1, 0
  br i1 %11, label %171, label %12

12:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %3, i8 0, i64 40, i1 false)
  %13 = trunc i64 %1 to i32
  %14 = call i32 @s2n_stuffer_alloc(ptr noundef nonnull %3, i32 noundef %13) #11
  %15 = icmp sgt i32 %14, -1
  br i1 %15, label %16, label %170

16:                                               ; preds = %12
  %17 = call i32 @s2n_stuffer_write_bytes(ptr noundef nonnull %3, ptr noundef %0, i32 noundef %13) #11
  %18 = icmp sgt i32 %17, -1
  br i1 %18, label %19, label %170

19:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #11
  %20 = call ptr @s2n_config_new() #11
  store ptr %20, ptr %4, align 8, !tbaa !5
  %21 = load i32, ptr @test_count, align 4, !tbaa !9
  %22 = add nsw i32 %21, 1
  store i32 %22, ptr @test_count, align 4, !tbaa !9
  %23 = icmp eq ptr %20, null
  br i1 %23, label %24, label %48

24:                                               ; preds = %19
  %25 = tail call ptr @__errno_location() #12
  %26 = load i32, ptr %25, align 4, !tbaa !9
  %27 = load ptr, ptr @stderr, align 8, !tbaa !5
  %28 = call i32 @s2n_print_stacktrace(ptr noundef %27) #11
  %29 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %30 = trunc nuw i8 %29 to i1
  br i1 %30, label %31, label %35

31:                                               ; preds = %24
  %32 = load ptr, ptr @stderr, align 8, !tbaa !5
  %33 = call i32 @fileno(ptr noundef %32) #11
  %34 = call i32 @isatty(i32 noundef %33) #11
  %.not42 = icmp eq i32 %34, 0
  br i1 %.not42, label %35, label %36

35:                                               ; preds = %31, %24
  br label %36

36:                                               ; preds = %31, %35
  %.str.4.sink = phi ptr [ @.str.4, %35 ], [ @.str, %31 ]
  store i32 %26, ptr %25, align 4, !tbaa !9
  %37 = load ptr, ptr @stderr, align 8, !tbaa !5
  %38 = load i32, ptr @test_count, align 4, !tbaa !9
  %39 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %40 = load i32, ptr %39, align 4, !tbaa !9
  %41 = call ptr @s2n_strerror(i32 noundef %40, ptr noundef nonnull @.str.3) #11
  %42 = load i32, ptr %39, align 4, !tbaa !9
  %43 = call ptr @s2n_strerror_debug(i32 noundef %42, ptr noundef nonnull @.str.3) #11
  %44 = load i32, ptr %25, align 4, !tbaa !9
  %45 = call ptr @strerror(i32 noundef %44) #11
  %46 = load i32, ptr %25, align 4, !tbaa !9
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef nonnull %.str.4.sink, i32 noundef %38, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 63, ptr noundef %41, ptr noundef %43, ptr noundef %45, i32 noundef %46) #13
  call void @exit(i32 noundef 1) #14
  unreachable

48:                                               ; preds = %19
  %49 = call i32 @s2n_config_set_cipher_preferences(ptr noundef nonnull %20, ptr noundef nonnull @.str.5) #11
  %50 = icmp sgt i32 %49, -1
  br i1 %50, label %51, label %168

51:                                               ; preds = %48
  %52 = call ptr @s2n_connection_new(i32 noundef 1) #11
  %.not = icmp eq ptr %52, null
  br i1 %.not, label %53, label %61

53:                                               ; preds = %51
  %54 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.6, ptr %54, align 8, !tbaa !15
  %55 = call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.6, i64 21), i32 noundef 47) #15
  %.not38 = icmp eq ptr %55, null
  %56 = getelementptr inbounds i8, ptr %55, i64 1
  %57 = select i1 %.not38, ptr getelementptr inbounds (i8, ptr @.str.6, i64 21), ptr %56
  %58 = getelementptr inbounds i8, ptr %54, i64 8
  store ptr %57, ptr %58, align 8, !tbaa !17
  %59 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653193, ptr %59, align 4, !tbaa !9
  %60 = call i32 @s2n_calculate_stacktrace() #11
  br label %168

61:                                               ; preds = %51
  %62 = call i32 @s2n_connection_set_config(ptr noundef nonnull %52, ptr noundef nonnull %20) #11
  %63 = icmp sgt i32 %62, -1
  br i1 %63, label %64, label %168

64:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #11
  store i8 0, ptr %5, align 1, !tbaa !18
  %65 = call i32 @s2n_stuffer_read_uint8(ptr noundef nonnull %3, ptr noundef nonnull %5) #11
  %66 = icmp sgt i32 %65, -1
  br i1 %66, label %67, label %167

67:                                               ; preds = %64
  %68 = load i8, ptr %5, align 1, !tbaa !18
  %69 = lshr i8 %68, 7
  %70 = getelementptr inbounds i8, ptr %52, i64 3704
  %71 = getelementptr inbounds i8, ptr %52, i64 3720
  store i8 %69, ptr %71, align 8, !tbaa !19
  %72 = getelementptr inbounds i8, ptr %52, i64 220
  store i8 33, ptr %72, align 4, !tbaa !46
  %73 = and i8 %68, 64
  %.not39 = icmp eq i8 %73, 0
  br i1 %.not39, label %157, label %74

74:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %6, i8 0, i64 16, i1 false)
  %75 = call i32 @s2n_connection_set_verify_host_callback(ptr noundef nonnull %52, ptr noundef nonnull @verify_host_accept_everything, ptr noundef nonnull %6) #11
  %76 = icmp sgt i32 %75, -1
  br i1 %76, label %77, label %.critedge

77:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 12000, ptr nonnull %7) #11
  %78 = call i32 @s2n_read_test_pem(ptr noundef nonnull @.str.7, ptr noundef nonnull %7, i64 noundef 12000) #11
  %79 = icmp sgt i32 %78, -1
  br i1 %79, label %80, label %.critedge45

80:                                               ; preds = %77
  %81 = load ptr, ptr %70, align 8, !tbaa !47
  %82 = call i32 @s2n_x509_trust_store_add_pem(ptr noundef %81, ptr noundef nonnull %7) #11
  %83 = icmp sgt i32 %82, -1
  br i1 %83, label %84, label %.critedge45

84:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(40) %8, i8 0, i64 40, i1 false)
  %85 = load i32, ptr @test_count, align 4, !tbaa !9
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr @test_count, align 4, !tbaa !9
  %87 = call i32 @s2n_test_cert_chain_data_from_pem(ptr noundef nonnull %52, ptr noundef nonnull @.str.8, ptr noundef nonnull %8) #11
  %88 = call zeroext i1 @s2n_result_is_ok(i32 %87)
  br i1 %88, label %113, label %89

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

96:                                               ; preds = %89
  %97 = load ptr, ptr @stderr, align 8, !tbaa !5
  %98 = call i32 @fileno(ptr noundef %97) #11
  %99 = call i32 @isatty(i32 noundef %98) #11
  %.not40 = icmp eq i32 %99, 0
  br i1 %.not40, label %100, label %101

100:                                              ; preds = %96, %89
  br label %101

101:                                              ; preds = %96, %100
  %.str.4.sink60 = phi ptr [ @.str.4, %100 ], [ @.str, %96 ]
  store i32 %91, ptr %90, align 4, !tbaa !9
  %102 = load ptr, ptr @stderr, align 8, !tbaa !5
  %103 = load i32, ptr @test_count, align 4, !tbaa !9
  %104 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %105 = load i32, ptr %104, align 4, !tbaa !9
  %106 = call ptr @s2n_strerror(i32 noundef %105, ptr noundef nonnull @.str.3) #11
  %107 = load i32, ptr %104, align 4, !tbaa !9
  %108 = call ptr @s2n_strerror_debug(i32 noundef %107, ptr noundef nonnull @.str.3) #11
  %109 = load i32, ptr %90, align 4, !tbaa !9
  %110 = call ptr @strerror(i32 noundef %109) #11
  %111 = load i32, ptr %90, align 4, !tbaa !9
  %112 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef nonnull %.str.4.sink60, i32 noundef %103, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.2, i32 noundef 87, ptr noundef %106, ptr noundef %108, ptr noundef %110, i32 noundef %111) #13
  call void @exit(i32 noundef 1) #14
  unreachable

113:                                              ; preds = %84
  %114 = getelementptr inbounds i8, ptr %8, i64 28
  %115 = load i32, ptr %114, align 4, !tbaa !48
  %116 = getelementptr inbounds i8, ptr %8, i64 24
  %117 = load i32, ptr %116, align 8, !tbaa !49
  %118 = sub i32 %115, %117
  %119 = call ptr @s2n_stuffer_raw_read(ptr noundef nonnull %8, i32 noundef %118) #11
  %120 = load i32, ptr @test_count, align 4, !tbaa !9
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr @test_count, align 4, !tbaa !9
  %122 = icmp eq ptr %119, null
  br i1 %122, label %123, label %147

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

130:                                              ; preds = %123
  %131 = load ptr, ptr @stderr, align 8, !tbaa !5
  %132 = call i32 @fileno(ptr noundef %131) #11
  %133 = call i32 @isatty(i32 noundef %132) #11
  %.not41 = icmp eq i32 %133, 0
  br i1 %.not41, label %134, label %135

134:                                              ; preds = %130, %123
  br label %135

135:                                              ; preds = %130, %134
  %.str.4.sink71 = phi ptr [ @.str.4, %134 ], [ @.str, %130 ]
  store i32 %125, ptr %124, align 4, !tbaa !9
  %136 = load ptr, ptr @stderr, align 8, !tbaa !5
  %137 = load i32, ptr @test_count, align 4, !tbaa !9
  %138 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %139 = load i32, ptr %138, align 4, !tbaa !9
  %140 = call ptr @s2n_strerror(i32 noundef %139, ptr noundef nonnull @.str.3) #11
  %141 = load i32, ptr %138, align 4, !tbaa !9
  %142 = call ptr @s2n_strerror_debug(i32 noundef %141, ptr noundef nonnull @.str.3) #11
  %143 = load i32, ptr %124, align 4, !tbaa !9
  %144 = call ptr @strerror(i32 noundef %143) #11
  %145 = load i32, ptr %124, align 4, !tbaa !9
  %146 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef nonnull %.str.4.sink71, i32 noundef %137, ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.2, i32 noundef 90, ptr noundef %140, ptr noundef %142, ptr noundef %144, i32 noundef %145) #13
  call void @exit(i32 noundef 1) #14
  unreachable

147:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #11
  %148 = call i32 @s2n_pkey_zero_init(ptr noundef nonnull %9) #11
  %149 = icmp sgt i32 %148, -1
  br i1 %149, label %150, label %.critedge47

150:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #11
  %151 = call i32 @s2n_x509_validator_validate_cert_chain(ptr noundef nonnull %70, ptr noundef nonnull %52, ptr noundef nonnull %119, i32 noundef %118, ptr noundef nonnull %10, ptr noundef nonnull %9) #11
  %152 = call zeroext i1 @s2n_result_is_ok(i32 %151)
  br i1 %152, label %153, label %.critedge49

153:                                              ; preds = %150
  %154 = call i32 @s2n_pkey_free(ptr noundef nonnull %9) #11
  %155 = icmp sgt i32 %154, -1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #11
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #11
  %156 = call i32 @s2n_stuffer_free(ptr noundef nonnull %8) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #11
  call void @llvm.lifetime.end.p0(i64 12000, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #11
  br i1 %155, label %157, label %167

157:                                              ; preds = %153, %67
  %158 = load i8, ptr @TLS_VERSIONS, align 1, !tbaa !18
  store i8 %158, ptr %72, align 4, !tbaa !46
  %159 = getelementptr inbounds i8, ptr %52, i64 218
  store i8 %158, ptr %159, align 2, !tbaa !50
  %160 = call i32 @s2n_extension_list_recv(i32 noundef 6, ptr noundef nonnull %52, ptr noundef nonnull %3) #11
  %161 = call i32 @s2n_connection_free(ptr noundef nonnull %52) #11
  %162 = icmp sgt i32 %161, -1
  br i1 %162, label %163, label %167

163:                                              ; preds = %157
  %164 = call i32 @s2n_stuffer_free(ptr noundef nonnull %3) #11
  %.lobit = ashr i32 %164, 31
  br label %167

.critedge:                                        ; preds = %74
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #11
  br label %167

.critedge45:                                      ; preds = %80, %77
  call void @llvm.lifetime.end.p0(i64 12000, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #11
  br label %167

.critedge47:                                      ; preds = %147
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #11
  %165 = call i32 @s2n_stuffer_free(ptr noundef nonnull %8) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #11
  call void @llvm.lifetime.end.p0(i64 12000, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #11
  br label %167

.critedge49:                                      ; preds = %150
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #11
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #11
  %166 = call i32 @s2n_stuffer_free(ptr noundef nonnull %8) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #11
  call void @llvm.lifetime.end.p0(i64 12000, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #11
  br label %167

167:                                              ; preds = %.critedge49, %.critedge47, %.critedge45, %163, %157, %.critedge, %64, %153
  %.4 = phi i32 [ -1, %153 ], [ -1, %64 ], [ -1, %.critedge ], [ -1, %157 ], [ %.lobit, %163 ], [ -1, %.critedge45 ], [ -1, %.critedge47 ], [ -1, %.critedge49 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #11
  br label %168

168:                                              ; preds = %53, %167, %61, %48
  %.6 = phi i32 [ -1, %48 ], [ %.4, %167 ], [ -1, %53 ], [ -1, %61 ]
  %169 = call i32 @s2n_config_ptr_free(ptr noundef nonnull %4) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #11
  br label %170

170:                                              ; preds = %16, %12, %168
  %.7 = phi i32 [ %.6, %168 ], [ -1, %12 ], [ -1, %16 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #11
  br label %171

171:                                              ; preds = %2, %170
  %.8 = phi i32 [ %.7, %170 ], [ 0, %2 ]
  ret i32 %.8
}

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

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

declare ptr @s2n_config_new() local_unnamed_addr #3

declare i32 @s2n_config_ptr_free(ptr noundef) local_unnamed_addr #3

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

declare i32 @s2n_print_stacktrace(ptr noundef) local_unnamed_addr #3

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

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

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

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

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

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

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

; Function Attrs: mustprogress 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) local_unnamed_addr #8

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

declare ptr @s2n_connection_new(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare ptr @strrchr(ptr noundef, i32 noundef) local_unnamed_addr #9

declare i32 @s2n_calculate_stacktrace() local_unnamed_addr #3

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

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

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

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @verify_host_accept_everything(ptr noundef, i64 noundef, ptr noundef) #0

declare i32 @s2n_read_test_pem(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

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

declare i32 @s2n_stuffer_free(ptr noundef) local_unnamed_addr #3

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

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

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

declare i32 @s2n_pkey_zero_init(ptr noundef) local_unnamed_addr #3

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

declare i32 @s2n_pkey_free(ptr noundef) local_unnamed_addr #3

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

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

!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 = !{}
!15 = !{!16, !6, i64 0}
!16 = !{!"s2n_debug_info", !6, i64 0, !6, i64 8}
!17 = !{!16, !6, i64 8}
!18 = !{!7, !7, i64 0}
!19 = !{!20, !7, i64 3720}
!20 = !{!"s2n_connection", !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 2, !10, i64 2, !10, i64 2, !10, i64 2, !10, i64 2, !10, i64 2, !10, i64 2, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !7, i64 80, !7, i64 102, !7, i64 124, !10, i64 148, !10, i64 152, !21, i64 160, !22, i64 168, !22, i64 176, !7, i64 184, !7, i64 216, !7, i64 217, !7, i64 218, !7, i64 219, !7, i64 220, !7, i64 221, !7, i64 222, !6, i64 224, !6, i64 232, !23, i64 240, !6, i64 632, !6, i64 640, !24, i64 648, !30, i64 1144, !33, i64 1688, !6, i64 1752, !7, i64 1760, !10, i64 1764, !7, i64 1768, !36, i64 1776, !36, i64 1816, !36, i64 1856, !36, i64 1896, !10, i64 1936, !22, i64 1944, !7, i64 1952, !36, i64 1960, !7, i64 2000, !7, i64 2001, !7, i64 2002, !12, i64 2003, !37, i64 2004, !37, i64 2008, !38, i64 2016, !35, i64 2208, !10, i64 2212, !35, i64 2216, !22, i64 2224, !7, i64 2232, !22, i64 2240, !22, i64 2248, !22, i64 2256, !37, i64 2264, !37, i64 2268, !7, i64 2272, !7, i64 2528, !10, i64 2784, !29, i64 2792, !10, i64 2816, !29, i64 2824, !29, i64 2848, !29, i64 2872, !40, i64 2896, !42, i64 3704, !6, i64 3760, !6, i64 3768, !7, i64 3776, !10, i64 3780, !29, i64 3784, !10, i64 3808, !44, i64 3816, !7, i64 3848, !36, i64 3992, !29, i64 4032, !29, i64 4056, !12, i64 4080, !12, i64 4081, !12, i64 4082, !35, i64 4084, !35, i64 4086, !10, i64 4088, !10, i64 4092, !29, i64 4096, !10, i64 4120, !45, i64 4128, !37, i64 4176, !7, i64 4180, !7, i64 4181}
!21 = !{!"s2n_timer", !22, i64 0}
!22 = !{!"long", !7, i64 0}
!23 = !{!"s2n_secrets", !7, i64 0, !10, i64 388}
!24 = !{!"s2n_kex_parameters", !25, i64 0, !26, i64 8, !7, i64 24, !26, i64 56, !27, i64 72, !27, i64 184, !7, i64 296, !28, i64 360, !29, i64 448, !29, i64 472}
!25 = !{!"s2n_dh_params", !6, i64 0}
!26 = !{!"s2n_ecc_evp_params", !6, i64 0, !6, i64 8}
!27 = !{!"s2n_kem_group_params", !6, i64 0, !28, i64 8, !26, i64 96}
!28 = !{!"s2n_kem_params", !6, i64 0, !29, i64 8, !29, i64 32, !29, i64 56, !12, i64 80}
!29 = !{!"s2n_blob", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16}
!30 = !{!"s2n_handshake_parameters", !31, i64 0, !31, i64 48, !29, i64 96, !10, i64 120, !32, i64 124, !6, i64 384, !6, i64 392, !6, i64 400, !7, i64 408, !7, i64 440, !7, i64 472, !7, i64 473, !7, i64 474, !7, i64 506}
!31 = !{!"s2n_pkey", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!32 = !{!"s2n_sig_scheme_list", !7, i64 0, !7, i64 256}
!33 = !{!"s2n_psk_parameters", !10, i64 0, !34, i64 8, !35, i64 40, !35, i64 42, !6, i64 48, !10, i64 56}
!34 = !{!"s2n_array", !29, i64 0, !10, i64 24, !10, i64 28}
!35 = !{!"short", !7, i64 0}
!36 = !{!"s2n_stuffer", !29, i64 0, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 36, !10, i64 36}
!37 = !{!"", !10, i64 0}
!38 = !{!"s2n_handshake", !36, i64 0, !6, i64 40, !7, i64 48, !7, i64 56, !7, i64 104, !7, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !39, i64 176, !10, i64 184, !10, i64 184, !10, i64 184, !10, i64 184, !10, i64 188}
!39 = !{!"s2n_offered_early_data", !6, i64 0}
!40 = !{!"s2n_client_hello", !29, i64 0, !41, i64 24, !29, i64 728, !29, i64 752, !29, i64 776, !7, i64 800, !7, i64 801, !10, i64 802, !10, i64 802, !10, i64 802, !10, i64 802, !10, i64 802, !10, i64 802, !10, i64 802}
!41 = !{!"", !7, i64 0, !29, i64 672, !35, i64 696}
!42 = !{!"s2n_x509_validator", !6, i64 0, !6, i64 8, !7, i64 16, !7, i64 17, !35, i64 18, !6, i64 24, !10, i64 32, !6, i64 40, !43, i64 48, !12, i64 52}
!43 = !{!"s2n_cert_validation_info", !10, i64 0, !10, i64 0}
!44 = !{!"s2n_ticket_fields", !29, i64 0, !10, i64 24}
!45 = !{!"s2n_post_handshake", !36, i64 0, !7, i64 40}
!46 = !{!20, !7, i64 220}
!47 = !{!20, !6, i64 3704}
!48 = !{!36, !10, i64 28}
!49 = !{!36, !10, i64 24}
!50 = !{!20, !7, i64 218}


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