; LLVM IR from aws/s2n-tls :: bin (echo)

; 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 }

@sig_alg_strs = external dso_local global [226 x ptr], align 16
@sig_hash_strs = external dso_local global [225 x ptr], align 16
@pq_enabled_note = external dso_local global ptr, align 8
@stderr = external global ptr, align 8
@s2n_errno = external thread_local global i32, align 4
@.str.17 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [81 x i8], align 1
@_s2n_debug_info = external thread_local global %struct.s2n_debug_info, align 8
@.str.23 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [253 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @print_s2n_error(ptr noundef) #0

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

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

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

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #4

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @print_connection_info(ptr noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i8, align 1
  %18 = alloca i16, align 2
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca [16 x i8], align 16
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #9
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  store i32 0, ptr %7, align 4, !tbaa !9
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = call i32 @s2n_connection_get_client_hello_version(ptr noundef %27)
  store i32 %28, ptr %4, align 4, !tbaa !9
  %29 = icmp slt i32 %28, 0
  br i1 %29, label %30, label %65

30:                                               ; preds = %1
  %31 = load ptr, ptr @stderr, align 8, !tbaa !5
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef @.str.21) #9
  br label %33

33:                                               ; preds = %30
  br label %34

34:                                               ; preds = %33
  %35 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %36 = getelementptr inbounds %struct.s2n_debug_info, ptr %35, i32 0, i32 0
  store ptr @.str.22, ptr %36, align 8, !tbaa !11
  %37 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %38 = getelementptr inbounds %struct.s2n_debug_info, ptr %37, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8, !tbaa !11
  %40 = getelementptr inbounds i8, ptr %39, i64 21
  %41 = call ptr @strrchr(ptr noundef %40, i32 noundef 47) #10
  %42 = icmp ne ptr %41, null
  br i1 %42, label %43, label %50

43:                                               ; preds = %34
  %44 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %45 = getelementptr inbounds %struct.s2n_debug_info, ptr %44, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8, !tbaa !11
  %47 = getelementptr inbounds i8, ptr %46, i64 21
  %48 = call ptr @strrchr(ptr noundef %47, i32 noundef 47) #10
  %49 = getelementptr inbounds i8, ptr %48, i64 1
  br label %55

50:                                               ; preds = %34
  %51 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %52 = getelementptr inbounds %struct.s2n_debug_info, ptr %51, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !11
  %54 = getelementptr inbounds i8, ptr %53, i64 21
  br label %55

55:                                               ; preds = %50, %43
  %56 = phi ptr [ %49, %43 ], [ %54, %50 ]
  %57 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %58 = getelementptr inbounds %struct.s2n_debug_info, ptr %57, i32 0, i32 1
  store ptr %56, ptr %58, align 8, !tbaa !13
  %59 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653242, ptr %59, align 4, !tbaa !9
  %60 = call i32 @s2n_calculate_stacktrace()
  br label %61

61:                                               ; preds = %55
  br label %62

62:                                               ; preds = %61
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %8, align 4
  br label %422

63:                                               ; No predecessors!
  br label %64

64:                                               ; preds = %63
  br label %65

65:                                               ; preds = %64, %1
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = call i32 @s2n_connection_get_client_protocol_version(ptr noundef %66)
  store i32 %67, ptr %5, align 4, !tbaa !9
  %68 = icmp slt i32 %67, 0
  br i1 %68, label %69, label %104

69:                                               ; preds = %65
  %70 = load ptr, ptr @stderr, align 8, !tbaa !5
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef @.str.23) #9
  br label %72

72:                                               ; preds = %69
  br label %73

73:                                               ; preds = %72
  %74 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %75 = getelementptr inbounds %struct.s2n_debug_info, ptr %74, i32 0, i32 0
  store ptr @.str.24, ptr %75, align 8, !tbaa !11
  %76 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %77 = getelementptr inbounds %struct.s2n_debug_info, ptr %76, i32 0, i32 0
  %78 = load ptr, ptr %77, align 8, !tbaa !11
  %79 = getelementptr inbounds i8, ptr %78, i64 21
  %80 = call ptr @strrchr(ptr noundef %79, i32 noundef 47) #10
  %81 = icmp ne ptr %80, null
  br i1 %81, label %82, label %89

82:                                               ; preds = %73
  %83 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %84 = getelementptr inbounds %struct.s2n_debug_info, ptr %83, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8, !tbaa !11
  %86 = getelementptr inbounds i8, ptr %85, i64 21
  %87 = call ptr @strrchr(ptr noundef %86, i32 noundef 47) #10
  %88 = getelementptr inbounds i8, ptr %87, i64 1
  br label %94

89:                                               ; preds = %73
  %90 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %91 = getelementptr inbounds %struct.s2n_debug_info, ptr %90, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8, !tbaa !11
  %93 = getelementptr inbounds i8, ptr %92, i64 21
  br label %94

94:                                               ; preds = %89, %82
  %95 = phi ptr [ %88, %82 ], [ %93, %89 ]
  %96 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %97 = getelementptr inbounds %struct.s2n_debug_info, ptr %96, i32 0, i32 1
  store ptr %95, ptr %97, align 8, !tbaa !13
  %98 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653243, ptr %98, align 4, !tbaa !9
  %99 = call i32 @s2n_calculate_stacktrace()
  br label %100

100:                                              ; preds = %94
  br label %101

101:                                              ; preds = %100
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %8, align 4
  br label %422

102:                                              ; No predecessors!
  br label %103

103:                                              ; preds = %102
  br label %104

104:                                              ; preds = %103, %65
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = call i32 @s2n_connection_get_server_protocol_version(ptr noundef %105)
  store i32 %106, ptr %6, align 4, !tbaa !9
  %107 = icmp slt i32 %106, 0
  br i1 %107, label %108, label %143

108:                                              ; preds = %104
  %109 = load ptr, ptr @stderr, align 8, !tbaa !5
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef @.str.25) #9
  br label %111

111:                                              ; preds = %108
  br label %112

112:                                              ; preds = %111
  %113 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %114 = getelementptr inbounds %struct.s2n_debug_info, ptr %113, i32 0, i32 0
  store ptr @.str.26, ptr %114, align 8, !tbaa !11
  %115 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %116 = getelementptr inbounds %struct.s2n_debug_info, ptr %115, i32 0, i32 0
  %117 = load ptr, ptr %116, align 8, !tbaa !11
  %118 = getelementptr inbounds i8, ptr %117, i64 21
  %119 = call ptr @strrchr(ptr noundef %118, i32 noundef 47) #10
  %120 = icmp ne ptr %119, null
  br i1 %120, label %121, label %128

