; LLVM IR from aws/s2n-tls :: tests/unit (s2n_fork_generation_number_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.fgn_test_case = type { ptr, ptr, i32 }

@s2n_use_color_in_output = external dso_local global i8, align 1
@fgn_test_cases = external dso_local global [4 x %struct.fgn_test_case], align 16
@test_count = external dso_local global i32, align 4
@stdout = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [90 x i8], align 1
@stderr = external global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [52 x i8], align 1
@s2n_errno = external thread_local global i32, align 4
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.17 = 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 [4 x i32], align 16
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = 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 %14

14:                                               ; preds = %2
  store i32 0, ptr @test_count, align 4, !tbaa !5
  %15 = load ptr, ptr @stdout, align 8, !tbaa !9
  %16 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef @.str.4, ptr noundef @.str.5) #8
  %17 = load ptr, ptr @stdout, align 8, !tbaa !9
  %18 = call i32 @fflush(ptr noundef %17)
  br label %19

19:                                               ; preds = %14
  %20 = call i32 @s2n_in_unit_test_set(i1 noundef zeroext true)
  %21 = icmp eq i32 %20, -1
  br i1 %21, label %22, label %73

22:                                               ; preds = %19
  br label %23

23:                                               ; preds = %22
  br label %24

24:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  %25 = call ptr @__errno_location() #9
  %26 = load i32, ptr %25, align 4, !tbaa !5
  store i32 %26, ptr %6, align 4, !tbaa !5
  %27 = load ptr, ptr @stderr, align 8, !tbaa !9
  %28 = call i32 @s2n_print_stacktrace(ptr noundef %27)
  %29 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %30 = trunc i8 %29 to i1
  br i1 %30, label %31, label %53

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

36:                                               ; preds = %31
  %37 = load i32, ptr %6, align 4, !tbaa !5
  %38 = call ptr @__errno_location() #9
  store i32 %37, ptr %38, align 4, !tbaa !5
  %39 = load ptr, ptr @stderr, align 8, !tbaa !9
  %40 = load i32, ptr @test_count, align 4, !tbaa !5
  %41 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = call ptr @s2n_strerror(i32 noundef %42, ptr noundef @.str.8)
  %44 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = call ptr @s2n_strerror_debug(i32 noundef %45, ptr noundef @.str.8)
  %47 = call ptr @__errno_location() #9
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = call ptr @strerror(i32 noundef %48) #8
  %50 = call ptr @__errno_location() #9
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef @.str.6, i32 noundef %40, ptr noundef @.str.7, ptr noundef @.str.5, i32 noundef 329, ptr noundef %43, ptr noundef %46, ptr noundef %49, i32 noundef %51) #8
  br label %70

53:                                               ; preds = %31, %24
  %54 = load i32, ptr %6, align 4, !tbaa !5
  %55 = call ptr @__errno_location() #9
  store i32 %54, ptr %55, align 4, !tbaa !5
  %56 = load ptr, ptr @stderr, align 8, !tbaa !9
  %57 = load i32, ptr @test_count, align 4, !tbaa !5
  %58 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = call ptr @s2n_strerror(i32 noundef %59, ptr noundef @.str.8)
  %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_debug(i32 noundef %62, ptr noundef @.str.8)
  %64 = call ptr @__errno_location() #9
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = call ptr @strerror(i32 noundef %65) #8
  %67 = call ptr @__errno_location() #9
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef @.str.9, i32 noundef %57, ptr noundef @.str.7, ptr noundef @.str.5, i32 noundef 329, ptr noundef %60, ptr noundef %63, ptr noundef %66, i32 noundef %68) #8
  br label %70

70:                                               ; preds = %53, %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %71

71:                                               ; preds = %70
  call void @exit(i32 noundef 1) #10
  unreachable

72:                                               ; No predecessors!
  br label %73

73:                                               ; preds = %72, %19
  br label %74

