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

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

%struct.s2n_result = type { i32 }
%struct.s2n_blob = type { ptr, i32, i32, i8 }

@s2n_use_color_in_output = external dso_local global i8, align 1
@test_count = external dso_local global i32, align 4
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [101 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [73 x i8], align 1
@s2n_errno = external thread_local global i32, align 4
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [61 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @s2n_test_send_receive_data(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca %struct.s2n_result, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca [100 x i8], align 16
  %7 = alloca %struct.s2n_blob, align 8
  %8 = alloca i32, align 4
  %9 = alloca %struct.s2n_result, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca [100 x i8], align 16
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 100, ptr %6) #10
  call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 100, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #10
  call void @llvm.memset.p0.i64(ptr align 8 %7, i8 0, i64 24, i1 false)
  br label %20

20:                                               ; preds = %2
  %21 = load i32, ptr @test_count, align 4, !tbaa !9
  %22 = add nsw i32 %21, 1
  store i32 %22, ptr @test_count, align 4, !tbaa !9
  %23 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
  %24 = call i32 @s2n_blob_init(ptr noundef %7, ptr noundef %23, i32 noundef 100)
  %25 = icmp eq i32 %24, -1
  br i1 %25, label %26, label %79

26:                                               ; preds = %20
  br label %27

27:                                               ; preds = %26
  br label %28

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

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

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

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

74:                                               ; preds = %57, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  br label %75

75:                                               ; preds = %74
  br label %76

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

77:                                               ; No predecessors!
  br label %78

78:                                               ; preds = %77
  br label %79

79:                                               ; preds = %78, %20
  br label %80

80:                                               ; preds = %79
  br label %81

81:                                               ; preds = %80
  br label %82

82:                                               ; preds = %81
  %83 = load i32, ptr @test_count, align 4, !tbaa !9
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr @test_count, align 4, !tbaa !9
  %85 = call i32 @s2n_get_public_random_data(ptr noundef %7)
  %86 = getelementptr inbounds %struct.s2n_result, ptr %9, i32 0, i32 0
  store i32 %85, ptr %86, align 4
  %87 = getelementptr inbounds %struct.s2n_result, ptr %9, i32 0, i32 0
  %88 = load i32, ptr %87, align 4
  %89 = call zeroext i1 @s2n_result_is_ok(i32 %88)
  br i1 %89, label %143, label %90

90:                                               ; preds = %82
  br label %91

91:                                               ; preds = %90
  br label %92

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

99:                                               ; preds = %92
  %100 = load ptr, ptr @stderr, align 8, !tbaa !5
  %101 = call i32 @fileno(ptr noundef %100) #10
  %102 = call i32 @isatty(i32 noundef %101) #10
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %121

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

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

138:                                              ; preds = %121, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #10
  br label %139

139:                                              ; preds = %138
  br label %140

140:                                              ; preds = %139
  call void @exit(i32 noundef 1) #12
  unreachable

141:                                              ; No predecessors!
  br label %142

142:                                              ; preds = %141
  br label %143

143:                                              ; preds = %142, %82
  br label %144

144:                                              ; preds = %143
  br label %145

145:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #10
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #10
  store i64 0, ptr %12, align 8, !tbaa !15
  br label %146

146:                                              ; preds = %217, %145
  %147 = load i64, ptr %12, align 8, !tbaa !15
  %148 = icmp slt i64 %147, 100
  br i1 %148, label %149, label %221

149:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #10
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
  %152 = load i64, ptr %12, align 8, !tbaa !15
  %153 = getelementptr inbounds i8, ptr %151, i64 %152
  %154 = load i64, ptr %12, align 8, !tbaa !15
  %155 = sub nsw i64 100, %154
  %156 = call i64 @s2n_send(ptr noundef %150, ptr noundef %153, i64 noundef %155, ptr noundef %11)
  store i64 %156, ptr %13, align 8, !tbaa !15
  br label %157

157:                                              ; preds = %149
  %158 = load i32, ptr @test_count, align 4, !tbaa !9
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr @test_count, align 4, !tbaa !9
  %160 = load i64, ptr %13, align 8, !tbaa !15
  %161 = icmp sge i64 %160, 0
  br i1 %161, label %215, label %162

162:                                              ; preds = %157
  br label %163

163:                                              ; preds = %162
  br label %164

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

171:                                              ; preds = %164
  %172 = load ptr, ptr @stderr, align 8, !tbaa !5
  %173 = call i32 @fileno(ptr noundef %172) #10
  %174 = call i32 @isatty(i32 noundef %173) #10
  %175 = icmp ne i32 %174, 0
  br i1 %175, label %176, label %193

176:                                              ; preds = %171
  %177 = load i32, ptr %14, align 4, !tbaa !9
  %178 = call ptr @__errno_location() #11
  store i32 %177, ptr %178, align 4, !tbaa !9
  %179 = load ptr, ptr @stderr, align 8, !tbaa !5
  %180 = load i32, ptr @test_count, align 4, !tbaa !9
  %181 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %182 = load i32, ptr %181, align 4, !tbaa !9
  %183 = call ptr @s2n_strerror(i32 noundef %182, ptr noundef @.str.3)
  %184 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %185 = load i32, ptr %184, align 4, !tbaa !9
  %186 = call ptr @s2n_strerror_debug(i32 noundef %185, ptr noundef @.str.3)
  %187 = call ptr @__errno_location() #11
  %188 = load i32, ptr %187, align 4, !tbaa !9
  %189 = call ptr @strerror(i32 noundef %188) #10
  %190 = call ptr @__errno_location() #11
  %191 = load i32, ptr %190, align 4, !tbaa !9
  %192 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %179, ptr noundef @.str, i32 noundef %180, ptr noundef @.str.6, ptr noundef @.str.2, i32 noundef 34, ptr noundef %183, ptr noundef %186, ptr noundef %189, i32 noundef %191) #10
  br label %210

193:                                              ; preds = %171, %164
  %194 = load i32, ptr %14, align 4, !tbaa !9
  %195 = call ptr @__errno_location() #11
  store i32 %194, ptr %195, align 4, !tbaa !9
  %196 = load ptr, ptr @stderr, align 8, !tbaa !5
  %197 = load i32, ptr @test_count, align 4, !tbaa !9
  %198 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %199 = load i32, ptr %198, align 4, !tbaa !9
  %200 = call ptr @s2n_strerror(i32 noundef %199, ptr noundef @.str.3)
  %201 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %202 = load i32, ptr %201, align 4, !tbaa !9
  %203 = call ptr @s2n_strerror_debug(i32 noundef %202, ptr noundef @.str.3)
  %204 = call ptr @__errno_location() #11
  %205 = load i32, ptr %204, align 4, !tbaa !9
  %206 = call ptr @strerror(i32 noundef %205) #10
  %207 = call ptr @__errno_location() #11
  %208 = load i32, ptr %207, align 4, !tbaa !9
  %209 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %196, ptr noundef @.str.4, i32 noundef %197, ptr noundef @.str.6, ptr noundef @.str.2, i32 noundef 34, ptr noundef %200, ptr noundef %203, ptr noundef %206, i32 noundef %208) #10
  br label %210

