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

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

@s2n_use_color_in_output = external dso_local global i8, align 1
@test_count = external dso_local global i32, align 4
@stdout = external global ptr, align 8
@.str = external hidden unnamed_addr constant [19 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [76 x i8], align 1
@stderr = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [52 x i8], align 1
@s2n_errno = external thread_local global i32, align 4
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %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 i32, align 4
  %8 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  br label %9

9:                                                ; preds = %0
  br label %10

10:                                               ; preds = %9
  store i32 0, ptr @test_count, align 4, !tbaa !5
  %11 = load ptr, ptr @stdout, align 8, !tbaa !9
  %12 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef @.str, ptr noundef @.str.1) #7
  %13 = load ptr, ptr @stdout, align 8, !tbaa !9
  %14 = call i32 @fflush(ptr noundef %13)
  br label %15

15:                                               ; preds = %10
  %16 = call i32 @s2n_in_unit_test_set(i1 noundef zeroext true)
  %17 = icmp eq i32 %16, -1
  br i1 %17, label %18, label %69

18:                                               ; preds = %15
  br label %19

19:                                               ; preds = %18
  br label %20

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

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

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

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

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

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

68:                                               ; No predecessors!
  br label %69

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

70:                                               ; preds = %69
  br label %71

71:                                               ; preds = %70
  %72 = load i32, ptr @test_count, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr @test_count, align 4, !tbaa !5
  %74 = call i32 @s2n_enable_atexit()
  %75 = icmp eq i32 %74, -1
  br i1 %75, label %76, label %127

76:                                               ; preds = %71
  br label %77

77:                                               ; preds = %76
  br label %78

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

85:                                               ; preds = %78
  %86 = load ptr, ptr @stderr, align 8, !tbaa !9
  %87 = call i32 @fileno(ptr noundef %86) #7
  %88 = call i32 @isatty(i32 noundef %87) #7
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %107

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

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

124:                                              ; preds = %107, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %125

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

126:                                              ; No predecessors!
  br label %127

127:                                              ; preds = %126, %71
  br label %128

128:                                              ; preds = %127
  br label %129

129:                                              ; preds = %128
  br label %130

130:                                              ; preds = %129
  %131 = call i32 @s2n_init()
  %132 = icmp eq i32 %131, -1
  br i1 %132, label %133, label %184

133:                                              ; preds = %130
  br label %134

134:                                              ; preds = %133
  br label %135

135:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  %136 = call ptr @__errno_location() #8
  %137 = load i32, ptr %136, align 4, !tbaa !5
  store i32 %137, ptr %4, align 4, !tbaa !5
  %138 = load ptr, ptr @stderr, align 8, !tbaa !9
  %139 = call i32 @s2n_print_stacktrace(ptr noundef %138)
  %140 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %141 = trunc i8 %140 to i1
  br i1 %141, label %142, label %164

142:                                              ; preds = %135
  %143 = load ptr, ptr @stderr, align 8, !tbaa !9
  %144 = call i32 @fileno(ptr noundef %143) #7
  %145 = call i32 @isatty(i32 noundef %144) #7
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %147, label %164

147:                                              ; preds = %142
  %148 = load i32, ptr %4, align 4, !tbaa !5
  %149 = call ptr @__errno_location() #8
  store i32 %148, ptr %149, align 4, !tbaa !5
  %150 = load ptr, ptr @stderr, align 8, !tbaa !9
  %151 = load i32, ptr @test_count, align 4, !tbaa !5
  %152 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %153 = load i32, ptr %152, align 4, !tbaa !5
  %154 = call ptr @s2n_strerror(i32 noundef %153, ptr noundef @.str.4)
  %155 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %156 = load i32, ptr %155, align 4, !tbaa !5
  %157 = call ptr @s2n_strerror_debug(i32 noundef %156, ptr noundef @.str.4)
  %158 = call ptr @__errno_location() #8
  %159 = load i32, ptr %158, align 4, !tbaa !5
  %160 = call ptr @strerror(i32 noundef %159) #7
  %161 = call ptr @__errno_location() #8
  %162 = load i32, ptr %161, align 4, !tbaa !5
  %163 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %150, ptr noundef @.str.2, i32 noundef %151, ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 24, ptr noundef %154, ptr noundef %157, ptr noundef %160, i32 noundef %162) #7
  br label %181

164:                                              ; preds = %142, %135
  %165 = load i32, ptr %4, align 4, !tbaa !5
  %166 = call ptr @__errno_location() #8
  store i32 %165, ptr %166, align 4, !tbaa !5
  %167 = load ptr, ptr @stderr, align 8, !tbaa !9
  %168 = load i32, ptr @test_count, align 4, !tbaa !5
  %169 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %170 = load i32, ptr %169, align 4, !tbaa !5
  %171 = call ptr @s2n_strerror(i32 noundef %170, ptr noundef @.str.4)
  %172 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %173 = load i32, ptr %172, align 4, !tbaa !5
  %174 = call ptr @s2n_strerror_debug(i32 noundef %173, ptr noundef @.str.4)
  %175 = call ptr @__errno_location() #8
  %176 = load i32, ptr %175, align 4, !tbaa !5
  %177 = call ptr @strerror(i32 noundef %176) #7
  %178 = call ptr @__errno_location() #8
  %179 = load i32, ptr %178, align 4, !tbaa !5
  %180 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %167, ptr noundef @.str.5, i32 noundef %168, ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 24, ptr noundef %171, ptr noundef %174, ptr noundef %177, i32 noundef %179) #7
  br label %181

181:                                              ; preds = %164, %147
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  br label %182

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

183:                                              ; No predecessors!
  br label %184

184:                                              ; preds = %183, %130
  br label %185

185:                                              ; preds = %184
  br label %186

186:                                              ; preds = %185
  %187 = call zeroext i1 @s2n_libcrypto_is_awslc()
  br i1 %187, label %188, label %249

188:                                              ; preds = %186
  %189 = call i64 @s2n_libcrypto_awslc_api_version()
  %190 = icmp uge i64 %189, 30
  br i1 %190, label %191, label %249

191:                                              ; preds = %188
  br label %192

192:                                              ; preds = %191
  %193 = load i32, ptr @test_count, align 4, !tbaa !5
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr @test_count, align 4, !tbaa !5
  %195 = call zeroext i1 @s2n_libcrypto_supports_mlkem()
  br i1 %195, label %247, label %196

196:                                              ; preds = %192
  br label %197

197:                                              ; preds = %196
  br label %198

198:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %199 = call ptr @__errno_location() #8
  %200 = load i32, ptr %199, align 4, !tbaa !5
  store i32 %200, ptr %5, align 4, !tbaa !5
  %201 = load ptr, ptr @stderr, align 8, !tbaa !9
  %202 = call i32 @s2n_print_stacktrace(ptr noundef %201)
  %203 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %204 = trunc i8 %203 to i1
  br i1 %204, label %205, label %227

205:                                              ; preds = %198
  %206 = load ptr, ptr @stderr, align 8, !tbaa !9
  %207 = call i32 @fileno(ptr noundef %206) #7
  %208 = call i32 @isatty(i32 noundef %207) #7
  %209 = icmp ne i32 %208, 0
  br i1 %209, label %210, label %227

210:                                              ; preds = %205
  %211 = load i32, ptr %5, align 4, !tbaa !5
  %212 = call ptr @__errno_location() #8
  store i32 %211, ptr %212, align 4, !tbaa !5
  %213 = load ptr, ptr @stderr, align 8, !tbaa !9
  %214 = load i32, ptr @test_count, align 4, !tbaa !5
  %215 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %216 = load i32, ptr %215, align 4, !tbaa !5
  %217 = call ptr @s2n_strerror(i32 noundef %216, ptr noundef @.str.4)
  %218 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %219 = load i32, ptr %218, align 4, !tbaa !5
  %220 = call ptr @s2n_strerror_debug(i32 noundef %219, ptr noundef @.str.4)
  %221 = call ptr @__errno_location() #8
  %222 = load i32, ptr %221, align 4, !tbaa !5
  %223 = call ptr @strerror(i32 noundef %222) #7
  %224 = call ptr @__errno_location() #8
  %225 = load i32, ptr %224, align 4, !tbaa !5
  %226 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %213, ptr noundef @.str.2, i32 noundef %214, ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 27, ptr noundef %217, ptr noundef %220, ptr noundef %223, i32 noundef %225) #7
  br label %244

227:                                              ; preds = %205, %198
  %228 = load i32, ptr %5, align 4, !tbaa !5
  %229 = call ptr @__errno_location() #8
  store i32 %228, ptr %229, align 4, !tbaa !5
  %230 = load ptr, ptr @stderr, align 8, !tbaa !9
  %231 = load i32, ptr @test_count, align 4, !tbaa !5
  %232 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %233 = load i32, ptr %232, align 4, !tbaa !5
  %234 = call ptr @s2n_strerror(i32 noundef %233, ptr noundef @.str.4)
  %235 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %236 = load i32, ptr %235, align 4, !tbaa !5
  %237 = call ptr @s2n_strerror_debug(i32 noundef %236, ptr noundef @.str.4)
  %238 = call ptr @__errno_location() #8
  %239 = load i32, ptr %238, align 4, !tbaa !5
  %240 = call ptr @strerror(i32 noundef %239) #7
  %241 = call ptr @__errno_location() #8
  %242 = load i32, ptr %241, align 4, !tbaa !5
  %243 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %230, ptr noundef @.str.5, i32 noundef %231, ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 27, ptr noundef %234, ptr noundef %237, ptr noundef %240, i32 noundef %242) #7
  br label %244

244:                                              ; preds = %227, %210
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %245

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

246:                                              ; No predecessors!
  br label %247

247:                                              ; preds = %246, %192
  br label %248

248:                                              ; preds = %247
  br label %313

249:                                              ; preds = %188, %186
  %250 = call zeroext i1 @s2n_libcrypto_is_awslc()
  br i1 %250, label %251, label %312

251:                                              ; preds = %249
  %252 = call i64 @s2n_libcrypto_awslc_api_version()
  %253 = icmp ult i64 %252, 29
  br i1 %253, label %254, label %312

254:                                              ; preds = %251
  br label %255

255:                                              ; preds = %254
  %256 = load i32, ptr @test_count, align 4, !tbaa !5
  %257 = add nsw i32 %256, 1
  store i32 %257, ptr @test_count, align 4, !tbaa !5
  %258 = call zeroext i1 @s2n_libcrypto_supports_mlkem()
  br i1 %258, label %259, label %310

259:                                              ; preds = %255
  br label %260

260:                                              ; preds = %259
  br label %261

261:                                              ; preds = %260
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %262 = call ptr @__errno_location() #8
  %263 = load i32, ptr %262, align 4, !tbaa !5
  store i32 %263, ptr %6, align 4, !tbaa !5
  %264 = load ptr, ptr @stderr, align 8, !tbaa !9
  %265 = call i32 @s2n_print_stacktrace(ptr noundef %264)
  %266 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %267 = trunc i8 %266 to i1
  br i1 %267, label %268, label %290

268:                                              ; preds = %261
  %269 = load ptr, ptr @stderr, align 8, !tbaa !9
  %270 = call i32 @fileno(ptr noundef %269) #7
  %271 = call i32 @isatty(i32 noundef %270) #7
  %272 = icmp ne i32 %271, 0
  br i1 %272, label %273, label %290

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

290:                                              ; preds = %268, %261
  %291 = load i32, ptr %6, align 4, !tbaa !5
  %292 = call ptr @__errno_location() #8
  store i32 %291, ptr %292, align 4, !tbaa !5
  %293 = load ptr, ptr @stderr, align 8, !tbaa !9
  %294 = load i32, ptr @test_count, align 4, !tbaa !5
  %295 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %296 = load i32, ptr %295, align 4, !tbaa !5
  %297 = call ptr @s2n_strerror(i32 noundef %296, ptr noundef @.str.4)
  %298 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %299 = load i32, ptr %298, align 4, !tbaa !5
  %300 = call ptr @s2n_strerror_debug(i32 noundef %299, ptr noundef @.str.4)
  %301 = call ptr @__errno_location() #8
  %302 = load i32, ptr %301, align 4, !tbaa !5
  %303 = call ptr @strerror(i32 noundef %302) #7
  %304 = call ptr @__errno_location() #8
  %305 = load i32, ptr %304, align 4, !tbaa !5
  %306 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %293, ptr noundef @.str.5, i32 noundef %294, ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 29, ptr noundef %297, ptr noundef %300, ptr noundef %303, i32 noundef %305) #7
  br label %307

307:                                              ; preds = %290, %273
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %308

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

309:                                              ; No predecessors!
  br label %310

310:                                              ; preds = %309, %255
  br label %311

311:                                              ; preds = %310
  br label %312

312:                                              ; preds = %311, %251, %249
  br label %313

313:                                              ; preds = %312, %248
  br label %314

314:                                              ; preds = %313
  br label %315

315:                                              ; preds = %314
  %316 = call i32 @s2n_cleanup()
  %317 = icmp eq i32 %316, -1
  br i1 %317, label %318, label %369

318:                                              ; preds = %315
  br label %319

319:                                              ; preds = %318
  br label %320

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

327:                                              ; preds = %320
  %328 = load ptr, ptr @stderr, align 8, !tbaa !9
  %329 = call i32 @fileno(ptr noundef %328) #7
  %330 = call i32 @isatty(i32 noundef %329) #7
  %331 = icmp ne i32 %330, 0
  br i1 %331, label %332, label %349

332:                                              ; preds = %327
  %333 = load i32, ptr %7, align 4, !tbaa !5
  %334 = call ptr @__errno_location() #8
  store i32 %333, ptr %334, align 4, !tbaa !5
  %335 = load ptr, ptr @stderr, align 8, !tbaa !9
  %336 = load i32, ptr @test_count, align 4, !tbaa !5
  %337 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %338 = load i32, ptr %337, align 4, !tbaa !5
  %339 = call ptr @s2n_strerror(i32 noundef %338, ptr noundef @.str.4)
  %340 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %341 = load i32, ptr %340, align 4, !tbaa !5
  %342 = call ptr @s2n_strerror_debug(i32 noundef %341, ptr noundef @.str.4)
  %343 = call ptr @__errno_location() #8
  %344 = load i32, ptr %343, align 4, !tbaa !5
  %345 = call ptr @strerror(i32 noundef %344) #7
  %346 = call ptr @__errno_location() #8
  %347 = load i32, ptr %346, align 4, !tbaa !5
  %348 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %335, ptr noundef @.str.2, i32 noundef %336, ptr noundef @.str.10, ptr noundef @.str.1, i32 noundef 32, ptr noundef %339, ptr noundef %342, ptr noundef %345, i32 noundef %347) #7
  br label %366

349:                                              ; preds = %327, %320
  %350 = load i32, ptr %7, align 4, !tbaa !5
  %351 = call ptr @__errno_location() #8
  store i32 %350, ptr %351, align 4, !tbaa !5
  %352 = load ptr, ptr @stderr, align 8, !tbaa !9
  %353 = load i32, ptr @test_count, align 4, !tbaa !5
  %354 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %355 = load i32, ptr %354, align 4, !tbaa !5
  %356 = call ptr @s2n_strerror(i32 noundef %355, ptr noundef @.str.4)
  %357 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %358 = load i32, ptr %357, align 4, !tbaa !5
  %359 = call ptr @s2n_strerror_debug(i32 noundef %358, ptr noundef @.str.4)
  %360 = call ptr @__errno_location() #8
  %361 = load i32, ptr %360, align 4, !tbaa !5
  %362 = call ptr @strerror(i32 noundef %361) #7
  %363 = call ptr @__errno_location() #8
  %364 = load i32, ptr %363, align 4, !tbaa !5
  %365 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %352, ptr noundef @.str.5, i32 noundef %353, ptr noundef @.str.10, ptr noundef @.str.1, i32 noundef 32, ptr noundef %356, ptr noundef %359, ptr noundef %362, i32 noundef %364) #7
  br label %366

366:                                              ; preds = %349, %332
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %367

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

368:                                              ; No predecessors!
  br label %369

369:                                              ; preds = %368, %315
  br label %370

370:                                              ; preds = %369
  br label %371

371:                                              ; preds = %370
  br label %372

372:                                              ; preds = %371
  %373 = call i32 @s2n_in_unit_test_set(i1 noundef zeroext false)
  %374 = icmp eq i32 %373, -1
  br i1 %374, label %375, label %426

375:                                              ; preds = %372
  br label %376

376:                                              ; preds = %375
  br label %377

377:                                              ; preds = %376
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %378 = call ptr @__errno_location() #8
  %379 = load i32, ptr %378, align 4, !tbaa !5
  store i32 %379, ptr %8, align 4, !tbaa !5
  %380 = load ptr, ptr @stderr, align 8, !tbaa !9
  %381 = call i32 @s2n_print_stacktrace(ptr noundef %380)
  %382 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %383 = trunc i8 %382 to i1
  br i1 %383, label %384, label %406

384:                                              ; preds = %377
  %385 = load ptr, ptr @stderr, align 8, !tbaa !9
  %386 = call i32 @fileno(ptr noundef %385) #7
  %387 = call i32 @isatty(i32 noundef %386) #7
  %388 = icmp ne i32 %387, 0
  br i1 %388, label %389, label %406

389:                                              ; preds = %384
  %390 = load i32, ptr %8, align 4, !tbaa !5
  %391 = call ptr @__errno_location() #8
  store i32 %390, ptr %391, align 4, !tbaa !5
  %392 = load ptr, ptr @stderr, align 8, !tbaa !9
  %393 = load i32, ptr @test_count, align 4, !tbaa !5
  %394 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %395 = load i32, ptr %394, align 4, !tbaa !5
  %396 = call ptr @s2n_strerror(i32 noundef %395, ptr noundef @.str.4)
  %397 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %398 = load i32, ptr %397, align 4, !tbaa !5
  %399 = call ptr @s2n_strerror_debug(i32 noundef %398, ptr noundef @.str.4)
  %400 = call ptr @__errno_location() #8
  %401 = load i32, ptr %400, align 4, !tbaa !5
  %402 = call ptr @strerror(i32 noundef %401) #7
  %403 = call ptr @__errno_location() #8
  %404 = load i32, ptr %403, align 4, !tbaa !5
  %405 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %392, ptr noundef @.str.2, i32 noundef %393, ptr noundef @.str.11, ptr noundef @.str.1, i32 noundef 32, ptr noundef %396, ptr noundef %399, ptr noundef %402, i32 noundef %404) #7
  br label %423

406:                                              ; preds = %384, %377
  %407 = load i32, ptr %8, align 4, !tbaa !5
  %408 = call ptr @__errno_location() #8
  store i32 %407, ptr %408, align 4, !tbaa !5
  %409 = load ptr, ptr @stderr, align 8, !tbaa !9
  %410 = load i32, ptr @test_count, align 4, !tbaa !5
  %411 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %412 = load i32, ptr %411, align 4, !tbaa !5
  %413 = call ptr @s2n_strerror(i32 noundef %412, ptr noundef @.str.4)
  %414 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %415 = load i32, ptr %414, align 4, !tbaa !5
  %416 = call ptr @s2n_strerror_debug(i32 noundef %415, ptr noundef @.str.4)
  %417 = call ptr @__errno_location() #8
  %418 = load i32, ptr %417, align 4, !tbaa !5
  %419 = call ptr @strerror(i32 noundef %418) #7
  %420 = call ptr @__errno_location() #8
  %421 = load i32, ptr %420, align 4, !tbaa !5
  %422 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %409, ptr noundef @.str.5, i32 noundef %410, ptr noundef @.str.11, ptr noundef @.str.1, i32 noundef 32, ptr noundef %413, ptr noundef %416, ptr noundef %419, i32 noundef %421) #7
  br label %423

423:                                              ; preds = %406, %389
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %424

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

425:                                              ; No predecessors!
  br label %426

426:                                              ; preds = %425, %372
  br label %427

427:                                              ; preds = %426
  %428 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %429 = trunc i8 %428 to i1
  br i1 %429, label %430, label %446

430:                                              ; preds = %427
  %431 = load ptr, ptr @stdout, align 8, !tbaa !9
  %432 = call i32 @fileno(ptr noundef %431) #7
  %433 = call i32 @isatty(i32 noundef %432) #7
  %434 = icmp ne i32 %433, 0
  br i1 %434, label %435, label %446

435:                                              ; preds = %430
  %436 = load i32, ptr @test_count, align 4, !tbaa !5
  %437 = icmp ne i32 %436, 0
  br i1 %437, label %438, label %442

438:                                              ; preds = %435
  %439 = load ptr, ptr @stdout, align 8, !tbaa !9
  %440 = load i32, ptr @test_count, align 4, !tbaa !5
  %441 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %439, ptr noundef @.str.12, i32 noundef %440) #7
  br label %445

442:                                              ; preds = %435
  %443 = load ptr, ptr @stdout, align 8, !tbaa !9
  %444 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %443, ptr noundef @.str.13) #7
  br label %445

445:                                              ; preds = %442, %438
  br label %457

446:                                              ; preds = %430, %427
  %447 = load i32, ptr @test_count, align 4, !tbaa !5
  %448 = icmp ne i32 %447, 0
  br i1 %448, label %449, label %453

449:                                              ; preds = %446
  %450 = load ptr, ptr @stdout, align 8, !tbaa !9
  %451 = load i32, ptr @test_count, align 4, !tbaa !5
  %452 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %450, ptr noundef @.str.14, i32 noundef %451) #7
  br label %456

453:                                              ; preds = %446
  %454 = load ptr, ptr @stdout, align 8, !tbaa !9
  %455 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %454, ptr noundef @.str.15) #7
  br label %456

456:                                              ; preds = %453, %449
  br label %457

457:                                              ; preds = %456, %445
  store i32 0, ptr %1, align 4
  br label %459

458:                                              ; No predecessors!
  br label %459

459:                                              ; preds = %458, %457
  %460 = load i32, ptr %1, align 4
  ret i32 %460
}

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

declare i32 @fflush(ptr noundef) #2

declare i32 @s2n_in_unit_test_set(i1 noundef zeroext) #2

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

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

declare i32 @s2n_print_stacktrace(ptr noundef) #2

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

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

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

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

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

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

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

declare i32 @s2n_enable_atexit() #2

declare i32 @s2n_init() #2

declare zeroext i1 @s2n_libcrypto_is_awslc() #2

declare i64 @s2n_libcrypto_awslc_api_version() #2

declare zeroext i1 @s2n_libcrypto_supports_mlkem() #2

declare i32 @s2n_cleanup() #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{}


; 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
@stdout = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [19 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [76 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [52 x i8], align 1
@s2n_errno = external thread_local local_unnamed_addr global i32, align 4
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  store i32 0, ptr @test_count, align 4, !tbaa !5
  %1 = load ptr, ptr @stdout, align 8, !tbaa !9
  %2 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1) #7
  %3 = load ptr, ptr @stdout, align 8, !tbaa !9
  %4 = tail call i32 @fflush(ptr noundef %3)
  %5 = tail call i32 @s2n_in_unit_test_set(i1 noundef zeroext true) #7
  %6 = icmp eq i32 %5, -1
  br i1 %6, label %7, label %31

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

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

18:                                               ; preds = %14, %7
  br label %19

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

31:                                               ; preds = %0
  %32 = load i32, ptr @test_count, align 4, !tbaa !5
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr @test_count, align 4, !tbaa !5
  %34 = tail call i32 @s2n_enable_atexit() #7
  %35 = icmp eq i32 %34, -1
  br i1 %35, label %36, label %60

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

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

47:                                               ; preds = %43, %36
  br label %48

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

60:                                               ; preds = %31
  %61 = tail call i32 @s2n_init() #7
  %62 = icmp eq i32 %61, -1
  br i1 %62, label %63, label %87

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

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

74:                                               ; preds = %70, %63
  br label %75

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

87:                                               ; preds = %60
  %88 = tail call zeroext i1 @s2n_libcrypto_is_awslc() #7
  br i1 %88, label %89, label %120

89:                                               ; preds = %87
  %90 = tail call i64 @s2n_libcrypto_awslc_api_version() #7
  %91 = icmp ugt i64 %90, 29
  br i1 %91, label %92, label %120

92:                                               ; preds = %89
  %93 = load i32, ptr @test_count, align 4, !tbaa !5
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr @test_count, align 4, !tbaa !5
  %95 = tail call zeroext i1 @s2n_libcrypto_supports_mlkem() #7
  br i1 %95, label %153, label %96

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

103:                                              ; preds = %96
  %104 = load ptr, ptr @stderr, align 8, !tbaa !9
  %105 = tail call i32 @fileno(ptr noundef %104) #7
  %106 = tail call i32 @isatty(i32 noundef %105) #7
  %.not16 = icmp eq i32 %106, 0
  br i1 %.not16, label %107, label %108

107:                                              ; preds = %103, %96
  br label %108

108:                                              ; preds = %103, %107
  %.str.5.sink57 = phi ptr [ @.str.5, %107 ], [ @.str.2, %103 ]
  store i32 %98, ptr %97, align 4, !tbaa !5
  %109 = load ptr, ptr @stderr, align 8, !tbaa !9
  %110 = load i32, ptr @test_count, align 4, !tbaa !5
  %111 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = tail call ptr @s2n_strerror(i32 noundef %112, ptr noundef nonnull @.str.4) #7
  %114 = load i32, ptr %111, align 4, !tbaa !5
  %115 = tail call ptr @s2n_strerror_debug(i32 noundef %114, ptr noundef nonnull @.str.4) #7
  %116 = load i32, ptr %97, align 4, !tbaa !5
  %117 = tail call ptr @strerror(i32 noundef %116) #7
  %118 = load i32, ptr %97, align 4, !tbaa !5
  %119 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef nonnull %.str.5.sink57, i32 noundef %110, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 27, ptr noundef %113, ptr noundef %115, ptr noundef %117, i32 noundef %118) #9
  tail call void @exit(i32 noundef 1) #10
  unreachable

120:                                              ; preds = %89, %87
  %121 = tail call zeroext i1 @s2n_libcrypto_is_awslc() #7
  br i1 %121, label %122, label %153

122:                                              ; preds = %120
  %123 = tail call i64 @s2n_libcrypto_awslc_api_version() #7
  %124 = icmp ult i64 %123, 29
  br i1 %124, label %125, label %153

125:                                              ; preds = %122
  %126 = load i32, ptr @test_count, align 4, !tbaa !5
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr @test_count, align 4, !tbaa !5
  %128 = tail call zeroext i1 @s2n_libcrypto_supports_mlkem() #7
  br i1 %128, label %129, label %153

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

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

140:                                              ; preds = %136, %129
  br label %141

141:                                              ; preds = %136, %140
  %.str.5.sink68 = phi ptr [ @.str.5, %140 ], [ @.str.2, %136 ]
  store i32 %131, ptr %130, align 4, !tbaa !5
  %142 = load ptr, ptr @stderr, align 8, !tbaa !9
  %143 = load i32, ptr @test_count, align 4, !tbaa !5
  %144 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %145 = load i32, ptr %144, align 4, !tbaa !5
  %146 = tail call ptr @s2n_strerror(i32 noundef %145, ptr noundef nonnull @.str.4) #7
  %147 = load i32, ptr %144, align 4, !tbaa !5
  %148 = tail call ptr @s2n_strerror_debug(i32 noundef %147, ptr noundef nonnull @.str.4) #7
  %149 = load i32, ptr %130, align 4, !tbaa !5
  %150 = tail call ptr @strerror(i32 noundef %149) #7
  %151 = load i32, ptr %130, align 4, !tbaa !5
  %152 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef nonnull %.str.5.sink68, i32 noundef %143, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i32 noundef 29, ptr noundef %146, ptr noundef %148, ptr noundef %150, i32 noundef %151) #9
  tail call void @exit(i32 noundef 1) #10
  unreachable

153:                                              ; preds = %120, %122, %125, %92
  %154 = tail call i32 @s2n_cleanup() #7
  %155 = icmp eq i32 %154, -1
  br i1 %155, label %156, label %180

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

163:                                              ; preds = %156
  %164 = load ptr, ptr @stderr, align 8, !tbaa !9
  %165 = tail call i32 @fileno(ptr noundef %164) #7
  %166 = tail call i32 @isatty(i32 noundef %165) #7
  %.not21 = icmp eq i32 %166, 0
  br i1 %.not21, label %167, label %168

167:                                              ; preds = %163, %156
  br label %168

168:                                              ; preds = %163, %167
  %.str.5.sink79 = phi ptr [ @.str.5, %167 ], [ @.str.2, %163 ]
  store i32 %158, ptr %157, align 4, !tbaa !5
  %169 = load ptr, ptr @stderr, align 8, !tbaa !9
  %170 = load i32, ptr @test_count, align 4, !tbaa !5
  %171 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %172 = load i32, ptr %171, align 4, !tbaa !5
  %173 = tail call ptr @s2n_strerror(i32 noundef %172, ptr noundef nonnull @.str.4) #7
  %174 = load i32, ptr %171, align 4, !tbaa !5
  %175 = tail call ptr @s2n_strerror_debug(i32 noundef %174, ptr noundef nonnull @.str.4) #7
  %176 = load i32, ptr %157, align 4, !tbaa !5
  %177 = tail call ptr @strerror(i32 noundef %176) #7
  %178 = load i32, ptr %157, align 4, !tbaa !5
  %179 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %169, ptr noundef nonnull %.str.5.sink79, i32 noundef %170, ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.1, i32 noundef 32, ptr noundef %173, ptr noundef %175, ptr noundef %177, i32 noundef %178) #9
  tail call void @exit(i32 noundef 1) #10
  unreachable

180:                                              ; preds = %153
  %181 = tail call i32 @s2n_in_unit_test_set(i1 noundef zeroext false) #7
  %182 = icmp eq i32 %181, -1
  br i1 %182, label %183, label %207

183:                                              ; preds = %180
  %184 = tail call ptr @__errno_location() #8
  %185 = load i32, ptr %184, align 4, !tbaa !5
  %186 = load ptr, ptr @stderr, align 8, !tbaa !9
  %187 = tail call i32 @s2n_print_stacktrace(ptr noundef %186) #7
  %188 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %189 = trunc nuw i8 %188 to i1
  br i1 %189, label %190, label %194

190:                                              ; preds = %183
  %191 = load ptr, ptr @stderr, align 8, !tbaa !9
  %192 = tail call i32 @fileno(ptr noundef %191) #7
  %193 = tail call i32 @isatty(i32 noundef %192) #7
  %.not20 = icmp eq i32 %193, 0
  br i1 %.not20, label %194, label %195

194:                                              ; preds = %190, %183
  br label %195

195:                                              ; preds = %190, %194
  %.str.5.sink90 = phi ptr [ @.str.5, %194 ], [ @.str.2, %190 ]
  store i32 %185, ptr %184, align 4, !tbaa !5
  %196 = load ptr, ptr @stderr, align 8, !tbaa !9
  %197 = load i32, ptr @test_count, align 4, !tbaa !5
  %198 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %199 = load i32, ptr %198, align 4, !tbaa !5
  %200 = tail call ptr @s2n_strerror(i32 noundef %199, ptr noundef nonnull @.str.4) #7
  %201 = load i32, ptr %198, align 4, !tbaa !5
  %202 = tail call ptr @s2n_strerror_debug(i32 noundef %201, ptr noundef nonnull @.str.4) #7
  %203 = load i32, ptr %184, align 4, !tbaa !5
  %204 = tail call ptr @strerror(i32 noundef %203) #7
  %205 = load i32, ptr %184, align 4, !tbaa !5
  %206 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %196, ptr noundef nonnull %.str.5.sink90, i32 noundef %197, ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.1, i32 noundef 32, ptr noundef %200, ptr noundef %202, ptr noundef %204, i32 noundef %205) #9
  tail call void @exit(i32 noundef 1) #10
  unreachable

207:                                              ; preds = %180
  %208 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %209 = trunc nuw i8 %208 to i1
  br i1 %209, label %210, label %221

210:                                              ; preds = %207
  %211 = load ptr, ptr @stdout, align 8, !tbaa !9
  %212 = tail call i32 @fileno(ptr noundef %211) #7
  %213 = tail call i32 @isatty(i32 noundef %212) #7
  %.not17 = icmp eq i32 %213, 0
  br i1 %.not17, label %221, label %214

214:                                              ; preds = %210
  %215 = load i32, ptr @test_count, align 4, !tbaa !5
  %.not19 = icmp eq i32 %215, 0
  %216 = load ptr, ptr @stdout, align 8, !tbaa !9
  br i1 %.not19, label %219, label %217

217:                                              ; preds = %214
  %218 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %216, ptr noundef nonnull @.str.12, i32 noundef %215) #7
  br label %228

219:                                              ; preds = %214
  %220 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %216, ptr noundef nonnull @.str.13) #7
  br label %228

221:                                              ; preds = %210, %207
  %222 = load i32, ptr @test_count, align 4, !tbaa !5
  %.not18 = icmp eq i32 %222, 0
  %223 = load ptr, ptr @stdout, align 8, !tbaa !9
  br i1 %.not18, label %226, label %224

224:                                              ; preds = %221
  %225 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %223, ptr noundef nonnull @.str.14, i32 noundef %222) #7
  br label %228

226:                                              ; preds = %221
  %227 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %223, ptr noundef nonnull @.str.15) #7
  br label %228

228:                                              ; preds = %224, %226, %217, %219
  ret i32 0
}

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

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

declare i32 @s2n_in_unit_test_set(i1 noundef zeroext) local_unnamed_addr #2

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

declare i32 @s2n_print_stacktrace(ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

declare i32 @s2n_enable_atexit() local_unnamed_addr #2

declare i32 @s2n_init() local_unnamed_addr #2

declare zeroext i1 @s2n_libcrypto_is_awslc() local_unnamed_addr #2

declare i64 @s2n_libcrypto_awslc_api_version() local_unnamed_addr #2

declare zeroext i1 @s2n_libcrypto_supports_mlkem() local_unnamed_addr #2

declare i32 @s2n_cleanup() local_unnamed_addr #2

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

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

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


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