121:                                              ; preds = %112
  %122 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %123 = getelementptr inbounds %struct.s2n_debug_info, ptr %122, i32 0, i32 0
  %124 = load ptr, ptr %123, align 8, !tbaa !11
  %125 = getelementptr inbounds i8, ptr %124, i64 21
  %126 = call ptr @strrchr(ptr noundef %125, i32 noundef 47) #10
  %127 = getelementptr inbounds i8, ptr %126, i64 1
  br label %133

128:                                              ; preds = %112
  %129 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %130 = getelementptr inbounds %struct.s2n_debug_info, ptr %129, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8, !tbaa !11
  %132 = getelementptr inbounds i8, ptr %131, i64 21
  br label %133

133:                                              ; preds = %128, %121
  %134 = phi ptr [ %127, %121 ], [ %132, %128 ]
  %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 1
  store ptr %134, ptr %136, align 8, !tbaa !13
  %137 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653244, ptr %137, align 4, !tbaa !9
  %138 = call i32 @s2n_calculate_stacktrace()
  br label %139

139:                                              ; preds = %133
  br label %140

140:                                              ; preds = %139
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %8, align 4
  br label %422

141:                                              ; No predecessors!
  br label %142

142:                                              ; preds = %141
  br label %143

143:                                              ; preds = %142, %104
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  %145 = call i32 @s2n_connection_get_actual_protocol_version(ptr noundef %144)
  store i32 %145, ptr %7, align 4, !tbaa !9
  %146 = icmp slt i32 %145, 0
  br i1 %146, label %147, label %182

147:                                              ; preds = %143
  %148 = load ptr, ptr @stderr, align 8, !tbaa !5
  %149 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %148, ptr noundef @.str.27) #9
  br label %150

150:                                              ; preds = %147
  br label %151

151:                                              ; preds = %150
  %152 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %153 = getelementptr inbounds %struct.s2n_debug_info, ptr %152, i32 0, i32 0
  store ptr @.str.28, ptr %153, align 8, !tbaa !11
  %154 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %155 = getelementptr inbounds %struct.s2n_debug_info, ptr %154, i32 0, i32 0
  %156 = load ptr, ptr %155, align 8, !tbaa !11
  %157 = getelementptr inbounds i8, ptr %156, i64 21
  %158 = call ptr @strrchr(ptr noundef %157, i32 noundef 47) #10
  %159 = icmp ne ptr %158, null
  br i1 %159, label %160, label %167

160:                                              ; preds = %151
  %161 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %162 = getelementptr inbounds %struct.s2n_debug_info, ptr %161, i32 0, i32 0
  %163 = load ptr, ptr %162, align 8, !tbaa !11
  %164 = getelementptr inbounds i8, ptr %163, i64 21
  %165 = call ptr @strrchr(ptr noundef %164, i32 noundef 47) #10
  %166 = getelementptr inbounds i8, ptr %165, i64 1
  br label %172

167:                                              ; preds = %151
  %168 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %169 = getelementptr inbounds %struct.s2n_debug_info, ptr %168, i32 0, i32 0
  %170 = load ptr, ptr %169, align 8, !tbaa !11
  %171 = getelementptr inbounds i8, ptr %170, i64 21
  br label %172

172:                                              ; preds = %167, %160
  %173 = phi ptr [ %166, %160 ], [ %171, %167 ]
  %174 = call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  %175 = getelementptr inbounds %struct.s2n_debug_info, ptr %174, i32 0, i32 1
  store ptr %173, ptr %175, align 8, !tbaa !13
  %176 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653245, ptr %176, align 4, !tbaa !9
  %177 = call i32 @s2n_calculate_stacktrace()
  br label %178

178:                                              ; preds = %172
  br label %179

179:                                              ; preds = %178
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %8, align 4
  br label %422

180:                                              ; No predecessors!
  br label %181

181:                                              ; preds = %180
  br label %182

182:                                              ; preds = %181, %143
  %183 = call i32 (ptr, ...) @printf(ptr noundef @.str.29)
  %184 = load ptr, ptr %3, align 8, !tbaa !5
  %185 = call ptr @s2n_connection_get_handshake_type_name(ptr noundef %184)
  %186 = call i32 (ptr, ...) @printf(ptr noundef @.str.30, ptr noundef %185)
  %187 = load i32, ptr %4, align 4, !tbaa !9
  %188 = call i32 (ptr, ...) @printf(ptr noundef @.str.31, i32 noundef %187)
  %189 = load i32, ptr %5, align 4, !tbaa !9
  %190 = call i32 (ptr, ...) @printf(ptr noundef @.str.32, i32 noundef %189)
  %191 = load i32, ptr %6, align 4, !tbaa !9
  %192 = call i32 (ptr, ...) @printf(ptr noundef @.str.33, i32 noundef %191)
  %193 = load i32, ptr %7, align 4, !tbaa !9
  %194 = call i32 (ptr, ...) @printf(ptr noundef @.str.34, i32 noundef %193)
  %195 = load ptr, ptr %3, align 8, !tbaa !5
  %196 = call ptr @s2n_get_server_name(ptr noundef %195)
  %197 = icmp ne ptr %196, null
  br i1 %197, label %198, label %202

198:                                              ; preds = %182
  %199 = load ptr, ptr %3, align 8, !tbaa !5
  %200 = call ptr @s2n_get_server_name(ptr noundef %199)
  %201 = call i32 (ptr, ...) @printf(ptr noundef @.str.35, ptr noundef %200)
  br label %202

202:                                              ; preds = %198, %182
  %203 = load ptr, ptr %3, align 8, !tbaa !5
  %204 = call ptr @s2n_get_application_protocol(ptr noundef %203)
  %205 = icmp ne ptr %204, null
  br i1 %205, label %206, label %210

206:                                              ; preds = %202
  %207 = load ptr, ptr %3, align 8, !tbaa !5
  %208 = call ptr @s2n_get_application_protocol(ptr noundef %207)
  %209 = call i32 (ptr, ...) @printf(ptr noundef @.str.36, ptr noundef %208)
  br label %210

210:                                              ; preds = %206, %202
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  %211 = load ptr, ptr %3, align 8, !tbaa !5
  %212 = call ptr @s2n_connection_get_kem_name(ptr noundef %211)
  store ptr %212, ptr %9, align 8, !tbaa !5
  %213 = load ptr, ptr %9, align 8, !tbaa !5
  %214 = call i32 @strcmp(ptr noundef %213, ptr noundef @.str.37) #10
  %215 = icmp ne i32 %214, 0
  br i1 %215, label %216, label %220

216:                                              ; preds = %210
  %217 = load ptr, ptr %9, align 8, !tbaa !5
  %218 = load ptr, ptr @pq_enabled_note, align 8, !tbaa !5
  %219 = call i32 (ptr, ...) @printf(ptr noundef @.str.38, ptr noundef %217, ptr noundef %218)
  br label %220

220:                                              ; preds = %216, %210
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %221 = load ptr, ptr %3, align 8, !tbaa !5
  %222 = call ptr @s2n_connection_get_kem_group_name(ptr noundef %221)
  store ptr %222, ptr %10, align 8, !tbaa !5
  %223 = load ptr, ptr %10, align 8, !tbaa !5
  %224 = call i32 @strcmp(ptr noundef %223, ptr noundef @.str.37) #10
  %225 = icmp ne i32 %224, 0
  br i1 %225, label %226, label %230

226:                                              ; preds = %220
  %227 = load ptr, ptr %10, align 8, !tbaa !5
  %228 = load ptr, ptr @pq_enabled_note, align 8, !tbaa !5
  %229 = call i32 (ptr, ...) @printf(ptr noundef @.str.39, ptr noundef %227, ptr noundef %228)
  br label %234

230:                                              ; preds = %220
  %231 = load ptr, ptr %3, align 8, !tbaa !5
  %232 = call ptr @s2n_connection_get_curve(ptr noundef %231)
  %233 = call i32 (ptr, ...) @printf(ptr noundef @.str.40, ptr noundef %232)
  br label %234

234:                                              ; preds = %230, %226
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  %235 = load ptr, ptr %3, align 8, !tbaa !5
  %236 = call ptr @s2n_connection_get_ocsp_response(ptr noundef %235, ptr noundef %11)
  store ptr %236, ptr %12, align 8, !tbaa !5
  %237 = load ptr, ptr %12, align 8, !tbaa !5
  %238 = icmp ne ptr %237, null
  br i1 %238, label %239, label %245

239:                                              ; preds = %234
  %240 = load i32, ptr %11, align 4, !tbaa !9
  %241 = icmp ugt i32 %240, 0
  br i1 %241, label %242, label %245

242:                                              ; preds = %239
  %243 = load i32, ptr %11, align 4, !tbaa !9
  %244 = call i32 (ptr, ...) @printf(ptr noundef @.str.41, i32 noundef %243)
  br label %245

245:                                              ; preds = %242, %239, %234
  %246 = load ptr, ptr %3, align 8, !tbaa !5
  %247 = call ptr @s2n_connection_get_cipher(ptr noundef %246)
  %248 = call i32 (ptr, ...) @printf(ptr noundef @.str.42, ptr noundef %247)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %249

249:                                              ; preds = %245
  %250 = load ptr, ptr %3, align 8, !tbaa !5
  %251 = call i32 @s2n_connection_get_selected_signature_algorithm(ptr noundef %250, ptr noundef %13)
  %252 = icmp slt i32 %251, 0
  br i1 %252, label %253, label %254

253:                                              ; preds = %249
  call void @print_s2n_error(ptr noundef @.str.43)
  call void @exit(i32 noundef 1) #11
  unreachable

254:                                              ; preds = %249
  br label %255

255:                                              ; preds = %254
  br label %256

256:                                              ; preds = %255
  br label %257

257:                                              ; preds = %256
  %258 = load ptr, ptr %3, align 8, !tbaa !5
  %259 = call i32 @s2n_connection_get_selected_client_cert_signature_algorithm(ptr noundef %258, ptr noundef %14)
  %260 = icmp slt i32 %259, 0
  br i1 %260, label %261, label %262

261:                                              ; preds = %257
  call void @print_s2n_error(ptr noundef @.str.44)
  call void @exit(i32 noundef 1) #11
  unreachable

262:                                              ; preds = %257
  br label %263

263:                                              ; preds = %262
  br label %264

264:                                              ; preds = %263
  br label %265

265:                                              ; preds = %264
  %266 = load ptr, ptr %3, align 8, !tbaa !5
  %267 = call i32 @s2n_connection_get_selected_digest_algorithm(ptr noundef %266, ptr noundef %15)
  %268 = icmp slt i32 %267, 0
  br i1 %268, label %269, label %270

269:                                              ; preds = %265
  call void @print_s2n_error(ptr noundef @.str.45)
  call void @exit(i32 noundef 1) #11
  unreachable

270:                                              ; preds = %265
  br label %271

271:                                              ; preds = %270
  br label %272

272:                                              ; preds = %271
  br label %273

273:                                              ; preds = %272
  %274 = load ptr, ptr %3, align 8, !tbaa !5
  %275 = call i32 @s2n_connection_get_selected_client_cert_digest_algorithm(ptr noundef %274, ptr noundef %16)
  %276 = icmp slt i32 %275, 0
  br i1 %276, label %277, label %278

277:                                              ; preds = %273
  call void @print_s2n_error(ptr noundef @.str.46)
  call void @exit(i32 noundef 1) #11
  unreachable

278:                                              ; preds = %273
  br label %279

279:                                              ; preds = %278
  br label %280

280:                                              ; preds = %279
  %281 = load i32, ptr %13, align 4, !tbaa !9
  %282 = zext i32 %281 to i64
  %283 = getelementptr inbounds [226 x ptr], ptr @sig_alg_strs, i64 0, i64 %282
  %284 = load ptr, ptr %283, align 8, !tbaa !5
  %285 = load i32, ptr %15, align 4, !tbaa !9
  %286 = zext i32 %285 to i64
  %287 = getelementptr inbounds [225 x ptr], ptr @sig_hash_strs, i64 0, i64 %286
  %288 = load ptr, ptr %287, align 8, !tbaa !5
  %289 = call i32 (ptr, ...) @printf(ptr noundef @.str.47, ptr noundef %284, ptr noundef %288)
  %290 = load i32, ptr %14, align 4, !tbaa !9
  %291 = icmp ne i32 %290, 0
  br i1 %291, label %292, label %302

292:                                              ; preds = %280
  %293 = load i32, ptr %14, align 4, !tbaa !9
  %294 = zext i32 %293 to i64
  %295 = getelementptr inbounds [226 x ptr], ptr @sig_alg_strs, i64 0, i64 %294
  %296 = load ptr, ptr %295, align 8, !tbaa !5
  %297 = load i32, ptr %16, align 4, !tbaa !9
  %298 = zext i32 %297 to i64
  %299 = getelementptr inbounds [225 x ptr], ptr @sig_hash_strs, i64 0, i64 %298
  %300 = load ptr, ptr %299, align 8, !tbaa !5
  %301 = call i32 (ptr, ...) @printf(ptr noundef @.str.48, ptr noundef %296, ptr noundef %300)
  br label %302

302:                                              ; preds = %292, %280
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #9
  %303 = load ptr, ptr %3, align 8, !tbaa !5
  %304 = call i32 @s2n_connection_is_session_resumed(ptr noundef %303)
  %305 = icmp ne i32 %304, 0
  %306 = zext i1 %305 to i8
  store i8 %306, ptr %17, align 1, !tbaa !14
  %307 = load i8, ptr %17, align 1, !tbaa !14, !range !16, !noundef !17
  %308 = trunc i8 %307 to i1
  br i1 %308, label %309, label %311

309:                                              ; preds = %302
  %310 = call i32 (ptr, ...) @printf(ptr noundef @.str.49)
  br label %311

311:                                              ; preds = %309, %302
  call void @llvm.lifetime.start.p0(i64 2, ptr %18) #9
  store i16 0, ptr %18, align 2, !tbaa !18
  br label %312

312:                                              ; preds = %311
  %313 = load ptr, ptr %3, align 8, !tbaa !5
  %314 = call i32 @s2n_connection_get_negotiated_psk_identity_length(ptr noundef %313, ptr noundef %18)
  %315 = icmp slt i32 %314, 0
  br i1 %315, label %316, label %317

316:                                              ; preds = %312
  call void @print_s2n_error(ptr noundef @.str.50)
  call void @exit(i32 noundef 1) #11
  unreachable

317:                                              ; preds = %312
  br label %318

318:                                              ; preds = %317
  br label %319

319:                                              ; preds = %318
  %320 = load i16, ptr %18, align 2, !tbaa !18
  %321 = zext i16 %320 to i32
  %322 = icmp ne i32 %321, 0
  br i1 %322, label %323, label %354

323:                                              ; preds = %319
  %324 = load i8, ptr %17, align 1, !tbaa !14, !range !16, !noundef !17
  %325 = trunc i8 %324 to i1
  br i1 %325, label %354, label %326

326:                                              ; preds = %323
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %327 = load i16, ptr %18, align 2, !tbaa !18
  %328 = zext i16 %327 to i64
  %329 = call noalias ptr @malloc(i64 noundef %328) #12
  store ptr %329, ptr %19, align 8, !tbaa !5
  br label %330

330:                                              ; preds = %326
  %331 = load ptr, ptr %19, align 8, !tbaa !5
  %332 = icmp eq ptr %331, null
  br i1 %332, label %333, label %336

333:                                              ; preds = %330
  %334 = load ptr, ptr @stderr, align 8, !tbaa !5
  %335 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %334, ptr noundef @.str.17) #9
  call void @exit(i32 noundef 1) #11
  unreachable

336:                                              ; preds = %330
  br label %337

337:                                              ; preds = %336
  br label %338

338:                                              ; preds = %337
  br label %339

339:                                              ; preds = %338
  %340 = load ptr, ptr %3, align 8, !tbaa !5
  %341 = load ptr, ptr %19, align 8, !tbaa !5
  %342 = load i16, ptr %18, align 2, !tbaa !18
  %343 = call i32 @s2n_connection_get_negotiated_psk_identity(ptr noundef %340, ptr noundef %341, i16 noundef zeroext %342)
  %344 = icmp slt i32 %343, 0
  br i1 %344, label %345, label %346

345:                                              ; preds = %339
  call void @print_s2n_error(ptr noundef @.str.51)
  call void @exit(i32 noundef 1) #11
  unreachable

346:                                              ; preds = %339
  br label %347

347:                                              ; preds = %346
  br label %348

348:                                              ; preds = %347
  %349 = load i16, ptr %18, align 2, !tbaa !18
  %350 = zext i16 %349 to i32
  %351 = load ptr, ptr %19, align 8, !tbaa !5
  %352 = call i32 (ptr, ...) @printf(ptr noundef @.str.52, i32 noundef %350, ptr noundef %351)
  %353 = load ptr, ptr %19, align 8, !tbaa !5
  call void @free(ptr noundef %353) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  br label %354

354:                                              ; preds = %348, %323, %319
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %355

355:                                              ; preds = %354
  %356 = load ptr, ptr %3, align 8, !tbaa !5
  %357 = call i32 @s2n_connection_get_early_data_status(ptr noundef %356, ptr noundef %20)
  %358 = icmp slt i32 %357, 0
  br i1 %358, label %359, label %360

359:                                              ; preds = %355
  call void @print_s2n_error(ptr noundef @.str.53)
  call void @exit(i32 noundef 1) #11
  unreachable

360:                                              ; preds = %355
  br label %361

361:                                              ; preds = %360
  br label %362

362:                                              ; preds = %361
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #9
  store ptr null, ptr %21, align 8, !tbaa !5
  %363 = load i32, ptr %20, align 4, !tbaa !9
  switch i32 %363, label %368 [
    i32 0, label %364
    i32 1, label %365
    i32 2, label %366
    i32 3, label %367
  ]

364:                                              ; preds = %362
  store ptr @.str.54, ptr %21, align 8, !tbaa !5
  br label %368

365:                                              ; preds = %362
  store ptr @.str.55, ptr %21, align 8, !tbaa !5
  br label %368

366:                                              ; preds = %362
  store ptr @.str.56, ptr %21, align 8, !tbaa !5
  br label %368

367:                                              ; preds = %362
  store ptr @.str.57, ptr %21, align 8, !tbaa !5
  br label %368

368:                                              ; preds = %367, %366, %365, %364, %362
  br label %369

369:                                              ; preds = %368
  %370 = load ptr, ptr %21, align 8, !tbaa !5
  %371 = icmp eq ptr %370, null
  br i1 %371, label %372, label %375

372:                                              ; preds = %369
  %373 = load ptr, ptr @stderr, align 8, !tbaa !5
  %374 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %373, ptr noundef @.str.17) #9
  call void @exit(i32 noundef 1) #11
  unreachable

375:                                              ; preds = %369
  br label %376

376:                                              ; preds = %375
  br label %377

377:                                              ; preds = %376
  %378 = load ptr, ptr %21, align 8, !tbaa !5
  %379 = call i32 (ptr, ...) @printf(ptr noundef @.str.58, ptr noundef %378)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  %380 = load ptr, ptr %3, align 8, !tbaa !5
  %381 = call ptr @s2n_connection_get_client_hello(ptr noundef %380)
  store ptr %381, ptr %22, align 8, !tbaa !5
  %382 = load ptr, ptr %22, align 8, !tbaa !5
  %383 = icmp ne ptr %382, null
  br i1 %383, label %384, label %415

384:                                              ; preds = %377
  %385 = load i32, ptr %4, align 4, !tbaa !9
  %386 = icmp sgt i32 %385, 20
  br i1 %386, label %387, label %415

387:                                              ; preds = %384
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #9
  call void @llvm.memset.p0.i64(ptr align 16 %23, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  store i32 0, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %388

388:                                              ; preds = %387
  %389 = load ptr, ptr %22, align 8, !tbaa !5
  %390 = getelementptr inbounds [16 x i8], ptr %23, i64 0, i64 0
  %391 = call i32 @s2n_client_hello_get_fingerprint_hash(ptr noundef %389, i32 noundef 0, i32 noundef 16, ptr noundef %390, ptr noundef %24, ptr noundef %25)
  %392 = icmp slt i32 %391, 0
  br i1 %392, label %393, label %394

393:                                              ; preds = %388
  call void @print_s2n_error(ptr noundef @.str.59)
  call void @exit(i32 noundef 1) #11
  unreachable

394:                                              ; preds = %388
  br label %395

395:                                              ; preds = %394
  br label %396

396:                                              ; preds = %395
  %397 = call i32 (ptr, ...) @printf(ptr noundef @.str.60)
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #9
  store i64 0, ptr %26, align 8, !tbaa !20
  br label %398

398:                                              ; preds = %410, %396
  %399 = load i64, ptr %26, align 8, !tbaa !20
  %400 = load i32, ptr %24, align 4, !tbaa !9
  %401 = zext i32 %400 to i64
  %402 = icmp ult i64 %399, %401
  br i1 %402, label %404, label %403

403:                                              ; preds = %398
  store i32 39, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #9
  br label %413

404:                                              ; preds = %398
  %405 = load i64, ptr %26, align 8, !tbaa !20
  %406 = getelementptr inbounds [16 x i8], ptr %23, i64 0, i64 %405
  %407 = load i8, ptr %406, align 1, !tbaa !22
  %408 = zext i8 %407 to i32
  %409 = call i32 (ptr, ...) @printf(ptr noundef @.str.61, i32 noundef %408)
  br label %410

410:                                              ; preds = %404
  %411 = load i64, ptr %26, align 8, !tbaa !20
  %412 = add i64 %411, 1
  store i64 %412, ptr %26, align 8, !tbaa !20
  br label %398, !llvm.loop !23

413:                                              ; preds = %403
  %414 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #9
  br label %415

415:                                              ; preds = %413, %384, %377
  %416 = load ptr, ptr %3, align 8, !tbaa !5
  %417 = call i64 @s2n_connection_get_wire_bytes_in(ptr noundef %416)
  %418 = call i32 (ptr, ...) @printf(ptr noundef @.str.62, i64 noundef %417)
  %419 = load ptr, ptr %3, align 8, !tbaa !5
  %420 = call i64 @s2n_connection_get_wire_bytes_out(ptr noundef %419)
  %421 = call i32 (ptr, ...) @printf(ptr noundef @.str.63, i64 noundef %420)
  store i32 0, ptr %2, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  br label %422

422:                                              ; preds = %415, %179, %140, %101, %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #9
  %423 = load i32, ptr %2, align 4
  ret i32 %423
}

declare i32 @s2n_connection_get_client_hello_version(ptr noundef) #6

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

declare i32 @s2n_calculate_stacktrace() #6

declare i32 @s2n_connection_get_client_protocol_version(ptr noundef) #6

declare i32 @s2n_connection_get_server_protocol_version(ptr noundef) #6

declare i32 @s2n_connection_get_actual_protocol_version(ptr noundef) #6

declare i32 @printf(ptr noundef, ...) #6

declare ptr @s2n_connection_get_handshake_type_name(ptr noundef) #6

declare ptr @s2n_get_server_name(ptr noundef) #6

declare ptr @s2n_get_application_protocol(ptr noundef) #6

declare ptr @s2n_connection_get_kem_name(ptr noundef) #6

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

declare ptr @s2n_connection_get_kem_group_name(ptr noundef) #6

declare ptr @s2n_connection_get_curve(ptr noundef) #6

declare ptr @s2n_connection_get_ocsp_response(ptr noundef, ptr noundef) #6

declare ptr @s2n_connection_get_cipher(ptr noundef) #6

declare i32 @s2n_connection_get_selected_signature_algorithm(ptr noundef, ptr noundef) #6

declare i32 @s2n_connection_get_selected_client_cert_signature_algorithm(ptr noundef, ptr noundef) #6

declare i32 @s2n_connection_get_selected_digest_algorithm(ptr noundef, ptr noundef) #6

declare i32 @s2n_connection_get_selected_client_cert_digest_algorithm(ptr noundef, ptr noundef) #6

declare i32 @s2n_connection_is_session_resumed(ptr noundef) #6

declare i32 @s2n_connection_get_negotiated_psk_identity_length(ptr noundef, ptr noundef) #6

declare i32 @s2n_connection_get_negotiated_psk_identity(ptr noundef, ptr noundef, i16 noundef zeroext) #6

declare i32 @s2n_connection_get_early_data_status(ptr noundef, ptr noundef) #6

declare ptr @s2n_connection_get_client_hello(ptr noundef) #6

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

declare i32 @s2n_client_hello_get_fingerprint_hash(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #6

declare i64 @s2n_connection_get_wire_bytes_in(ptr noundef) #6

declare i64 @s2n_connection_get_wire_bytes_out(ptr noundef) #6

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

!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, !6, i64 0}
!12 = !{!"s2n_debug_info", !6, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8}
!14 = !{!15, !15, i64 0}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!19, !19, i64 0}
!19 = !{!"short", !7, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; 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 }

@sig_alg_strs = external dso_local local_unnamed_addr global [226 x ptr], align 16
@sig_hash_strs = external dso_local local_unnamed_addr global [225 x ptr], align 16
@pq_enabled_note = external dso_local local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@s2n_errno = external thread_local local_unnamed_addr global i32, align 4
@.str.17 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [81 x i8], align 1
@_s2n_debug_info = external thread_local local_unnamed_addr global %struct.s2n_debug_info, align 8
@.str.23 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [253 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [21 x i8], align 1
@switch.table.print_connection_info = private unnamed_addr constant [4 x ptr] [ptr @.str.54, ptr @.str.55, ptr @.str.56, ptr @.str.57], align 8

; Function Attrs: nounwind uwtable
declare dso_local void @print_s2n_error(ptr noundef) local_unnamed_addr #0

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

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #6

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @print_connection_info(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i16, align 2
  %8 = alloca i32, align 4
  %9 = alloca [16 x i8], align 16
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = tail call i32 @s2n_connection_get_client_hello_version(ptr noundef %0) #10
  %13 = icmp slt i32 %12, 0
  br i1 %13, label %14, label %24

14:                                               ; preds = %1
  %15 = load ptr, ptr @stderr, align 8, !tbaa !5
  %16 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str.21) #11
  %17 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.22, ptr %17, align 8, !tbaa !9
  %18 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.22, i64 21), i32 noundef 47) #12
  %.not74 = icmp eq ptr %18, null
  %19 = getelementptr inbounds i8, ptr %18, i64 1
  %20 = select i1 %.not74, ptr getelementptr inbounds (i8, ptr @.str.22, i64 21), ptr %19
  %21 = getelementptr inbounds i8, ptr %17, i64 8
  store ptr %20, ptr %21, align 8, !tbaa !11
  %22 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653242, ptr %22, align 4, !tbaa !12
  %23 = tail call i32 @s2n_calculate_stacktrace() #10
  br label %201