210:                                              ; preds = %193, %176
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  br label %211

211:                                              ; preds = %210
  br label %212

212:                                              ; preds = %211
  call void @exit(i32 noundef 1) #12
  unreachable

213:                                              ; No predecessors!
  br label %214

214:                                              ; preds = %213
  br label %215

215:                                              ; preds = %214, %157
  br label %216

216:                                              ; preds = %215
  br label %217

217:                                              ; preds = %216
  %218 = load i64, ptr %13, align 8, !tbaa !15
  %219 = load i64, ptr %12, align 8, !tbaa !15
  %220 = add nsw i64 %219, %218
  store i64 %220, ptr %12, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  br label %146, !llvm.loop !17

221:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 100, ptr %15) #10
  call void @llvm.memset.p0.i64(ptr align 16 %15, i8 0, i64 100, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  store i64 0, ptr %16, align 8, !tbaa !15
  br label %222

222:                                              ; preds = %293, %221
  %223 = load i64, ptr %16, align 8, !tbaa !15
  %224 = icmp slt i64 %223, 100
  br i1 %224, label %225, label %297

225:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  %226 = load ptr, ptr %5, align 8, !tbaa !5
  %227 = getelementptr inbounds [100 x i8], ptr %15, i64 0, i64 0
  %228 = load i64, ptr %16, align 8, !tbaa !15
  %229 = getelementptr inbounds i8, ptr %227, i64 %228
  %230 = load i64, ptr %16, align 8, !tbaa !15
  %231 = sub nsw i64 100, %230
  %232 = call i64 @s2n_recv(ptr noundef %226, ptr noundef %229, i64 noundef %231, ptr noundef %11)
  store i64 %232, ptr %17, align 8, !tbaa !15
  br label %233

233:                                              ; preds = %225
  %234 = load i32, ptr @test_count, align 4, !tbaa !9
  %235 = add nsw i32 %234, 1
  store i32 %235, ptr @test_count, align 4, !tbaa !9
  %236 = load i64, ptr %17, align 8, !tbaa !15
  %237 = icmp sgt i64 %236, 0
  br i1 %237, label %291, label %238

238:                                              ; preds = %233
  br label %239

239:                                              ; preds = %238
  br label %240

240:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #10
  %241 = call ptr @__errno_location() #11
  %242 = load i32, ptr %241, align 4, !tbaa !9
  store i32 %242, ptr %18, align 4, !tbaa !9
  %243 = load ptr, ptr @stderr, align 8, !tbaa !5
  %244 = call i32 @s2n_print_stacktrace(ptr noundef %243)
  %245 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %246 = trunc i8 %245 to i1
  br i1 %246, label %247, label %269

247:                                              ; preds = %240
  %248 = load ptr, ptr @stderr, align 8, !tbaa !5
  %249 = call i32 @fileno(ptr noundef %248) #10
  %250 = call i32 @isatty(i32 noundef %249) #10
  %251 = icmp ne i32 %250, 0
  br i1 %251, label %252, label %269

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

269:                                              ; preds = %247, %240
  %270 = load i32, ptr %18, align 4, !tbaa !9
  %271 = call ptr @__errno_location() #11
  store i32 %270, ptr %271, align 4, !tbaa !9
  %272 = load ptr, ptr @stderr, align 8, !tbaa !5
  %273 = load i32, ptr @test_count, align 4, !tbaa !9
  %274 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %275 = load i32, ptr %274, align 4, !tbaa !9
  %276 = call ptr @s2n_strerror(i32 noundef %275, ptr noundef @.str.3)
  %277 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %278 = load i32, ptr %277, align 4, !tbaa !9
  %279 = call ptr @s2n_strerror_debug(i32 noundef %278, ptr noundef @.str.3)
  %280 = call ptr @__errno_location() #11
  %281 = load i32, ptr %280, align 4, !tbaa !9
  %282 = call ptr @strerror(i32 noundef %281) #10
  %283 = call ptr @__errno_location() #11
  %284 = load i32, ptr %283, align 4, !tbaa !9
  %285 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %272, ptr noundef @.str.4, i32 noundef %273, ptr noundef @.str.7, ptr noundef @.str.2, i32 noundef 43, ptr noundef %276, ptr noundef %279, ptr noundef %282, i32 noundef %284) #10
  br label %286