74:                                               ; preds = %73
  br label %75

75:                                               ; preds = %74
  %76 = load i32, ptr @test_count, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr @test_count, align 4, !tbaa !5
  %78 = call i32 @s2n_enable_atexit()
  %79 = icmp eq i32 %78, -1
  br i1 %79, label %80, label %131

80:                                               ; preds = %75
  br label %81

81:                                               ; preds = %80
  br label %82

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

89:                                               ; preds = %82
  %90 = load ptr, ptr @stderr, align 8, !tbaa !9
  %91 = call i32 @fileno(ptr noundef %90) #8
  %92 = call i32 @isatty(i32 noundef %91) #8
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %111

94:                                               ; preds = %89
  %95 = load i32, ptr %7, align 4, !tbaa !5
  %96 = call ptr @__errno_location() #9
  store i32 %95, ptr %96, align 4, !tbaa !5
  %97 = load ptr, ptr @stderr, align 8, !tbaa !9
  %98 = load i32, ptr @test_count, align 4, !tbaa !5
  %99 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = call ptr @s2n_strerror(i32 noundef %100, ptr noundef @.str.8)
  %102 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = call ptr @s2n_strerror_debug(i32 noundef %103, ptr noundef @.str.8)
  %105 = call ptr @__errno_location() #9
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %107 = call ptr @strerror(i32 noundef %106) #8
  %108 = call ptr @__errno_location() #9
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef @.str.6, i32 noundef %98, ptr noundef @.str.10, ptr noundef @.str.5, i32 noundef 329, ptr noundef %101, ptr noundef %104, ptr noundef %107, i32 noundef %109) #8
  br label %128

111:                                              ; preds = %89, %82
  %112 = load i32, ptr %7, align 4, !tbaa !5
  %113 = call ptr @__errno_location() #9
  store i32 %112, ptr %113, align 4, !tbaa !5
  %114 = load ptr, ptr @stderr, align 8, !tbaa !9
  %115 = load i32, ptr @test_count, align 4, !tbaa !5
  %116 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %117 = load i32, ptr %116, align 4, !tbaa !5
  %118 = call ptr @s2n_strerror(i32 noundef %117, ptr noundef @.str.8)
  %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_debug(i32 noundef %120, ptr noundef @.str.8)
  %122 = call ptr @__errno_location() #9
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %124 = call ptr @strerror(i32 noundef %123) #8
  %125 = call ptr @__errno_location() #9
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %114, ptr noundef @.str.9, i32 noundef %115, ptr noundef @.str.10, ptr noundef @.str.5, i32 noundef 329, ptr noundef %118, ptr noundef %121, ptr noundef %124, i32 noundef %126) #8
  br label %128

128:                                              ; preds = %111, %94
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %129

129:                                              ; preds = %128
  call void @exit(i32 noundef 1) #10
  unreachable

130:                                              ; No predecessors!
  br label %131

131:                                              ; preds = %130, %75
  br label %132

132:                                              ; preds = %131
  br label %133

133:                                              ; preds = %132
  br label %134

134:                                              ; preds = %133
  %135 = load i32, ptr @test_count, align 4, !tbaa !5
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr @test_count, align 4, !tbaa !5
  br label %137

137:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #8
  call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  store i64 0, ptr %9, align 8, !tbaa !15
  br label %138

138:                                              ; preds = %286, %137
  %139 = load i64, ptr %9, align 8, !tbaa !15
  %140 = icmp ult i64 %139, 4
  br i1 %140, label %142, label %141

141:                                              ; preds = %138
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %289

142:                                              ; preds = %138
  %143 = call i32 @fork() #8
  %144 = load i64, ptr %9, align 8, !tbaa !15
  %145 = getelementptr inbounds [4 x i32], ptr %8, i64 0, i64 %144
  store i32 %143, ptr %145, align 4, !tbaa !5
  br label %146

146:                                              ; preds = %142
  %147 = load i32, ptr @test_count, align 4, !tbaa !5
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr @test_count, align 4, !tbaa !5
  %149 = load i64, ptr %9, align 8, !tbaa !15
  %150 = getelementptr inbounds [4 x i32], ptr %8, i64 0, i64 %149
  %151 = load i32, ptr %150, align 4, !tbaa !5
  %152 = icmp sge i32 %151, 0
  br i1 %152, label %206, label %153

153:                                              ; preds = %146
  br label %154

154:                                              ; preds = %153
  br label %155

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

162:                                              ; preds = %155
  %163 = load ptr, ptr @stderr, align 8, !tbaa !9
  %164 = call i32 @fileno(ptr noundef %163) #8
  %165 = call i32 @isatty(i32 noundef %164) #8
  %166 = icmp ne i32 %165, 0
  br i1 %166, label %167, label %184

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

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

201:                                              ; preds = %184, %167
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %202

202:                                              ; preds = %201
  br label %203

203:                                              ; preds = %202
  call void @exit(i32 noundef 1) #10
  unreachable

204:                                              ; No predecessors!
  br label %205

205:                                              ; preds = %204
  br label %206

206:                                              ; preds = %205, %146
  br label %207

207:                                              ; preds = %206
  br label %208

208:                                              ; preds = %207
  %209 = load i64, ptr %9, align 8, !tbaa !15
  %210 = getelementptr inbounds [4 x i32], ptr %8, i64 0, i64 %209
  %211 = load i32, ptr %210, align 4, !tbaa !5
  %212 = icmp eq i32 %211, 0
  br i1 %212, label %213, label %281

213:                                              ; preds = %208
  br label %214

214:                                              ; preds = %213
  %215 = load i32, ptr @test_count, align 4, !tbaa !5
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr @test_count, align 4, !tbaa !5
  %217 = load i64, ptr %9, align 8, !tbaa !15
  %218 = getelementptr inbounds [4 x %struct.fgn_test_case], ptr @fgn_test_cases, i64 0, i64 %217
  %219 = getelementptr inbounds %struct.fgn_test_case, ptr %218, i32 0, i32 1
  %220 = load ptr, ptr %219, align 8, !tbaa !17
  %221 = load i64, ptr %9, align 8, !tbaa !15
  %222 = getelementptr inbounds [4 x %struct.fgn_test_case], ptr @fgn_test_cases, i64 0, i64 %221
  %223 = call i32 %220(ptr noundef %222)
  %224 = icmp eq i32 %223, 0
  br i1 %224, label %278, label %225

225:                                              ; preds = %214
  br label %226

226:                                              ; preds = %225
  br label %227

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

234:                                              ; preds = %227
  %235 = load ptr, ptr @stderr, align 8, !tbaa !9
  %236 = call i32 @fileno(ptr noundef %235) #8
  %237 = call i32 @isatty(i32 noundef %236) #8
  %238 = icmp ne i32 %237, 0
  br i1 %238, label %239, label %256

239:                                              ; preds = %234
  %240 = load i32, ptr %11, align 4, !tbaa !5
  %241 = call ptr @__errno_location() #9
  store i32 %240, ptr %241, align 4, !tbaa !5
  %242 = load ptr, ptr @stderr, align 8, !tbaa !9
  %243 = load i32, ptr @test_count, align 4, !tbaa !5
  %244 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %245 = load i32, ptr %244, align 4, !tbaa !5
  %246 = call ptr @s2n_strerror(i32 noundef %245, ptr noundef @.str.8)
  %247 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %248 = load i32, ptr %247, align 4, !tbaa !5
  %249 = call ptr @s2n_strerror_debug(i32 noundef %248, ptr noundef @.str.8)
  %250 = call ptr @__errno_location() #9
  %251 = load i32, ptr %250, align 4, !tbaa !5
  %252 = call ptr @strerror(i32 noundef %251) #8
  %253 = call ptr @__errno_location() #9
  %254 = load i32, ptr %253, align 4, !tbaa !5
  %255 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %242, ptr noundef @.str.6, i32 noundef %243, ptr noundef @.str.12, ptr noundef @.str.5, i32 noundef 359, ptr noundef %246, ptr noundef %249, ptr noundef %252, i32 noundef %254) #8
  br label %273

256:                                              ; preds = %234, %227
  %257 = load i32, ptr %11, align 4, !tbaa !5
  %258 = call ptr @__errno_location() #9
  store i32 %257, ptr %258, align 4, !tbaa !5
  %259 = load ptr, ptr @stderr, align 8, !tbaa !9
  %260 = load i32, ptr @test_count, align 4, !tbaa !5
  %261 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %262 = load i32, ptr %261, align 4, !tbaa !5
  %263 = call ptr @s2n_strerror(i32 noundef %262, ptr noundef @.str.8)
  %264 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %265 = load i32, ptr %264, align 4, !tbaa !5
  %266 = call ptr @s2n_strerror_debug(i32 noundef %265, ptr noundef @.str.8)
  %267 = call ptr @__errno_location() #9
  %268 = load i32, ptr %267, align 4, !tbaa !5
  %269 = call ptr @strerror(i32 noundef %268) #8
  %270 = call ptr @__errno_location() #9
  %271 = load i32, ptr %270, align 4, !tbaa !5
  %272 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %259, ptr noundef @.str.9, i32 noundef %260, ptr noundef @.str.12, ptr noundef @.str.5, i32 noundef 359, ptr noundef %263, ptr noundef %266, ptr noundef %269, i32 noundef %271) #8
  br label %273

273:                                              ; preds = %256, %239
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %274

274:                                              ; preds = %273
  br label %275

275:                                              ; preds = %274
  call void @exit(i32 noundef 1) #10
  unreachable

276:                                              ; No predecessors!
  br label %277

277:                                              ; preds = %276
  br label %278

278:                                              ; preds = %277, %214
  br label %279

279:                                              ; preds = %278
  br label %280

280:                                              ; preds = %279
  call void @exit(i32 noundef 0) #10
  unreachable

281:                                              ; preds = %208
  %282 = load i64, ptr %9, align 8, !tbaa !15
  %283 = getelementptr inbounds [4 x i32], ptr %8, i64 0, i64 %282
  %284 = load i32, ptr %283, align 4, !tbaa !5
  call void @s2n_verify_child_exit_status(i32 noundef %284)
  br label %285

285:                                              ; preds = %281
  br label %286

286:                                              ; preds = %285
  %287 = load i64, ptr %9, align 8, !tbaa !15
  %288 = add i64 %287, 1
  store i64 %288, ptr %9, align 8, !tbaa !15
  br label %138, !llvm.loop !19

289:                                              ; preds = %141
  br label %290

290:                                              ; preds = %289
  br label %291

291:                                              ; preds = %290
  %292 = call i32 @s2n_in_unit_test_set(i1 noundef zeroext false)
  %293 = icmp eq i32 %292, -1
  br i1 %293, label %294, label %347

294:                                              ; preds = %291
  br label %295

295:                                              ; preds = %294
  br label %296

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

303:                                              ; preds = %296
  %304 = load ptr, ptr @stderr, align 8, !tbaa !9
  %305 = call i32 @fileno(ptr noundef %304) #8
  %306 = call i32 @isatty(i32 noundef %305) #8
  %307 = icmp ne i32 %306, 0
  br i1 %307, label %308, label %325

