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

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

@s2n_use_color_in_output = external dso_local global i8, align 1
@test_count = external dso_local global i32, align 4
@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [89 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
@stdout = external global ptr, align 8
@.str.36 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [25 x i8], align 1

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

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

declare i32 @s2n_cleanup() #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @test_send(i32 noundef, i32 noundef, i32 noundef) #2

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

declare i32 @s2n_print_stacktrace(ptr noundef) #1

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #2 {
  %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 i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = 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
  %15 = call ptr @signal(i32 noundef 13, ptr noundef inttoptr (i64 1 to ptr)) #7
  br label %16

16:                                               ; preds = %2
  br label %17

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

22:                                               ; preds = %17
  %23 = call i32 @s2n_in_unit_test_set(i1 noundef zeroext true)
  %24 = icmp eq i32 %23, -1
  br i1 %24, label %25, label %76

25:                                               ; preds = %22
  br label %26

26:                                               ; preds = %25
  br label %27

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

34:                                               ; preds = %27
  %35 = load ptr, ptr @stderr, align 8, !tbaa !9
  %36 = call i32 @fileno(ptr noundef %35) #7
  %37 = call i32 @isatty(i32 noundef %36) #7
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %56

39:                                               ; preds = %34
  %40 = load i32, ptr %6, align 4, !tbaa !5
  %41 = call ptr @__errno_location() #8
  store i32 %40, ptr %41, align 4, !tbaa !5
  %42 = load ptr, ptr @stderr, align 8, !tbaa !9
  %43 = load i32, ptr @test_count, align 4, !tbaa !5
  %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(i32 noundef %45, ptr noundef @.str.4)
  %47 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = call ptr @s2n_strerror_debug(i32 noundef %48, ptr noundef @.str.4)
  %50 = call ptr @__errno_location() #8
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = call ptr @strerror(i32 noundef %51) #7
  %53 = call ptr @__errno_location() #8
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef @.str.1, i32 noundef %43, ptr noundef @.str.37, ptr noundef @.str.3, i32 noundef 381, ptr noundef %46, ptr noundef %49, ptr noundef %52, i32 noundef %54) #7
  br label %73

56:                                               ; preds = %34, %27
  %57 = load i32, ptr %6, align 4, !tbaa !5
  %58 = call ptr @__errno_location() #8
  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() #8
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = call ptr @strerror(i32 noundef %68) #7
  %70 = call ptr @__errno_location() #8
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str.5, i32 noundef %60, ptr noundef @.str.37, ptr noundef @.str.3, i32 noundef 381, ptr noundef %63, ptr noundef %66, ptr noundef %69, i32 noundef %71) #7
  br label %73

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

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

75:                                               ; No predecessors!
  br label %76

76:                                               ; preds = %75, %22
  br label %77

77:                                               ; preds = %76
  br label %78

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

83:                                               ; preds = %78
  br label %84

84:                                               ; preds = %83
  br label %85

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

92:                                               ; preds = %85
  %93 = load ptr, ptr @stderr, align 8, !tbaa !9
  %94 = call i32 @fileno(ptr noundef %93) #7
  %95 = call i32 @isatty(i32 noundef %94) #7
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %114

97:                                               ; preds = %92
  %98 = load i32, ptr %7, align 4, !tbaa !5
  %99 = call ptr @__errno_location() #8
  store i32 %98, ptr %99, align 4, !tbaa !5
  %100 = load ptr, ptr @stderr, align 8, !tbaa !9
  %101 = load i32, ptr @test_count, align 4, !tbaa !5
  %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(i32 noundef %103, ptr noundef @.str.4)
  %105 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %107 = call ptr @s2n_strerror_debug(i32 noundef %106, ptr noundef @.str.4)
  %108 = call ptr @__errno_location() #8
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = call ptr @strerror(i32 noundef %109) #7
  %111 = call ptr @__errno_location() #8
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %100, ptr noundef @.str.1, i32 noundef %101, ptr noundef @.str.38, ptr noundef @.str.3, i32 noundef 381, ptr noundef %104, ptr noundef %107, ptr noundef %110, i32 noundef %112) #7
  br label %131

114:                                              ; preds = %92, %85
  %115 = load i32, ptr %7, align 4, !tbaa !5
  %116 = call ptr @__errno_location() #8
  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() #8
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %127 = call ptr @strerror(i32 noundef %126) #7
  %128 = call ptr @__errno_location() #8
  %129 = load i32, ptr %128, align 4, !tbaa !5
  %130 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef @.str.5, i32 noundef %118, ptr noundef @.str.38, ptr noundef @.str.3, i32 noundef 381, ptr noundef %121, ptr noundef %124, ptr noundef %127, i32 noundef %129) #7
  br label %131

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

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

133:                                              ; No predecessors!
  br label %134

134:                                              ; preds = %133, %78
  br label %135

135:                                              ; preds = %134
  br label %136

136:                                              ; preds = %135
  br label %137

137:                                              ; preds = %136
  %138 = call i32 @s2n_init()
  %139 = icmp eq i32 %138, -1
  br i1 %139, label %140, label %191

140:                                              ; preds = %137
  br label %141

141:                                              ; preds = %140
  br label %142

142:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %143 = call ptr @__errno_location() #8
  %144 = load i32, ptr %143, align 4, !tbaa !5
  store i32 %144, ptr %8, align 4, !tbaa !5
  %145 = load ptr, ptr @stderr, align 8, !tbaa !9
  %146 = call i32 @s2n_print_stacktrace(ptr noundef %145)
  %147 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %148 = trunc i8 %147 to i1
  br i1 %148, label %149, label %171

149:                                              ; preds = %142
  %150 = load ptr, ptr @stderr, align 8, !tbaa !9
  %151 = call i32 @fileno(ptr noundef %150) #7
  %152 = call i32 @isatty(i32 noundef %151) #7
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %154, label %171

154:                                              ; preds = %149
  %155 = load i32, ptr %8, align 4, !tbaa !5
  %156 = call ptr @__errno_location() #8
  store i32 %155, ptr %156, align 4, !tbaa !5
  %157 = load ptr, ptr @stderr, align 8, !tbaa !9
  %158 = load i32, ptr @test_count, align 4, !tbaa !5
  %159 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %160 = load i32, ptr %159, align 4, !tbaa !5
  %161 = call ptr @s2n_strerror(i32 noundef %160, ptr noundef @.str.4)
  %162 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %163 = load i32, ptr %162, align 4, !tbaa !5
  %164 = call ptr @s2n_strerror_debug(i32 noundef %163, ptr noundef @.str.4)
  %165 = call ptr @__errno_location() #8
  %166 = load i32, ptr %165, align 4, !tbaa !5
  %167 = call ptr @strerror(i32 noundef %166) #7
  %168 = call ptr @__errno_location() #8
  %169 = load i32, ptr %168, align 4, !tbaa !5
  %170 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %157, ptr noundef @.str.1, i32 noundef %158, ptr noundef @.str.39, ptr noundef @.str.3, i32 noundef 381, ptr noundef %161, ptr noundef %164, ptr noundef %167, i32 noundef %169) #7
  br label %188

171:                                              ; preds = %149, %142
  %172 = load i32, ptr %8, align 4, !tbaa !5
  %173 = call ptr @__errno_location() #8
  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() #8
  %183 = load i32, ptr %182, align 4, !tbaa !5
  %184 = call ptr @strerror(i32 noundef %183) #7
  %185 = call ptr @__errno_location() #8
  %186 = load i32, ptr %185, align 4, !tbaa !5
  %187 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %174, ptr noundef @.str.5, i32 noundef %175, ptr noundef @.str.39, ptr noundef @.str.3, i32 noundef 381, ptr noundef %178, ptr noundef %181, ptr noundef %184, i32 noundef %186) #7
  br label %188

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

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

190:                                              ; No predecessors!
  br label %191

191:                                              ; preds = %190, %137
  br label %192

192:                                              ; preds = %191
  br label %193

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

194:                                              ; preds = %221, %193
  %195 = load i32, ptr %9, align 4, !tbaa !5
  %196 = icmp slt i32 %195, 2
  br i1 %196, label %198, label %197

197:                                              ; preds = %194
  store i32 24, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %224

198:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %199

199:                                              ; preds = %217, %198
  %200 = load i32, ptr %11, align 4, !tbaa !5
  %201 = icmp slt i32 %200, 2
  br i1 %201, label %203, label %202

202:                                              ; preds = %199
  store i32 27, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %220

203:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %204

204:                                              ; preds = %213, %203
  %205 = load i32, ptr %12, align 4, !tbaa !5
  %206 = icmp slt i32 %205, 2
  br i1 %206, label %208, label %207

207:                                              ; preds = %204
  store i32 30, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %216

208:                                              ; preds = %204
  %209 = load i32, ptr %9, align 4, !tbaa !5
  %210 = load i32, ptr %11, align 4, !tbaa !5
  %211 = load i32, ptr %12, align 4, !tbaa !5
  %212 = call i32 @test_send(i32 noundef %209, i32 noundef %210, i32 noundef %211)
  br label %213

213:                                              ; preds = %208
  %214 = load i32, ptr %12, align 4, !tbaa !5
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %12, align 4, !tbaa !5
  br label %204, !llvm.loop !15

216:                                              ; preds = %207
  br label %217

217:                                              ; preds = %216
  %218 = load i32, ptr %11, align 4, !tbaa !5
  %219 = add nsw i32 %218, 1
  store i32 %219, ptr %11, align 4, !tbaa !5
  br label %199, !llvm.loop !17

220:                                              ; preds = %202
  br label %221

221:                                              ; preds = %220
  %222 = load i32, ptr %9, align 4, !tbaa !5
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr %9, align 4, !tbaa !5
  br label %194, !llvm.loop !18

224:                                              ; preds = %197
  br label %225

225:                                              ; preds = %224
  br label %226

226:                                              ; preds = %225
  %227 = call i32 @s2n_cleanup()
  %228 = icmp eq i32 %227, -1
  br i1 %228, label %229, label %280

229:                                              ; preds = %226
  br label %230

230:                                              ; preds = %229
  br label %231

231:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %232 = call ptr @__errno_location() #8
  %233 = load i32, ptr %232, align 4, !tbaa !5
  store i32 %233, ptr %13, 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) #7
  %241 = call i32 @isatty(i32 noundef %240) #7
  %242 = icmp ne i32 %241, 0
  br i1 %242, label %243, label %260

243:                                              ; preds = %238
  %244 = load i32, ptr %13, align 4, !tbaa !5
  %245 = call ptr @__errno_location() #8
  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() #8
  %255 = load i32, ptr %254, align 4, !tbaa !5
  %256 = call ptr @strerror(i32 noundef %255) #7
  %257 = call ptr @__errno_location() #8
  %258 = load i32, ptr %257, align 4, !tbaa !5
  %259 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %246, ptr noundef @.str.1, i32 noundef %247, ptr noundef @.str.40, ptr noundef @.str.3, i32 noundef 390, ptr noundef %250, ptr noundef %253, ptr noundef %256, i32 noundef %258) #7
  br label %277

260:                                              ; preds = %238, %231
  %261 = load i32, ptr %13, align 4, !tbaa !5
  %262 = call ptr @__errno_location() #8
  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() #8
  %272 = load i32, ptr %271, align 4, !tbaa !5
  %273 = call ptr @strerror(i32 noundef %272) #7
  %274 = call ptr @__errno_location() #8
  %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.40, ptr noundef @.str.3, i32 noundef 390, ptr noundef %267, ptr noundef %270, ptr noundef %273, i32 noundef %275) #7
  br label %277

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

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

279:                                              ; No predecessors!
  br label %280

280:                                              ; preds = %279, %226
  br label %281

281:                                              ; preds = %280
  br label %282

282:                                              ; preds = %281
  br label %283

283:                                              ; preds = %282
  %284 = call i32 @s2n_in_unit_test_set(i1 noundef zeroext false)
  %285 = icmp eq i32 %284, -1
  br i1 %285, label %286, label %337

286:                                              ; preds = %283
  br label %287

287:                                              ; preds = %286
  br label %288

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

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

300:                                              ; preds = %295
  %301 = load i32, ptr %14, align 4, !tbaa !5
  %302 = call ptr @__errno_location() #8
  store i32 %301, ptr %302, 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 @.str.4)
  %308 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %309 = load i32, ptr %308, align 4, !tbaa !5
  %310 = call ptr @s2n_strerror_debug(i32 noundef %309, ptr noundef @.str.4)
  %311 = call ptr @__errno_location() #8
  %312 = load i32, ptr %311, align 4, !tbaa !5
  %313 = call ptr @strerror(i32 noundef %312) #7
  %314 = call ptr @__errno_location() #8
  %315 = load i32, ptr %314, align 4, !tbaa !5
  %316 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %303, ptr noundef @.str.1, i32 noundef %304, ptr noundef @.str.41, ptr noundef @.str.3, i32 noundef 390, ptr noundef %307, ptr noundef %310, ptr noundef %313, i32 noundef %315) #7
  br label %334

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

334:                                              ; preds = %317, %300
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %335

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

336:                                              ; No predecessors!
  br label %337

337:                                              ; preds = %336, %283
  br label %338

338:                                              ; preds = %337
  %339 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %340 = trunc i8 %339 to i1
  br i1 %340, label %341, label %357

341:                                              ; preds = %338
  %342 = load ptr, ptr @stdout, align 8, !tbaa !9
  %343 = call i32 @fileno(ptr noundef %342) #7
  %344 = call i32 @isatty(i32 noundef %343) #7
  %345 = icmp ne i32 %344, 0
  br i1 %345, label %346, label %357

346:                                              ; preds = %341
  %347 = load i32, ptr @test_count, align 4, !tbaa !5
  %348 = icmp ne i32 %347, 0
  br i1 %348, label %349, label %353

349:                                              ; preds = %346
  %350 = load ptr, ptr @stdout, align 8, !tbaa !9
  %351 = load i32, ptr @test_count, align 4, !tbaa !5
  %352 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %350, ptr noundef @.str.42, i32 noundef %351) #7
  br label %356

353:                                              ; preds = %346
  %354 = load ptr, ptr @stdout, align 8, !tbaa !9
  %355 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %354, ptr noundef @.str.43) #7
  br label %356

356:                                              ; preds = %353, %349
  br label %368

357:                                              ; preds = %341, %338
  %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.44, i32 noundef %362) #7
  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.45) #7
  br label %367

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

368:                                              ; preds = %367, %356
  store i32 0, ptr %3, align 4
  br label %370

369:                                              ; No predecessors!
  br label %370

370:                                              ; preds = %369, %368
  %371 = load i32, ptr %3, align 4
  ret i32 %371
}

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

declare i32 @fflush(ptr noundef) #1

declare i32 @s2n_in_unit_test_set(i1 noundef zeroext) #1

declare i32 @s2n_enable_atexit() #1

declare i32 @s2n_init() #1

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

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

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


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

@s2n_use_color_in_output = external dso_local local_unnamed_addr global i8, align 1
@test_count = external dso_local local_unnamed_addr global i32, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [89 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
@stdout = external local_unnamed_addr global ptr, align 8
@.str.36 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [25 x i8], align 1

declare i32 @s2n_cleanup() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @test_send(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

declare i32 @s2n_print_stacktrace(ptr noundef) local_unnamed_addr #0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

50:                                               ; preds = %46, %39
  br label %51

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

63:                                               ; preds = %34
  %64 = tail call i32 @s2n_init() #7
  %65 = icmp eq i32 %64, -1
  br i1 %65, label %76, label %.preheader31.preheader

.preheader31.preheader:                           ; preds = %63
  %66 = tail call i32 @test_send(i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %67 = tail call i32 @test_send(i32 noundef 0, i32 noundef 0, i32 noundef 1)
  %68 = tail call i32 @test_send(i32 noundef 0, i32 noundef 1, i32 noundef 0)
  %69 = tail call i32 @test_send(i32 noundef 0, i32 noundef 1, i32 noundef 1)
  %70 = tail call i32 @test_send(i32 noundef 1, i32 noundef 0, i32 noundef 0)
  %71 = tail call i32 @test_send(i32 noundef 1, i32 noundef 0, i32 noundef 1)
  %72 = tail call i32 @test_send(i32 noundef 1, i32 noundef 1, i32 noundef 0)
  %73 = tail call i32 @test_send(i32 noundef 1, i32 noundef 1, i32 noundef 1)
  %74 = tail call i32 @s2n_cleanup() #7
  %75 = icmp eq i32 %74, -1
  br i1 %75, label %100, label %124

76:                                               ; preds = %63
  %77 = tail call ptr @__errno_location() #8
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = load ptr, ptr @stderr, align 8, !tbaa !9
  %80 = tail call i32 @s2n_print_stacktrace(ptr noundef %79) #7
  %81 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %82 = trunc nuw i8 %81 to i1
  br i1 %82, label %83, label %87

83:                                               ; preds = %76
  %84 = load ptr, ptr @stderr, align 8, !tbaa !9
  %85 = tail call i32 @fileno(ptr noundef %84) #7
  %86 = tail call i32 @isatty(i32 noundef %85) #7
  %.not28 = icmp eq i32 %86, 0
  br i1 %.not28, label %87, label %88

87:                                               ; preds = %83, %76
  br label %88

88:                                               ; preds = %83, %87
  %.str.5.sink58 = phi ptr [ @.str.5, %87 ], [ @.str.1, %83 ]
  store i32 %78, ptr %77, align 4, !tbaa !5
  %89 = load ptr, ptr @stderr, align 8, !tbaa !9
  %90 = load i32, ptr @test_count, align 4, !tbaa !5
  %91 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %93 = tail call ptr @s2n_strerror(i32 noundef %92, ptr noundef nonnull @.str.4) #7
  %94 = load i32, ptr %91, align 4, !tbaa !5
  %95 = tail call ptr @s2n_strerror_debug(i32 noundef %94, ptr noundef nonnull @.str.4) #7
  %96 = load i32, ptr %77, align 4, !tbaa !5
  %97 = tail call ptr @strerror(i32 noundef %96) #7
  %98 = load i32, ptr %77, align 4, !tbaa !5
  %99 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef nonnull %.str.5.sink58, i32 noundef %90, ptr noundef nonnull @.str.39, ptr noundef nonnull @.str.3, i32 noundef 381, ptr noundef %93, ptr noundef %95, ptr noundef %97, i32 noundef %98) #9
  tail call void @exit(i32 noundef 1) #10
  unreachable

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

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

111:                                              ; preds = %107, %100
  br label %112

112:                                              ; preds = %107, %111
  %.str.5.sink69 = phi ptr [ @.str.5, %111 ], [ @.str.1, %107 ]
  store i32 %102, ptr %101, align 4, !tbaa !5
  %113 = load ptr, ptr @stderr, align 8, !tbaa !9
  %114 = load i32, ptr @test_count, align 4, !tbaa !5
  %115 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %116 = load i32, ptr %115, align 4, !tbaa !5
  %117 = tail call ptr @s2n_strerror(i32 noundef %116, ptr noundef nonnull @.str.4) #7
  %118 = load i32, ptr %115, align 4, !tbaa !5
  %119 = tail call ptr @s2n_strerror_debug(i32 noundef %118, ptr noundef nonnull @.str.4) #7
  %120 = load i32, ptr %101, align 4, !tbaa !5
  %121 = tail call ptr @strerror(i32 noundef %120) #7
  %122 = load i32, ptr %101, align 4, !tbaa !5
  %123 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %113, ptr noundef nonnull %.str.5.sink69, i32 noundef %114, ptr noundef nonnull @.str.40, ptr noundef nonnull @.str.3, i32 noundef 390, ptr noundef %117, ptr noundef %119, ptr noundef %121, i32 noundef %122) #9
  tail call void @exit(i32 noundef 1) #10
  unreachable

124:                                              ; preds = %.preheader31.preheader
  %125 = tail call i32 @s2n_in_unit_test_set(i1 noundef zeroext false) #7
  %126 = icmp eq i32 %125, -1
  br i1 %126, label %127, label %151

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

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

138:                                              ; preds = %134, %127
  br label %139

139:                                              ; preds = %134, %138
  %.str.5.sink80 = phi ptr [ @.str.5, %138 ], [ @.str.1, %134 ]
  store i32 %129, ptr %128, align 4, !tbaa !5
  %140 = load ptr, ptr @stderr, align 8, !tbaa !9
  %141 = load i32, ptr @test_count, align 4, !tbaa !5
  %142 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %143 = load i32, ptr %142, align 4, !tbaa !5
  %144 = tail call ptr @s2n_strerror(i32 noundef %143, ptr noundef nonnull @.str.4) #7
  %145 = load i32, ptr %142, align 4, !tbaa !5
  %146 = tail call ptr @s2n_strerror_debug(i32 noundef %145, ptr noundef nonnull @.str.4) #7
  %147 = load i32, ptr %128, align 4, !tbaa !5
  %148 = tail call ptr @strerror(i32 noundef %147) #7
  %149 = load i32, ptr %128, align 4, !tbaa !5
  %150 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %140, ptr noundef nonnull %.str.5.sink80, i32 noundef %141, ptr noundef nonnull @.str.41, ptr noundef nonnull @.str.3, i32 noundef 390, ptr noundef %144, ptr noundef %146, ptr noundef %148, i32 noundef %149) #9
  tail call void @exit(i32 noundef 1) #10
  unreachable

151:                                              ; preds = %124
  %152 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %153 = trunc nuw i8 %152 to i1
  br i1 %153, label %154, label %165

154:                                              ; preds = %151
  %155 = load ptr, ptr @stdout, align 8, !tbaa !9
  %156 = tail call i32 @fileno(ptr noundef %155) #7
  %157 = tail call i32 @isatty(i32 noundef %156) #7
  %.not = icmp eq i32 %157, 0
  br i1 %.not, label %165, label %158

158:                                              ; preds = %154
  %159 = load i32, ptr @test_count, align 4, !tbaa !5
  %.not25 = icmp eq i32 %159, 0
  %160 = load ptr, ptr @stdout, align 8, !tbaa !9
  br i1 %.not25, label %163, label %161

161:                                              ; preds = %158
  %162 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %160, ptr noundef nonnull @.str.42, i32 noundef %159) #7
  br label %172

163:                                              ; preds = %158
  %164 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %160, ptr noundef nonnull @.str.43) #7
  br label %172

165:                                              ; preds = %154, %151
  %166 = load i32, ptr @test_count, align 4, !tbaa !5
  %.not24 = icmp eq i32 %166, 0
  %167 = load ptr, ptr @stdout, align 8, !tbaa !9
  br i1 %.not24, label %170, label %168

168:                                              ; preds = %165
  %169 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %167, ptr noundef nonnull @.str.44, i32 noundef %166) #7
  br label %172

170:                                              ; preds = %165
  %171 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %167, ptr noundef nonnull @.str.45) #7
  br label %172

172:                                              ; preds = %168, %170, %161, %163
  ret i32 0
}

; Function Attrs: nounwind
declare ptr @signal(i32 noundef, ptr noundef) local_unnamed_addr #3

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

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

declare i32 @s2n_enable_atexit() local_unnamed_addr #0

declare i32 @s2n_init() local_unnamed_addr #0

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

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

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


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