286:                                              ; preds = %269, %252
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  br label %287

287:                                              ; preds = %286
  br label %288

288:                                              ; preds = %287
  call void @exit(i32 noundef 1) #12
  unreachable

289:                                              ; No predecessors!
  br label %290

290:                                              ; preds = %289
  br label %291

291:                                              ; preds = %290, %233
  br label %292

292:                                              ; preds = %291
  br label %293

293:                                              ; preds = %292
  %294 = load i64, ptr %17, align 8, !tbaa !15
  %295 = load i64, ptr %16, align 8, !tbaa !15
  %296 = add nsw i64 %295, %294
  store i64 %296, ptr %16, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  br label %222, !llvm.loop !19

297:                                              ; preds = %222
  br label %298

298:                                              ; preds = %297
  br label %299

299:                                              ; preds = %298
  %300 = load i32, ptr @test_count, align 4, !tbaa !9
  %301 = add nsw i32 %300, 1
  store i32 %301, ptr @test_count, align 4, !tbaa !9
  %302 = getelementptr inbounds [100 x i8], ptr %6, i64 0, i64 0
  %303 = getelementptr inbounds [100 x i8], ptr %15, i64 0, i64 0
  %304 = call i32 @memcmp(ptr noundef %302, ptr noundef %303, i64 noundef 100) #13
  %305 = icmp eq i32 %304, 0
  br i1 %305, label %359, label %306

306:                                              ; preds = %299
  br label %307

307:                                              ; preds = %306
  br label %308

308:                                              ; preds = %307
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #10
  %309 = call ptr @__errno_location() #11
  %310 = load i32, ptr %309, align 4, !tbaa !9
  store i32 %310, ptr %19, align 4, !tbaa !9
  %311 = load ptr, ptr @stderr, align 8, !tbaa !5
  %312 = call i32 @s2n_print_stacktrace(ptr noundef %311)
  %313 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %314 = trunc i8 %313 to i1
  br i1 %314, label %315, label %337

315:                                              ; preds = %308
  %316 = load ptr, ptr @stderr, align 8, !tbaa !5
  %317 = call i32 @fileno(ptr noundef %316) #10
  %318 = call i32 @isatty(i32 noundef %317) #10
  %319 = icmp ne i32 %318, 0
  br i1 %319, label %320, label %337

320:                                              ; preds = %315
  %321 = load i32, ptr %19, align 4, !tbaa !9
  %322 = call ptr @__errno_location() #11
  store i32 %321, ptr %322, align 4, !tbaa !9
  %323 = load ptr, ptr @stderr, align 8, !tbaa !5
  %324 = load i32, ptr @test_count, align 4, !tbaa !9
  %325 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %326 = load i32, ptr %325, align 4, !tbaa !9
  %327 = call ptr @s2n_strerror(i32 noundef %326, ptr noundef @.str.3)
  %328 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %329 = load i32, ptr %328, align 4, !tbaa !9
  %330 = call ptr @s2n_strerror_debug(i32 noundef %329, ptr noundef @.str.3)
  %331 = call ptr @__errno_location() #11
  %332 = load i32, ptr %331, align 4, !tbaa !9
  %333 = call ptr @strerror(i32 noundef %332) #10
  %334 = call ptr @__errno_location() #11
  %335 = load i32, ptr %334, align 4, !tbaa !9
  %336 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %323, ptr noundef @.str, i32 noundef %324, ptr noundef @.str.8, ptr noundef @.str.2, i32 noundef 47, ptr noundef %327, ptr noundef %330, ptr noundef %333, i32 noundef %335) #10
  br label %354