24:                                               ; preds = %1
  %25 = tail call i32 @s2n_connection_get_client_protocol_version(ptr noundef %0) #10
  %26 = icmp slt i32 %25, 0
  br i1 %26, label %27, label %37

27:                                               ; preds = %24
  %28 = load ptr, ptr @stderr, align 8, !tbaa !5
  %29 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef nonnull @.str.23) #11
  %30 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.24, ptr %30, align 8, !tbaa !9
  %31 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.24, i64 21), i32 noundef 47) #12
  %.not73 = icmp eq ptr %31, null
  %32 = getelementptr inbounds i8, ptr %31, i64 1
  %33 = select i1 %.not73, ptr getelementptr inbounds (i8, ptr @.str.24, i64 21), ptr %32
  %34 = getelementptr inbounds i8, ptr %30, i64 8
  store ptr %33, ptr %34, align 8, !tbaa !11
  %35 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653243, ptr %35, align 4, !tbaa !12
  %36 = tail call i32 @s2n_calculate_stacktrace() #10
  br label %201

37:                                               ; preds = %24
  %38 = tail call i32 @s2n_connection_get_server_protocol_version(ptr noundef %0) #10
  %39 = icmp slt i32 %38, 0
  br i1 %39, label %40, label %50

40:                                               ; preds = %37
  %41 = load ptr, ptr @stderr, align 8, !tbaa !5
  %42 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef nonnull @.str.25) #11
  %43 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.26, ptr %43, align 8, !tbaa !9
  %44 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.26, i64 21), i32 noundef 47) #12
  %.not72 = icmp eq ptr %44, null
  %45 = getelementptr inbounds i8, ptr %44, i64 1
  %46 = select i1 %.not72, ptr getelementptr inbounds (i8, ptr @.str.26, i64 21), ptr %45
  %47 = getelementptr inbounds i8, ptr %43, i64 8
  store ptr %46, ptr %47, align 8, !tbaa !11
  %48 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653244, ptr %48, align 4, !tbaa !12
  %49 = tail call i32 @s2n_calculate_stacktrace() #10
  br label %201

50:                                               ; preds = %37
  %51 = tail call i32 @s2n_connection_get_actual_protocol_version(ptr noundef %0) #10
  %52 = icmp slt i32 %51, 0
  br i1 %52, label %53, label %63

53:                                               ; preds = %50
  %54 = load ptr, ptr @stderr, align 8, !tbaa !5
  %55 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str.27) #11
  %56 = tail call align 8 ptr @llvm.threadlocal.address.p0(ptr align 8 @_s2n_debug_info)
  store ptr @.str.28, ptr %56, align 8, !tbaa !9
  %57 = tail call ptr @strrchr(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @.str.28, i64 21), i32 noundef 47) #12
  %.not71 = icmp eq ptr %57, null
  %58 = getelementptr inbounds i8, ptr %57, i64 1
  %59 = select i1 %.not71, ptr getelementptr inbounds (i8, ptr @.str.28, i64 21), ptr %58
  %60 = getelementptr inbounds i8, ptr %56, i64 8
  store ptr %59, ptr %60, align 8, !tbaa !11
  %61 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  store i32 402653245, ptr %61, align 4, !tbaa !12
  %62 = tail call i32 @s2n_calculate_stacktrace() #10
  br label %201

63:                                               ; preds = %50
  %64 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.29)
  %65 = tail call ptr @s2n_connection_get_handshake_type_name(ptr noundef %0) #10
  %66 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30, ptr noundef %65)
  %67 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.31, i32 noundef %12)
  %68 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.32, i32 noundef %25)
  %69 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.33, i32 noundef %38)
  %70 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.34, i32 noundef %51)
  %71 = tail call ptr @s2n_get_server_name(ptr noundef %0) #10
  %.not = icmp eq ptr %71, null
  br i1 %.not, label %75, label %72

72:                                               ; preds = %63
  %73 = tail call ptr @s2n_get_server_name(ptr noundef %0) #10
  %74 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.35, ptr noundef %73)
  br label %75

75:                                               ; preds = %72, %63
  %76 = tail call ptr @s2n_get_application_protocol(ptr noundef %0) #10
  %.not65 = icmp eq ptr %76, null
  br i1 %.not65, label %80, label %77

77:                                               ; preds = %75
  %78 = tail call ptr @s2n_get_application_protocol(ptr noundef %0) #10
  %79 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.36, ptr noundef %78)
  br label %80

80:                                               ; preds = %77, %75
  %81 = tail call ptr @s2n_connection_get_kem_name(ptr noundef %0) #10
  %82 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %81, ptr noundef nonnull dereferenceable(1) @.str.37) #12
  %.not66 = icmp eq i32 %82, 0
  br i1 %.not66, label %86, label %83

83:                                               ; preds = %80
  %84 = load ptr, ptr @pq_enabled_note, align 8, !tbaa !5
  %85 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.38, ptr noundef %81, ptr noundef %84)
  br label %86

86:                                               ; preds = %83, %80
  %87 = tail call ptr @s2n_connection_get_kem_group_name(ptr noundef %0) #10
  %88 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %87, ptr noundef nonnull dereferenceable(1) @.str.37) #12
  %.not67 = icmp eq i32 %88, 0
  br i1 %.not67, label %92, label %89

89:                                               ; preds = %86
  %90 = load ptr, ptr @pq_enabled_note, align 8, !tbaa !5
  %91 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.39, ptr noundef %87, ptr noundef %90)
  br label %95

92:                                               ; preds = %86
  %93 = tail call ptr @s2n_connection_get_curve(ptr noundef %0) #10
  %94 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.40, ptr noundef %93)
  br label %95

95:                                               ; preds = %92, %89
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #10
  store i32 0, ptr %2, align 4, !tbaa !12
  %96 = call ptr @s2n_connection_get_ocsp_response(ptr noundef %0, ptr noundef nonnull %2) #10
  %97 = icmp ne ptr %96, null
  %98 = load i32, ptr %2, align 4
  %99 = icmp ne i32 %98, 0
  %or.cond = select i1 %97, i1 %99, i1 false
  br i1 %or.cond, label %100, label %102

100:                                              ; preds = %95
  %101 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.41, i32 noundef %98)
  br label %102

102:                                              ; preds = %100, %95
  %103 = call ptr @s2n_connection_get_cipher(ptr noundef %0) #10
  %104 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.42, ptr noundef %103)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #10
  store i32 0, ptr %3, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #10
  store i32 0, ptr %4, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #10
  store i32 0, ptr %5, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #10
  store i32 0, ptr %6, align 4, !tbaa !12
  %105 = call i32 @s2n_connection_get_selected_signature_algorithm(ptr noundef %0, ptr noundef nonnull %3) #10
  %106 = icmp slt i32 %105, 0
  br i1 %106, label %107, label %108

107:                                              ; preds = %102
  call void @print_s2n_error(ptr noundef nonnull @.str.43)
  call void @exit(i32 noundef 1) #13
  unreachable

108:                                              ; preds = %102
  %109 = call i32 @s2n_connection_get_selected_client_cert_signature_algorithm(ptr noundef %0, ptr noundef nonnull %4) #10
  %110 = icmp slt i32 %109, 0
  br i1 %110, label %111, label %112

111:                                              ; preds = %108
  call void @print_s2n_error(ptr noundef nonnull @.str.44)
  call void @exit(i32 noundef 1) #13
  unreachable

112:                                              ; preds = %108
  %113 = call i32 @s2n_connection_get_selected_digest_algorithm(ptr noundef %0, ptr noundef nonnull %5) #10
  %114 = icmp slt i32 %113, 0
  br i1 %114, label %115, label %116

115:                                              ; preds = %112
  call void @print_s2n_error(ptr noundef nonnull @.str.45)
  call void @exit(i32 noundef 1) #13
  unreachable

116:                                              ; preds = %112
  %117 = call i32 @s2n_connection_get_selected_client_cert_digest_algorithm(ptr noundef %0, ptr noundef nonnull %6) #10
  %118 = icmp slt i32 %117, 0
  br i1 %118, label %119, label %120

119:                                              ; preds = %116
  call void @print_s2n_error(ptr noundef nonnull @.str.46)
  call void @exit(i32 noundef 1) #13
  unreachable

120:                                              ; preds = %116
  %121 = load i32, ptr %3, align 4, !tbaa !12
  %122 = zext i32 %121 to i64
  %123 = getelementptr inbounds [226 x ptr], ptr @sig_alg_strs, i64 0, i64 %122
  %124 = load ptr, ptr %123, align 8, !tbaa !5
  %125 = load i32, ptr %5, align 4, !tbaa !12
  %126 = zext i32 %125 to i64
  %127 = getelementptr inbounds [225 x ptr], ptr @sig_hash_strs, i64 0, i64 %126
  %128 = load ptr, ptr %127, align 8, !tbaa !5
  %129 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.47, ptr noundef %124, ptr noundef %128)
  %130 = load i32, ptr %4, align 4, !tbaa !12
  %.not68 = icmp eq i32 %130, 0
  br i1 %.not68, label %140, label %131

131:                                              ; preds = %120
  %132 = zext i32 %130 to i64
  %133 = getelementptr inbounds [226 x ptr], ptr @sig_alg_strs, i64 0, i64 %132
  %134 = load ptr, ptr %133, align 8, !tbaa !5
  %135 = load i32, ptr %6, align 4, !tbaa !12
  %136 = zext i32 %135 to i64
  %137 = getelementptr inbounds [225 x ptr], ptr @sig_hash_strs, i64 0, i64 %136
  %138 = load ptr, ptr %137, align 8, !tbaa !5
  %139 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.48, ptr noundef %134, ptr noundef %138)
  br label %140

140:                                              ; preds = %131, %120
  %141 = call i32 @s2n_connection_is_session_resumed(ptr noundef %0) #10
  %.not69 = icmp ne i32 %141, 0
  br i1 %.not69, label %142, label %144

142:                                              ; preds = %140
  %143 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.49)
  br label %144

144:                                              ; preds = %142, %140
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %7) #10
  store i16 0, ptr %7, align 2, !tbaa !14
  %145 = call i32 @s2n_connection_get_negotiated_psk_identity_length(ptr noundef %0, ptr noundef nonnull %7) #10
  %146 = icmp slt i32 %145, 0
  br i1 %146, label %147, label %148

147:                                              ; preds = %144
  call void @print_s2n_error(ptr noundef nonnull @.str.50)
  call void @exit(i32 noundef 1) #13
  unreachable

148:                                              ; preds = %144
  %149 = load i16, ptr %7, align 2, !tbaa !14
  %.not70 = icmp eq i16 %149, 0
  %brmerge = or i1 %.not69, %.not70
  br i1 %brmerge, label %165, label %150

150:                                              ; preds = %148
  %151 = zext i16 %149 to i64
  %152 = call noalias ptr @malloc(i64 noundef %151) #14
  %153 = icmp eq ptr %152, null
  br i1 %153, label %154, label %157

154:                                              ; preds = %150
  %155 = load ptr, ptr @stderr, align 8, !tbaa !5
  %156 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %155, ptr noundef nonnull @.str.17) #11
  call void @exit(i32 noundef 1) #13
  unreachable

157:                                              ; preds = %150
  %158 = call i32 @s2n_connection_get_negotiated_psk_identity(ptr noundef %0, ptr noundef nonnull %152, i16 noundef zeroext %149) #10
  %159 = icmp slt i32 %158, 0
  br i1 %159, label %160, label %161

160:                                              ; preds = %157
  call void @print_s2n_error(ptr noundef nonnull @.str.51)
  call void @exit(i32 noundef 1) #13
  unreachable

161:                                              ; preds = %157
  %162 = load i16, ptr %7, align 2, !tbaa !14
  %163 = zext i16 %162 to i32
  %164 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.52, i32 noundef %163, ptr noundef nonnull %152)
  call void @free(ptr noundef nonnull %152) #10
  br label %165

165:                                              ; preds = %148, %161
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #10
  store i32 0, ptr %8, align 4, !tbaa !12
  %166 = call i32 @s2n_connection_get_early_data_status(ptr noundef %0, ptr noundef nonnull %8) #10
  %167 = icmp slt i32 %166, 0
  br i1 %167, label %168, label %169

168:                                              ; preds = %165
  call void @print_s2n_error(ptr noundef nonnull @.str.53)
  call void @exit(i32 noundef 1) #13
  unreachable

169:                                              ; preds = %165
  %170 = load i32, ptr %8, align 4, !tbaa !12
  %171 = icmp ult i32 %170, 4
  br i1 %171, label %switch.lookup, label %172

172:                                              ; preds = %169
  %173 = load ptr, ptr @stderr, align 8, !tbaa !5
  %174 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %173, ptr noundef nonnull @.str.17) #11
  call void @exit(i32 noundef 1) #13
  unreachable

switch.lookup:                                    ; preds = %169
  %175 = zext nneg i32 %170 to i64
  %switch.gep = getelementptr inbounds [4 x ptr], ptr @switch.table.print_connection_info, i64 0, i64 %175
  %switch.load = load ptr, ptr %switch.gep, align 8
  %176 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.58, ptr noundef nonnull %switch.load)
  %177 = call ptr @s2n_connection_get_client_hello(ptr noundef %0) #10
  %178 = icmp ne ptr %177, null
  %179 = icmp ugt i32 %12, 20
  %or.cond3 = and i1 %179, %178
  br i1 %or.cond3, label %180, label %196

180:                                              ; preds = %switch.lookup
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %9, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #10
  store i32 0, ptr %10, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #10
  store i32 0, ptr %11, align 4, !tbaa !12
  %181 = call i32 @s2n_client_hello_get_fingerprint_hash(ptr noundef nonnull %177, i32 noundef 0, i32 noundef 16, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11) #10
  %182 = icmp slt i32 %181, 0
  br i1 %182, label %183, label %184

183:                                              ; preds = %180
  call void @print_s2n_error(ptr noundef nonnull @.str.59)
  call void @exit(i32 noundef 1) #13
  unreachable

184:                                              ; preds = %180
  %185 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.60)
  %186 = load i32, ptr %10, align 4, !tbaa !12
  %.not78 = icmp eq i32 %186, 0
  br i1 %.not78, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %184
  %187 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #10
  br label %196

.lr.ph:                                           ; preds = %184, %.lr.ph
  %.077 = phi i64 [ %192, %.lr.ph ], [ 0, %184 ]
  %188 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 %.077
  %189 = load i8, ptr %188, align 1, !tbaa !16
  %190 = zext i8 %189 to i32
  %191 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.61, i32 noundef %190)
  %192 = add nuw nsw i64 %.077, 1
  %193 = load i32, ptr %10, align 4, !tbaa !12
  %194 = zext i32 %193 to i64
  %195 = icmp ult i64 %192, %194
  br i1 %195, label %.lr.ph, label %._crit_edge, !llvm.loop !17

196:                                              ; preds = %._crit_edge, %switch.lookup
  %197 = call i64 @s2n_connection_get_wire_bytes_in(ptr noundef %0) #10
  %198 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.62, i64 noundef %197)
  %199 = call i64 @s2n_connection_get_wire_bytes_out(ptr noundef %0) #10
  %200 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.63, i64 noundef %199)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #10
  br label %201

201:                                              ; preds = %196, %53, %40, %27, %14
  %.051 = phi i32 [ -1, %14 ], [ -1, %27 ], [ -1, %40 ], [ -1, %53 ], [ 0, %196 ]
  ret i32 %.051
}

declare i32 @s2n_connection_get_client_hello_version(ptr noundef) local_unnamed_addr #7

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

declare i32 @s2n_calculate_stacktrace() local_unnamed_addr #7

declare i32 @s2n_connection_get_client_protocol_version(ptr noundef) local_unnamed_addr #7

declare i32 @s2n_connection_get_server_protocol_version(ptr noundef) local_unnamed_addr #7

declare i32 @s2n_connection_get_actual_protocol_version(ptr noundef) local_unnamed_addr #7

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

declare ptr @s2n_connection_get_handshake_type_name(ptr noundef) local_unnamed_addr #7

declare ptr @s2n_get_server_name(ptr noundef) local_unnamed_addr #7

declare ptr @s2n_get_application_protocol(ptr noundef) local_unnamed_addr #7

declare ptr @s2n_connection_get_kem_name(ptr noundef) local_unnamed_addr #7

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

declare ptr @s2n_connection_get_kem_group_name(ptr noundef) local_unnamed_addr #7

declare ptr @s2n_connection_get_curve(ptr noundef) local_unnamed_addr #7

declare ptr @s2n_connection_get_ocsp_response(ptr noundef, ptr noundef) local_unnamed_addr #7

declare ptr @s2n_connection_get_cipher(ptr noundef) local_unnamed_addr #7

declare i32 @s2n_connection_get_selected_signature_algorithm(ptr noundef, ptr noundef) local_unnamed_addr #7

declare i32 @s2n_connection_get_selected_client_cert_signature_algorithm(ptr noundef, ptr noundef) local_unnamed_addr #7

declare i32 @s2n_connection_get_selected_digest_algorithm(ptr noundef, ptr noundef) local_unnamed_addr #7

declare i32 @s2n_connection_get_selected_client_cert_digest_algorithm(ptr noundef, ptr noundef) local_unnamed_addr #7

declare i32 @s2n_connection_is_session_resumed(ptr noundef) local_unnamed_addr #7

declare i32 @s2n_connection_get_negotiated_psk_identity_length(ptr noundef, ptr noundef) local_unnamed_addr #7

declare i32 @s2n_connection_get_negotiated_psk_identity(ptr noundef, ptr noundef, i16 noundef zeroext) local_unnamed_addr #7

declare i32 @s2n_connection_get_early_data_status(ptr noundef, ptr noundef) local_unnamed_addr #7

declare ptr @s2n_connection_get_client_hello(ptr noundef) local_unnamed_addr #7

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

declare i32 @s2n_client_hello_get_fingerprint_hash(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #7

declare i64 @s2n_connection_get_wire_bytes_in(ptr noundef) local_unnamed_addr #7

declare i64 @s2n_connection_get_wire_bytes_out(ptr noundef) local_unnamed_addr #7

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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { 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 #6 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { "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 = { 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 #9 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #10 = { nounwind }
attributes #11 = { cold nounwind }
attributes #12 = { nounwind willreturn memory(read) }
attributes #13 = { noreturn nounwind }
attributes #14 = { nounwind allocsize(0) }

!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, !6, i64 0}
!10 = !{!"s2n_debug_info", !6, i64 0, !6, i64 8}
!11 = !{!10, !6, i64 8}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass