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

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

%struct.s2n_result = type { i32 }
%struct.s2n_client_hello_context = type { ptr, 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 [38 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [101 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 [75 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [177 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [126 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [46 x i8], align 1

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

22:                                               ; preds = %2
  %23 = load i32, ptr @test_count, align 4, !tbaa !9
  %24 = add nsw i32 %23, 1
  store i32 %24, ptr @test_count, align 4, !tbaa !9
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = icmp eq ptr %25, null
  br i1 %26, label %27, label %78

27:                                               ; preds = %22
  br label %28

28:                                               ; preds = %27
  br label %29

29:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  %30 = call ptr @__errno_location() #10
  %31 = load i32, ptr %30, align 4, !tbaa !9
  store i32 %31, ptr %5, align 4, !tbaa !9
  %32 = load ptr, ptr @stderr, align 8, !tbaa !5
  %33 = call i32 @s2n_print_stacktrace(ptr noundef %32)
  %34 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %35 = trunc i8 %34 to i1
  br i1 %35, label %36, label %58

36:                                               ; preds = %29
  %37 = load ptr, ptr @stderr, align 8, !tbaa !5
  %38 = call i32 @fileno(ptr noundef %37) #9
  %39 = call i32 @isatty(i32 noundef %38) #9
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %58

41:                                               ; preds = %36
  %42 = load i32, ptr %5, align 4, !tbaa !9
  %43 = call ptr @__errno_location() #10
  store i32 %42, ptr %43, align 4, !tbaa !9
  %44 = load ptr, ptr @stderr, align 8, !tbaa !5
  %45 = load i32, ptr @test_count, align 4, !tbaa !9
  %46 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %47 = load i32, ptr %46, align 4, !tbaa !9
  %48 = call ptr @s2n_strerror(i32 noundef %47, ptr noundef @.str.3)
  %49 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %50 = load i32, ptr %49, align 4, !tbaa !9
  %51 = call ptr @s2n_strerror_debug(i32 noundef %50, ptr noundef @.str.3)
  %52 = call ptr @__errno_location() #10
  %53 = load i32, ptr %52, align 4, !tbaa !9
  %54 = call ptr @strerror(i32 noundef %53) #9
  %55 = call ptr @__errno_location() #10
  %56 = load i32, ptr %55, align 4, !tbaa !9
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef @.str, i32 noundef %45, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 39, ptr noundef %48, ptr noundef %51, ptr noundef %54, i32 noundef %56) #9
  br label %75

58:                                               ; preds = %36, %29
  %59 = load i32, ptr %5, align 4, !tbaa !9
  %60 = call ptr @__errno_location() #10
  store i32 %59, ptr %60, align 4, !tbaa !9
  %61 = load ptr, ptr @stderr, align 8, !tbaa !5
  %62 = load i32, ptr @test_count, align 4, !tbaa !9
  %63 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %64 = load i32, ptr %63, align 4, !tbaa !9
  %65 = call ptr @s2n_strerror(i32 noundef %64, ptr noundef @.str.3)
  %66 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %67 = load i32, ptr %66, align 4, !tbaa !9
  %68 = call ptr @s2n_strerror_debug(i32 noundef %67, ptr noundef @.str.3)
  %69 = call ptr @__errno_location() #10
  %70 = load i32, ptr %69, align 4, !tbaa !9
  %71 = call ptr @strerror(i32 noundef %70) #9
  %72 = call ptr @__errno_location() #10
  %73 = load i32, ptr %72, align 4, !tbaa !9
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef @.str.4, i32 noundef %62, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 39, ptr noundef %65, ptr noundef %68, ptr noundef %71, i32 noundef %73) #9
  br label %75

75:                                               ; preds = %58, %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  br label %76

76:                                               ; preds = %75
  call void @exit(i32 noundef 1) #11
  unreachable

77:                                               ; No predecessors!
  br label %78

78:                                               ; preds = %77, %22
  br label %79

79:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %80, ptr %6, align 8, !tbaa !5
  br label %81

81:                                               ; preds = %79
  %82 = load i32, ptr @test_count, align 4, !tbaa !9
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr @test_count, align 4, !tbaa !9
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.s2n_client_hello_context, ptr %84, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8, !tbaa !15
  %87 = icmp eq ptr %86, null
  br i1 %87, label %88, label %141

88:                                               ; preds = %81
  br label %89

89:                                               ; preds = %88
  br label %90

90:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  %91 = call ptr @__errno_location() #10
  %92 = load i32, ptr %91, align 4, !tbaa !9
  store i32 %92, ptr %7, align 4, !tbaa !9
  %93 = load ptr, ptr @stderr, align 8, !tbaa !5
  %94 = call i32 @s2n_print_stacktrace(ptr noundef %93)
  %95 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %96 = trunc i8 %95 to i1
  br i1 %96, label %97, label %119

97:                                               ; preds = %90
  %98 = load ptr, ptr @stderr, align 8, !tbaa !5
  %99 = call i32 @fileno(ptr noundef %98) #9
  %100 = call i32 @isatty(i32 noundef %99) #9
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %119

102:                                              ; preds = %97
  %103 = load i32, ptr %7, align 4, !tbaa !9
  %104 = call ptr @__errno_location() #10
  store i32 %103, ptr %104, align 4, !tbaa !9
  %105 = load ptr, ptr @stderr, align 8, !tbaa !5
  %106 = load i32, ptr @test_count, align 4, !tbaa !9
  %107 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %108 = load i32, ptr %107, align 4, !tbaa !9
  %109 = call ptr @s2n_strerror(i32 noundef %108, ptr noundef @.str.3)
  %110 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %111 = load i32, ptr %110, align 4, !tbaa !9
  %112 = call ptr @s2n_strerror_debug(i32 noundef %111, ptr noundef @.str.3)
  %113 = call ptr @__errno_location() #10
  %114 = load i32, ptr %113, align 4, !tbaa !9
  %115 = call ptr @strerror(i32 noundef %114) #9
  %116 = call ptr @__errno_location() #10
  %117 = load i32, ptr %116, align 4, !tbaa !9
  %118 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef @.str, i32 noundef %106, ptr noundef @.str.5, ptr noundef @.str.2, i32 noundef 42, ptr noundef %109, ptr noundef %112, ptr noundef %115, i32 noundef %117) #9
  br label %136

119:                                              ; preds = %97, %90
  %120 = load i32, ptr %7, align 4, !tbaa !9
  %121 = call ptr @__errno_location() #10
  store i32 %120, ptr %121, align 4, !tbaa !9
  %122 = load ptr, ptr @stderr, align 8, !tbaa !5
  %123 = load i32, ptr @test_count, align 4, !tbaa !9
  %124 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %125 = load i32, ptr %124, align 4, !tbaa !9
  %126 = call ptr @s2n_strerror(i32 noundef %125, ptr noundef @.str.3)
  %127 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %128 = load i32, ptr %127, align 4, !tbaa !9
  %129 = call ptr @s2n_strerror_debug(i32 noundef %128, ptr noundef @.str.3)
  %130 = call ptr @__errno_location() #10
  %131 = load i32, ptr %130, align 4, !tbaa !9
  %132 = call ptr @strerror(i32 noundef %131) #9
  %133 = call ptr @__errno_location() #10
  %134 = load i32, ptr %133, align 4, !tbaa !9
  %135 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef @.str.4, i32 noundef %123, ptr noundef @.str.5, ptr noundef @.str.2, i32 noundef 42, ptr noundef %126, ptr noundef %129, ptr noundef %132, i32 noundef %134) #9
  br label %136

136:                                              ; preds = %119, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  br label %137

137:                                              ; preds = %136
  br label %138

138:                                              ; preds = %137
  call void @exit(i32 noundef 1) #11
  unreachable

139:                                              ; No predecessors!
  br label %140

140:                                              ; preds = %139
  br label %141

141:                                              ; preds = %140, %81
  br label %142

142:                                              ; preds = %141
  br label %143

143:                                              ; preds = %142
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.s2n_client_hello_context, ptr %144, i32 0, i32 1
  %146 = load i32, ptr %145, align 8, !tbaa !17
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %145, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  %149 = call ptr @s2n_connection_get_client_hello(ptr noundef %148)
  store ptr %149, ptr %8, align 8, !tbaa !5
  br label %150

150:                                              ; preds = %143
  %151 = load i32, ptr @test_count, align 4, !tbaa !9
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr @test_count, align 4, !tbaa !9
  %153 = load ptr, ptr %8, align 8, !tbaa !5
  %154 = icmp eq ptr %153, null
  br i1 %154, label %155, label %208

155:                                              ; preds = %150
  br label %156

156:                                              ; preds = %155
  br label %157

157:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  %158 = call ptr @__errno_location() #10
  %159 = load i32, ptr %158, align 4, !tbaa !9
  store i32 %159, ptr %9, align 4, !tbaa !9
  %160 = load ptr, ptr @stderr, align 8, !tbaa !5
  %161 = call i32 @s2n_print_stacktrace(ptr noundef %160)
  %162 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %163 = trunc i8 %162 to i1
  br i1 %163, label %164, label %186

164:                                              ; preds = %157
  %165 = load ptr, ptr @stderr, align 8, !tbaa !5
  %166 = call i32 @fileno(ptr noundef %165) #9
  %167 = call i32 @isatty(i32 noundef %166) #9
  %168 = icmp ne i32 %167, 0
  br i1 %168, label %169, label %186

169:                                              ; preds = %164
  %170 = load i32, ptr %9, align 4, !tbaa !9
  %171 = call ptr @__errno_location() #10
  store i32 %170, ptr %171, align 4, !tbaa !9
  %172 = load ptr, ptr @stderr, align 8, !tbaa !5
  %173 = load i32, ptr @test_count, align 4, !tbaa !9
  %174 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %175 = load i32, ptr %174, align 4, !tbaa !9
  %176 = call ptr @s2n_strerror(i32 noundef %175, ptr noundef @.str.3)
  %177 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %178 = load i32, ptr %177, align 4, !tbaa !9
  %179 = call ptr @s2n_strerror_debug(i32 noundef %178, ptr noundef @.str.3)
  %180 = call ptr @__errno_location() #10
  %181 = load i32, ptr %180, align 4, !tbaa !9
  %182 = call ptr @strerror(i32 noundef %181) #9
  %183 = call ptr @__errno_location() #10
  %184 = load i32, ptr %183, align 4, !tbaa !9
  %185 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %172, ptr noundef @.str, i32 noundef %173, ptr noundef @.str.6, ptr noundef @.str.2, i32 noundef 46, ptr noundef %176, ptr noundef %179, ptr noundef %182, i32 noundef %184) #9
  br label %203

186:                                              ; preds = %164, %157
  %187 = load i32, ptr %9, align 4, !tbaa !9
  %188 = call ptr @__errno_location() #10
  store i32 %187, ptr %188, align 4, !tbaa !9
  %189 = load ptr, ptr @stderr, align 8, !tbaa !5
  %190 = load i32, ptr @test_count, align 4, !tbaa !9
  %191 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %192 = load i32, ptr %191, align 4, !tbaa !9
  %193 = call ptr @s2n_strerror(i32 noundef %192, ptr noundef @.str.3)
  %194 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %195 = load i32, ptr %194, align 4, !tbaa !9
  %196 = call ptr @s2n_strerror_debug(i32 noundef %195, ptr noundef @.str.3)
  %197 = call ptr @__errno_location() #10
  %198 = load i32, ptr %197, align 4, !tbaa !9
  %199 = call ptr @strerror(i32 noundef %198) #9
  %200 = call ptr @__errno_location() #10
  %201 = load i32, ptr %200, align 4, !tbaa !9
  %202 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %189, ptr noundef @.str.4, i32 noundef %190, ptr noundef @.str.6, ptr noundef @.str.2, i32 noundef 46, ptr noundef %193, ptr noundef %196, ptr noundef %199, i32 noundef %201) #9
  br label %203

203:                                              ; preds = %186, %169
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  br label %204

204:                                              ; preds = %203
  br label %205

205:                                              ; preds = %204
  call void @exit(i32 noundef 1) #11
  unreachable

206:                                              ; No predecessors!
  br label %207

207:                                              ; preds = %206
  br label %208

208:                                              ; preds = %207, %150
  br label %209

209:                                              ; preds = %208
  br label %210

210:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #9
  call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 2, ptr %11) #9
  store i16 0, ptr %11, align 2, !tbaa !18
  br label %211

211:                                              ; preds = %210
  %212 = load i32, ptr @test_count, align 4, !tbaa !9
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr @test_count, align 4, !tbaa !9
  %214 = load ptr, ptr %8, align 8, !tbaa !5
  %215 = getelementptr inbounds [16 x i16], ptr %10, i64 0, i64 0
  %216 = call i32 @s2n_client_hello_get_supported_groups(ptr noundef %214, ptr noundef %215, i16 noundef zeroext 16, ptr noundef %11)
  %217 = icmp eq i32 %216, -1
  br i1 %217, label %218, label %271

218:                                              ; preds = %211
  br label %219

219:                                              ; preds = %218
  br label %220

220:                                              ; preds = %219
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  %221 = call ptr @__errno_location() #10
  %222 = load i32, ptr %221, align 4, !tbaa !9
  store i32 %222, ptr %12, align 4, !tbaa !9
  %223 = load ptr, ptr @stderr, align 8, !tbaa !5
  %224 = call i32 @s2n_print_stacktrace(ptr noundef %223)
  %225 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %226 = trunc i8 %225 to i1
  br i1 %226, label %227, label %249

227:                                              ; preds = %220
  %228 = load ptr, ptr @stderr, align 8, !tbaa !5
  %229 = call i32 @fileno(ptr noundef %228) #9
  %230 = call i32 @isatty(i32 noundef %229) #9
  %231 = icmp ne i32 %230, 0
  br i1 %231, label %232, label %249

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

249:                                              ; preds = %227, %220
  %250 = load i32, ptr %12, align 4, !tbaa !9
  %251 = call ptr @__errno_location() #10
  store i32 %250, ptr %251, align 4, !tbaa !9
  %252 = load ptr, ptr @stderr, align 8, !tbaa !5
  %253 = load i32, ptr @test_count, align 4, !tbaa !9
  %254 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %255 = load i32, ptr %254, align 4, !tbaa !9
  %256 = call ptr @s2n_strerror(i32 noundef %255, ptr noundef @.str.3)
  %257 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %258 = load i32, ptr %257, align 4, !tbaa !9
  %259 = call ptr @s2n_strerror_debug(i32 noundef %258, ptr noundef @.str.3)
  %260 = call ptr @__errno_location() #10
  %261 = load i32, ptr %260, align 4, !tbaa !9
  %262 = call ptr @strerror(i32 noundef %261) #9
  %263 = call ptr @__errno_location() #10
  %264 = load i32, ptr %263, align 4, !tbaa !9
  %265 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %252, ptr noundef @.str.4, i32 noundef %253, ptr noundef @.str.7, ptr noundef @.str.2, i32 noundef 51, ptr noundef %256, ptr noundef %259, ptr noundef %262, i32 noundef %264) #9
  br label %266

266:                                              ; preds = %249, %232
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  br label %267

267:                                              ; preds = %266
  br label %268

268:                                              ; preds = %267
  call void @exit(i32 noundef 1) #11
  unreachable

269:                                              ; No predecessors!
  br label %270

270:                                              ; preds = %269
  br label %271

271:                                              ; preds = %270, %211
  br label %272

272:                                              ; preds = %271
  br label %273

273:                                              ; preds = %272
  call void @llvm.lifetime.start.p0(i64 2, ptr %13) #9
  store i16 0, ptr %13, align 2, !tbaa !18
  br label %274

274:                                              ; preds = %273
  %275 = load i32, ptr @test_count, align 4, !tbaa !9
  %276 = add nsw i32 %275, 1
  store i32 %276, ptr @test_count, align 4, !tbaa !9
  %277 = load ptr, ptr %6, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.s2n_client_hello_context, ptr %277, i32 0, i32 0
  %279 = load ptr, ptr %278, align 8, !tbaa !15
  %280 = call i32 @s2n_supported_groups_parse_count(ptr noundef %279, ptr noundef %13)
  %281 = getelementptr inbounds %struct.s2n_result, ptr %14, i32 0, i32 0
  store i32 %280, ptr %281, align 4
  %282 = getelementptr inbounds %struct.s2n_result, ptr %14, i32 0, i32 0
  %283 = load i32, ptr %282, align 4
  %284 = call zeroext i1 @s2n_result_is_ok(i32 %283)
  br i1 %284, label %338, label %285

285:                                              ; preds = %274
  br label %286

286:                                              ; preds = %285
  br label %287

287:                                              ; preds = %286
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  %288 = call ptr @__errno_location() #10
  %289 = load i32, ptr %288, align 4, !tbaa !9
  store i32 %289, ptr %15, align 4, !tbaa !9
  %290 = load ptr, ptr @stderr, align 8, !tbaa !5
  %291 = call i32 @s2n_print_stacktrace(ptr noundef %290)
  %292 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %293 = trunc i8 %292 to i1
  br i1 %293, label %294, label %316

294:                                              ; preds = %287
  %295 = load ptr, ptr @stderr, align 8, !tbaa !5
  %296 = call i32 @fileno(ptr noundef %295) #9
  %297 = call i32 @isatty(i32 noundef %296) #9
  %298 = icmp ne i32 %297, 0
  br i1 %298, label %299, label %316

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

316:                                              ; preds = %294, %287
  %317 = load i32, ptr %15, align 4, !tbaa !9
  %318 = call ptr @__errno_location() #10
  store i32 %317, ptr %318, align 4, !tbaa !9
  %319 = load ptr, ptr @stderr, align 8, !tbaa !5
  %320 = load i32, ptr @test_count, align 4, !tbaa !9
  %321 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %322 = load i32, ptr %321, align 4, !tbaa !9
  %323 = call ptr @s2n_strerror(i32 noundef %322, ptr noundef @.str.3)
  %324 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %325 = load i32, ptr %324, align 4, !tbaa !9
  %326 = call ptr @s2n_strerror_debug(i32 noundef %325, ptr noundef @.str.3)
  %327 = call ptr @__errno_location() #10
  %328 = load i32, ptr %327, align 4, !tbaa !9
  %329 = call ptr @strerror(i32 noundef %328) #9
  %330 = call ptr @__errno_location() #10
  %331 = load i32, ptr %330, align 4, !tbaa !9
  %332 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %319, ptr noundef @.str.4, i32 noundef %320, ptr noundef @.str.8, ptr noundef @.str.2, i32 noundef 54, ptr noundef %323, ptr noundef %326, ptr noundef %329, i32 noundef %331) #9
  br label %333

333:                                              ; preds = %316, %299
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  br label %334

334:                                              ; preds = %333
  br label %335

335:                                              ; preds = %334
  call void @exit(i32 noundef 1) #11
  unreachable

336:                                              ; No predecessors!
  br label %337

337:                                              ; preds = %336
  br label %338

338:                                              ; preds = %337, %274
  br label %339

339:                                              ; preds = %338
  br label %340

340:                                              ; preds = %339
  br label %341

341:                                              ; preds = %340
  %342 = load i32, ptr @test_count, align 4, !tbaa !9
  %343 = add nsw i32 %342, 1
  store i32 %343, ptr @test_count, align 4, !tbaa !9
  %344 = load i16, ptr %11, align 2, !tbaa !18
  %345 = zext i16 %344 to i32
  %346 = load i16, ptr %13, align 2, !tbaa !18
  %347 = zext i16 %346 to i32
  %348 = icmp eq i32 %345, %347
  br i1 %348, label %402, label %349

349:                                              ; preds = %341
  br label %350

350:                                              ; preds = %349
  br label %351

351:                                              ; preds = %350
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  %352 = call ptr @__errno_location() #10
  %353 = load i32, ptr %352, align 4, !tbaa !9
  store i32 %353, ptr %16, align 4, !tbaa !9
  %354 = load ptr, ptr @stderr, align 8, !tbaa !5
  %355 = call i32 @s2n_print_stacktrace(ptr noundef %354)
  %356 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %357 = trunc i8 %356 to i1
  br i1 %357, label %358, label %380

358:                                              ; preds = %351
  %359 = load ptr, ptr @stderr, align 8, !tbaa !5
  %360 = call i32 @fileno(ptr noundef %359) #9
  %361 = call i32 @isatty(i32 noundef %360) #9
  %362 = icmp ne i32 %361, 0
  br i1 %362, label %363, label %380

363:                                              ; preds = %358
  %364 = load i32, ptr %16, align 4, !tbaa !9
  %365 = call ptr @__errno_location() #10
  store i32 %364, ptr %365, align 4, !tbaa !9
  %366 = load ptr, ptr @stderr, align 8, !tbaa !5
  %367 = load i32, ptr @test_count, align 4, !tbaa !9
  %368 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %369 = load i32, ptr %368, align 4, !tbaa !9
  %370 = call ptr @s2n_strerror(i32 noundef %369, ptr noundef @.str.3)
  %371 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %372 = load i32, ptr %371, align 4, !tbaa !9
  %373 = call ptr @s2n_strerror_debug(i32 noundef %372, ptr noundef @.str.3)
  %374 = call ptr @__errno_location() #10
  %375 = load i32, ptr %374, align 4, !tbaa !9
  %376 = call ptr @strerror(i32 noundef %375) #9
  %377 = call ptr @__errno_location() #10
  %378 = load i32, ptr %377, align 4, !tbaa !9
  %379 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %366, ptr noundef @.str, i32 noundef %367, ptr noundef @.str.9, ptr noundef @.str.2, i32 noundef 55, ptr noundef %370, ptr noundef %373, ptr noundef %376, i32 noundef %378) #9
  br label %397

380:                                              ; preds = %358, %351
  %381 = load i32, ptr %16, align 4, !tbaa !9
  %382 = call ptr @__errno_location() #10
  store i32 %381, ptr %382, align 4, !tbaa !9
  %383 = load ptr, ptr @stderr, align 8, !tbaa !5
  %384 = load i32, ptr @test_count, align 4, !tbaa !9
  %385 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %386 = load i32, ptr %385, align 4, !tbaa !9
  %387 = call ptr @s2n_strerror(i32 noundef %386, ptr noundef @.str.3)
  %388 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %389 = load i32, ptr %388, align 4, !tbaa !9
  %390 = call ptr @s2n_strerror_debug(i32 noundef %389, ptr noundef @.str.3)
  %391 = call ptr @__errno_location() #10
  %392 = load i32, ptr %391, align 4, !tbaa !9
  %393 = call ptr @strerror(i32 noundef %392) #9
  %394 = call ptr @__errno_location() #10
  %395 = load i32, ptr %394, align 4, !tbaa !9
  %396 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %383, ptr noundef @.str.4, i32 noundef %384, ptr noundef @.str.9, ptr noundef @.str.2, i32 noundef 55, ptr noundef %387, ptr noundef %390, ptr noundef %393, i32 noundef %395) #9
  br label %397

397:                                              ; preds = %380, %363
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  br label %398

398:                                              ; preds = %397
  br label %399

399:                                              ; preds = %398
  call void @exit(i32 noundef 1) #11
  unreachable

400:                                              ; No predecessors!
  br label %401

401:                                              ; preds = %400
  br label %402

402:                                              ; preds = %401, %341
  br label %403

403:                                              ; preds = %402
  br label %404

404:                                              ; preds = %403
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  store i64 0, ptr %17, align 8, !tbaa !20
  br label %405

405:                                              ; preds = %543, %404
  %406 = load i64, ptr %17, align 8, !tbaa !20
  %407 = load i16, ptr %11, align 2, !tbaa !18
  %408 = zext i16 %407 to i64
  %409 = icmp ult i64 %406, %408
  br i1 %409, label %411, label %410

410:                                              ; preds = %405
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  br label %546

411:                                              ; preds = %405
  call void @llvm.lifetime.start.p0(i64 2, ptr %18) #9
  %412 = load i64, ptr %17, align 8, !tbaa !20
  %413 = getelementptr inbounds [16 x i16], ptr %10, i64 0, i64 %412
  %414 = load i16, ptr %413, align 2, !tbaa !18
  store i16 %414, ptr %18, align 2, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 2, ptr %19) #9
  store i16 0, ptr %19, align 2, !tbaa !18
  br label %415

415:                                              ; preds = %411
  %416 = load i32, ptr @test_count, align 4, !tbaa !9
  %417 = add nsw i32 %416, 1
  store i32 %417, ptr @test_count, align 4, !tbaa !9
  %418 = load ptr, ptr %6, align 8, !tbaa !5
  %419 = getelementptr inbounds %struct.s2n_client_hello_context, ptr %418, i32 0, i32 0
  %420 = load ptr, ptr %419, align 8, !tbaa !15
  %421 = call i32 @s2n_stuffer_read_uint16(ptr noundef %420, ptr noundef %19)
  %422 = icmp eq i32 %421, -1
  br i1 %422, label %423, label %476

423:                                              ; preds = %415
  br label %424

424:                                              ; preds = %423
  br label %425

425:                                              ; preds = %424
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  %426 = call ptr @__errno_location() #10
  %427 = load i32, ptr %426, align 4, !tbaa !9
  store i32 %427, ptr %20, align 4, !tbaa !9
  %428 = load ptr, ptr @stderr, align 8, !tbaa !5
  %429 = call i32 @s2n_print_stacktrace(ptr noundef %428)
  %430 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %431 = trunc i8 %430 to i1
  br i1 %431, label %432, label %454

432:                                              ; preds = %425
  %433 = load ptr, ptr @stderr, align 8, !tbaa !5
  %434 = call i32 @fileno(ptr noundef %433) #9
  %435 = call i32 @isatty(i32 noundef %434) #9
  %436 = icmp ne i32 %435, 0
  br i1 %436, label %437, label %454

437:                                              ; preds = %432
  %438 = load i32, ptr %20, align 4, !tbaa !9
  %439 = call ptr @__errno_location() #10
  store i32 %438, ptr %439, align 4, !tbaa !9
  %440 = load ptr, ptr @stderr, align 8, !tbaa !5
  %441 = load i32, ptr @test_count, align 4, !tbaa !9
  %442 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %443 = load i32, ptr %442, align 4, !tbaa !9
  %444 = call ptr @s2n_strerror(i32 noundef %443, ptr noundef @.str.3)
  %445 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %446 = load i32, ptr %445, align 4, !tbaa !9
  %447 = call ptr @s2n_strerror_debug(i32 noundef %446, ptr noundef @.str.3)
  %448 = call ptr @__errno_location() #10
  %449 = load i32, ptr %448, align 4, !tbaa !9
  %450 = call ptr @strerror(i32 noundef %449) #9
  %451 = call ptr @__errno_location() #10
  %452 = load i32, ptr %451, align 4, !tbaa !9
  %453 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %440, ptr noundef @.str, i32 noundef %441, ptr noundef @.str.10, ptr noundef @.str.2, i32 noundef 65, ptr noundef %444, ptr noundef %447, ptr noundef %450, i32 noundef %452) #9
  br label %471

454:                                              ; preds = %432, %425
  %455 = load i32, ptr %20, align 4, !tbaa !9
  %456 = call ptr @__errno_location() #10
  store i32 %455, ptr %456, align 4, !tbaa !9
  %457 = load ptr, ptr @stderr, align 8, !tbaa !5
  %458 = load i32, ptr @test_count, align 4, !tbaa !9
  %459 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %460 = load i32, ptr %459, align 4, !tbaa !9
  %461 = call ptr @s2n_strerror(i32 noundef %460, ptr noundef @.str.3)
  %462 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %463 = load i32, ptr %462, align 4, !tbaa !9
  %464 = call ptr @s2n_strerror_debug(i32 noundef %463, ptr noundef @.str.3)
  %465 = call ptr @__errno_location() #10
  %466 = load i32, ptr %465, align 4, !tbaa !9
  %467 = call ptr @strerror(i32 noundef %466) #9
  %468 = call ptr @__errno_location() #10
  %469 = load i32, ptr %468, align 4, !tbaa !9
  %470 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %457, ptr noundef @.str.4, i32 noundef %458, ptr noundef @.str.10, ptr noundef @.str.2, i32 noundef 65, ptr noundef %461, ptr noundef %464, ptr noundef %467, i32 noundef %469) #9
  br label %471

471:                                              ; preds = %454, %437
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  br label %472

472:                                              ; preds = %471
  br label %473

473:                                              ; preds = %472
  call void @exit(i32 noundef 1) #11
  unreachable

474:                                              ; No predecessors!
  br label %475

475:                                              ; preds = %474
  br label %476

476:                                              ; preds = %475, %415
  br label %477

477:                                              ; preds = %476
  br label %478

478:                                              ; preds = %477
  br label %479

479:                                              ; preds = %478
  %480 = load i32, ptr @test_count, align 4, !tbaa !9
  %481 = add nsw i32 %480, 1
  store i32 %481, ptr @test_count, align 4, !tbaa !9
  %482 = load i16, ptr %18, align 2, !tbaa !18
  %483 = zext i16 %482 to i32
  %484 = load i16, ptr %19, align 2, !tbaa !18
  %485 = zext i16 %484 to i32
  %486 = icmp eq i32 %483, %485
  br i1 %486, label %540, label %487

487:                                              ; preds = %479
  br label %488

488:                                              ; preds = %487
  br label %489

489:                                              ; preds = %488
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  %490 = call ptr @__errno_location() #10
  %491 = load i32, ptr %490, align 4, !tbaa !9
  store i32 %491, ptr %21, align 4, !tbaa !9
  %492 = load ptr, ptr @stderr, align 8, !tbaa !5
  %493 = call i32 @s2n_print_stacktrace(ptr noundef %492)
  %494 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %495 = trunc i8 %494 to i1
  br i1 %495, label %496, label %518

496:                                              ; preds = %489
  %497 = load ptr, ptr @stderr, align 8, !tbaa !5
  %498 = call i32 @fileno(ptr noundef %497) #9
  %499 = call i32 @isatty(i32 noundef %498) #9
  %500 = icmp ne i32 %499, 0
  br i1 %500, label %501, label %518

501:                                              ; preds = %496
  %502 = load i32, ptr %21, align 4, !tbaa !9
  %503 = call ptr @__errno_location() #10
  store i32 %502, ptr %503, align 4, !tbaa !9
  %504 = load ptr, ptr @stderr, align 8, !tbaa !5
  %505 = load i32, ptr @test_count, align 4, !tbaa !9
  %506 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %507 = load i32, ptr %506, align 4, !tbaa !9
  %508 = call ptr @s2n_strerror(i32 noundef %507, ptr noundef @.str.3)
  %509 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %510 = load i32, ptr %509, align 4, !tbaa !9
  %511 = call ptr @s2n_strerror_debug(i32 noundef %510, ptr noundef @.str.3)
  %512 = call ptr @__errno_location() #10
  %513 = load i32, ptr %512, align 4, !tbaa !9
  %514 = call ptr @strerror(i32 noundef %513) #9
  %515 = call ptr @__errno_location() #10
  %516 = load i32, ptr %515, align 4, !tbaa !9
  %517 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %504, ptr noundef @.str, i32 noundef %505, ptr noundef @.str.11, ptr noundef @.str.2, i32 noundef 67, ptr noundef %508, ptr noundef %511, ptr noundef %514, i32 noundef %516) #9
  br label %535

518:                                              ; preds = %496, %489
  %519 = load i32, ptr %21, align 4, !tbaa !9
  %520 = call ptr @__errno_location() #10
  store i32 %519, ptr %520, align 4, !tbaa !9
  %521 = load ptr, ptr @stderr, align 8, !tbaa !5
  %522 = load i32, ptr @test_count, align 4, !tbaa !9
  %523 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %524 = load i32, ptr %523, align 4, !tbaa !9
  %525 = call ptr @s2n_strerror(i32 noundef %524, ptr noundef @.str.3)
  %526 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %527 = load i32, ptr %526, align 4, !tbaa !9
  %528 = call ptr @s2n_strerror_debug(i32 noundef %527, ptr noundef @.str.3)
  %529 = call ptr @__errno_location() #10
  %530 = load i32, ptr %529, align 4, !tbaa !9
  %531 = call ptr @strerror(i32 noundef %530) #9
  %532 = call ptr @__errno_location() #10
  %533 = load i32, ptr %532, align 4, !tbaa !9
  %534 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %521, ptr noundef @.str.4, i32 noundef %522, ptr noundef @.str.11, ptr noundef @.str.2, i32 noundef 67, ptr noundef %525, ptr noundef %528, ptr noundef %531, i32 noundef %533) #9
  br label %535

535:                                              ; preds = %518, %501
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %536

536:                                              ; preds = %535
  br label %537

537:                                              ; preds = %536
  call void @exit(i32 noundef 1) #11
  unreachable

538:                                              ; No predecessors!
  br label %539

539:                                              ; preds = %538
  br label %540

540:                                              ; preds = %539, %479
  br label %541

541:                                              ; preds = %540
  br label %542

542:                                              ; preds = %541
  call void @llvm.lifetime.end.p0(i64 2, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr %18) #9
  br label %543

543:                                              ; preds = %542
  %544 = load i64, ptr %17, align 8, !tbaa !20
  %545 = add i64 %544, 1
  store i64 %545, ptr %17, align 8, !tbaa !20
  br label %405, !llvm.loop !22

546:                                              ; preds = %410
  call void @llvm.lifetime.end.p0(i64 2, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 2, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  ret i32 0
}

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

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

declare i32 @s2n_print_stacktrace(ptr noundef) #3

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

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

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

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

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

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

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

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

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

declare ptr @s2n_connection_get_client_hello(ptr noundef) #3

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

declare i32 @s2n_client_hello_get_supported_groups(ptr noundef, ptr noundef, i16 noundef zeroext, ptr noundef) #3

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_Bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !6, i64 0}
!16 = !{!"s2n_client_hello_context", !6, i64 0, !10, i64 8}
!17 = !{!16, !10, i64 8}
!18 = !{!19, !19, i64 0}
!19 = !{!"short", !7, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"long", !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"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"

@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 [38 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [101 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 [75 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [177 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [126 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [46 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @s2n_check_received_supported_groups_cb(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca [16 x i16], align 16
  %4 = alloca i16, align 2
  %5 = alloca i16, align 2
  %6 = alloca i16, align 2
  %7 = load i32, ptr @test_count, align 4, !tbaa !5
  %8 = add nsw i32 %7, 1
  store i32 %8, ptr @test_count, align 4, !tbaa !5
  %9 = icmp eq ptr %1, null
  br i1 %9, label %10, label %34

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

17:                                               ; preds = %10
  %18 = load ptr, ptr @stderr, align 8, !tbaa !9
  %19 = tail call i32 @fileno(ptr noundef %18) #11
  %20 = tail call i32 @isatty(i32 noundef %19) #11
  %.not36 = icmp eq i32 %20, 0
  br i1 %.not36, label %21, label %22

21:                                               ; preds = %17, %10
  br label %22

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

34:                                               ; preds = %2
  %35 = add nsw i32 %7, 2
  store i32 %35, ptr @test_count, align 4, !tbaa !5
  %36 = load ptr, ptr %1, align 8, !tbaa !15
  %37 = icmp eq ptr %36, null
  br i1 %37, label %38, label %62

38:                                               ; preds = %34
  %39 = tail call ptr @__errno_location() #10
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %41 = load ptr, ptr @stderr, align 8, !tbaa !9
  %42 = tail call i32 @s2n_print_stacktrace(ptr noundef %41) #11
  %43 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %44 = trunc nuw i8 %43 to i1
  br i1 %44, label %45, label %49

45:                                               ; preds = %38
  %46 = load ptr, ptr @stderr, align 8, !tbaa !9
  %47 = tail call i32 @fileno(ptr noundef %46) #11
  %48 = tail call i32 @isatty(i32 noundef %47) #11
  %.not35 = icmp eq i32 %48, 0
  br i1 %.not35, label %49, label %50

49:                                               ; preds = %45, %38
  br label %50

50:                                               ; preds = %45, %49
  %.str.4.sink49 = phi ptr [ @.str.4, %49 ], [ @.str, %45 ]
  store i32 %40, ptr %39, align 4, !tbaa !5
  %51 = load ptr, ptr @stderr, align 8, !tbaa !9
  %52 = load i32, ptr @test_count, align 4, !tbaa !5
  %53 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = tail call ptr @s2n_strerror(i32 noundef %54, ptr noundef nonnull @.str.3) #11
  %56 = load i32, ptr %53, align 4, !tbaa !5
  %57 = tail call ptr @s2n_strerror_debug(i32 noundef %56, ptr noundef nonnull @.str.3) #11
  %58 = load i32, ptr %39, align 4, !tbaa !5
  %59 = tail call ptr @strerror(i32 noundef %58) #11
  %60 = load i32, ptr %39, align 4, !tbaa !5
  %61 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef nonnull %.str.4.sink49, i32 noundef %52, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.2, i32 noundef 42, ptr noundef %55, ptr noundef %57, ptr noundef %59, i32 noundef %60) #12
  tail call void @exit(i32 noundef 1) #13
  unreachable

62:                                               ; preds = %34
  %63 = getelementptr inbounds i8, ptr %1, i64 8
  %64 = load i32, ptr %63, align 8, !tbaa !17
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %63, align 8, !tbaa !17
  %66 = tail call ptr @s2n_connection_get_client_hello(ptr noundef %0) #11
  %67 = load i32, ptr @test_count, align 4, !tbaa !5
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr @test_count, align 4, !tbaa !5
  %69 = icmp eq ptr %66, null
  br i1 %69, label %70, label %94

70:                                               ; preds = %62
  %71 = tail call ptr @__errno_location() #10
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = load ptr, ptr @stderr, align 8, !tbaa !9
  %74 = tail call i32 @s2n_print_stacktrace(ptr noundef %73) #11
  %75 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %76 = trunc nuw i8 %75 to i1
  br i1 %76, label %77, label %81

77:                                               ; preds = %70
  %78 = load ptr, ptr @stderr, align 8, !tbaa !9
  %79 = tail call i32 @fileno(ptr noundef %78) #11
  %80 = tail call i32 @isatty(i32 noundef %79) #11
  %.not34 = icmp eq i32 %80, 0
  br i1 %.not34, label %81, label %82

81:                                               ; preds = %77, %70
  br label %82

82:                                               ; preds = %77, %81
  %.str.4.sink60 = phi ptr [ @.str.4, %81 ], [ @.str, %77 ]
  store i32 %72, ptr %71, align 4, !tbaa !5
  %83 = load ptr, ptr @stderr, align 8, !tbaa !9
  %84 = load i32, ptr @test_count, align 4, !tbaa !5
  %85 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = tail call ptr @s2n_strerror(i32 noundef %86, ptr noundef nonnull @.str.3) #11
  %88 = load i32, ptr %85, align 4, !tbaa !5
  %89 = tail call ptr @s2n_strerror_debug(i32 noundef %88, ptr noundef nonnull @.str.3) #11
  %90 = load i32, ptr %71, align 4, !tbaa !5
  %91 = tail call ptr @strerror(i32 noundef %90) #11
  %92 = load i32, ptr %71, align 4, !tbaa !5
  %93 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef nonnull %.str.4.sink60, i32 noundef %84, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.2, i32 noundef 46, ptr noundef %87, ptr noundef %89, ptr noundef %91, i32 noundef %92) #12
  tail call void @exit(i32 noundef 1) #13
  unreachable

94:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %3, i8 0, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %4) #11
  store i16 0, ptr %4, align 2, !tbaa !18
  %95 = add nsw i32 %67, 2
  store i32 %95, ptr @test_count, align 4, !tbaa !5
  %96 = call i32 @s2n_client_hello_get_supported_groups(ptr noundef nonnull %66, ptr noundef nonnull %3, i16 noundef zeroext 16, ptr noundef nonnull %4) #11
  %97 = icmp eq i32 %96, -1
  br i1 %97, label %98, label %122

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

105:                                              ; preds = %98
  %106 = load ptr, ptr @stderr, align 8, !tbaa !9
  %107 = call i32 @fileno(ptr noundef %106) #11
  %108 = call i32 @isatty(i32 noundef %107) #11
  %.not33 = icmp eq i32 %108, 0
  br i1 %.not33, label %109, label %110

109:                                              ; preds = %105, %98
  br label %110

110:                                              ; preds = %105, %109
  %.str.4.sink71 = phi ptr [ @.str.4, %109 ], [ @.str, %105 ]
  store i32 %100, ptr %99, align 4, !tbaa !5
  %111 = load ptr, ptr @stderr, align 8, !tbaa !9
  %112 = load i32, ptr @test_count, align 4, !tbaa !5
  %113 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %115 = call ptr @s2n_strerror(i32 noundef %114, ptr noundef nonnull @.str.3) #11
  %116 = load i32, ptr %113, align 4, !tbaa !5
  %117 = call ptr @s2n_strerror_debug(i32 noundef %116, ptr noundef nonnull @.str.3) #11
  %118 = load i32, ptr %99, align 4, !tbaa !5
  %119 = call ptr @strerror(i32 noundef %118) #11
  %120 = load i32, ptr %99, align 4, !tbaa !5
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %111, ptr noundef nonnull %.str.4.sink71, i32 noundef %112, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.2, i32 noundef 51, ptr noundef %115, ptr noundef %117, ptr noundef %119, i32 noundef %120) #12
  call void @exit(i32 noundef 1) #13
  unreachable

122:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %5) #11
  store i16 0, ptr %5, align 2, !tbaa !18
  %123 = load i32, ptr @test_count, align 4, !tbaa !5
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr @test_count, align 4, !tbaa !5
  %125 = load ptr, ptr %1, align 8, !tbaa !15
  %126 = call i32 @s2n_supported_groups_parse_count(ptr noundef %125, ptr noundef nonnull %5) #11
  %127 = call zeroext i1 @s2n_result_is_ok(i32 %126)
  br i1 %127, label %152, label %128

128:                                              ; preds = %122
  %129 = tail call ptr @__errno_location() #10
  %130 = load i32, ptr %129, align 4, !tbaa !5
  %131 = load ptr, ptr @stderr, align 8, !tbaa !9
  %132 = call i32 @s2n_print_stacktrace(ptr noundef %131) #11
  %133 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %134 = trunc nuw i8 %133 to i1
  br i1 %134, label %135, label %139

135:                                              ; preds = %128
  %136 = load ptr, ptr @stderr, align 8, !tbaa !9
  %137 = call i32 @fileno(ptr noundef %136) #11
  %138 = call i32 @isatty(i32 noundef %137) #11
  %.not = icmp eq i32 %138, 0
  br i1 %.not, label %139, label %140

139:                                              ; preds = %135, %128
  br label %140

140:                                              ; preds = %135, %139
  %.str.4.sink82 = phi ptr [ @.str.4, %139 ], [ @.str, %135 ]
  store i32 %130, ptr %129, align 4, !tbaa !5
  %141 = load ptr, ptr @stderr, align 8, !tbaa !9
  %142 = load i32, ptr @test_count, align 4, !tbaa !5
  %143 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %144 = load i32, ptr %143, align 4, !tbaa !5
  %145 = call ptr @s2n_strerror(i32 noundef %144, ptr noundef nonnull @.str.3) #11
  %146 = load i32, ptr %143, align 4, !tbaa !5
  %147 = call ptr @s2n_strerror_debug(i32 noundef %146, ptr noundef nonnull @.str.3) #11
  %148 = load i32, ptr %129, align 4, !tbaa !5
  %149 = call ptr @strerror(i32 noundef %148) #11
  %150 = load i32, ptr %129, align 4, !tbaa !5
  %151 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %141, ptr noundef nonnull %.str.4.sink82, i32 noundef %142, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.2, i32 noundef 54, ptr noundef %145, ptr noundef %147, ptr noundef %149, i32 noundef %150) #12
  call void @exit(i32 noundef 1) #13
  unreachable

152:                                              ; preds = %122
  %153 = load i32, ptr @test_count, align 4, !tbaa !5
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr @test_count, align 4, !tbaa !5
  %155 = load i16, ptr %4, align 2, !tbaa !18
  %156 = load i16, ptr %5, align 2, !tbaa !18
  %157 = icmp eq i16 %155, %156
  br i1 %157, label %.preheader, label %158

.preheader:                                       ; preds = %152
  %.not38 = icmp eq i16 %155, 0
  br i1 %.not38, label %._crit_edge, label %.lr.ph

158:                                              ; preds = %152
  %159 = tail call ptr @__errno_location() #10
  %160 = load i32, ptr %159, align 4, !tbaa !5
  %161 = load ptr, ptr @stderr, align 8, !tbaa !9
  %162 = call i32 @s2n_print_stacktrace(ptr noundef %161) #11
  %163 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %164 = trunc nuw i8 %163 to i1
  br i1 %164, label %165, label %169

165:                                              ; preds = %158
  %166 = load ptr, ptr @stderr, align 8, !tbaa !9
  %167 = call i32 @fileno(ptr noundef %166) #11
  %168 = call i32 @isatty(i32 noundef %167) #11
  %.not30 = icmp eq i32 %168, 0
  br i1 %.not30, label %169, label %170

169:                                              ; preds = %165, %158
  br label %170

170:                                              ; preds = %165, %169
  %.str.4.sink93 = phi ptr [ @.str.4, %169 ], [ @.str, %165 ]
  store i32 %160, ptr %159, align 4, !tbaa !5
  %171 = load ptr, ptr @stderr, align 8, !tbaa !9
  %172 = load i32, ptr @test_count, align 4, !tbaa !5
  %173 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %174 = load i32, ptr %173, align 4, !tbaa !5
  %175 = call ptr @s2n_strerror(i32 noundef %174, ptr noundef nonnull @.str.3) #11
  %176 = load i32, ptr %173, align 4, !tbaa !5
  %177 = call ptr @s2n_strerror_debug(i32 noundef %176, ptr noundef nonnull @.str.3) #11
  %178 = load i32, ptr %159, align 4, !tbaa !5
  %179 = call ptr @strerror(i32 noundef %178) #11
  %180 = load i32, ptr %159, align 4, !tbaa !5
  %181 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %171, ptr noundef nonnull %.str.4.sink93, i32 noundef %172, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.2, i32 noundef 55, ptr noundef %175, ptr noundef %177, ptr noundef %179, i32 noundef %180) #12
  call void @exit(i32 noundef 1) #13
  unreachable

._crit_edge:                                      ; preds = %242, %.preheader
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %5) #11
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %4) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #11
  ret i32 0

.lr.ph:                                           ; preds = %.preheader, %242
  %182 = phi i32 [ %215, %242 ], [ %154, %.preheader ]
  %.037 = phi i64 [ %243, %242 ], [ 0, %.preheader ]
  %183 = getelementptr inbounds [16 x i16], ptr %3, i64 0, i64 %.037
  %184 = load i16, ptr %183, align 2, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %6) #11
  store i16 0, ptr %6, align 2, !tbaa !18
  %185 = add nsw i32 %182, 1
  store i32 %185, ptr @test_count, align 4, !tbaa !5
  %186 = load ptr, ptr %1, align 8, !tbaa !15
  %187 = call i32 @s2n_stuffer_read_uint16(ptr noundef %186, ptr noundef nonnull %6) #11
  %188 = icmp eq i32 %187, -1
  br i1 %188, label %189, label %213

189:                                              ; preds = %.lr.ph
  %190 = tail call ptr @__errno_location() #10
  %191 = load i32, ptr %190, align 4, !tbaa !5
  %192 = load ptr, ptr @stderr, align 8, !tbaa !9
  %193 = call i32 @s2n_print_stacktrace(ptr noundef %192) #11
  %194 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %195 = trunc nuw i8 %194 to i1
  br i1 %195, label %196, label %200

196:                                              ; preds = %189
  %197 = load ptr, ptr @stderr, align 8, !tbaa !9
  %198 = call i32 @fileno(ptr noundef %197) #11
  %199 = call i32 @isatty(i32 noundef %198) #11
  %.not32 = icmp eq i32 %199, 0
  br i1 %.not32, label %200, label %201

200:                                              ; preds = %196, %189
  br label %201

201:                                              ; preds = %196, %200
  %.str.4.sink104 = phi ptr [ @.str.4, %200 ], [ @.str, %196 ]
  store i32 %191, ptr %190, align 4, !tbaa !5
  %202 = load ptr, ptr @stderr, align 8, !tbaa !9
  %203 = load i32, ptr @test_count, align 4, !tbaa !5
  %204 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %205 = load i32, ptr %204, align 4, !tbaa !5
  %206 = call ptr @s2n_strerror(i32 noundef %205, ptr noundef nonnull @.str.3) #11
  %207 = load i32, ptr %204, align 4, !tbaa !5
  %208 = call ptr @s2n_strerror_debug(i32 noundef %207, ptr noundef nonnull @.str.3) #11
  %209 = load i32, ptr %190, align 4, !tbaa !5
  %210 = call ptr @strerror(i32 noundef %209) #11
  %211 = load i32, ptr %190, align 4, !tbaa !5
  %212 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %202, ptr noundef nonnull %.str.4.sink104, i32 noundef %203, ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.2, i32 noundef 65, ptr noundef %206, ptr noundef %208, ptr noundef %210, i32 noundef %211) #12
  call void @exit(i32 noundef 1) #13
  unreachable

213:                                              ; preds = %.lr.ph
  %214 = load i32, ptr @test_count, align 4, !tbaa !5
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr @test_count, align 4, !tbaa !5
  %216 = load i16, ptr %6, align 2, !tbaa !18
  %217 = icmp eq i16 %184, %216
  br i1 %217, label %242, label %218

218:                                              ; preds = %213
  %219 = tail call ptr @__errno_location() #10
  %220 = load i32, ptr %219, align 4, !tbaa !5
  %221 = load ptr, ptr @stderr, align 8, !tbaa !9
  %222 = call i32 @s2n_print_stacktrace(ptr noundef %221) #11
  %223 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %224 = trunc nuw i8 %223 to i1
  br i1 %224, label %225, label %229

225:                                              ; preds = %218
  %226 = load ptr, ptr @stderr, align 8, !tbaa !9
  %227 = call i32 @fileno(ptr noundef %226) #11
  %228 = call i32 @isatty(i32 noundef %227) #11
  %.not31 = icmp eq i32 %228, 0
  br i1 %.not31, label %229, label %230

229:                                              ; preds = %225, %218
  br label %230

230:                                              ; preds = %225, %229
  %.str.4.sink115 = phi ptr [ @.str.4, %229 ], [ @.str, %225 ]
  store i32 %220, ptr %219, align 4, !tbaa !5
  %231 = load ptr, ptr @stderr, align 8, !tbaa !9
  %232 = load i32, ptr @test_count, align 4, !tbaa !5
  %233 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %234 = load i32, ptr %233, align 4, !tbaa !5
  %235 = call ptr @s2n_strerror(i32 noundef %234, ptr noundef nonnull @.str.3) #11
  %236 = load i32, ptr %233, align 4, !tbaa !5
  %237 = call ptr @s2n_strerror_debug(i32 noundef %236, ptr noundef nonnull @.str.3) #11
  %238 = load i32, ptr %219, align 4, !tbaa !5
  %239 = call ptr @strerror(i32 noundef %238) #11
  %240 = load i32, ptr %219, align 4, !tbaa !5
  %241 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %231, ptr noundef nonnull %.str.4.sink115, i32 noundef %232, ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.2, i32 noundef 67, ptr noundef %235, ptr noundef %237, ptr noundef %239, i32 noundef %240) #12
  call void @exit(i32 noundef 1) #13
  unreachable

242:                                              ; preds = %213
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %6) #11
  %243 = add nuw nsw i64 %.037, 1
  %244 = load i16, ptr %4, align 2, !tbaa !18
  %245 = zext i16 %244 to i64
  %246 = icmp ult i64 %243, %245
  br i1 %246, label %.lr.ph, label %._crit_edge, !llvm.loop !20
}

; 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 nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #2

declare i32 @s2n_print_stacktrace(ptr noundef) local_unnamed_addr #3

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

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

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

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

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

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

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

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

declare ptr @s2n_connection_get_client_hello(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress 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_supported_groups(ptr noundef, ptr noundef, i16 noundef zeroext, ptr noundef) local_unnamed_addr #3

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

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

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

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

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


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