337:                                              ; preds = %315, %308
  %338 = load i32, ptr %19, align 4, !tbaa !9
  %339 = call ptr @__errno_location() #11
  store i32 %338, ptr %339, align 4, !tbaa !9
  %340 = load ptr, ptr @stderr, align 8, !tbaa !5
  %341 = load i32, ptr @test_count, align 4, !tbaa !9
  %342 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %343 = load i32, ptr %342, align 4, !tbaa !9
  %344 = call ptr @s2n_strerror(i32 noundef %343, ptr noundef @.str.3)
  %345 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %346 = load i32, ptr %345, align 4, !tbaa !9
  %347 = call ptr @s2n_strerror_debug(i32 noundef %346, ptr noundef @.str.3)
  %348 = call ptr @__errno_location() #11
  %349 = load i32, ptr %348, align 4, !tbaa !9
  %350 = call ptr @strerror(i32 noundef %349) #10
  %351 = call ptr @__errno_location() #11
  %352 = load i32, ptr %351, align 4, !tbaa !9
  %353 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %340, ptr noundef @.str.4, i32 noundef %341, ptr noundef @.str.8, ptr noundef @.str.2, i32 noundef 47, ptr noundef %344, ptr noundef %347, ptr noundef %350, i32 noundef %352) #10
  br label %354

354:                                              ; preds = %337, %320
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #10
  br label %355

355:                                              ; preds = %354
  br label %356

356:                                              ; preds = %355
  call void @exit(i32 noundef 1) #12
  unreachable

357:                                              ; No predecessors!
  br label %358

358:                                              ; preds = %357
  br label %359

359:                                              ; preds = %358, %299
  br label %360

360:                                              ; preds = %359
  br label %361

361:                                              ; preds = %360
  br label %362

362:                                              ; preds = %361
  br label %363

363:                                              ; preds = %362
  %364 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  store i32 0, ptr %364, align 4, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 100, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 100, ptr %6) #10
  %365 = getelementptr inbounds %struct.s2n_result, ptr %3, i32 0, i32 0
  %366 = load i32, ptr %365, align 4
  ret i32 %366
}

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

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

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

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

declare i32 @s2n_print_stacktrace(ptr noundef) #3

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

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

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

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

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

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

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

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

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

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

declare i32 @s2n_get_public_random_data(ptr noundef) #3

declare i64 @s2n_send(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #3

declare i64 @s2n_recv(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #3

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #9

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

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

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


; 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.s2n_blob = type { ptr, i32, i32, i8 }

@s2n_use_color_in_output = external dso_local local_unnamed_addr global i8, align 1
@test_count = external dso_local local_unnamed_addr global i32, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [101 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [73 x i8], align 1
@s2n_errno = external thread_local local_unnamed_addr global i32, align 4
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [61 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @s2n_test_send_receive_data(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca [100 x i8], align 16
  %4 = alloca %struct.s2n_blob, align 8
  %5 = alloca i32, align 4
  %6 = alloca [100 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %3) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(100) %3, i8 0, i64 100, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %4, i8 0, i64 24, i1 false)
  %7 = load i32, ptr @test_count, align 4, !tbaa !5
  %8 = add nsw i32 %7, 1
  store i32 %8, ptr @test_count, align 4, !tbaa !5
  %9 = call i32 @s2n_blob_init(ptr noundef nonnull %4, ptr noundef nonnull %3, i32 noundef 100) #11
  %10 = icmp eq i32 %9, -1
  br i1 %10, label %11, label %35

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

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

22:                                               ; preds = %18, %11
  br label %23

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

35:                                               ; preds = %2
  %36 = load i32, ptr @test_count, align 4, !tbaa !5
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr @test_count, align 4, !tbaa !5
  %38 = call i32 @s2n_get_public_random_data(ptr noundef nonnull %4) #11
  %39 = call zeroext i1 @s2n_result_is_ok(i32 %38)
  br i1 %39, label %64, label %40

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

47:                                               ; preds = %40
  %48 = load ptr, ptr @stderr, align 8, !tbaa !9
  %49 = call i32 @fileno(ptr noundef %48) #11
  %50 = call i32 @isatty(i32 noundef %49) #11
  %.not = icmp eq i32 %50, 0
  br i1 %.not, label %51, label %52

51:                                               ; preds = %47, %40
  br label %52

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

64:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #11
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %68

65:                                               ; preds = %68
  %66 = add nuw nsw i64 %71, %.031
  %67 = icmp slt i64 %66, 100
  br i1 %67, label %68, label %99, !llvm.loop !15

68:                                               ; preds = %64, %65
  %.031 = phi i64 [ 0, %64 ], [ %66, %65 ]
  %69 = getelementptr inbounds i8, ptr %3, i64 %.031
  %70 = sub nuw nsw i64 100, %.031
  %71 = call i64 @s2n_send(ptr noundef %0, ptr noundef nonnull %69, i64 noundef %70, ptr noundef nonnull %5) #11
  %72 = load i32, ptr @test_count, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr @test_count, align 4, !tbaa !5
  %74 = icmp sgt i64 %71, -1
  br i1 %74, label %65, label %75

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

82:                                               ; preds = %75
  %83 = load ptr, ptr @stderr, align 8, !tbaa !9
  %84 = call i32 @fileno(ptr noundef %83) #11
  %85 = call i32 @isatty(i32 noundef %84) #11
  %.not29 = icmp eq i32 %85, 0
  br i1 %.not29, label %86, label %87

86:                                               ; preds = %82, %75
  br label %87

87:                                               ; preds = %82, %86
  %.str.4.sink55 = phi ptr [ @.str.4, %86 ], [ @.str, %82 ]
  store i32 %77, ptr %76, align 4, !tbaa !5
  %88 = load ptr, ptr @stderr, align 8, !tbaa !9
  %89 = load i32, ptr @test_count, align 4, !tbaa !5
  %90 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = call ptr @s2n_strerror(i32 noundef %91, ptr noundef nonnull @.str.3) #11
  %93 = load i32, ptr %90, align 4, !tbaa !5
  %94 = call ptr @s2n_strerror_debug(i32 noundef %93, ptr noundef nonnull @.str.3) #11
  %95 = load i32, ptr %76, align 4, !tbaa !5
  %96 = call ptr @strerror(i32 noundef %95) #11
  %97 = load i32, ptr %76, align 4, !tbaa !5
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef nonnull %.str.4.sink55, i32 noundef %89, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.2, i32 noundef 34, ptr noundef %92, ptr noundef %94, ptr noundef %96, i32 noundef %97) #13
  call void @exit(i32 noundef 1) #14
  unreachable

99:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %6) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(100) %6, i8 0, i64 100, i1 false)
  br label %103

100:                                              ; preds = %103
  %101 = add nuw nsw i64 %106, %.02432
  %102 = icmp slt i64 %101, 100
  br i1 %102, label %103, label %134, !llvm.loop !17

103:                                              ; preds = %99, %100
  %.02432 = phi i64 [ 0, %99 ], [ %101, %100 ]
  %104 = getelementptr inbounds i8, ptr %6, i64 %.02432
  %105 = sub nuw nsw i64 100, %.02432
  %106 = call i64 @s2n_recv(ptr noundef %1, ptr noundef nonnull %104, i64 noundef %105, ptr noundef nonnull %5) #11
  %107 = load i32, ptr @test_count, align 4, !tbaa !5
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr @test_count, align 4, !tbaa !5
  %109 = icmp sgt i64 %106, 0
  br i1 %109, label %100, label %110

110:                                              ; preds = %103
  %111 = tail call ptr @__errno_location() #12
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = load ptr, ptr @stderr, align 8, !tbaa !9
  %114 = call i32 @s2n_print_stacktrace(ptr noundef %113) #11
  %115 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %116 = trunc nuw i8 %115 to i1
  br i1 %116, label %117, label %121

117:                                              ; preds = %110
  %118 = load ptr, ptr @stderr, align 8, !tbaa !9
  %119 = call i32 @fileno(ptr noundef %118) #11
  %120 = call i32 @isatty(i32 noundef %119) #11
  %.not28 = icmp eq i32 %120, 0
  br i1 %.not28, label %121, label %122

121:                                              ; preds = %117, %110
  br label %122

122:                                              ; preds = %117, %121
  %.str.4.sink66 = phi ptr [ @.str.4, %121 ], [ @.str, %117 ]
  store i32 %112, ptr %111, align 4, !tbaa !5
  %123 = load ptr, ptr @stderr, align 8, !tbaa !9
  %124 = load i32, ptr @test_count, align 4, !tbaa !5
  %125 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %127 = call ptr @s2n_strerror(i32 noundef %126, ptr noundef nonnull @.str.3) #11
  %128 = load i32, ptr %125, align 4, !tbaa !5
  %129 = call ptr @s2n_strerror_debug(i32 noundef %128, ptr noundef nonnull @.str.3) #11
  %130 = load i32, ptr %111, align 4, !tbaa !5
  %131 = call ptr @strerror(i32 noundef %130) #11
  %132 = load i32, ptr %111, align 4, !tbaa !5
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %123, ptr noundef nonnull %.str.4.sink66, i32 noundef %124, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.2, i32 noundef 43, ptr noundef %127, ptr noundef %129, ptr noundef %131, i32 noundef %132) #13
  call void @exit(i32 noundef 1) #14
  unreachable

134:                                              ; preds = %100
  %135 = add nsw i32 %107, 2
  store i32 %135, ptr @test_count, align 4, !tbaa !5
  %bcmp = call i32 @bcmp(ptr noundef nonnull dereferenceable(100) %3, ptr noundef nonnull dereferenceable(100) %6, i64 100)
  %136 = icmp eq i32 %bcmp, 0
  br i1 %136, label %161, label %137

137:                                              ; preds = %134
  %138 = tail call ptr @__errno_location() #12
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = load ptr, ptr @stderr, align 8, !tbaa !9
  %141 = call i32 @s2n_print_stacktrace(ptr noundef %140) #11
  %142 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %143 = trunc nuw i8 %142 to i1
  br i1 %143, label %144, label %148

144:                                              ; preds = %137
  %145 = load ptr, ptr @stderr, align 8, !tbaa !9
  %146 = call i32 @fileno(ptr noundef %145) #11
  %147 = call i32 @isatty(i32 noundef %146) #11
  %.not27 = icmp eq i32 %147, 0
  br i1 %.not27, label %148, label %149

148:                                              ; preds = %144, %137
  br label %149

149:                                              ; preds = %144, %148
  %.str.4.sink77 = phi ptr [ @.str.4, %148 ], [ @.str, %144 ]
  store i32 %139, ptr %138, align 4, !tbaa !5
  %150 = load ptr, ptr @stderr, align 8, !tbaa !9
  %151 = load i32, ptr @test_count, align 4, !tbaa !5
  %152 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %153 = load i32, ptr %152, align 4, !tbaa !5
  %154 = call ptr @s2n_strerror(i32 noundef %153, ptr noundef nonnull @.str.3) #11
  %155 = load i32, ptr %152, align 4, !tbaa !5
  %156 = call ptr @s2n_strerror_debug(i32 noundef %155, ptr noundef nonnull @.str.3) #11
  %157 = load i32, ptr %138, align 4, !tbaa !5
  %158 = call ptr @strerror(i32 noundef %157) #11
  %159 = load i32, ptr %138, align 4, !tbaa !5
  %160 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %150, ptr noundef nonnull %.str.4.sink77, i32 noundef %151, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.2, i32 noundef 47, ptr noundef %154, ptr noundef %156, ptr noundef %158, i32 noundef %159) #13
  call void @exit(i32 noundef 1) #14
  unreachable

161:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %6) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #11
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %3) #11
  ret i32 0
}

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

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

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

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

declare i32 @s2n_print_stacktrace(ptr noundef) local_unnamed_addr #3

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

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

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

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

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

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

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

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

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

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

declare i32 @s2n_get_public_random_data(ptr noundef) local_unnamed_addr #3

declare i64 @s2n_send(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

declare i64 @s2n_recv(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #10

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


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