308:                                              ; preds = %303
  %309 = load i32, ptr %12, align 4, !tbaa !5
  %310 = call ptr @__errno_location() #9
  store i32 %309, ptr %310, align 4, !tbaa !5
  %311 = load ptr, ptr @stderr, align 8, !tbaa !9
  %312 = load i32, ptr @test_count, align 4, !tbaa !5
  %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(i32 noundef %314, ptr noundef @.str.8)
  %316 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %317 = load i32, ptr %316, align 4, !tbaa !5
  %318 = call ptr @s2n_strerror_debug(i32 noundef %317, ptr noundef @.str.8)
  %319 = call ptr @__errno_location() #9
  %320 = load i32, ptr %319, align 4, !tbaa !5
  %321 = call ptr @strerror(i32 noundef %320) #8
  %322 = call ptr @__errno_location() #9
  %323 = load i32, ptr %322, align 4, !tbaa !5
  %324 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %311, ptr noundef @.str.6, i32 noundef %312, ptr noundef @.str.13, ptr noundef @.str.5, i32 noundef 372, ptr noundef %315, ptr noundef %318, ptr noundef %321, i32 noundef %323) #8
  br label %342

325:                                              ; preds = %303, %296
  %326 = load i32, ptr %12, align 4, !tbaa !5
  %327 = call ptr @__errno_location() #9
  store i32 %326, ptr %327, align 4, !tbaa !5
  %328 = load ptr, ptr @stderr, align 8, !tbaa !9
  %329 = load i32, ptr @test_count, align 4, !tbaa !5
  %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(i32 noundef %331, ptr noundef @.str.8)
  %333 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %334 = load i32, ptr %333, align 4, !tbaa !5
  %335 = call ptr @s2n_strerror_debug(i32 noundef %334, ptr noundef @.str.8)
  %336 = call ptr @__errno_location() #9
  %337 = load i32, ptr %336, align 4, !tbaa !5
  %338 = call ptr @strerror(i32 noundef %337) #8
  %339 = call ptr @__errno_location() #9
  %340 = load i32, ptr %339, align 4, !tbaa !5
  %341 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %328, ptr noundef @.str.9, i32 noundef %329, ptr noundef @.str.13, ptr noundef @.str.5, i32 noundef 372, ptr noundef %332, ptr noundef %335, ptr noundef %338, i32 noundef %340) #8
  br label %342

342:                                              ; preds = %325, %308
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %343

343:                                              ; preds = %342
  br label %344

344:                                              ; preds = %343
  call void @exit(i32 noundef 1) #10
  unreachable

345:                                              ; No predecessors!
  br label %346

346:                                              ; preds = %345
  br label %347

347:                                              ; preds = %346, %291
  br label %348

348:                                              ; preds = %347
  br label %349

349:                                              ; preds = %348
  %350 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %351 = trunc i8 %350 to i1
  br i1 %351, label %352, label %368

352:                                              ; preds = %349
  %353 = load ptr, ptr @stdout, align 8, !tbaa !9
  %354 = call i32 @fileno(ptr noundef %353) #8
  %355 = call i32 @isatty(i32 noundef %354) #8
  %356 = icmp ne i32 %355, 0
  br i1 %356, label %357, label %368

357:                                              ; preds = %352
  %358 = load i32, ptr @test_count, align 4, !tbaa !5
  %359 = icmp ne i32 %358, 0
  br i1 %359, label %360, label %364

360:                                              ; preds = %357
  %361 = load ptr, ptr @stdout, align 8, !tbaa !9
  %362 = load i32, ptr @test_count, align 4, !tbaa !5
  %363 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %361, ptr noundef @.str.14, i32 noundef %362) #8
  br label %367

364:                                              ; preds = %357
  %365 = load ptr, ptr @stdout, align 8, !tbaa !9
  %366 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %365, ptr noundef @.str.15) #8
  br label %367

367:                                              ; preds = %364, %360
  br label %379

368:                                              ; preds = %352, %349
  %369 = load i32, ptr @test_count, align 4, !tbaa !5
  %370 = icmp ne i32 %369, 0
  br i1 %370, label %371, label %375

371:                                              ; preds = %368
  %372 = load ptr, ptr @stdout, align 8, !tbaa !9
  %373 = load i32, ptr @test_count, align 4, !tbaa !5
  %374 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %372, ptr noundef @.str.16, i32 noundef %373) #8
  br label %378

375:                                              ; preds = %368
  %376 = load ptr, ptr @stdout, align 8, !tbaa !9
  %377 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %376, ptr noundef @.str.17) #8
  br label %378

378:                                              ; preds = %375, %371
  br label %379

379:                                              ; preds = %378, %367
  store i32 0, ptr %3, align 4
  store i32 1, ptr %13, align 4
  br label %382

380:                                              ; No predecessors!
  br label %381

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

382:                                              ; preds = %381, %379
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  %383 = load i32, ptr %13, align 4
  switch i32 %383, label %386 [
    i32 0, label %384
    i32 1, label %384
  ]

384:                                              ; preds = %382, %382
  %385 = load i32, ptr %3, align 4
  ret i32 %385

386:                                              ; preds = %382
  unreachable
}

; 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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @s2n_verify_child_exit_status(i32 noundef) #0

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 = { nounwind }
attributes #9 = { nounwind willreturn memory(none) }
attributes #10 = { noreturn nounwind }

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

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


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

%struct.fgn_test_case = type { ptr, ptr, i32 }

@s2n_use_color_in_output = external dso_local local_unnamed_addr global i8, align 1
@fgn_test_cases = external dso_local global [4 x %struct.fgn_test_case], align 16
@test_count = external dso_local local_unnamed_addr global i32, align 4
@stdout = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [90 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [52 x i8], align 1
@s2n_errno = external thread_local local_unnamed_addr global i32, align 4
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.17 = 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 {
  store i32 0, ptr @test_count, align 4, !tbaa !5
  %3 = load ptr, ptr @stdout, align 8, !tbaa !9
  %4 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5) #7
  %5 = load ptr, ptr @stdout, align 8, !tbaa !9
  %6 = tail call i32 @fflush(ptr noundef %5)
  %7 = tail call i32 @s2n_in_unit_test_set(i1 noundef zeroext true) #7
  %8 = icmp eq i32 %7, -1
  br i1 %8, label %9, label %33

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

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

20:                                               ; preds = %16, %9
  br label %21

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

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

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

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

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

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

62:                                               ; preds = %33
  %63 = load i32, ptr @test_count, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr @test_count, align 4, !tbaa !5
  %65 = tail call i32 @fork() #7
  %66 = load i32, ptr @test_count, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr @test_count, align 4, !tbaa !5
  %68 = icmp sgt i32 %65, -1
  br i1 %68, label %93, label %69

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

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

80:                                               ; preds = %76, %69
  br label %81

81:                                               ; preds = %76, %80
  %.str.9.sink58 = phi ptr [ @.str.9, %80 ], [ @.str.6, %76 ]
  store i32 %71, ptr %70, align 4, !tbaa !5
  %82 = load ptr, ptr @stderr, align 8, !tbaa !9
  %83 = load i32, ptr @test_count, align 4, !tbaa !5
  %84 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = tail call ptr @s2n_strerror(i32 noundef %85, ptr noundef nonnull @.str.8) #7
  %87 = load i32, ptr %84, align 4, !tbaa !5
  %88 = tail call ptr @s2n_strerror_debug(i32 noundef %87, ptr noundef nonnull @.str.8) #7
  %89 = load i32, ptr %70, align 4, !tbaa !5
  %90 = tail call ptr @strerror(i32 noundef %89) #7
  %91 = load i32, ptr %70, align 4, !tbaa !5
  %92 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef nonnull %.str.9.sink58, i32 noundef %83, ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.5, i32 noundef 355, ptr noundef %86, ptr noundef %88, ptr noundef %90, i32 noundef %91) #9
  tail call void @exit(i32 noundef 1) #10
  unreachable

93:                                               ; preds = %62
  %94 = icmp eq i32 %65, 0
  br i1 %94, label %95, label %127

95:                                               ; preds = %146, %139, %132, %93
  %.032.lcssa35 = phi i64 [ 0, %93 ], [ 1, %132 ], [ 2, %139 ], [ 3, %146 ]
  %.lcssa33 = phi i32 [ %66, %93 ], [ %129, %132 ], [ %136, %139 ], [ %143, %146 ]
  %96 = add nsw i32 %.lcssa33, 2
  store i32 %96, ptr @test_count, align 4, !tbaa !5
  %97 = getelementptr inbounds [4 x %struct.fgn_test_case], ptr @fgn_test_cases, i64 0, i64 %.032.lcssa35
  %98 = getelementptr inbounds i8, ptr %97, i64 8
  %99 = load ptr, ptr %98, align 8, !tbaa !15
  %100 = tail call i32 %99(ptr noundef nonnull %97) #7
  %101 = icmp eq i32 %100, 0
  br i1 %101, label %126, label %102

102:                                              ; preds = %95
  %103 = tail call ptr @__errno_location() #8
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = load ptr, ptr @stderr, align 8, !tbaa !9
  %106 = tail call i32 @s2n_print_stacktrace(ptr noundef %105) #7
  %107 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %108 = trunc nuw i8 %107 to i1
  br i1 %108, label %109, label %113

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

113:                                              ; preds = %109, %102
  br label %114

114:                                              ; preds = %109, %113
  %.str.9.sink69 = phi ptr [ @.str.9, %113 ], [ @.str.6, %109 ]
  store i32 %104, ptr %103, align 4, !tbaa !5
  %115 = load ptr, ptr @stderr, align 8, !tbaa !9
  %116 = load i32, ptr @test_count, align 4, !tbaa !5
  %117 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = tail call ptr @s2n_strerror(i32 noundef %118, ptr noundef nonnull @.str.8) #7
  %120 = load i32, ptr %117, align 4, !tbaa !5
  %121 = tail call ptr @s2n_strerror_debug(i32 noundef %120, ptr noundef nonnull @.str.8) #7
  %122 = load i32, ptr %103, align 4, !tbaa !5
  %123 = tail call ptr @strerror(i32 noundef %122) #7
  %124 = load i32, ptr %103, align 4, !tbaa !5
  %125 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef nonnull %.str.9.sink69, i32 noundef %116, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.5, i32 noundef 359, ptr noundef %119, ptr noundef %121, ptr noundef %123, i32 noundef %124) #9
  tail call void @exit(i32 noundef 1) #10
  unreachable

126:                                              ; preds = %95
  tail call void @exit(i32 noundef 0) #10
  unreachable

127:                                              ; preds = %93
  tail call void @s2n_verify_child_exit_status(i32 noundef %65)
  %128 = tail call i32 @fork() #7
  %129 = load i32, ptr @test_count, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr @test_count, align 4, !tbaa !5
  %131 = icmp sgt i32 %128, -1
  br i1 %131, label %132, label %69

132:                                              ; preds = %127
  %133 = icmp eq i32 %128, 0
  br i1 %133, label %95, label %134

134:                                              ; preds = %132
  tail call void @s2n_verify_child_exit_status(i32 noundef %128)
  %135 = tail call i32 @fork() #7
  %136 = load i32, ptr @test_count, align 4, !tbaa !5
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr @test_count, align 4, !tbaa !5
  %138 = icmp sgt i32 %135, -1
  br i1 %138, label %139, label %69

139:                                              ; preds = %134
  %140 = icmp eq i32 %135, 0
  br i1 %140, label %95, label %141

141:                                              ; preds = %139
  tail call void @s2n_verify_child_exit_status(i32 noundef %135)
  %142 = tail call i32 @fork() #7
  %143 = load i32, ptr @test_count, align 4, !tbaa !5
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr @test_count, align 4, !tbaa !5
  %145 = icmp sgt i32 %142, -1
  br i1 %145, label %146, label %69

146:                                              ; preds = %141
  %147 = icmp eq i32 %142, 0
  br i1 %147, label %95, label %148

148:                                              ; preds = %146
  tail call void @s2n_verify_child_exit_status(i32 noundef %142)
  %149 = tail call i32 @s2n_in_unit_test_set(i1 noundef zeroext false) #7
  %150 = icmp eq i32 %149, -1
  br i1 %150, label %151, label %175

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

158:                                              ; preds = %151
  %159 = load ptr, ptr @stderr, align 8, !tbaa !9
  %160 = tail call i32 @fileno(ptr noundef %159) #7
  %161 = tail call i32 @isatty(i32 noundef %160) #7
  %.not24 = icmp eq i32 %161, 0
  br i1 %.not24, label %162, label %163

162:                                              ; preds = %158, %151
  br label %163

163:                                              ; preds = %158, %162
  %.str.9.sink80 = phi ptr [ @.str.9, %162 ], [ @.str.6, %158 ]
  store i32 %153, ptr %152, align 4, !tbaa !5
  %164 = load ptr, ptr @stderr, align 8, !tbaa !9
  %165 = load i32, ptr @test_count, align 4, !tbaa !5
  %166 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %167 = load i32, ptr %166, align 4, !tbaa !5
  %168 = tail call ptr @s2n_strerror(i32 noundef %167, ptr noundef nonnull @.str.8) #7
  %169 = load i32, ptr %166, align 4, !tbaa !5
  %170 = tail call ptr @s2n_strerror_debug(i32 noundef %169, ptr noundef nonnull @.str.8) #7
  %171 = load i32, ptr %152, align 4, !tbaa !5
  %172 = tail call ptr @strerror(i32 noundef %171) #7
  %173 = load i32, ptr %152, align 4, !tbaa !5
  %174 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %164, ptr noundef nonnull %.str.9.sink80, i32 noundef %165, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.5, i32 noundef 372, ptr noundef %168, ptr noundef %170, ptr noundef %172, i32 noundef %173) #9
  tail call void @exit(i32 noundef 1) #10
  unreachable

175:                                              ; preds = %148
  %176 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %177 = trunc nuw i8 %176 to i1
  br i1 %177, label %178, label %189

178:                                              ; preds = %175
  %179 = load ptr, ptr @stdout, align 8, !tbaa !9
  %180 = tail call i32 @fileno(ptr noundef %179) #7
  %181 = tail call i32 @isatty(i32 noundef %180) #7
  %.not = icmp eq i32 %181, 0
  br i1 %.not, label %189, label %182

182:                                              ; preds = %178
  %183 = load i32, ptr @test_count, align 4, !tbaa !5
  %.not23 = icmp eq i32 %183, 0
  %184 = load ptr, ptr @stdout, align 8, !tbaa !9
  br i1 %.not23, label %187, label %185

185:                                              ; preds = %182
  %186 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %184, ptr noundef nonnull @.str.14, i32 noundef %183) #7
  br label %196

187:                                              ; preds = %182
  %188 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %184, ptr noundef nonnull @.str.15) #7
  br label %196

189:                                              ; preds = %178, %175
  %190 = load i32, ptr @test_count, align 4, !tbaa !5
  %.not22 = icmp eq i32 %190, 0
  %191 = load ptr, ptr @stdout, align 8, !tbaa !9
  br i1 %.not22, label %194, label %192

192:                                              ; preds = %189
  %193 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %191, ptr noundef nonnull @.str.16, i32 noundef %190) #7
  br label %196

194:                                              ; preds = %189
  %195 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %191, ptr noundef nonnull @.str.17) #7
  br label %196

196:                                              ; preds = %192, %194, %185, %187
  ret i32 0
}

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

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

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

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

declare i32 @s2n_print_stacktrace(ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

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

declare i32 @s2n_enable_atexit() local_unnamed_addr #2

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

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

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

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass