; LLVM IR from aws/s2n-tls :: tests/unit (s2n_io_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.sigaction = type { %union.anon, %struct.__sigset_t, i32, ptr }
%union.anon = type { ptr }
%struct.__sigset_t = type { [16 x i64] }
%struct.s2n_test_io_pair = type { i32, i32 }

@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 [70 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 [31 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [55 x i8], align 1
@__const.main.action = external hidden unnamed_addr constant %struct.sigaction, align 8
@.str.11 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %struct.s2n_test_io_pair, align 4
  %15 = alloca i32, align 4
  %16 = alloca %struct.sigaction, align 8
  %17 = alloca i32, align 4
  %18 = alloca i8, align 1
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i8, align 1
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  br label %33

33:                                               ; preds = %2
  br label %34

34:                                               ; preds = %33
  store i32 0, ptr @test_count, align 4, !tbaa !5
  %35 = load ptr, ptr @stdout, align 8, !tbaa !9
  %36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef @.str, ptr noundef @.str.1) #9
  %37 = load ptr, ptr @stdout, align 8, !tbaa !9
  %38 = call i32 @fflush(ptr noundef %37)
  br label %39

39:                                               ; preds = %34
  %40 = call i32 @s2n_in_unit_test_set(i1 noundef zeroext true)
  %41 = icmp eq i32 %40, -1
  br i1 %41, label %42, label %93

42:                                               ; preds = %39
  br label %43

43:                                               ; preds = %42
  br label %44

44:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  %45 = call ptr @__errno_location() #10
  %46 = load i32, ptr %45, align 4, !tbaa !5
  store i32 %46, ptr %6, align 4, !tbaa !5
  %47 = load ptr, ptr @stderr, align 8, !tbaa !9
  %48 = call i32 @s2n_print_stacktrace(ptr noundef %47)
  %49 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %50 = trunc i8 %49 to i1
  br i1 %50, label %51, label %73

51:                                               ; preds = %44
  %52 = load ptr, ptr @stderr, align 8, !tbaa !9
  %53 = call i32 @fileno(ptr noundef %52) #9
  %54 = call i32 @isatty(i32 noundef %53) #9
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %56, label %73

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

73:                                               ; preds = %51, %44
  %74 = load i32, ptr %6, align 4, !tbaa !5
  %75 = call ptr @__errno_location() #10
  store i32 %74, ptr %75, align 4, !tbaa !5
  %76 = load ptr, ptr @stderr, align 8, !tbaa !9
  %77 = load i32, ptr @test_count, align 4, !tbaa !5
  %78 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = call ptr @s2n_strerror(i32 noundef %79, ptr noundef @.str.4)
  %81 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = call ptr @s2n_strerror_debug(i32 noundef %82, ptr noundef @.str.4)
  %84 = call ptr @__errno_location() #10
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = call ptr @strerror(i32 noundef %85) #9
  %87 = call ptr @__errno_location() #10
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef @.str.5, i32 noundef %77, ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 71, ptr noundef %80, ptr noundef %83, ptr noundef %86, i32 noundef %88) #9
  br label %90

90:                                               ; preds = %73, %56
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  br label %91

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

92:                                               ; No predecessors!
  br label %93

93:                                               ; preds = %92, %39
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  %96 = load i32, ptr @test_count, align 4, !tbaa !5
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr @test_count, align 4, !tbaa !5
  %98 = call i32 @s2n_enable_atexit()
  %99 = icmp eq i32 %98, -1
  br i1 %99, label %100, label %151

100:                                              ; preds = %95
  br label %101

101:                                              ; preds = %100
  br label %102

102:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  %103 = call ptr @__errno_location() #10
  %104 = load i32, ptr %103, align 4, !tbaa !5
  store i32 %104, ptr %7, align 4, !tbaa !5
  %105 = load ptr, ptr @stderr, align 8, !tbaa !9
  %106 = call i32 @s2n_print_stacktrace(ptr noundef %105)
  %107 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %108 = trunc i8 %107 to i1
  br i1 %108, label %109, label %131

109:                                              ; preds = %102
  %110 = load ptr, ptr @stderr, align 8, !tbaa !9
  %111 = call i32 @fileno(ptr noundef %110) #9
  %112 = call i32 @isatty(i32 noundef %111) #9
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %131

114:                                              ; preds = %109
  %115 = load i32, ptr %7, align 4, !tbaa !5
  %116 = call ptr @__errno_location() #10
  store i32 %115, ptr %116, align 4, !tbaa !5
  %117 = load ptr, ptr @stderr, align 8, !tbaa !9
  %118 = load i32, ptr @test_count, align 4, !tbaa !5
  %119 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %120 = load i32, ptr %119, align 4, !tbaa !5
  %121 = call ptr @s2n_strerror(i32 noundef %120, ptr noundef @.str.4)
  %122 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %124 = call ptr @s2n_strerror_debug(i32 noundef %123, ptr noundef @.str.4)
  %125 = call ptr @__errno_location() #10
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %127 = call ptr @strerror(i32 noundef %126) #9
  %128 = call ptr @__errno_location() #10
  %129 = load i32, ptr %128, align 4, !tbaa !5
  %130 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef @.str.2, i32 noundef %118, ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 71, ptr noundef %121, ptr noundef %124, ptr noundef %127, i32 noundef %129) #9
  br label %148

131:                                              ; preds = %109, %102
  %132 = load i32, ptr %7, align 4, !tbaa !5
  %133 = call ptr @__errno_location() #10
  store i32 %132, ptr %133, align 4, !tbaa !5
  %134 = load ptr, ptr @stderr, align 8, !tbaa !9
  %135 = load i32, ptr @test_count, align 4, !tbaa !5
  %136 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = call ptr @s2n_strerror(i32 noundef %137, ptr noundef @.str.4)
  %139 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %140 = load i32, ptr %139, align 4, !tbaa !5
  %141 = call ptr @s2n_strerror_debug(i32 noundef %140, ptr noundef @.str.4)
  %142 = call ptr @__errno_location() #10
  %143 = load i32, ptr %142, align 4, !tbaa !5
  %144 = call ptr @strerror(i32 noundef %143) #9
  %145 = call ptr @__errno_location() #10
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %134, ptr noundef @.str.5, i32 noundef %135, ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 71, ptr noundef %138, ptr noundef %141, ptr noundef %144, i32 noundef %146) #9
  br label %148

148:                                              ; preds = %131, %114
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  br label %149

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

150:                                              ; No predecessors!
  br label %151

151:                                              ; preds = %150, %95
  br label %152

152:                                              ; preds = %151
  br label %153

153:                                              ; preds = %152
  br label %154

154:                                              ; preds = %153
  %155 = call i32 @s2n_init()
  %156 = icmp eq i32 %155, -1
  br i1 %156, label %157, label %208

157:                                              ; preds = %154
  br label %158

158:                                              ; preds = %157
  br label %159

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

166:                                              ; preds = %159
  %167 = load ptr, ptr @stderr, align 8, !tbaa !9
  %168 = call i32 @fileno(ptr noundef %167) #9
  %169 = call i32 @isatty(i32 noundef %168) #9
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %171, label %188

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

188:                                              ; preds = %166, %159
  %189 = load i32, ptr %8, align 4, !tbaa !5
  %190 = call ptr @__errno_location() #10
  store i32 %189, ptr %190, align 4, !tbaa !5
  %191 = load ptr, ptr @stderr, align 8, !tbaa !9
  %192 = load i32, ptr @test_count, align 4, !tbaa !5
  %193 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %194 = load i32, ptr %193, align 4, !tbaa !5
  %195 = call ptr @s2n_strerror(i32 noundef %194, ptr noundef @.str.4)
  %196 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %197 = load i32, ptr %196, align 4, !tbaa !5
  %198 = call ptr @s2n_strerror_debug(i32 noundef %197, ptr noundef @.str.4)
  %199 = call ptr @__errno_location() #10
  %200 = load i32, ptr %199, align 4, !tbaa !5
  %201 = call ptr @strerror(i32 noundef %200) #9
  %202 = call ptr @__errno_location() #10
  %203 = load i32, ptr %202, align 4, !tbaa !5
  %204 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %191, ptr noundef @.str.5, i32 noundef %192, ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 71, ptr noundef %195, ptr noundef %198, ptr noundef %201, i32 noundef %203) #9
  br label %205

205:                                              ; preds = %188, %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  br label %206

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

207:                                              ; No predecessors!
  br label %208

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

209:                                              ; preds = %208
  br label %210

210:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #9
  store i8 5, ptr %9, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #9
  store i8 0, ptr %10, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %211

211:                                              ; preds = %221, %210
  %212 = call ptr @__errno_location() #10
  store i32 0, ptr %212, align 4, !tbaa !5
  %213 = call i32 @s2n_test_mocked_interrupt(i8 noundef zeroext 5, ptr noundef %10)
  store i32 %213, ptr %11, align 4, !tbaa !5
  br label %214

214:                                              ; preds = %211
  %215 = load i32, ptr %11, align 4, !tbaa !5
  %216 = icmp slt i32 %215, 0
  br i1 %216, label %217, label %221

217:                                              ; preds = %214
  %218 = call ptr @__errno_location() #10
  %219 = load i32, ptr %218, align 4, !tbaa !5
  %220 = icmp eq i32 %219, 4
  br label %221

221:                                              ; preds = %217, %214
  %222 = phi i1 [ false, %214 ], [ %220, %217 ]
  br i1 %222, label %211, label %223, !llvm.loop !16

223:                                              ; preds = %221
  br label %224

224:                                              ; preds = %223
  %225 = load i32, ptr @test_count, align 4, !tbaa !5
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr @test_count, align 4, !tbaa !5
  %227 = load i32, ptr %11, align 4, !tbaa !5
  %228 = icmp eq i32 %227, 123
  br i1 %228, label %282, label %229

229:                                              ; preds = %224
  br label %230

230:                                              ; preds = %229
  br label %231

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

238:                                              ; preds = %231
  %239 = load ptr, ptr @stderr, align 8, !tbaa !9
  %240 = call i32 @fileno(ptr noundef %239) #9
  %241 = call i32 @isatty(i32 noundef %240) #9
  %242 = icmp ne i32 %241, 0
  br i1 %242, label %243, label %260

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

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

277:                                              ; preds = %260, %243
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  br label %278

278:                                              ; preds = %277
  br label %279

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

280:                                              ; No predecessors!
  br label %281

281:                                              ; preds = %280
  br label %282

282:                                              ; preds = %281, %224
  br label %283

283:                                              ; preds = %282
  br label %284

284:                                              ; preds = %283
  br label %285

285:                                              ; preds = %284
  %286 = load i32, ptr @test_count, align 4, !tbaa !5
  %287 = add nsw i32 %286, 1
  store i32 %287, ptr @test_count, align 4, !tbaa !5
  %288 = load i8, ptr %10, align 1, !tbaa !15
  %289 = zext i8 %288 to i32
  %290 = icmp eq i32 %289, 5
  br i1 %290, label %344, label %291

291:                                              ; preds = %285
  br label %292

292:                                              ; preds = %291
  br label %293

293:                                              ; preds = %292
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  %294 = call ptr @__errno_location() #10
  %295 = load i32, ptr %294, align 4, !tbaa !5
  store i32 %295, ptr %13, align 4, !tbaa !5
  %296 = load ptr, ptr @stderr, align 8, !tbaa !9
  %297 = call i32 @s2n_print_stacktrace(ptr noundef %296)
  %298 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %299 = trunc i8 %298 to i1
  br i1 %299, label %300, label %322

300:                                              ; preds = %293
  %301 = load ptr, ptr @stderr, align 8, !tbaa !9
  %302 = call i32 @fileno(ptr noundef %301) #9
  %303 = call i32 @isatty(i32 noundef %302) #9
  %304 = icmp ne i32 %303, 0
  br i1 %304, label %305, label %322

305:                                              ; preds = %300
  %306 = load i32, ptr %13, align 4, !tbaa !5
  %307 = call ptr @__errno_location() #10
  store i32 %306, ptr %307, align 4, !tbaa !5
  %308 = load ptr, ptr @stderr, align 8, !tbaa !9
  %309 = load i32, ptr @test_count, align 4, !tbaa !5
  %310 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %311 = load i32, ptr %310, align 4, !tbaa !5
  %312 = call ptr @s2n_strerror(i32 noundef %311, ptr noundef @.str.4)
  %313 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %314 = load i32, ptr %313, align 4, !tbaa !5
  %315 = call ptr @s2n_strerror_debug(i32 noundef %314, ptr noundef @.str.4)
  %316 = call ptr @__errno_location() #10
  %317 = load i32, ptr %316, align 4, !tbaa !5
  %318 = call ptr @strerror(i32 noundef %317) #9
  %319 = call ptr @__errno_location() #10
  %320 = load i32, ptr %319, align 4, !tbaa !5
  %321 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %308, ptr noundef @.str.2, i32 noundef %309, ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 83, ptr noundef %312, ptr noundef %315, ptr noundef %318, i32 noundef %320) #9
  br label %339

322:                                              ; preds = %300, %293
  %323 = load i32, ptr %13, align 4, !tbaa !5
  %324 = call ptr @__errno_location() #10
  store i32 %323, ptr %324, align 4, !tbaa !5
  %325 = load ptr, ptr @stderr, align 8, !tbaa !9
  %326 = load i32, ptr @test_count, align 4, !tbaa !5
  %327 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %328 = load i32, ptr %327, align 4, !tbaa !5
  %329 = call ptr @s2n_strerror(i32 noundef %328, ptr noundef @.str.4)
  %330 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %331 = load i32, ptr %330, align 4, !tbaa !5
  %332 = call ptr @s2n_strerror_debug(i32 noundef %331, ptr noundef @.str.4)
  %333 = call ptr @__errno_location() #10
  %334 = load i32, ptr %333, align 4, !tbaa !5
  %335 = call ptr @strerror(i32 noundef %334) #9
  %336 = call ptr @__errno_location() #10
  %337 = load i32, ptr %336, align 4, !tbaa !5
  %338 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %325, ptr noundef @.str.5, i32 noundef %326, ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 83, ptr noundef %329, ptr noundef %332, ptr noundef %335, i32 noundef %337) #9
  br label %339

339:                                              ; preds = %322, %305
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  br label %340

340:                                              ; preds = %339
  br label %341

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

342:                                              ; No predecessors!
  br label %343

343:                                              ; preds = %342
  br label %344

344:                                              ; preds = %343, %285
  br label %345

345:                                              ; preds = %344
  br label %346

346:                                              ; preds = %345
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  call void @llvm.memset.p0.i64(ptr align 4 %14, i8 0, i64 8, i1 false)
  br label %347

347:                                              ; preds = %346
  %348 = load i32, ptr @test_count, align 4, !tbaa !5
  %349 = add nsw i32 %348, 1
  store i32 %349, ptr @test_count, align 4, !tbaa !5
  %350 = call i32 @s2n_io_pair_init(ptr noundef %14)
  %351 = icmp eq i32 %350, -1
  br i1 %351, label %352, label %405

352:                                              ; preds = %347
  br label %353

353:                                              ; preds = %352
  br label %354

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

361:                                              ; preds = %354
  %362 = load ptr, ptr @stderr, align 8, !tbaa !9
  %363 = call i32 @fileno(ptr noundef %362) #9
  %364 = call i32 @isatty(i32 noundef %363) #9
  %365 = icmp ne i32 %364, 0
  br i1 %365, label %366, label %383

366:                                              ; preds = %361
  %367 = load i32, ptr %15, align 4, !tbaa !5
  %368 = call ptr @__errno_location() #10
  store i32 %367, ptr %368, align 4, !tbaa !5
  %369 = load ptr, ptr @stderr, align 8, !tbaa !9
  %370 = load i32, ptr @test_count, align 4, !tbaa !5
  %371 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %372 = load i32, ptr %371, align 4, !tbaa !5
  %373 = call ptr @s2n_strerror(i32 noundef %372, ptr noundef @.str.4)
  %374 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %375 = load i32, ptr %374, align 4, !tbaa !5
  %376 = call ptr @s2n_strerror_debug(i32 noundef %375, ptr noundef @.str.4)
  %377 = call ptr @__errno_location() #10
  %378 = load i32, ptr %377, align 4, !tbaa !5
  %379 = call ptr @strerror(i32 noundef %378) #9
  %380 = call ptr @__errno_location() #10
  %381 = load i32, ptr %380, align 4, !tbaa !5
  %382 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %369, ptr noundef @.str.2, i32 noundef %370, ptr noundef @.str.10, ptr noundef @.str.1, i32 noundef 89, ptr noundef %373, ptr noundef %376, ptr noundef %379, i32 noundef %381) #9
  br label %400

383:                                              ; preds = %361, %354
  %384 = load i32, ptr %15, align 4, !tbaa !5
  %385 = call ptr @__errno_location() #10
  store i32 %384, ptr %385, align 4, !tbaa !5
  %386 = load ptr, ptr @stderr, align 8, !tbaa !9
  %387 = load i32, ptr @test_count, align 4, !tbaa !5
  %388 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %389 = load i32, ptr %388, align 4, !tbaa !5
  %390 = call ptr @s2n_strerror(i32 noundef %389, ptr noundef @.str.4)
  %391 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %392 = load i32, ptr %391, align 4, !tbaa !5
  %393 = call ptr @s2n_strerror_debug(i32 noundef %392, ptr noundef @.str.4)
  %394 = call ptr @__errno_location() #10
  %395 = load i32, ptr %394, align 4, !tbaa !5
  %396 = call ptr @strerror(i32 noundef %395) #9
  %397 = call ptr @__errno_location() #10
  %398 = load i32, ptr %397, align 4, !tbaa !5
  %399 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %386, ptr noundef @.str.5, i32 noundef %387, ptr noundef @.str.10, ptr noundef @.str.1, i32 noundef 89, ptr noundef %390, ptr noundef %393, ptr noundef %396, i32 noundef %398) #9
  br label %400

400:                                              ; preds = %383, %366
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  br label %401

401:                                              ; preds = %400
  br label %402

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

403:                                              ; No predecessors!
  br label %404

404:                                              ; preds = %403
  br label %405

405:                                              ; preds = %404, %347
  br label %406

406:                                              ; preds = %405
  br label %407

407:                                              ; preds = %406
  call void @llvm.lifetime.start.p0(i64 152, ptr %16) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 @__const.main.action, i64 152, i1 false)
  %408 = call i32 @sigaction(i32 noundef 10, ptr noundef %16, ptr noundef null) #9
  %409 = load ptr, ptr @stdout, align 8, !tbaa !9
  %410 = call i32 @fflush(ptr noundef %409)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  %411 = call i32 @fork() #9
  store i32 %411, ptr %17, align 4, !tbaa !5
  %412 = load i32, ptr %17, align 4, !tbaa !5
  %413 = icmp eq i32 %412, 0
  br i1 %413, label %414, label %614

414:                                              ; preds = %407
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #9
  store i8 0, ptr %18, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %415

415:                                              ; preds = %427, %414
  %416 = call ptr @__errno_location() #10
  store i32 0, ptr %416, align 4, !tbaa !5
  %417 = getelementptr inbounds %struct.s2n_test_io_pair, ptr %14, i32 0, i32 0
  %418 = load i32, ptr %417, align 4, !tbaa !18
  %419 = call i32 @s2n_test_real_interrupt(i32 noundef %418, i8 noundef zeroext 5, ptr noundef %18)
  store i32 %419, ptr %19, align 4, !tbaa !5
  br label %420

420:                                              ; preds = %415
  %421 = load i32, ptr %19, align 4, !tbaa !5
  %422 = icmp slt i32 %421, 0
  br i1 %422, label %423, label %427

423:                                              ; preds = %420
  %424 = call ptr @__errno_location() #10
  %425 = load i32, ptr %424, align 4, !tbaa !5
  %426 = icmp eq i32 %425, 4
  br label %427

427:                                              ; preds = %423, %420
  %428 = phi i1 [ false, %420 ], [ %426, %423 ]
  br i1 %428, label %415, label %429, !llvm.loop !20

429:                                              ; preds = %427
  br label %430

430:                                              ; preds = %429
  %431 = load i32, ptr @test_count, align 4, !tbaa !5
  %432 = add nsw i32 %431, 1
  store i32 %432, ptr @test_count, align 4, !tbaa !5
  %433 = load i32, ptr %19, align 4, !tbaa !5
  %434 = icmp eq i32 %433, 123
  br i1 %434, label %488, label %435

435:                                              ; preds = %430
  br label %436

436:                                              ; preds = %435
  br label %437

437:                                              ; preds = %436
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  %438 = call ptr @__errno_location() #10
  %439 = load i32, ptr %438, align 4, !tbaa !5
  store i32 %439, ptr %20, align 4, !tbaa !5
  %440 = load ptr, ptr @stderr, align 8, !tbaa !9
  %441 = call i32 @s2n_print_stacktrace(ptr noundef %440)
  %442 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %443 = trunc i8 %442 to i1
  br i1 %443, label %444, label %466

444:                                              ; preds = %437
  %445 = load ptr, ptr @stderr, align 8, !tbaa !9
  %446 = call i32 @fileno(ptr noundef %445) #9
  %447 = call i32 @isatty(i32 noundef %446) #9
  %448 = icmp ne i32 %447, 0
  br i1 %448, label %449, label %466

449:                                              ; preds = %444
  %450 = load i32, ptr %20, align 4, !tbaa !5
  %451 = call ptr @__errno_location() #10
  store i32 %450, ptr %451, align 4, !tbaa !5
  %452 = load ptr, ptr @stderr, align 8, !tbaa !9
  %453 = load i32, ptr @test_count, align 4, !tbaa !5
  %454 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %455 = load i32, ptr %454, align 4, !tbaa !5
  %456 = call ptr @s2n_strerror(i32 noundef %455, ptr noundef @.str.4)
  %457 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %458 = load i32, ptr %457, align 4, !tbaa !5
  %459 = call ptr @s2n_strerror_debug(i32 noundef %458, ptr noundef @.str.4)
  %460 = call ptr @__errno_location() #10
  %461 = load i32, ptr %460, align 4, !tbaa !5
  %462 = call ptr @strerror(i32 noundef %461) #9
  %463 = call ptr @__errno_location() #10
  %464 = load i32, ptr %463, align 4, !tbaa !5
  %465 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %452, ptr noundef @.str.2, i32 noundef %453, ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 103, ptr noundef %456, ptr noundef %459, ptr noundef %462, i32 noundef %464) #9
  br label %483

466:                                              ; preds = %444, %437
  %467 = load i32, ptr %20, align 4, !tbaa !5
  %468 = call ptr @__errno_location() #10
  store i32 %467, ptr %468, align 4, !tbaa !5
  %469 = load ptr, ptr @stderr, align 8, !tbaa !9
  %470 = load i32, ptr @test_count, align 4, !tbaa !5
  %471 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %472 = load i32, ptr %471, align 4, !tbaa !5
  %473 = call ptr @s2n_strerror(i32 noundef %472, ptr noundef @.str.4)
  %474 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %475 = load i32, ptr %474, align 4, !tbaa !5
  %476 = call ptr @s2n_strerror_debug(i32 noundef %475, ptr noundef @.str.4)
  %477 = call ptr @__errno_location() #10
  %478 = load i32, ptr %477, align 4, !tbaa !5
  %479 = call ptr @strerror(i32 noundef %478) #9
  %480 = call ptr @__errno_location() #10
  %481 = load i32, ptr %480, align 4, !tbaa !5
  %482 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %469, ptr noundef @.str.5, i32 noundef %470, ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 103, ptr noundef %473, ptr noundef %476, ptr noundef %479, i32 noundef %481) #9
  br label %483

483:                                              ; preds = %466, %449
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  br label %484

484:                                              ; preds = %483
  br label %485

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

486:                                              ; No predecessors!
  br label %487

487:                                              ; preds = %486
  br label %488

488:                                              ; preds = %487, %430
  br label %489

489:                                              ; preds = %488
  br label %490

490:                                              ; preds = %489
  br label %491

491:                                              ; preds = %490
  %492 = load i32, ptr @test_count, align 4, !tbaa !5
  %493 = add nsw i32 %492, 1
  store i32 %493, ptr @test_count, align 4, !tbaa !5
  %494 = load i8, ptr %18, align 1, !tbaa !15
  %495 = zext i8 %494 to i32
  %496 = icmp eq i32 %495, 5
  br i1 %496, label %550, label %497

497:                                              ; preds = %491
  br label %498

498:                                              ; preds = %497
  br label %499

499:                                              ; preds = %498
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  %500 = call ptr @__errno_location() #10
  %501 = load i32, ptr %500, align 4, !tbaa !5
  store i32 %501, ptr %21, align 4, !tbaa !5
  %502 = load ptr, ptr @stderr, align 8, !tbaa !9
  %503 = call i32 @s2n_print_stacktrace(ptr noundef %502)
  %504 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %505 = trunc i8 %504 to i1
  br i1 %505, label %506, label %528

506:                                              ; preds = %499
  %507 = load ptr, ptr @stderr, align 8, !tbaa !9
  %508 = call i32 @fileno(ptr noundef %507) #9
  %509 = call i32 @isatty(i32 noundef %508) #9
  %510 = icmp ne i32 %509, 0
  br i1 %510, label %511, label %528

511:                                              ; preds = %506
  %512 = load i32, ptr %21, align 4, !tbaa !5
  %513 = call ptr @__errno_location() #10
  store i32 %512, ptr %513, align 4, !tbaa !5
  %514 = load ptr, ptr @stderr, align 8, !tbaa !9
  %515 = load i32, ptr @test_count, align 4, !tbaa !5
  %516 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %517 = load i32, ptr %516, align 4, !tbaa !5
  %518 = call ptr @s2n_strerror(i32 noundef %517, ptr noundef @.str.4)
  %519 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %520 = load i32, ptr %519, align 4, !tbaa !5
  %521 = call ptr @s2n_strerror_debug(i32 noundef %520, ptr noundef @.str.4)
  %522 = call ptr @__errno_location() #10
  %523 = load i32, ptr %522, align 4, !tbaa !5
  %524 = call ptr @strerror(i32 noundef %523) #9
  %525 = call ptr @__errno_location() #10
  %526 = load i32, ptr %525, align 4, !tbaa !5
  %527 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %514, ptr noundef @.str.2, i32 noundef %515, ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 104, ptr noundef %518, ptr noundef %521, ptr noundef %524, i32 noundef %526) #9
  br label %545

528:                                              ; preds = %506, %499
  %529 = load i32, ptr %21, align 4, !tbaa !5
  %530 = call ptr @__errno_location() #10
  store i32 %529, ptr %530, align 4, !tbaa !5
  %531 = load ptr, ptr @stderr, align 8, !tbaa !9
  %532 = load i32, ptr @test_count, align 4, !tbaa !5
  %533 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %534 = load i32, ptr %533, align 4, !tbaa !5
  %535 = call ptr @s2n_strerror(i32 noundef %534, ptr noundef @.str.4)
  %536 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %537 = load i32, ptr %536, align 4, !tbaa !5
  %538 = call ptr @s2n_strerror_debug(i32 noundef %537, ptr noundef @.str.4)
  %539 = call ptr @__errno_location() #10
  %540 = load i32, ptr %539, align 4, !tbaa !5
  %541 = call ptr @strerror(i32 noundef %540) #9
  %542 = call ptr @__errno_location() #10
  %543 = load i32, ptr %542, align 4, !tbaa !5
  %544 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %531, ptr noundef @.str.5, i32 noundef %532, ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 104, ptr noundef %535, ptr noundef %538, ptr noundef %541, i32 noundef %543) #9
  br label %545

545:                                              ; preds = %528, %511
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %546

546:                                              ; preds = %545
  br label %547

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

548:                                              ; No predecessors!
  br label %549

549:                                              ; preds = %548
  br label %550

550:                                              ; preds = %549, %491
  br label %551

551:                                              ; preds = %550
  br label %552

552:                                              ; preds = %551
  br label %553

553:                                              ; preds = %552
  %554 = load i32, ptr @test_count, align 4, !tbaa !5
  %555 = add nsw i32 %554, 1
  store i32 %555, ptr @test_count, align 4, !tbaa !5
  %556 = call i32 @s2n_io_pair_close(ptr noundef %14)
  %557 = icmp eq i32 %556, -1
  br i1 %557, label %558, label %611

558:                                              ; preds = %553
  br label %559

559:                                              ; preds = %558
  br label %560

560:                                              ; preds = %559
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  %561 = call ptr @__errno_location() #10
  %562 = load i32, ptr %561, align 4, !tbaa !5
  store i32 %562, ptr %22, align 4, !tbaa !5
  %563 = load ptr, ptr @stderr, align 8, !tbaa !9
  %564 = call i32 @s2n_print_stacktrace(ptr noundef %563)
  %565 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %566 = trunc i8 %565 to i1
  br i1 %566, label %567, label %589

567:                                              ; preds = %560
  %568 = load ptr, ptr @stderr, align 8, !tbaa !9
  %569 = call i32 @fileno(ptr noundef %568) #9
  %570 = call i32 @isatty(i32 noundef %569) #9
  %571 = icmp ne i32 %570, 0
  br i1 %571, label %572, label %589

572:                                              ; preds = %567
  %573 = load i32, ptr %22, align 4, !tbaa !5
  %574 = call ptr @__errno_location() #10
  store i32 %573, ptr %574, align 4, !tbaa !5
  %575 = load ptr, ptr @stderr, align 8, !tbaa !9
  %576 = load i32, ptr @test_count, align 4, !tbaa !5
  %577 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %578 = load i32, ptr %577, align 4, !tbaa !5
  %579 = call ptr @s2n_strerror(i32 noundef %578, ptr noundef @.str.4)
  %580 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %581 = load i32, ptr %580, align 4, !tbaa !5
  %582 = call ptr @s2n_strerror_debug(i32 noundef %581, ptr noundef @.str.4)
  %583 = call ptr @__errno_location() #10
  %584 = load i32, ptr %583, align 4, !tbaa !5
  %585 = call ptr @strerror(i32 noundef %584) #9
  %586 = call ptr @__errno_location() #10
  %587 = load i32, ptr %586, align 4, !tbaa !5
  %588 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %575, ptr noundef @.str.2, i32 noundef %576, ptr noundef @.str.11, ptr noundef @.str.1, i32 noundef 106, ptr noundef %579, ptr noundef %582, ptr noundef %585, i32 noundef %587) #9
  br label %606

589:                                              ; preds = %567, %560
  %590 = load i32, ptr %22, align 4, !tbaa !5
  %591 = call ptr @__errno_location() #10
  store i32 %590, ptr %591, align 4, !tbaa !5
  %592 = load ptr, ptr @stderr, align 8, !tbaa !9
  %593 = load i32, ptr @test_count, align 4, !tbaa !5
  %594 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %595 = load i32, ptr %594, align 4, !tbaa !5
  %596 = call ptr @s2n_strerror(i32 noundef %595, ptr noundef @.str.4)
  %597 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %598 = load i32, ptr %597, align 4, !tbaa !5
  %599 = call ptr @s2n_strerror_debug(i32 noundef %598, ptr noundef @.str.4)
  %600 = call ptr @__errno_location() #10
  %601 = load i32, ptr %600, align 4, !tbaa !5
  %602 = call ptr @strerror(i32 noundef %601) #9
  %603 = call ptr @__errno_location() #10
  %604 = load i32, ptr %603, align 4, !tbaa !5
  %605 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %592, ptr noundef @.str.5, i32 noundef %593, ptr noundef @.str.11, ptr noundef @.str.1, i32 noundef 106, ptr noundef %596, ptr noundef %599, ptr noundef %602, i32 noundef %604) #9
  br label %606

606:                                              ; preds = %589, %572
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  br label %607

607:                                              ; preds = %606
  br label %608

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

609:                                              ; No predecessors!
  br label %610

610:                                              ; preds = %609
  br label %611

611:                                              ; preds = %610, %553
  br label %612

612:                                              ; preds = %611
  br label %613

613:                                              ; preds = %612
  call void @exit(i32 noundef 0) #11
  unreachable

614:                                              ; preds = %407
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %615

615:                                              ; preds = %681, %614
  %616 = load i32, ptr %17, align 4, !tbaa !5
  %617 = call i32 @waitpid(i32 noundef %616, ptr noundef %23, i32 noundef 1)
  %618 = icmp eq i32 %617, 0
  br i1 %618, label %619, label %682

619:                                              ; preds = %615
  br label %620

620:                                              ; preds = %619
  %621 = load i32, ptr @test_count, align 4, !tbaa !5
  %622 = add nsw i32 %621, 1
  store i32 %622, ptr @test_count, align 4, !tbaa !5
  %623 = load i32, ptr %17, align 4, !tbaa !5
  %624 = call i32 @kill(i32 noundef %623, i32 noundef 10) #9
  %625 = icmp eq i32 %624, 0
  br i1 %625, label %679, label %626

626:                                              ; preds = %620
  br label %627

627:                                              ; preds = %626
  br label %628

628:                                              ; preds = %627
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  %629 = call ptr @__errno_location() #10
  %630 = load i32, ptr %629, align 4, !tbaa !5
  store i32 %630, ptr %24, align 4, !tbaa !5
  %631 = load ptr, ptr @stderr, align 8, !tbaa !9
  %632 = call i32 @s2n_print_stacktrace(ptr noundef %631)
  %633 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %634 = trunc i8 %633 to i1
  br i1 %634, label %635, label %657

635:                                              ; preds = %628
  %636 = load ptr, ptr @stderr, align 8, !tbaa !9
  %637 = call i32 @fileno(ptr noundef %636) #9
  %638 = call i32 @isatty(i32 noundef %637) #9
  %639 = icmp ne i32 %638, 0
  br i1 %639, label %640, label %657

640:                                              ; preds = %635
  %641 = load i32, ptr %24, align 4, !tbaa !5
  %642 = call ptr @__errno_location() #10
  store i32 %641, ptr %642, align 4, !tbaa !5
  %643 = load ptr, ptr @stderr, align 8, !tbaa !9
  %644 = load i32, ptr @test_count, align 4, !tbaa !5
  %645 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %646 = load i32, ptr %645, align 4, !tbaa !5
  %647 = call ptr @s2n_strerror(i32 noundef %646, ptr noundef @.str.4)
  %648 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %649 = load i32, ptr %648, align 4, !tbaa !5
  %650 = call ptr @s2n_strerror_debug(i32 noundef %649, ptr noundef @.str.4)
  %651 = call ptr @__errno_location() #10
  %652 = load i32, ptr %651, align 4, !tbaa !5
  %653 = call ptr @strerror(i32 noundef %652) #9
  %654 = call ptr @__errno_location() #10
  %655 = load i32, ptr %654, align 4, !tbaa !5
  %656 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %643, ptr noundef @.str.2, i32 noundef %644, ptr noundef @.str.12, ptr noundef @.str.1, i32 noundef 113, ptr noundef %647, ptr noundef %650, ptr noundef %653, i32 noundef %655) #9
  br label %674

657:                                              ; preds = %635, %628
  %658 = load i32, ptr %24, align 4, !tbaa !5
  %659 = call ptr @__errno_location() #10
  store i32 %658, ptr %659, align 4, !tbaa !5
  %660 = load ptr, ptr @stderr, align 8, !tbaa !9
  %661 = load i32, ptr @test_count, align 4, !tbaa !5
  %662 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %663 = load i32, ptr %662, align 4, !tbaa !5
  %664 = call ptr @s2n_strerror(i32 noundef %663, ptr noundef @.str.4)
  %665 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %666 = load i32, ptr %665, align 4, !tbaa !5
  %667 = call ptr @s2n_strerror_debug(i32 noundef %666, ptr noundef @.str.4)
  %668 = call ptr @__errno_location() #10
  %669 = load i32, ptr %668, align 4, !tbaa !5
  %670 = call ptr @strerror(i32 noundef %669) #9
  %671 = call ptr @__errno_location() #10
  %672 = load i32, ptr %671, align 4, !tbaa !5
  %673 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %660, ptr noundef @.str.5, i32 noundef %661, ptr noundef @.str.12, ptr noundef @.str.1, i32 noundef 113, ptr noundef %664, ptr noundef %667, ptr noundef %670, i32 noundef %672) #9
  br label %674

674:                                              ; preds = %657, %640
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  br label %675

675:                                              ; preds = %674
  br label %676

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

677:                                              ; No predecessors!
  br label %678

678:                                              ; preds = %677
  br label %679

679:                                              ; preds = %678, %620
  br label %680

680:                                              ; preds = %679
  br label %681

681:                                              ; preds = %680
  br label %615, !llvm.loop !21

682:                                              ; preds = %615
  br label %683

683:                                              ; preds = %682
  %684 = load i32, ptr @test_count, align 4, !tbaa !5
  %685 = add nsw i32 %684, 1
  store i32 %685, ptr @test_count, align 4, !tbaa !5
  %686 = load i32, ptr %23, align 4, !tbaa !5
  %687 = icmp eq i32 %686, 0
  br i1 %687, label %741, label %688

688:                                              ; preds = %683
  br label %689

689:                                              ; preds = %688
  br label %690

690:                                              ; preds = %689
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  %691 = call ptr @__errno_location() #10
  %692 = load i32, ptr %691, align 4, !tbaa !5
  store i32 %692, ptr %25, align 4, !tbaa !5
  %693 = load ptr, ptr @stderr, align 8, !tbaa !9
  %694 = call i32 @s2n_print_stacktrace(ptr noundef %693)
  %695 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %696 = trunc i8 %695 to i1
  br i1 %696, label %697, label %719

697:                                              ; preds = %690
  %698 = load ptr, ptr @stderr, align 8, !tbaa !9
  %699 = call i32 @fileno(ptr noundef %698) #9
  %700 = call i32 @isatty(i32 noundef %699) #9
  %701 = icmp ne i32 %700, 0
  br i1 %701, label %702, label %719

702:                                              ; preds = %697
  %703 = load i32, ptr %25, align 4, !tbaa !5
  %704 = call ptr @__errno_location() #10
  store i32 %703, ptr %704, align 4, !tbaa !5
  %705 = load ptr, ptr @stderr, align 8, !tbaa !9
  %706 = load i32, ptr @test_count, align 4, !tbaa !5
  %707 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %708 = load i32, ptr %707, align 4, !tbaa !5
  %709 = call ptr @s2n_strerror(i32 noundef %708, ptr noundef @.str.4)
  %710 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %711 = load i32, ptr %710, align 4, !tbaa !5
  %712 = call ptr @s2n_strerror_debug(i32 noundef %711, ptr noundef @.str.4)
  %713 = call ptr @__errno_location() #10
  %714 = load i32, ptr %713, align 4, !tbaa !5
  %715 = call ptr @strerror(i32 noundef %714) #9
  %716 = call ptr @__errno_location() #10
  %717 = load i32, ptr %716, align 4, !tbaa !5
  %718 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %705, ptr noundef @.str.2, i32 noundef %706, ptr noundef @.str.13, ptr noundef @.str.1, i32 noundef 115, ptr noundef %709, ptr noundef %712, ptr noundef %715, i32 noundef %717) #9
  br label %736

719:                                              ; preds = %697, %690
  %720 = load i32, ptr %25, align 4, !tbaa !5
  %721 = call ptr @__errno_location() #10
  store i32 %720, ptr %721, align 4, !tbaa !5
  %722 = load ptr, ptr @stderr, align 8, !tbaa !9
  %723 = load i32, ptr @test_count, align 4, !tbaa !5
  %724 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %725 = load i32, ptr %724, align 4, !tbaa !5
  %726 = call ptr @s2n_strerror(i32 noundef %725, ptr noundef @.str.4)
  %727 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %728 = load i32, ptr %727, align 4, !tbaa !5
  %729 = call ptr @s2n_strerror_debug(i32 noundef %728, ptr noundef @.str.4)
  %730 = call ptr @__errno_location() #10
  %731 = load i32, ptr %730, align 4, !tbaa !5
  %732 = call ptr @strerror(i32 noundef %731) #9
  %733 = call ptr @__errno_location() #10
  %734 = load i32, ptr %733, align 4, !tbaa !5
  %735 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %722, ptr noundef @.str.5, i32 noundef %723, ptr noundef @.str.13, ptr noundef @.str.1, i32 noundef 115, ptr noundef %726, ptr noundef %729, ptr noundef %732, i32 noundef %734) #9
  br label %736

736:                                              ; preds = %719, %702
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  br label %737

737:                                              ; preds = %736
  br label %738

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

739:                                              ; No predecessors!
  br label %740

740:                                              ; preds = %739
  br label %741

741:                                              ; preds = %740, %683
  br label %742

742:                                              ; preds = %741
  br label %743

743:                                              ; preds = %742
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 152, ptr %16) #9
  %744 = call i32 @s2n_io_pair_close(ptr noundef %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  %745 = call ptr @__errno_location() #10
  store i32 4, ptr %745, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #9
  store i8 0, ptr %26, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %746

746:                                              ; preds = %756, %743
  %747 = call ptr @__errno_location() #10
  store i32 0, ptr %747, align 4, !tbaa !5
  %748 = call i32 @s2n_fail_without_errno(ptr noundef %26)
  store i32 %748, ptr %27, align 4, !tbaa !5
  br label %749

749:                                              ; preds = %746
  %750 = load i32, ptr %27, align 4, !tbaa !5
  %751 = icmp slt i32 %750, 0
  br i1 %751, label %752, label %756

752:                                              ; preds = %749
  %753 = call ptr @__errno_location() #10
  %754 = load i32, ptr %753, align 4, !tbaa !5
  %755 = icmp eq i32 %754, 4
  br label %756

756:                                              ; preds = %752, %749
  %757 = phi i1 [ false, %749 ], [ %755, %752 ]
  br i1 %757, label %746, label %758, !llvm.loop !22

758:                                              ; preds = %756
  br label %759

759:                                              ; preds = %758
  %760 = load i32, ptr @test_count, align 4, !tbaa !5
  %761 = add nsw i32 %760, 1
  store i32 %761, ptr @test_count, align 4, !tbaa !5
  %762 = load i32, ptr %27, align 4, !tbaa !5
  %763 = icmp eq i32 %762, -1
  br i1 %763, label %817, label %764

764:                                              ; preds = %759
  br label %765

765:                                              ; preds = %764
  br label %766

766:                                              ; preds = %765
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  %767 = call ptr @__errno_location() #10
  %768 = load i32, ptr %767, align 4, !tbaa !5
  store i32 %768, ptr %28, align 4, !tbaa !5
  %769 = load ptr, ptr @stderr, align 8, !tbaa !9
  %770 = call i32 @s2n_print_stacktrace(ptr noundef %769)
  %771 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %772 = trunc i8 %771 to i1
  br i1 %772, label %773, label %795

773:                                              ; preds = %766
  %774 = load ptr, ptr @stderr, align 8, !tbaa !9
  %775 = call i32 @fileno(ptr noundef %774) #9
  %776 = call i32 @isatty(i32 noundef %775) #9
  %777 = icmp ne i32 %776, 0
  br i1 %777, label %778, label %795

778:                                              ; preds = %773
  %779 = load i32, ptr %28, align 4, !tbaa !5
  %780 = call ptr @__errno_location() #10
  store i32 %779, ptr %780, align 4, !tbaa !5
  %781 = load ptr, ptr @stderr, align 8, !tbaa !9
  %782 = load i32, ptr @test_count, align 4, !tbaa !5
  %783 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %784 = load i32, ptr %783, align 4, !tbaa !5
  %785 = call ptr @s2n_strerror(i32 noundef %784, ptr noundef @.str.4)
  %786 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %787 = load i32, ptr %786, align 4, !tbaa !5
  %788 = call ptr @s2n_strerror_debug(i32 noundef %787, ptr noundef @.str.4)
  %789 = call ptr @__errno_location() #10
  %790 = load i32, ptr %789, align 4, !tbaa !5
  %791 = call ptr @strerror(i32 noundef %790) #9
  %792 = call ptr @__errno_location() #10
  %793 = load i32, ptr %792, align 4, !tbaa !5
  %794 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %781, ptr noundef @.str.2, i32 noundef %782, ptr noundef @.str.14, ptr noundef @.str.1, i32 noundef 126, ptr noundef %785, ptr noundef %788, ptr noundef %791, i32 noundef %793) #9
  br label %812

795:                                              ; preds = %773, %766
  %796 = load i32, ptr %28, align 4, !tbaa !5
  %797 = call ptr @__errno_location() #10
  store i32 %796, ptr %797, align 4, !tbaa !5
  %798 = load ptr, ptr @stderr, align 8, !tbaa !9
  %799 = load i32, ptr @test_count, align 4, !tbaa !5
  %800 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %801 = load i32, ptr %800, align 4, !tbaa !5
  %802 = call ptr @s2n_strerror(i32 noundef %801, ptr noundef @.str.4)
  %803 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %804 = load i32, ptr %803, align 4, !tbaa !5
  %805 = call ptr @s2n_strerror_debug(i32 noundef %804, ptr noundef @.str.4)
  %806 = call ptr @__errno_location() #10
  %807 = load i32, ptr %806, align 4, !tbaa !5
  %808 = call ptr @strerror(i32 noundef %807) #9
  %809 = call ptr @__errno_location() #10
  %810 = load i32, ptr %809, align 4, !tbaa !5
  %811 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %798, ptr noundef @.str.5, i32 noundef %799, ptr noundef @.str.14, ptr noundef @.str.1, i32 noundef 126, ptr noundef %802, ptr noundef %805, ptr noundef %808, i32 noundef %810) #9
  br label %812

812:                                              ; preds = %795, %778
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  br label %813

813:                                              ; preds = %812
  br label %814

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

815:                                              ; No predecessors!
  br label %816

816:                                              ; preds = %815
  br label %817

817:                                              ; preds = %816, %759
  br label %818

818:                                              ; preds = %817
  br label %819

819:                                              ; preds = %818
  br label %820

820:                                              ; preds = %819
  %821 = load i32, ptr @test_count, align 4, !tbaa !5
  %822 = add nsw i32 %821, 1
  store i32 %822, ptr @test_count, align 4, !tbaa !5
  %823 = load i8, ptr %26, align 1, !tbaa !15
  %824 = zext i8 %823 to i32
  %825 = icmp eq i32 %824, 1
  br i1 %825, label %879, label %826

826:                                              ; preds = %820
  br label %827

827:                                              ; preds = %826
  br label %828

828:                                              ; preds = %827
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  %829 = call ptr @__errno_location() #10
  %830 = load i32, ptr %829, align 4, !tbaa !5
  store i32 %830, ptr %29, align 4, !tbaa !5
  %831 = load ptr, ptr @stderr, align 8, !tbaa !9
  %832 = call i32 @s2n_print_stacktrace(ptr noundef %831)
  %833 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %834 = trunc i8 %833 to i1
  br i1 %834, label %835, label %857

835:                                              ; preds = %828
  %836 = load ptr, ptr @stderr, align 8, !tbaa !9
  %837 = call i32 @fileno(ptr noundef %836) #9
  %838 = call i32 @isatty(i32 noundef %837) #9
  %839 = icmp ne i32 %838, 0
  br i1 %839, label %840, label %857

840:                                              ; preds = %835
  %841 = load i32, ptr %29, align 4, !tbaa !5
  %842 = call ptr @__errno_location() #10
  store i32 %841, ptr %842, align 4, !tbaa !5
  %843 = load ptr, ptr @stderr, align 8, !tbaa !9
  %844 = load i32, ptr @test_count, align 4, !tbaa !5
  %845 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %846 = load i32, ptr %845, align 4, !tbaa !5
  %847 = call ptr @s2n_strerror(i32 noundef %846, ptr noundef @.str.4)
  %848 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %849 = load i32, ptr %848, align 4, !tbaa !5
  %850 = call ptr @s2n_strerror_debug(i32 noundef %849, ptr noundef @.str.4)
  %851 = call ptr @__errno_location() #10
  %852 = load i32, ptr %851, align 4, !tbaa !5
  %853 = call ptr @strerror(i32 noundef %852) #9
  %854 = call ptr @__errno_location() #10
  %855 = load i32, ptr %854, align 4, !tbaa !5
  %856 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %843, ptr noundef @.str.2, i32 noundef %844, ptr noundef @.str.15, ptr noundef @.str.1, i32 noundef 127, ptr noundef %847, ptr noundef %850, ptr noundef %853, i32 noundef %855) #9
  br label %874

857:                                              ; preds = %835, %828
  %858 = load i32, ptr %29, align 4, !tbaa !5
  %859 = call ptr @__errno_location() #10
  store i32 %858, ptr %859, align 4, !tbaa !5
  %860 = load ptr, ptr @stderr, align 8, !tbaa !9
  %861 = load i32, ptr @test_count, align 4, !tbaa !5
  %862 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %863 = load i32, ptr %862, align 4, !tbaa !5
  %864 = call ptr @s2n_strerror(i32 noundef %863, ptr noundef @.str.4)
  %865 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %866 = load i32, ptr %865, align 4, !tbaa !5
  %867 = call ptr @s2n_strerror_debug(i32 noundef %866, ptr noundef @.str.4)
  %868 = call ptr @__errno_location() #10
  %869 = load i32, ptr %868, align 4, !tbaa !5
  %870 = call ptr @strerror(i32 noundef %869) #9
  %871 = call ptr @__errno_location() #10
  %872 = load i32, ptr %871, align 4, !tbaa !5
  %873 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %860, ptr noundef @.str.5, i32 noundef %861, ptr noundef @.str.15, ptr noundef @.str.1, i32 noundef 127, ptr noundef %864, ptr noundef %867, ptr noundef %870, i32 noundef %872) #9
  br label %874

874:                                              ; preds = %857, %840
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  br label %875

875:                                              ; preds = %874
  br label %876

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

877:                                              ; No predecessors!
  br label %878

878:                                              ; preds = %877
  br label %879

879:                                              ; preds = %878, %820
  br label %880

880:                                              ; preds = %879
  br label %881

881:                                              ; preds = %880
  br label %882

882:                                              ; preds = %881
  %883 = load i32, ptr @test_count, align 4, !tbaa !5
  %884 = add nsw i32 %883, 1
  store i32 %884, ptr @test_count, align 4, !tbaa !5
  %885 = call ptr @__errno_location() #10
  %886 = load i32, ptr %885, align 4, !tbaa !5
  %887 = icmp eq i32 %886, 0
  br i1 %887, label %941, label %888

888:                                              ; preds = %882
  br label %889

889:                                              ; preds = %888
  br label %890

890:                                              ; preds = %889
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  %891 = call ptr @__errno_location() #10
  %892 = load i32, ptr %891, align 4, !tbaa !5
  store i32 %892, ptr %30, align 4, !tbaa !5
  %893 = load ptr, ptr @stderr, align 8, !tbaa !9
  %894 = call i32 @s2n_print_stacktrace(ptr noundef %893)
  %895 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %896 = trunc i8 %895 to i1
  br i1 %896, label %897, label %919

897:                                              ; preds = %890
  %898 = load ptr, ptr @stderr, align 8, !tbaa !9
  %899 = call i32 @fileno(ptr noundef %898) #9
  %900 = call i32 @isatty(i32 noundef %899) #9
  %901 = icmp ne i32 %900, 0
  br i1 %901, label %902, label %919

902:                                              ; preds = %897
  %903 = load i32, ptr %30, align 4, !tbaa !5
  %904 = call ptr @__errno_location() #10
  store i32 %903, ptr %904, align 4, !tbaa !5
  %905 = load ptr, ptr @stderr, align 8, !tbaa !9
  %906 = load i32, ptr @test_count, align 4, !tbaa !5
  %907 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %908 = load i32, ptr %907, align 4, !tbaa !5
  %909 = call ptr @s2n_strerror(i32 noundef %908, ptr noundef @.str.4)
  %910 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %911 = load i32, ptr %910, align 4, !tbaa !5
  %912 = call ptr @s2n_strerror_debug(i32 noundef %911, ptr noundef @.str.4)
  %913 = call ptr @__errno_location() #10
  %914 = load i32, ptr %913, align 4, !tbaa !5
  %915 = call ptr @strerror(i32 noundef %914) #9
  %916 = call ptr @__errno_location() #10
  %917 = load i32, ptr %916, align 4, !tbaa !5
  %918 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %905, ptr noundef @.str.2, i32 noundef %906, ptr noundef @.str.16, ptr noundef @.str.1, i32 noundef 128, ptr noundef %909, ptr noundef %912, ptr noundef %915, i32 noundef %917) #9
  br label %936

919:                                              ; preds = %897, %890
  %920 = load i32, ptr %30, align 4, !tbaa !5
  %921 = call ptr @__errno_location() #10
  store i32 %920, ptr %921, align 4, !tbaa !5
  %922 = load ptr, ptr @stderr, align 8, !tbaa !9
  %923 = load i32, ptr @test_count, align 4, !tbaa !5
  %924 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %925 = load i32, ptr %924, align 4, !tbaa !5
  %926 = call ptr @s2n_strerror(i32 noundef %925, ptr noundef @.str.4)
  %927 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %928 = load i32, ptr %927, align 4, !tbaa !5
  %929 = call ptr @s2n_strerror_debug(i32 noundef %928, ptr noundef @.str.4)
  %930 = call ptr @__errno_location() #10
  %931 = load i32, ptr %930, align 4, !tbaa !5
  %932 = call ptr @strerror(i32 noundef %931) #9
  %933 = call ptr @__errno_location() #10
  %934 = load i32, ptr %933, align 4, !tbaa !5
  %935 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %922, ptr noundef @.str.5, i32 noundef %923, ptr noundef @.str.16, ptr noundef @.str.1, i32 noundef 128, ptr noundef %926, ptr noundef %929, ptr noundef %932, i32 noundef %934) #9
  br label %936

936:                                              ; preds = %919, %902
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  br label %937

937:                                              ; preds = %936
  br label %938

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

939:                                              ; No predecessors!
  br label %940

940:                                              ; preds = %939
  br label %941

941:                                              ; preds = %940, %882
  br label %942

942:                                              ; preds = %941
  br label %943

943:                                              ; preds = %942
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #9
  br label %944

944:                                              ; preds = %943
  br label %945

945:                                              ; preds = %944
  %946 = call i32 @s2n_cleanup()
  %947 = icmp eq i32 %946, -1
  br i1 %947, label %948, label %999

948:                                              ; preds = %945
  br label %949

949:                                              ; preds = %948
  br label %950

950:                                              ; preds = %949
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #9
  %951 = call ptr @__errno_location() #10
  %952 = load i32, ptr %951, align 4, !tbaa !5
  store i32 %952, ptr %31, align 4, !tbaa !5
  %953 = load ptr, ptr @stderr, align 8, !tbaa !9
  %954 = call i32 @s2n_print_stacktrace(ptr noundef %953)
  %955 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %956 = trunc i8 %955 to i1
  br i1 %956, label %957, label %979

957:                                              ; preds = %950
  %958 = load ptr, ptr @stderr, align 8, !tbaa !9
  %959 = call i32 @fileno(ptr noundef %958) #9
  %960 = call i32 @isatty(i32 noundef %959) #9
  %961 = icmp ne i32 %960, 0
  br i1 %961, label %962, label %979

962:                                              ; preds = %957
  %963 = load i32, ptr %31, align 4, !tbaa !5
  %964 = call ptr @__errno_location() #10
  store i32 %963, ptr %964, align 4, !tbaa !5
  %965 = load ptr, ptr @stderr, align 8, !tbaa !9
  %966 = load i32, ptr @test_count, align 4, !tbaa !5
  %967 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %968 = load i32, ptr %967, align 4, !tbaa !5
  %969 = call ptr @s2n_strerror(i32 noundef %968, ptr noundef @.str.4)
  %970 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %971 = load i32, ptr %970, align 4, !tbaa !5
  %972 = call ptr @s2n_strerror_debug(i32 noundef %971, ptr noundef @.str.4)
  %973 = call ptr @__errno_location() #10
  %974 = load i32, ptr %973, align 4, !tbaa !5
  %975 = call ptr @strerror(i32 noundef %974) #9
  %976 = call ptr @__errno_location() #10
  %977 = load i32, ptr %976, align 4, !tbaa !5
  %978 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %965, ptr noundef @.str.2, i32 noundef %966, ptr noundef @.str.17, ptr noundef @.str.1, i32 noundef 132, ptr noundef %969, ptr noundef %972, ptr noundef %975, i32 noundef %977) #9
  br label %996

979:                                              ; preds = %957, %950
  %980 = load i32, ptr %31, align 4, !tbaa !5
  %981 = call ptr @__errno_location() #10
  store i32 %980, ptr %981, align 4, !tbaa !5
  %982 = load ptr, ptr @stderr, align 8, !tbaa !9
  %983 = load i32, ptr @test_count, align 4, !tbaa !5
  %984 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %985 = load i32, ptr %984, align 4, !tbaa !5
  %986 = call ptr @s2n_strerror(i32 noundef %985, ptr noundef @.str.4)
  %987 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %988 = load i32, ptr %987, align 4, !tbaa !5
  %989 = call ptr @s2n_strerror_debug(i32 noundef %988, ptr noundef @.str.4)
  %990 = call ptr @__errno_location() #10
  %991 = load i32, ptr %990, align 4, !tbaa !5
  %992 = call ptr @strerror(i32 noundef %991) #9
  %993 = call ptr @__errno_location() #10
  %994 = load i32, ptr %993, align 4, !tbaa !5
  %995 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %982, ptr noundef @.str.5, i32 noundef %983, ptr noundef @.str.17, ptr noundef @.str.1, i32 noundef 132, ptr noundef %986, ptr noundef %989, ptr noundef %992, i32 noundef %994) #9
  br label %996

996:                                              ; preds = %979, %962
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  br label %997

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

998:                                              ; No predecessors!
  br label %999

999:                                              ; preds = %998, %945
  br label %1000

1000:                                             ; preds = %999
  br label %1001

1001:                                             ; preds = %1000
  br label %1002

1002:                                             ; preds = %1001
  %1003 = call i32 @s2n_in_unit_test_set(i1 noundef zeroext false)
  %1004 = icmp eq i32 %1003, -1
  br i1 %1004, label %1005, label %1056

1005:                                             ; preds = %1002
  br label %1006

1006:                                             ; preds = %1005
  br label %1007

1007:                                             ; preds = %1006
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #9
  %1008 = call ptr @__errno_location() #10
  %1009 = load i32, ptr %1008, align 4, !tbaa !5
  store i32 %1009, ptr %32, align 4, !tbaa !5
  %1010 = load ptr, ptr @stderr, align 8, !tbaa !9
  %1011 = call i32 @s2n_print_stacktrace(ptr noundef %1010)
  %1012 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %1013 = trunc i8 %1012 to i1
  br i1 %1013, label %1014, label %1036

1014:                                             ; preds = %1007
  %1015 = load ptr, ptr @stderr, align 8, !tbaa !9
  %1016 = call i32 @fileno(ptr noundef %1015) #9
  %1017 = call i32 @isatty(i32 noundef %1016) #9
  %1018 = icmp ne i32 %1017, 0
  br i1 %1018, label %1019, label %1036

1019:                                             ; preds = %1014
  %1020 = load i32, ptr %32, align 4, !tbaa !5
  %1021 = call ptr @__errno_location() #10
  store i32 %1020, ptr %1021, align 4, !tbaa !5
  %1022 = load ptr, ptr @stderr, align 8, !tbaa !9
  %1023 = load i32, ptr @test_count, align 4, !tbaa !5
  %1024 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %1025 = load i32, ptr %1024, align 4, !tbaa !5
  %1026 = call ptr @s2n_strerror(i32 noundef %1025, ptr noundef @.str.4)
  %1027 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %1028 = load i32, ptr %1027, align 4, !tbaa !5
  %1029 = call ptr @s2n_strerror_debug(i32 noundef %1028, ptr noundef @.str.4)
  %1030 = call ptr @__errno_location() #10
  %1031 = load i32, ptr %1030, align 4, !tbaa !5
  %1032 = call ptr @strerror(i32 noundef %1031) #9
  %1033 = call ptr @__errno_location() #10
  %1034 = load i32, ptr %1033, align 4, !tbaa !5
  %1035 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1022, ptr noundef @.str.2, i32 noundef %1023, ptr noundef @.str.18, ptr noundef @.str.1, i32 noundef 132, ptr noundef %1026, ptr noundef %1029, ptr noundef %1032, i32 noundef %1034) #9
  br label %1053

1036:                                             ; preds = %1014, %1007
  %1037 = load i32, ptr %32, align 4, !tbaa !5
  %1038 = call ptr @__errno_location() #10
  store i32 %1037, ptr %1038, align 4, !tbaa !5
  %1039 = load ptr, ptr @stderr, align 8, !tbaa !9
  %1040 = load i32, ptr @test_count, align 4, !tbaa !5
  %1041 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %1042 = load i32, ptr %1041, align 4, !tbaa !5
  %1043 = call ptr @s2n_strerror(i32 noundef %1042, ptr noundef @.str.4)
  %1044 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %1045 = load i32, ptr %1044, align 4, !tbaa !5
  %1046 = call ptr @s2n_strerror_debug(i32 noundef %1045, ptr noundef @.str.4)
  %1047 = call ptr @__errno_location() #10
  %1048 = load i32, ptr %1047, align 4, !tbaa !5
  %1049 = call ptr @strerror(i32 noundef %1048) #9
  %1050 = call ptr @__errno_location() #10
  %1051 = load i32, ptr %1050, align 4, !tbaa !5
  %1052 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1039, ptr noundef @.str.5, i32 noundef %1040, ptr noundef @.str.18, ptr noundef @.str.1, i32 noundef 132, ptr noundef %1043, ptr noundef %1046, ptr noundef %1049, i32 noundef %1051) #9
  br label %1053

1053:                                             ; preds = %1036, %1019
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  br label %1054

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

1055:                                             ; No predecessors!
  br label %1056

1056:                                             ; preds = %1055, %1002
  br label %1057

1057:                                             ; preds = %1056
  %1058 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %1059 = trunc i8 %1058 to i1
  br i1 %1059, label %1060, label %1076

1060:                                             ; preds = %1057
  %1061 = load ptr, ptr @stdout, align 8, !tbaa !9
  %1062 = call i32 @fileno(ptr noundef %1061) #9
  %1063 = call i32 @isatty(i32 noundef %1062) #9
  %1064 = icmp ne i32 %1063, 0
  br i1 %1064, label %1065, label %1076

1065:                                             ; preds = %1060
  %1066 = load i32, ptr @test_count, align 4, !tbaa !5
  %1067 = icmp ne i32 %1066, 0
  br i1 %1067, label %1068, label %1072

1068:                                             ; preds = %1065
  %1069 = load ptr, ptr @stdout, align 8, !tbaa !9
  %1070 = load i32, ptr @test_count, align 4, !tbaa !5
  %1071 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1069, ptr noundef @.str.19, i32 noundef %1070) #9
  br label %1075

1072:                                             ; preds = %1065
  %1073 = load ptr, ptr @stdout, align 8, !tbaa !9
  %1074 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1073, ptr noundef @.str.20) #9
  br label %1075

1075:                                             ; preds = %1072, %1068
  br label %1087

1076:                                             ; preds = %1060, %1057
  %1077 = load i32, ptr @test_count, align 4, !tbaa !5
  %1078 = icmp ne i32 %1077, 0
  br i1 %1078, label %1079, label %1083

1079:                                             ; preds = %1076
  %1080 = load ptr, ptr @stdout, align 8, !tbaa !9
  %1081 = load i32, ptr @test_count, align 4, !tbaa !5
  %1082 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1080, ptr noundef @.str.21, i32 noundef %1081) #9
  br label %1086

1083:                                             ; preds = %1076
  %1084 = load ptr, ptr @stdout, align 8, !tbaa !9
  %1085 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %1084, ptr noundef @.str.22) #9
  br label %1086

1086:                                             ; preds = %1083, %1079
  br label %1087

1087:                                             ; preds = %1086, %1075
  store i32 0, ptr %3, align 4
  br label %1089

1088:                                             ; No predecessors!
  br label %1089

1089:                                             ; preds = %1088, %1087
  %1090 = load i32, ptr %3, align 4
  ret i32 %1090
}

; 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

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

; 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_io_pair_close(ptr noundef) #2

declare i32 @s2n_io_pair_init(ptr noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #8

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @s2n_fail_without_errno(ptr noundef) #0

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"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 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !6, i64 0}
!19 = !{!"s2n_test_io_pair", !6, i64 0, !6, i64 4}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}


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

%struct.sigaction = type { %union.anon, %struct.__sigset_t, i32, ptr }
%union.anon = type { ptr }
%struct.__sigset_t = type { [16 x i64] }
%struct.s2n_test_io_pair = type { i32, i32 }

@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 [70 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 [31 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [55 x i8], align 1
@__const.main.action = external hidden unnamed_addr constant %struct.sigaction, align 8
@.str.11 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca i8, align 1
  %4 = alloca %struct.s2n_test_io_pair, align 8
  %5 = alloca %struct.sigaction, align 8
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  store i32 0, ptr @test_count, align 4, !tbaa !5
  %9 = load ptr, ptr @stdout, align 8, !tbaa !9
  %10 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1) #9
  %11 = load ptr, ptr @stdout, align 8, !tbaa !9
  %12 = tail call i32 @fflush(ptr noundef %11)
  %13 = tail call i32 @s2n_in_unit_test_set(i1 noundef zeroext true) #9
  %14 = icmp eq i32 %13, -1
  br i1 %14, label %15, label %39

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

22:                                               ; preds = %15
  %23 = load ptr, ptr @stderr, align 8, !tbaa !9
  %24 = tail call i32 @fileno(ptr noundef %23) #9
  %25 = tail call i32 @isatty(i32 noundef %24) #9
  %.not66 = icmp eq i32 %25, 0
  br i1 %.not66, label %26, label %27

26:                                               ; preds = %22, %15
  br label %27

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

39:                                               ; preds = %2
  %40 = load i32, ptr @test_count, align 4, !tbaa !5
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr @test_count, align 4, !tbaa !5
  %42 = tail call i32 @s2n_enable_atexit() #9
  %43 = icmp eq i32 %42, -1
  br i1 %43, label %44, label %68

44:                                               ; preds = %39
  %45 = tail call ptr @__errno_location() #10
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = load ptr, ptr @stderr, align 8, !tbaa !9
  %48 = tail call i32 @s2n_print_stacktrace(ptr noundef %47) #9
  %49 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %50 = trunc nuw i8 %49 to i1
  br i1 %50, label %51, label %55

51:                                               ; preds = %44
  %52 = load ptr, ptr @stderr, align 8, !tbaa !9
  %53 = tail call i32 @fileno(ptr noundef %52) #9
  %54 = tail call i32 @isatty(i32 noundef %53) #9
  %.not65 = icmp eq i32 %54, 0
  br i1 %.not65, label %55, label %56

55:                                               ; preds = %51, %44
  br label %56

56:                                               ; preds = %51, %55
  %.str.5.sink94 = phi ptr [ @.str.5, %55 ], [ @.str.2, %51 ]
  store i32 %46, ptr %45, align 4, !tbaa !5
  %57 = load ptr, ptr @stderr, align 8, !tbaa !9
  %58 = load i32, ptr @test_count, align 4, !tbaa !5
  %59 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = tail call ptr @s2n_strerror(i32 noundef %60, ptr noundef nonnull @.str.4) #9
  %62 = load i32, ptr %59, align 4, !tbaa !5
  %63 = tail call ptr @s2n_strerror_debug(i32 noundef %62, ptr noundef nonnull @.str.4) #9
  %64 = load i32, ptr %45, align 4, !tbaa !5
  %65 = tail call ptr @strerror(i32 noundef %64) #9
  %66 = load i32, ptr %45, align 4, !tbaa !5
  %67 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef nonnull %.str.5.sink94, i32 noundef %58, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 71, ptr noundef %61, ptr noundef %63, ptr noundef %65, i32 noundef %66) #11
  tail call void @exit(i32 noundef 1) #12
  unreachable

68:                                               ; preds = %39
  %69 = tail call i32 @s2n_init() #9
  %70 = icmp eq i32 %69, -1
  br i1 %70, label %71, label %95

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

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

82:                                               ; preds = %78, %71
  br label %83

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

95:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #9
  store i8 0, ptr %3, align 1, !tbaa !15
  %96 = tail call ptr @__errno_location() #10
  br label %97

97:                                               ; preds = %100, %95
  store i32 0, ptr %96, align 4, !tbaa !5
  %98 = call i32 @s2n_test_mocked_interrupt(i8 noundef zeroext 5, ptr noundef nonnull %3)
  %99 = icmp slt i32 %98, 0
  br i1 %99, label %100, label %.critedge

100:                                              ; preds = %97
  %101 = load i32, ptr %96, align 4, !tbaa !5
  %102 = icmp eq i32 %101, 4
  br i1 %102, label %97, label %.critedge.thread, !llvm.loop !16

.critedge.thread:                                 ; preds = %100
  %103 = load i32, ptr @test_count, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr @test_count, align 4, !tbaa !5
  br label %108

.critedge:                                        ; preds = %97
  %105 = load i32, ptr @test_count, align 4, !tbaa !5
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr @test_count, align 4, !tbaa !5
  %107 = icmp eq i32 %98, 123
  br i1 %107, label %131, label %108

108:                                              ; preds = %.critedge.thread, %.critedge
  %109 = load i32, ptr %96, align 4, !tbaa !5
  %110 = load ptr, ptr @stderr, align 8, !tbaa !9
  %111 = call i32 @s2n_print_stacktrace(ptr noundef %110) #9
  %112 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %113 = trunc nuw i8 %112 to i1
  br i1 %113, label %114, label %118

114:                                              ; preds = %108
  %115 = load ptr, ptr @stderr, align 8, !tbaa !9
  %116 = call i32 @fileno(ptr noundef %115) #9
  %117 = call i32 @isatty(i32 noundef %116) #9
  %.not = icmp eq i32 %117, 0
  br i1 %.not, label %118, label %119

118:                                              ; preds = %114, %108
  br label %119

119:                                              ; preds = %114, %118
  %.str.5.sink116 = phi ptr [ @.str.5, %118 ], [ @.str.2, %114 ]
  store i32 %109, ptr %96, align 4, !tbaa !5
  %120 = load ptr, ptr @stderr, align 8, !tbaa !9
  %121 = load i32, ptr @test_count, align 4, !tbaa !5
  %122 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %124 = call ptr @s2n_strerror(i32 noundef %123, ptr noundef nonnull @.str.4) #9
  %125 = load i32, ptr %122, align 4, !tbaa !5
  %126 = call ptr @s2n_strerror_debug(i32 noundef %125, ptr noundef nonnull @.str.4) #9
  %127 = load i32, ptr %96, align 4, !tbaa !5
  %128 = call ptr @strerror(i32 noundef %127) #9
  %129 = load i32, ptr %96, align 4, !tbaa !5
  %130 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull %.str.5.sink116, i32 noundef %121, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 82, ptr noundef %124, ptr noundef %126, ptr noundef %128, i32 noundef %129) #11
  call void @exit(i32 noundef 1) #12
  unreachable

131:                                              ; preds = %.critedge
  %132 = add nsw i32 %105, 2
  store i32 %132, ptr @test_count, align 4, !tbaa !5
  %133 = load i8, ptr %3, align 1, !tbaa !15
  %134 = icmp eq i8 %133, 5
  br i1 %134, label %158, label %135

135:                                              ; preds = %131
  %136 = load i32, ptr %96, align 4, !tbaa !5
  %137 = load ptr, ptr @stderr, align 8, !tbaa !9
  %138 = call i32 @s2n_print_stacktrace(ptr noundef %137) #9
  %139 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %140 = trunc nuw i8 %139 to i1
  br i1 %140, label %141, label %145

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

145:                                              ; preds = %141, %135
  br label %146

146:                                              ; preds = %141, %145
  %.str.5.sink127 = phi ptr [ @.str.5, %145 ], [ @.str.2, %141 ]
  store i32 %136, ptr %96, align 4, !tbaa !5
  %147 = load ptr, ptr @stderr, align 8, !tbaa !9
  %148 = load i32, ptr @test_count, align 4, !tbaa !5
  %149 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %150 = load i32, ptr %149, align 4, !tbaa !5
  %151 = call ptr @s2n_strerror(i32 noundef %150, ptr noundef nonnull @.str.4) #9
  %152 = load i32, ptr %149, align 4, !tbaa !5
  %153 = call ptr @s2n_strerror_debug(i32 noundef %152, ptr noundef nonnull @.str.4) #9
  %154 = load i32, ptr %96, align 4, !tbaa !5
  %155 = call ptr @strerror(i32 noundef %154) #9
  %156 = load i32, ptr %96, align 4, !tbaa !5
  %157 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %147, ptr noundef nonnull %.str.5.sink127, i32 noundef %148, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i32 noundef 83, ptr noundef %151, ptr noundef %153, ptr noundef %155, i32 noundef %156) #11
  call void @exit(i32 noundef 1) #12
  unreachable

158:                                              ; preds = %131
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  store i64 0, ptr %4, align 8
  %159 = add nsw i32 %105, 3
  store i32 %159, ptr @test_count, align 4, !tbaa !5
  %160 = call i32 @s2n_io_pair_init(ptr noundef nonnull %4) #9
  %161 = icmp eq i32 %160, -1
  br i1 %161, label %162, label %185

162:                                              ; preds = %158
  %163 = load i32, ptr %96, align 4, !tbaa !5
  %164 = load ptr, ptr @stderr, align 8, !tbaa !9
  %165 = call i32 @s2n_print_stacktrace(ptr noundef %164) #9
  %166 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %167 = trunc nuw i8 %166 to i1
  br i1 %167, label %168, label %172

168:                                              ; preds = %162
  %169 = load ptr, ptr @stderr, align 8, !tbaa !9
  %170 = call i32 @fileno(ptr noundef %169) #9
  %171 = call i32 @isatty(i32 noundef %170) #9
  %.not63 = icmp eq i32 %171, 0
  br i1 %.not63, label %172, label %173

172:                                              ; preds = %168, %162
  br label %173

173:                                              ; preds = %168, %172
  %.str.5.sink138 = phi ptr [ @.str.5, %172 ], [ @.str.2, %168 ]
  store i32 %163, ptr %96, align 4, !tbaa !5
  %174 = load ptr, ptr @stderr, align 8, !tbaa !9
  %175 = load i32, ptr @test_count, align 4, !tbaa !5
  %176 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %178 = call ptr @s2n_strerror(i32 noundef %177, ptr noundef nonnull @.str.4) #9
  %179 = load i32, ptr %176, align 4, !tbaa !5
  %180 = call ptr @s2n_strerror_debug(i32 noundef %179, ptr noundef nonnull @.str.4) #9
  %181 = load i32, ptr %96, align 4, !tbaa !5
  %182 = call ptr @strerror(i32 noundef %181) #9
  %183 = load i32, ptr %96, align 4, !tbaa !5
  %184 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %174, ptr noundef nonnull %.str.5.sink138, i32 noundef %175, ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.1, i32 noundef 89, ptr noundef %178, ptr noundef %180, ptr noundef %182, i32 noundef %183) #11
  call void @exit(i32 noundef 1) #12
  unreachable

185:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 152, ptr nonnull %5) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(152) %5, ptr noundef nonnull align 8 dereferenceable(152) @__const.main.action, i64 152, i1 false)
  %186 = call i32 @sigaction(i32 noundef 10, ptr noundef nonnull %5, ptr noundef null) #9
  %187 = load ptr, ptr @stdout, align 8, !tbaa !9
  %188 = call i32 @fflush(ptr noundef %187)
  %189 = call i32 @fork() #9
  %190 = icmp eq i32 %189, 0
  br i1 %190, label %191, label %282

191:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #9
  store i8 0, ptr %6, align 1, !tbaa !15
  br label %192

192:                                              ; preds = %196, %191
  store i32 0, ptr %96, align 4, !tbaa !5
  %193 = load i32, ptr %4, align 8, !tbaa !18
  %194 = call i32 @s2n_test_real_interrupt(i32 noundef %193, i8 noundef zeroext 5, ptr noundef nonnull %6)
  %195 = icmp slt i32 %194, 0
  br i1 %195, label %196, label %.critedge2

196:                                              ; preds = %192
  %197 = load i32, ptr %96, align 4, !tbaa !5
  %198 = icmp eq i32 %197, 4
  br i1 %198, label %192, label %.critedge2.thread, !llvm.loop !20

.critedge2.thread:                                ; preds = %196
  %199 = load i32, ptr @test_count, align 4, !tbaa !5
  %200 = add nsw i32 %199, 1
  store i32 %200, ptr @test_count, align 4, !tbaa !5
  br label %204

.critedge2:                                       ; preds = %192
  %201 = load i32, ptr @test_count, align 4, !tbaa !5
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr @test_count, align 4, !tbaa !5
  %203 = icmp eq i32 %194, 123
  br i1 %203, label %227, label %204

204:                                              ; preds = %.critedge2.thread, %.critedge2
  %205 = load i32, ptr %96, align 4, !tbaa !5
  %206 = load ptr, ptr @stderr, align 8, !tbaa !9
  %207 = call i32 @s2n_print_stacktrace(ptr noundef %206) #9
  %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 %214

210:                                              ; preds = %204
  %211 = load ptr, ptr @stderr, align 8, !tbaa !9
  %212 = call i32 @fileno(ptr noundef %211) #9
  %213 = call i32 @isatty(i32 noundef %212) #9
  %.not60 = icmp eq i32 %213, 0
  br i1 %.not60, label %214, label %215

214:                                              ; preds = %210, %204
  br label %215

215:                                              ; preds = %210, %214
  %.str.5.sink149 = phi ptr [ @.str.5, %214 ], [ @.str.2, %210 ]
  store i32 %205, ptr %96, align 4, !tbaa !5
  %216 = load ptr, ptr @stderr, align 8, !tbaa !9
  %217 = load i32, ptr @test_count, align 4, !tbaa !5
  %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(i32 noundef %219, ptr noundef nonnull @.str.4) #9
  %221 = load i32, ptr %218, align 4, !tbaa !5
  %222 = call ptr @s2n_strerror_debug(i32 noundef %221, ptr noundef nonnull @.str.4) #9
  %223 = load i32, ptr %96, align 4, !tbaa !5
  %224 = call ptr @strerror(i32 noundef %223) #9
  %225 = load i32, ptr %96, align 4, !tbaa !5
  %226 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %216, ptr noundef nonnull %.str.5.sink149, i32 noundef %217, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.1, i32 noundef 103, ptr noundef %220, ptr noundef %222, ptr noundef %224, i32 noundef %225) #11
  call void @exit(i32 noundef 1) #12
  unreachable

227:                                              ; preds = %.critedge2
  %228 = add nsw i32 %201, 2
  store i32 %228, ptr @test_count, align 4, !tbaa !5
  %229 = load i8, ptr %6, align 1, !tbaa !15
  %230 = icmp eq i8 %229, 5
  br i1 %230, label %254, label %231

231:                                              ; preds = %227
  %232 = load i32, ptr %96, align 4, !tbaa !5
  %233 = load ptr, ptr @stderr, align 8, !tbaa !9
  %234 = call i32 @s2n_print_stacktrace(ptr noundef %233) #9
  %235 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %236 = trunc nuw i8 %235 to i1
  br i1 %236, label %237, label %241

237:                                              ; preds = %231
  %238 = load ptr, ptr @stderr, align 8, !tbaa !9
  %239 = call i32 @fileno(ptr noundef %238) #9
  %240 = call i32 @isatty(i32 noundef %239) #9
  %.not61 = icmp eq i32 %240, 0
  br i1 %.not61, label %241, label %242

241:                                              ; preds = %237, %231
  br label %242

242:                                              ; preds = %237, %241
  %.str.5.sink160 = phi ptr [ @.str.5, %241 ], [ @.str.2, %237 ]
  store i32 %232, ptr %96, align 4, !tbaa !5
  %243 = load ptr, ptr @stderr, align 8, !tbaa !9
  %244 = load i32, ptr @test_count, align 4, !tbaa !5
  %245 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %246 = load i32, ptr %245, align 4, !tbaa !5
  %247 = call ptr @s2n_strerror(i32 noundef %246, ptr noundef nonnull @.str.4) #9
  %248 = load i32, ptr %245, align 4, !tbaa !5
  %249 = call ptr @s2n_strerror_debug(i32 noundef %248, ptr noundef nonnull @.str.4) #9
  %250 = load i32, ptr %96, align 4, !tbaa !5
  %251 = call ptr @strerror(i32 noundef %250) #9
  %252 = load i32, ptr %96, align 4, !tbaa !5
  %253 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %243, ptr noundef nonnull %.str.5.sink160, i32 noundef %244, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i32 noundef 104, ptr noundef %247, ptr noundef %249, ptr noundef %251, i32 noundef %252) #11
  call void @exit(i32 noundef 1) #12
  unreachable

254:                                              ; preds = %227
  %255 = add nsw i32 %201, 3
  store i32 %255, ptr @test_count, align 4, !tbaa !5
  %256 = call i32 @s2n_io_pair_close(ptr noundef nonnull %4) #9
  %257 = icmp eq i32 %256, -1
  br i1 %257, label %258, label %281

258:                                              ; preds = %254
  %259 = load i32, ptr %96, align 4, !tbaa !5
  %260 = load ptr, ptr @stderr, align 8, !tbaa !9
  %261 = call i32 @s2n_print_stacktrace(ptr noundef %260) #9
  %262 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %263 = trunc nuw i8 %262 to i1
  br i1 %263, label %264, label %268

264:                                              ; preds = %258
  %265 = load ptr, ptr @stderr, align 8, !tbaa !9
  %266 = call i32 @fileno(ptr noundef %265) #9
  %267 = call i32 @isatty(i32 noundef %266) #9
  %.not62 = icmp eq i32 %267, 0
  br i1 %.not62, label %268, label %269

268:                                              ; preds = %264, %258
  br label %269

269:                                              ; preds = %264, %268
  %.str.5.sink171 = phi ptr [ @.str.5, %268 ], [ @.str.2, %264 ]
  store i32 %259, ptr %96, align 4, !tbaa !5
  %270 = load ptr, ptr @stderr, align 8, !tbaa !9
  %271 = load i32, ptr @test_count, align 4, !tbaa !5
  %272 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %273 = load i32, ptr %272, align 4, !tbaa !5
  %274 = call ptr @s2n_strerror(i32 noundef %273, ptr noundef nonnull @.str.4) #9
  %275 = load i32, ptr %272, align 4, !tbaa !5
  %276 = call ptr @s2n_strerror_debug(i32 noundef %275, ptr noundef nonnull @.str.4) #9
  %277 = load i32, ptr %96, align 4, !tbaa !5
  %278 = call ptr @strerror(i32 noundef %277) #9
  %279 = load i32, ptr %96, align 4, !tbaa !5
  %280 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %270, ptr noundef nonnull %.str.5.sink171, i32 noundef %271, ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.1, i32 noundef 106, ptr noundef %274, ptr noundef %276, ptr noundef %278, i32 noundef %279) #11
  call void @exit(i32 noundef 1) #12
  unreachable

281:                                              ; preds = %254
  call void @exit(i32 noundef 0) #12
  unreachable

282:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #9
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %283

283:                                              ; preds = %288, %282
  %284 = call i32 @waitpid(i32 noundef %189, ptr noundef nonnull %7, i32 noundef 1) #9
  %285 = icmp eq i32 %284, 0
  %286 = load i32, ptr @test_count, align 4, !tbaa !5
  %287 = add nsw i32 %286, 1
  store i32 %287, ptr @test_count, align 4, !tbaa !5
  br i1 %285, label %288, label %314

288:                                              ; preds = %283
  %289 = call i32 @kill(i32 noundef %189, i32 noundef 10) #9
  %290 = icmp eq i32 %289, 0
  br i1 %290, label %283, label %291, !llvm.loop !21

291:                                              ; preds = %288
  %292 = load i32, ptr %96, align 4, !tbaa !5
  %293 = load ptr, ptr @stderr, align 8, !tbaa !9
  %294 = call i32 @s2n_print_stacktrace(ptr noundef %293) #9
  %295 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %296 = trunc nuw i8 %295 to i1
  br i1 %296, label %297, label %301

297:                                              ; preds = %291
  %298 = load ptr, ptr @stderr, align 8, !tbaa !9
  %299 = call i32 @fileno(ptr noundef %298) #9
  %300 = call i32 @isatty(i32 noundef %299) #9
  %.not59 = icmp eq i32 %300, 0
  br i1 %.not59, label %301, label %302

301:                                              ; preds = %297, %291
  br label %302

302:                                              ; preds = %297, %301
  %.str.5.sink182 = phi ptr [ @.str.5, %301 ], [ @.str.2, %297 ]
  store i32 %292, ptr %96, align 4, !tbaa !5
  %303 = load ptr, ptr @stderr, align 8, !tbaa !9
  %304 = load i32, ptr @test_count, align 4, !tbaa !5
  %305 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %306 = load i32, ptr %305, align 4, !tbaa !5
  %307 = call ptr @s2n_strerror(i32 noundef %306, ptr noundef nonnull @.str.4) #9
  %308 = load i32, ptr %305, align 4, !tbaa !5
  %309 = call ptr @s2n_strerror_debug(i32 noundef %308, ptr noundef nonnull @.str.4) #9
  %310 = load i32, ptr %96, align 4, !tbaa !5
  %311 = call ptr @strerror(i32 noundef %310) #9
  %312 = load i32, ptr %96, align 4, !tbaa !5
  %313 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %303, ptr noundef nonnull %.str.5.sink182, i32 noundef %304, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.1, i32 noundef 113, ptr noundef %307, ptr noundef %309, ptr noundef %311, i32 noundef %312) #11
  call void @exit(i32 noundef 1) #12
  unreachable

314:                                              ; preds = %283
  %315 = load i32, ptr %7, align 4, !tbaa !5
  %316 = icmp eq i32 %315, 0
  br i1 %316, label %340, label %317

317:                                              ; preds = %314
  %318 = load i32, ptr %96, align 4, !tbaa !5
  %319 = load ptr, ptr @stderr, align 8, !tbaa !9
  %320 = call i32 @s2n_print_stacktrace(ptr noundef %319) #9
  %321 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %322 = trunc nuw i8 %321 to i1
  br i1 %322, label %323, label %327

323:                                              ; preds = %317
  %324 = load ptr, ptr @stderr, align 8, !tbaa !9
  %325 = call i32 @fileno(ptr noundef %324) #9
  %326 = call i32 @isatty(i32 noundef %325) #9
  %.not50 = icmp eq i32 %326, 0
  br i1 %.not50, label %327, label %328

327:                                              ; preds = %323, %317
  br label %328

328:                                              ; preds = %323, %327
  %.str.5.sink193 = phi ptr [ @.str.5, %327 ], [ @.str.2, %323 ]
  store i32 %318, ptr %96, align 4, !tbaa !5
  %329 = load ptr, ptr @stderr, align 8, !tbaa !9
  %330 = load i32, ptr @test_count, align 4, !tbaa !5
  %331 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %332 = load i32, ptr %331, align 4, !tbaa !5
  %333 = call ptr @s2n_strerror(i32 noundef %332, ptr noundef nonnull @.str.4) #9
  %334 = load i32, ptr %331, align 4, !tbaa !5
  %335 = call ptr @s2n_strerror_debug(i32 noundef %334, ptr noundef nonnull @.str.4) #9
  %336 = load i32, ptr %96, align 4, !tbaa !5
  %337 = call ptr @strerror(i32 noundef %336) #9
  %338 = load i32, ptr %96, align 4, !tbaa !5
  %339 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %329, ptr noundef nonnull %.str.5.sink193, i32 noundef %330, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.1, i32 noundef 115, ptr noundef %333, ptr noundef %335, ptr noundef %337, i32 noundef %338) #11
  call void @exit(i32 noundef 1) #12
  unreachable

340:                                              ; preds = %314
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 152, ptr nonnull %5) #9
  %341 = call i32 @s2n_io_pair_close(ptr noundef nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #9
  store i8 0, ptr %8, align 1, !tbaa !15
  br label %342

342:                                              ; preds = %347, %340
  store i32 0, ptr %96, align 4, !tbaa !5
  %343 = call i32 @s2n_fail_without_errno(ptr noundef nonnull %8)
  %344 = icmp slt i32 %343, 0
  br i1 %344, label %347, label %.critedge4.thread

.critedge4.thread:                                ; preds = %342
  %345 = load i32, ptr @test_count, align 4, !tbaa !5
  %346 = add nsw i32 %345, 1
  store i32 %346, ptr @test_count, align 4, !tbaa !5
  br label %353

347:                                              ; preds = %342
  %348 = load i32, ptr %96, align 4, !tbaa !5
  %349 = icmp eq i32 %348, 4
  br i1 %349, label %342, label %.critedge4, !llvm.loop !22

.critedge4:                                       ; preds = %347
  %350 = load i32, ptr @test_count, align 4, !tbaa !5
  %351 = add nsw i32 %350, 1
  store i32 %351, ptr @test_count, align 4, !tbaa !5
  %352 = icmp eq i32 %343, -1
  br i1 %352, label %376, label %353

353:                                              ; preds = %.critedge4.thread, %.critedge4
  %354 = load i32, ptr %96, align 4, !tbaa !5
  %355 = load ptr, ptr @stderr, align 8, !tbaa !9
  %356 = call i32 @s2n_print_stacktrace(ptr noundef %355) #9
  %357 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %358 = trunc nuw i8 %357 to i1
  br i1 %358, label %359, label %363

359:                                              ; preds = %353
  %360 = load ptr, ptr @stderr, align 8, !tbaa !9
  %361 = call i32 @fileno(ptr noundef %360) #9
  %362 = call i32 @isatty(i32 noundef %361) #9
  %.not51 = icmp eq i32 %362, 0
  br i1 %.not51, label %363, label %364

363:                                              ; preds = %359, %353
  br label %364

364:                                              ; preds = %359, %363
  %.str.5.sink204 = phi ptr [ @.str.5, %363 ], [ @.str.2, %359 ]
  store i32 %354, ptr %96, align 4, !tbaa !5
  %365 = load ptr, ptr @stderr, align 8, !tbaa !9
  %366 = load i32, ptr @test_count, align 4, !tbaa !5
  %367 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %368 = load i32, ptr %367, align 4, !tbaa !5
  %369 = call ptr @s2n_strerror(i32 noundef %368, ptr noundef nonnull @.str.4) #9
  %370 = load i32, ptr %367, align 4, !tbaa !5
  %371 = call ptr @s2n_strerror_debug(i32 noundef %370, ptr noundef nonnull @.str.4) #9
  %372 = load i32, ptr %96, align 4, !tbaa !5
  %373 = call ptr @strerror(i32 noundef %372) #9
  %374 = load i32, ptr %96, align 4, !tbaa !5
  %375 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %365, ptr noundef nonnull %.str.5.sink204, i32 noundef %366, ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.1, i32 noundef 126, ptr noundef %369, ptr noundef %371, ptr noundef %373, i32 noundef %374) #11
  call void @exit(i32 noundef 1) #12
  unreachable

376:                                              ; preds = %.critedge4
  %377 = add nsw i32 %350, 2
  store i32 %377, ptr @test_count, align 4, !tbaa !5
  %378 = load i8, ptr %8, align 1, !tbaa !15
  %379 = icmp eq i8 %378, 1
  br i1 %379, label %403, label %380

380:                                              ; preds = %376
  %381 = load i32, ptr %96, align 4, !tbaa !5
  %382 = load ptr, ptr @stderr, align 8, !tbaa !9
  %383 = call i32 @s2n_print_stacktrace(ptr noundef %382) #9
  %384 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %385 = trunc nuw i8 %384 to i1
  br i1 %385, label %386, label %390

386:                                              ; preds = %380
  %387 = load ptr, ptr @stderr, align 8, !tbaa !9
  %388 = call i32 @fileno(ptr noundef %387) #9
  %389 = call i32 @isatty(i32 noundef %388) #9
  %.not52 = icmp eq i32 %389, 0
  br i1 %.not52, label %390, label %391

390:                                              ; preds = %386, %380
  br label %391

391:                                              ; preds = %386, %390
  %.str.5.sink215 = phi ptr [ @.str.5, %390 ], [ @.str.2, %386 ]
  store i32 %381, ptr %96, 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 nonnull @.str.4) #9
  %397 = load i32, ptr %394, align 4, !tbaa !5
  %398 = call ptr @s2n_strerror_debug(i32 noundef %397, ptr noundef nonnull @.str.4) #9
  %399 = load i32, ptr %96, align 4, !tbaa !5
  %400 = call ptr @strerror(i32 noundef %399) #9
  %401 = load i32, ptr %96, align 4, !tbaa !5
  %402 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %392, ptr noundef nonnull %.str.5.sink215, i32 noundef %393, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.1, i32 noundef 127, ptr noundef %396, ptr noundef %398, ptr noundef %400, i32 noundef %401) #11
  call void @exit(i32 noundef 1) #12
  unreachable

403:                                              ; preds = %376
  %404 = add nsw i32 %350, 3
  store i32 %404, ptr @test_count, align 4, !tbaa !5
  %405 = load i32, ptr %96, align 4, !tbaa !5
  %406 = icmp eq i32 %405, 0
  br i1 %406, label %429, label %407

407:                                              ; preds = %403
  %408 = load ptr, ptr @stderr, align 8, !tbaa !9
  %409 = call i32 @s2n_print_stacktrace(ptr noundef %408) #9
  %410 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %411 = trunc nuw i8 %410 to i1
  br i1 %411, label %412, label %416

412:                                              ; preds = %407
  %413 = load ptr, ptr @stderr, align 8, !tbaa !9
  %414 = call i32 @fileno(ptr noundef %413) #9
  %415 = call i32 @isatty(i32 noundef %414) #9
  %.not53 = icmp eq i32 %415, 0
  br i1 %.not53, label %416, label %417

416:                                              ; preds = %412, %407
  br label %417

417:                                              ; preds = %412, %416
  %.str.5.sink226 = phi ptr [ @.str.5, %416 ], [ @.str.2, %412 ]
  store i32 %405, ptr %96, align 4, !tbaa !5
  %418 = load ptr, ptr @stderr, align 8, !tbaa !9
  %419 = load i32, ptr @test_count, align 4, !tbaa !5
  %420 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %421 = load i32, ptr %420, align 4, !tbaa !5
  %422 = call ptr @s2n_strerror(i32 noundef %421, ptr noundef nonnull @.str.4) #9
  %423 = load i32, ptr %420, align 4, !tbaa !5
  %424 = call ptr @s2n_strerror_debug(i32 noundef %423, ptr noundef nonnull @.str.4) #9
  %425 = load i32, ptr %96, align 4, !tbaa !5
  %426 = call ptr @strerror(i32 noundef %425) #9
  %427 = load i32, ptr %96, align 4, !tbaa !5
  %428 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %418, ptr noundef nonnull %.str.5.sink226, i32 noundef %419, ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.1, i32 noundef 128, ptr noundef %422, ptr noundef %424, ptr noundef %426, i32 noundef %427) #11
  call void @exit(i32 noundef 1) #12
  unreachable

429:                                              ; preds = %403
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #9
  %430 = call i32 @s2n_cleanup() #9
  %431 = icmp eq i32 %430, -1
  br i1 %431, label %432, label %455

432:                                              ; preds = %429
  %433 = load i32, ptr %96, align 4, !tbaa !5
  %434 = load ptr, ptr @stderr, align 8, !tbaa !9
  %435 = call i32 @s2n_print_stacktrace(ptr noundef %434) #9
  %436 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %437 = trunc nuw i8 %436 to i1
  br i1 %437, label %438, label %442

438:                                              ; preds = %432
  %439 = load ptr, ptr @stderr, align 8, !tbaa !9
  %440 = call i32 @fileno(ptr noundef %439) #9
  %441 = call i32 @isatty(i32 noundef %440) #9
  %.not58 = icmp eq i32 %441, 0
  br i1 %.not58, label %442, label %443

442:                                              ; preds = %438, %432
  br label %443

443:                                              ; preds = %438, %442
  %.str.5.sink237 = phi ptr [ @.str.5, %442 ], [ @.str.2, %438 ]
  store i32 %433, ptr %96, align 4, !tbaa !5
  %444 = load ptr, ptr @stderr, align 8, !tbaa !9
  %445 = load i32, ptr @test_count, align 4, !tbaa !5
  %446 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %447 = load i32, ptr %446, align 4, !tbaa !5
  %448 = call ptr @s2n_strerror(i32 noundef %447, ptr noundef nonnull @.str.4) #9
  %449 = load i32, ptr %446, align 4, !tbaa !5
  %450 = call ptr @s2n_strerror_debug(i32 noundef %449, ptr noundef nonnull @.str.4) #9
  %451 = load i32, ptr %96, align 4, !tbaa !5
  %452 = call ptr @strerror(i32 noundef %451) #9
  %453 = load i32, ptr %96, align 4, !tbaa !5
  %454 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %444, ptr noundef nonnull %.str.5.sink237, i32 noundef %445, ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.1, i32 noundef 132, ptr noundef %448, ptr noundef %450, ptr noundef %452, i32 noundef %453) #11
  call void @exit(i32 noundef 1) #12
  unreachable

455:                                              ; preds = %429
  %456 = call i32 @s2n_in_unit_test_set(i1 noundef zeroext false) #9
  %457 = icmp eq i32 %456, -1
  br i1 %457, label %458, label %481

458:                                              ; preds = %455
  %459 = load i32, ptr %96, align 4, !tbaa !5
  %460 = load ptr, ptr @stderr, align 8, !tbaa !9
  %461 = call i32 @s2n_print_stacktrace(ptr noundef %460) #9
  %462 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %463 = trunc nuw i8 %462 to i1
  br i1 %463, label %464, label %468

464:                                              ; preds = %458
  %465 = load ptr, ptr @stderr, align 8, !tbaa !9
  %466 = call i32 @fileno(ptr noundef %465) #9
  %467 = call i32 @isatty(i32 noundef %466) #9
  %.not57 = icmp eq i32 %467, 0
  br i1 %.not57, label %468, label %469

468:                                              ; preds = %464, %458
  br label %469

469:                                              ; preds = %464, %468
  %.str.5.sink248 = phi ptr [ @.str.5, %468 ], [ @.str.2, %464 ]
  store i32 %459, ptr %96, align 4, !tbaa !5
  %470 = load ptr, ptr @stderr, align 8, !tbaa !9
  %471 = load i32, ptr @test_count, align 4, !tbaa !5
  %472 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %473 = load i32, ptr %472, align 4, !tbaa !5
  %474 = call ptr @s2n_strerror(i32 noundef %473, ptr noundef nonnull @.str.4) #9
  %475 = load i32, ptr %472, align 4, !tbaa !5
  %476 = call ptr @s2n_strerror_debug(i32 noundef %475, ptr noundef nonnull @.str.4) #9
  %477 = load i32, ptr %96, align 4, !tbaa !5
  %478 = call ptr @strerror(i32 noundef %477) #9
  %479 = load i32, ptr %96, align 4, !tbaa !5
  %480 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %470, ptr noundef nonnull %.str.5.sink248, i32 noundef %471, ptr noundef nonnull @.str.18, ptr noundef nonnull @.str.1, i32 noundef 132, ptr noundef %474, ptr noundef %476, ptr noundef %478, i32 noundef %479) #11
  call void @exit(i32 noundef 1) #12
  unreachable

481:                                              ; preds = %455
  %482 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %483 = trunc nuw i8 %482 to i1
  br i1 %483, label %484, label %495

484:                                              ; preds = %481
  %485 = load ptr, ptr @stdout, align 8, !tbaa !9
  %486 = call i32 @fileno(ptr noundef %485) #9
  %487 = call i32 @isatty(i32 noundef %486) #9
  %.not54 = icmp eq i32 %487, 0
  br i1 %.not54, label %495, label %488

488:                                              ; preds = %484
  %489 = load i32, ptr @test_count, align 4, !tbaa !5
  %.not56 = icmp eq i32 %489, 0
  %490 = load ptr, ptr @stdout, align 8, !tbaa !9
  br i1 %.not56, label %493, label %491

491:                                              ; preds = %488
  %492 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %490, ptr noundef nonnull @.str.19, i32 noundef %489) #9
  br label %502

493:                                              ; preds = %488
  %494 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %490, ptr noundef nonnull @.str.20) #9
  br label %502

495:                                              ; preds = %484, %481
  %496 = load i32, ptr @test_count, align 4, !tbaa !5
  %.not55 = icmp eq i32 %496, 0
  %497 = load ptr, ptr @stdout, align 8, !tbaa !9
  br i1 %.not55, label %500, label %498

498:                                              ; preds = %495
  %499 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %497, ptr noundef nonnull @.str.21, i32 noundef %496) #9
  br label %502

500:                                              ; preds = %495
  %501 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %497, ptr noundef nonnull @.str.22) #9
  br label %502

502:                                              ; preds = %498, %500, %491, %493
  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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #3

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

declare i32 @s2n_print_stacktrace(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nofree nounwind
declare noundef i32 @fileno(ptr nocapture noundef) local_unnamed_addr #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) #6

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

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

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

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

declare i32 @s2n_enable_atexit() local_unnamed_addr #2

declare i32 @s2n_init() local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @s2n_test_mocked_interrupt(i8 noundef zeroext, ptr noundef) local_unnamed_addr #0

declare i32 @s2n_io_pair_close(ptr noundef) local_unnamed_addr #2

declare i32 @s2n_io_pair_init(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #8

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

; Function Attrs: nofree nounwind
declare i32 @fork() local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden i32 @s2n_test_real_interrupt(i32 noundef, i8 noundef zeroext, ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @s2n_fail_without_errno(ptr noundef) local_unnamed_addr #0

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nofree nosync nounwind willreturn memory(none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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: readwrite) }
attributes #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(none) }
attributes #11 = { cold nounwind }
attributes #12 = { 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 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !6, i64 0}
!19 = !{!"s2n_test_io_pair", !6, i64 0, !6, i64 4}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass