; LLVM IR from aws/s2n-tls :: tests/unit (s2n_security_policies_rules_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_security_policy_selection = type { ptr, ptr, i8 }
%struct.s2n_security_rule_result = type { i8, i8, %struct.s2n_stuffer }
%struct.s2n_stuffer = type { %struct.s2n_blob, i32, i32, i32, i8 }
%struct.s2n_blob = type { ptr, i32, i32, i8 }
%struct.s2n_result = type { i32 }

@s2n_use_color_in_output = external dso_local global i8, align 1
@test_count = external dso_local global i32, align 4
@stdout = external global ptr, align 8
@.str = external hidden unnamed_addr constant [19 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [91 x i8], align 1
@stderr = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [52 x i8], align 1
@s2n_errno = external thread_local global i32, align 4
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [77 x i8], align 1
@security_policy_selection = external global [0 x %struct.s2n_security_policy_selection], align 8
@.str.9 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %struct.s2n_security_rule_result, align 8
  %10 = alloca %struct.s2n_result, align 4
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %struct.s2n_result, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %struct.s2n_result, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  br label %25

25:                                               ; preds = %2
  br label %26

26:                                               ; preds = %25
  store i32 0, ptr @test_count, align 4, !tbaa !5
  %27 = load ptr, ptr @stdout, align 8, !tbaa !9
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef @.str, ptr noundef @.str.1) #9
  %29 = load ptr, ptr @stdout, align 8, !tbaa !9
  %30 = call i32 @fflush(ptr noundef %29)
  br label %31

31:                                               ; preds = %26
  %32 = call i32 @s2n_in_unit_test_set(i1 noundef zeroext true)
  %33 = icmp eq i32 %32, -1
  br i1 %33, label %34, label %85

34:                                               ; preds = %31
  br label %35

35:                                               ; preds = %34
  br label %36

36:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  %37 = call ptr @__errno_location() #10
  %38 = load i32, ptr %37, align 4, !tbaa !5
  store i32 %38, ptr %6, align 4, !tbaa !5
  %39 = load ptr, ptr @stderr, align 8, !tbaa !9
  %40 = call i32 @s2n_print_stacktrace(ptr noundef %39)
  %41 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %42 = trunc i8 %41 to i1
  br i1 %42, label %43, label %65

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

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

65:                                               ; preds = %43, %36
  %66 = load i32, ptr %6, align 4, !tbaa !5
  %67 = call ptr @__errno_location() #10
  store i32 %66, ptr %67, align 4, !tbaa !5
  %68 = load ptr, ptr @stderr, align 8, !tbaa !9
  %69 = load i32, ptr @test_count, align 4, !tbaa !5
  %70 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = call ptr @s2n_strerror(i32 noundef %71, ptr noundef @.str.4)
  %73 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = call ptr @s2n_strerror_debug(i32 noundef %74, ptr noundef @.str.4)
  %76 = call ptr @__errno_location() #10
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = call ptr @strerror(i32 noundef %77) #9
  %79 = call ptr @__errno_location() #10
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %68, ptr noundef @.str.5, i32 noundef %69, ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 21, ptr noundef %72, ptr noundef %75, ptr noundef %78, i32 noundef %80) #9
  br label %82

82:                                               ; preds = %65, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  br label %83

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

84:                                               ; No predecessors!
  br label %85

85:                                               ; preds = %84, %31
  br label %86

86:                                               ; preds = %85
  br label %87

87:                                               ; preds = %86
  %88 = load i32, ptr @test_count, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr @test_count, align 4, !tbaa !5
  %90 = call i32 @s2n_enable_atexit()
  %91 = icmp eq i32 %90, -1
  br i1 %91, label %92, label %143

92:                                               ; preds = %87
  br label %93

93:                                               ; preds = %92
  br label %94

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

101:                                              ; preds = %94
  %102 = load ptr, ptr @stderr, align 8, !tbaa !9
  %103 = call i32 @fileno(ptr noundef %102) #9
  %104 = call i32 @isatty(i32 noundef %103) #9
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %106, label %123

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

123:                                              ; preds = %101, %94
  %124 = load i32, ptr %7, align 4, !tbaa !5
  %125 = call ptr @__errno_location() #10
  store i32 %124, ptr %125, align 4, !tbaa !5
  %126 = load ptr, ptr @stderr, align 8, !tbaa !9
  %127 = load i32, ptr @test_count, align 4, !tbaa !5
  %128 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %129 = load i32, ptr %128, align 4, !tbaa !5
  %130 = call ptr @s2n_strerror(i32 noundef %129, ptr noundef @.str.4)
  %131 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %132 = load i32, ptr %131, align 4, !tbaa !5
  %133 = call ptr @s2n_strerror_debug(i32 noundef %132, ptr noundef @.str.4)
  %134 = call ptr @__errno_location() #10
  %135 = load i32, ptr %134, align 4, !tbaa !5
  %136 = call ptr @strerror(i32 noundef %135) #9
  %137 = call ptr @__errno_location() #10
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %139 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %126, ptr noundef @.str.5, i32 noundef %127, ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 21, ptr noundef %130, ptr noundef %133, ptr noundef %136, i32 noundef %138) #9
  br label %140

140:                                              ; preds = %123, %106
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  br label %141

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

142:                                              ; No predecessors!
  br label %143

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

144:                                              ; preds = %143
  br label %145

145:                                              ; preds = %144
  br label %146

146:                                              ; preds = %145
  %147 = call i32 @s2n_init()
  %148 = icmp eq i32 %147, -1
  br i1 %148, label %149, label %200

149:                                              ; preds = %146
  br label %150

150:                                              ; preds = %149
  br label %151

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

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

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

180:                                              ; preds = %158, %151
  %181 = load i32, ptr %8, align 4, !tbaa !5
  %182 = call ptr @__errno_location() #10
  store i32 %181, ptr %182, align 4, !tbaa !5
  %183 = load ptr, ptr @stderr, align 8, !tbaa !9
  %184 = load i32, ptr @test_count, align 4, !tbaa !5
  %185 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %186 = load i32, ptr %185, align 4, !tbaa !5
  %187 = call ptr @s2n_strerror(i32 noundef %186, ptr noundef @.str.4)
  %188 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %189 = load i32, ptr %188, align 4, !tbaa !5
  %190 = call ptr @s2n_strerror_debug(i32 noundef %189, ptr noundef @.str.4)
  %191 = call ptr @__errno_location() #10
  %192 = load i32, ptr %191, align 4, !tbaa !5
  %193 = call ptr @strerror(i32 noundef %192) #9
  %194 = call ptr @__errno_location() #10
  %195 = load i32, ptr %194, align 4, !tbaa !5
  %196 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %183, ptr noundef @.str.5, i32 noundef %184, ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 21, ptr noundef %187, ptr noundef %190, ptr noundef %193, i32 noundef %195) #9
  br label %197

197:                                              ; preds = %180, %163
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  br label %198

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

199:                                              ; No predecessors!
  br label %200

200:                                              ; preds = %199, %146
  br label %201

201:                                              ; preds = %200
  br label %202

202:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 48, ptr %9) #9
  call void @llvm.memset.p0.i64(ptr align 8 %9, i8 0, i64 48, i1 false)
  br label %203

203:                                              ; preds = %202
  %204 = load i32, ptr @test_count, align 4, !tbaa !5
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr @test_count, align 4, !tbaa !5
  %206 = call i32 @s2n_security_rule_result_init_output(ptr noundef %9)
  %207 = getelementptr inbounds %struct.s2n_result, ptr %10, i32 0, i32 0
  store i32 %206, ptr %207, align 4
  %208 = getelementptr inbounds %struct.s2n_result, ptr %10, i32 0, i32 0
  %209 = load i32, ptr %208, align 4
  %210 = call zeroext i1 @s2n_result_is_ok(i32 %209)
  br i1 %210, label %264, label %211

211:                                              ; preds = %203
  br label %212

212:                                              ; preds = %211
  br label %213

213:                                              ; preds = %212
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  %214 = call ptr @__errno_location() #10
  %215 = load i32, ptr %214, align 4, !tbaa !5
  store i32 %215, ptr %11, align 4, !tbaa !5
  %216 = load ptr, ptr @stderr, align 8, !tbaa !9
  %217 = call i32 @s2n_print_stacktrace(ptr noundef %216)
  %218 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %219 = trunc i8 %218 to i1
  br i1 %219, label %220, label %242

220:                                              ; preds = %213
  %221 = load ptr, ptr @stderr, align 8, !tbaa !9
  %222 = call i32 @fileno(ptr noundef %221) #9
  %223 = call i32 @isatty(i32 noundef %222) #9
  %224 = icmp ne i32 %223, 0
  br i1 %224, label %225, label %242

225:                                              ; preds = %220
  %226 = load i32, ptr %11, align 4, !tbaa !5
  %227 = call ptr @__errno_location() #10
  store i32 %226, ptr %227, align 4, !tbaa !5
  %228 = load ptr, ptr @stderr, align 8, !tbaa !9
  %229 = load i32, ptr @test_count, align 4, !tbaa !5
  %230 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %231 = load i32, ptr %230, align 4, !tbaa !5
  %232 = call ptr @s2n_strerror(i32 noundef %231, ptr noundef @.str.4)
  %233 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %234 = load i32, ptr %233, align 4, !tbaa !5
  %235 = call ptr @s2n_strerror_debug(i32 noundef %234, ptr noundef @.str.4)
  %236 = call ptr @__errno_location() #10
  %237 = load i32, ptr %236, align 4, !tbaa !5
  %238 = call ptr @strerror(i32 noundef %237) #9
  %239 = call ptr @__errno_location() #10
  %240 = load i32, ptr %239, align 4, !tbaa !5
  %241 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %228, ptr noundef @.str.2, i32 noundef %229, ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 25, ptr noundef %232, ptr noundef %235, ptr noundef %238, i32 noundef %240) #9
  br label %259

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

259:                                              ; preds = %242, %225
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  br label %260

260:                                              ; preds = %259
  br label %261

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

262:                                              ; No predecessors!
  br label %263

263:                                              ; preds = %262
  br label %264

264:                                              ; preds = %263, %203
  br label %265

265:                                              ; preds = %264
  br label %266

266:                                              ; preds = %265
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  store i64 0, ptr %12, align 8, !tbaa !15
  br label %267

267:                                              ; preds = %405, %266
  %268 = load i64, ptr %12, align 8, !tbaa !15
  %269 = getelementptr inbounds [0 x %struct.s2n_security_policy_selection], ptr @security_policy_selection, i64 0, i64 %268
  %270 = getelementptr inbounds %struct.s2n_security_policy_selection, ptr %269, i32 0, i32 0
  %271 = load ptr, ptr %270, align 8, !tbaa !17
  %272 = icmp ne ptr %271, null
  br i1 %272, label %274, label %273

273:                                              ; preds = %267
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  br label %408

274:                                              ; preds = %267
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #9
  %275 = load i64, ptr %12, align 8, !tbaa !15
  %276 = getelementptr inbounds [0 x %struct.s2n_security_policy_selection], ptr @security_policy_selection, i64 0, i64 %275
  %277 = getelementptr inbounds %struct.s2n_security_policy_selection, ptr %276, i32 0, i32 1
  %278 = load ptr, ptr %277, align 8, !tbaa !19
  store ptr %278, ptr %13, align 8, !tbaa !9
  br label %279

279:                                              ; preds = %274
  %280 = load i32, ptr @test_count, align 4, !tbaa !5
  %281 = add nsw i32 %280, 1
  store i32 %281, ptr @test_count, align 4, !tbaa !5
  %282 = load ptr, ptr %13, align 8, !tbaa !9
  %283 = icmp eq ptr %282, null
  br i1 %283, label %284, label %337

284:                                              ; preds = %279
  br label %285

285:                                              ; preds = %284
  br label %286

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

293:                                              ; preds = %286
  %294 = load ptr, ptr @stderr, align 8, !tbaa !9
  %295 = call i32 @fileno(ptr noundef %294) #9
  %296 = call i32 @isatty(i32 noundef %295) #9
  %297 = icmp ne i32 %296, 0
  br i1 %297, label %298, label %315

298:                                              ; preds = %293
  %299 = load i32, ptr %14, align 4, !tbaa !5
  %300 = call ptr @__errno_location() #10
  store i32 %299, ptr %300, align 4, !tbaa !5
  %301 = load ptr, ptr @stderr, align 8, !tbaa !9
  %302 = load i32, ptr @test_count, align 4, !tbaa !5
  %303 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %304 = load i32, ptr %303, align 4, !tbaa !5
  %305 = call ptr @s2n_strerror(i32 noundef %304, ptr noundef @.str.4)
  %306 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %307 = load i32, ptr %306, align 4, !tbaa !5
  %308 = call ptr @s2n_strerror_debug(i32 noundef %307, ptr noundef @.str.4)
  %309 = call ptr @__errno_location() #10
  %310 = load i32, ptr %309, align 4, !tbaa !5
  %311 = call ptr @strerror(i32 noundef %310) #9
  %312 = call ptr @__errno_location() #10
  %313 = load i32, ptr %312, align 4, !tbaa !5
  %314 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %301, ptr noundef @.str.2, i32 noundef %302, ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 29, ptr noundef %305, ptr noundef %308, ptr noundef %311, i32 noundef %313) #9
  br label %332

315:                                              ; preds = %293, %286
  %316 = load i32, ptr %14, align 4, !tbaa !5
  %317 = call ptr @__errno_location() #10
  store i32 %316, ptr %317, align 4, !tbaa !5
  %318 = load ptr, ptr @stderr, align 8, !tbaa !9
  %319 = load i32, ptr @test_count, align 4, !tbaa !5
  %320 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %321 = load i32, ptr %320, align 4, !tbaa !5
  %322 = call ptr @s2n_strerror(i32 noundef %321, ptr noundef @.str.4)
  %323 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %324 = load i32, ptr %323, align 4, !tbaa !5
  %325 = call ptr @s2n_strerror_debug(i32 noundef %324, ptr noundef @.str.4)
  %326 = call ptr @__errno_location() #10
  %327 = load i32, ptr %326, align 4, !tbaa !5
  %328 = call ptr @strerror(i32 noundef %327) #9
  %329 = call ptr @__errno_location() #10
  %330 = load i32, ptr %329, align 4, !tbaa !5
  %331 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %318, ptr noundef @.str.5, i32 noundef %319, ptr noundef @.str.9, ptr noundef @.str.1, i32 noundef 29, ptr noundef %322, ptr noundef %325, ptr noundef %328, i32 noundef %330) #9
  br label %332

332:                                              ; preds = %315, %298
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  br label %333

333:                                              ; preds = %332
  br label %334

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

335:                                              ; No predecessors!
  br label %336

336:                                              ; preds = %335
  br label %337

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

338:                                              ; preds = %337
  br label %339

339:                                              ; preds = %338
  br label %340

340:                                              ; preds = %339
  %341 = load i32, ptr @test_count, align 4, !tbaa !5
  %342 = add nsw i32 %341, 1
  store i32 %342, ptr @test_count, align 4, !tbaa !5
  %343 = load ptr, ptr %13, align 8, !tbaa !9
  %344 = call i32 @s2n_security_policy_validate_security_rules(ptr noundef %343, ptr noundef %9)
  %345 = getelementptr inbounds %struct.s2n_result, ptr %15, i32 0, i32 0
  store i32 %344, ptr %345, align 4
  %346 = getelementptr inbounds %struct.s2n_result, ptr %15, i32 0, i32 0
  %347 = load i32, ptr %346, align 4
  %348 = call zeroext i1 @s2n_result_is_ok(i32 %347)
  br i1 %348, label %402, label %349

349:                                              ; preds = %340
  br label %350

350:                                              ; preds = %349
  br label %351

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

358:                                              ; preds = %351
  %359 = load ptr, ptr @stderr, align 8, !tbaa !9
  %360 = call i32 @fileno(ptr noundef %359) #9
  %361 = call i32 @isatty(i32 noundef %360) #9
  %362 = icmp ne i32 %361, 0
  br i1 %362, label %363, label %380

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

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

397:                                              ; preds = %380, %363
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  br label %398

398:                                              ; preds = %397
  br label %399

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

400:                                              ; No predecessors!
  br label %401

401:                                              ; preds = %400
  br label %402

402:                                              ; preds = %401, %340
  br label %403

403:                                              ; preds = %402
  br label %404

404:                                              ; preds = %403
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #9
  br label %405

405:                                              ; preds = %404
  %406 = load i64, ptr %12, align 8, !tbaa !15
  %407 = add i64 %406, 1
  store i64 %407, ptr %12, align 8, !tbaa !15
  br label %267, !llvm.loop !20

408:                                              ; preds = %273
  %409 = getelementptr inbounds %struct.s2n_security_rule_result, ptr %9, i32 0, i32 0
  %410 = load i8, ptr %409, align 8, !tbaa !22, !range !13, !noundef !14
  %411 = trunc i8 %410 to i1
  br i1 %411, label %412, label %540

412:                                              ; preds = %408
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  %413 = getelementptr inbounds %struct.s2n_security_rule_result, ptr %9, i32 0, i32 2
  %414 = getelementptr inbounds %struct.s2n_stuffer, ptr %413, i32 0, i32 2
  %415 = load i32, ptr %414, align 4, !tbaa !26
  %416 = getelementptr inbounds %struct.s2n_security_rule_result, ptr %9, i32 0, i32 2
  %417 = getelementptr inbounds %struct.s2n_stuffer, ptr %416, i32 0, i32 1
  %418 = load i32, ptr %417, align 8, !tbaa !27
  %419 = sub i32 %415, %418
  store i32 %419, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %420 = getelementptr inbounds %struct.s2n_security_rule_result, ptr %9, i32 0, i32 2
  %421 = load i32, ptr %17, align 4, !tbaa !5
  %422 = call ptr @s2n_stuffer_raw_read(ptr noundef %420, i32 noundef %421)
  store ptr %422, ptr %18, align 8, !tbaa !9
  br label %423

423:                                              ; preds = %412
  %424 = load i32, ptr @test_count, align 4, !tbaa !5
  %425 = add nsw i32 %424, 1
  store i32 %425, ptr @test_count, align 4, !tbaa !5
  %426 = load ptr, ptr %18, align 8, !tbaa !9
  %427 = icmp eq ptr %426, null
  br i1 %427, label %428, label %481

428:                                              ; preds = %423
  br label %429

429:                                              ; preds = %428
  br label %430

430:                                              ; preds = %429
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  %431 = call ptr @__errno_location() #10
  %432 = load i32, ptr %431, align 4, !tbaa !5
  store i32 %432, ptr %19, align 4, !tbaa !5
  %433 = load ptr, ptr @stderr, align 8, !tbaa !9
  %434 = call i32 @s2n_print_stacktrace(ptr noundef %433)
  %435 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %436 = trunc i8 %435 to i1
  br i1 %436, label %437, label %459

437:                                              ; preds = %430
  %438 = load ptr, ptr @stderr, align 8, !tbaa !9
  %439 = call i32 @fileno(ptr noundef %438) #9
  %440 = call i32 @isatty(i32 noundef %439) #9
  %441 = icmp ne i32 %440, 0
  br i1 %441, label %442, label %459

442:                                              ; preds = %437
  %443 = load i32, ptr %19, align 4, !tbaa !5
  %444 = call ptr @__errno_location() #10
  store i32 %443, ptr %444, align 4, !tbaa !5
  %445 = load ptr, ptr @stderr, align 8, !tbaa !9
  %446 = load i32, ptr @test_count, align 4, !tbaa !5
  %447 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %448 = load i32, ptr %447, align 4, !tbaa !5
  %449 = call ptr @s2n_strerror(i32 noundef %448, ptr noundef @.str.4)
  %450 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %451 = load i32, ptr %450, align 4, !tbaa !5
  %452 = call ptr @s2n_strerror_debug(i32 noundef %451, ptr noundef @.str.4)
  %453 = call ptr @__errno_location() #10
  %454 = load i32, ptr %453, align 4, !tbaa !5
  %455 = call ptr @strerror(i32 noundef %454) #9
  %456 = call ptr @__errno_location() #10
  %457 = load i32, ptr %456, align 4, !tbaa !5
  %458 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %445, ptr noundef @.str.2, i32 noundef %446, ptr noundef @.str.11, ptr noundef @.str.1, i32 noundef 36, ptr noundef %449, ptr noundef %452, ptr noundef %455, i32 noundef %457) #9
  br label %476

459:                                              ; preds = %437, %430
  %460 = load i32, ptr %19, align 4, !tbaa !5
  %461 = call ptr @__errno_location() #10
  store i32 %460, ptr %461, align 4, !tbaa !5
  %462 = load ptr, ptr @stderr, align 8, !tbaa !9
  %463 = load i32, ptr @test_count, align 4, !tbaa !5
  %464 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %465 = load i32, ptr %464, align 4, !tbaa !5
  %466 = call ptr @s2n_strerror(i32 noundef %465, ptr noundef @.str.4)
  %467 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %468 = load i32, ptr %467, align 4, !tbaa !5
  %469 = call ptr @s2n_strerror_debug(i32 noundef %468, ptr noundef @.str.4)
  %470 = call ptr @__errno_location() #10
  %471 = load i32, ptr %470, align 4, !tbaa !5
  %472 = call ptr @strerror(i32 noundef %471) #9
  %473 = call ptr @__errno_location() #10
  %474 = load i32, ptr %473, align 4, !tbaa !5
  %475 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %462, ptr noundef @.str.5, i32 noundef %463, ptr noundef @.str.11, ptr noundef @.str.1, i32 noundef 36, ptr noundef %466, ptr noundef %469, ptr noundef %472, i32 noundef %474) #9
  br label %476

476:                                              ; preds = %459, %442
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  br label %477

477:                                              ; preds = %476
  br label %478

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

479:                                              ; No predecessors!
  br label %480

480:                                              ; preds = %479
  br label %481

481:                                              ; preds = %480, %423
  br label %482

482:                                              ; preds = %481
  br label %483

483:                                              ; preds = %482
  %484 = load ptr, ptr @stdout, align 8, !tbaa !9
  %485 = load i32, ptr %17, align 4, !tbaa !5
  %486 = load ptr, ptr %18, align 8, !tbaa !9
  %487 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %484, ptr noundef @.str.12, i32 noundef %485, ptr noundef %486) #9
  br label %488

488:                                              ; preds = %483
  br label %489

489:                                              ; preds = %488
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  %490 = call ptr @__errno_location() #10
  %491 = load i32, ptr %490, align 4, !tbaa !5
  store i32 %491, ptr %20, align 4, !tbaa !5
  %492 = load ptr, ptr @stderr, align 8, !tbaa !9
  %493 = call i32 @s2n_print_stacktrace(ptr noundef %492)
  %494 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %495 = trunc i8 %494 to i1
  br i1 %495, label %496, label %518

496:                                              ; preds = %489
  %497 = load ptr, ptr @stderr, align 8, !tbaa !9
  %498 = call i32 @fileno(ptr noundef %497) #9
  %499 = call i32 @isatty(i32 noundef %498) #9
  %500 = icmp ne i32 %499, 0
  br i1 %500, label %501, label %518

501:                                              ; preds = %496
  %502 = load i32, ptr %20, align 4, !tbaa !5
  %503 = call ptr @__errno_location() #10
  store i32 %502, ptr %503, align 4, !tbaa !5
  %504 = load ptr, ptr @stderr, align 8, !tbaa !9
  %505 = load i32, ptr @test_count, align 4, !tbaa !5
  %506 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %507 = load i32, ptr %506, align 4, !tbaa !5
  %508 = call ptr @s2n_strerror(i32 noundef %507, ptr noundef @.str.4)
  %509 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %510 = load i32, ptr %509, align 4, !tbaa !5
  %511 = call ptr @s2n_strerror_debug(i32 noundef %510, ptr noundef @.str.4)
  %512 = call ptr @__errno_location() #10
  %513 = load i32, ptr %512, align 4, !tbaa !5
  %514 = call ptr @strerror(i32 noundef %513) #9
  %515 = call ptr @__errno_location() #10
  %516 = load i32, ptr %515, align 4, !tbaa !5
  %517 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %504, ptr noundef @.str.2, i32 noundef %505, ptr noundef @.str.13, ptr noundef @.str.1, i32 noundef 38, ptr noundef %508, ptr noundef %511, ptr noundef %514, i32 noundef %516) #9
  br label %535

518:                                              ; preds = %496, %489
  %519 = load i32, ptr %20, align 4, !tbaa !5
  %520 = call ptr @__errno_location() #10
  store i32 %519, ptr %520, align 4, !tbaa !5
  %521 = load ptr, ptr @stderr, align 8, !tbaa !9
  %522 = load i32, ptr @test_count, align 4, !tbaa !5
  %523 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %524 = load i32, ptr %523, align 4, !tbaa !5
  %525 = call ptr @s2n_strerror(i32 noundef %524, ptr noundef @.str.4)
  %526 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %527 = load i32, ptr %526, align 4, !tbaa !5
  %528 = call ptr @s2n_strerror_debug(i32 noundef %527, ptr noundef @.str.4)
  %529 = call ptr @__errno_location() #10
  %530 = load i32, ptr %529, align 4, !tbaa !5
  %531 = call ptr @strerror(i32 noundef %530) #9
  %532 = call ptr @__errno_location() #10
  %533 = load i32, ptr %532, align 4, !tbaa !5
  %534 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %521, ptr noundef @.str.5, i32 noundef %522, ptr noundef @.str.13, ptr noundef @.str.1, i32 noundef 38, ptr noundef %525, ptr noundef %528, ptr noundef %531, i32 noundef %533) #9
  br label %535

535:                                              ; preds = %518, %501
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  br label %536

536:                                              ; preds = %535
  br label %537

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

538:                                              ; No predecessors!
  br label %539

539:                                              ; preds = %538
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  br label %540

540:                                              ; preds = %539, %408
  br label %541

541:                                              ; preds = %540
  br label %542

542:                                              ; preds = %541
  %543 = call i32 @s2n_cleanup()
  %544 = icmp eq i32 %543, -1
  br i1 %544, label %545, label %598

545:                                              ; preds = %542
  br label %546

546:                                              ; preds = %545
  br label %547

547:                                              ; preds = %546
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  %548 = call ptr @__errno_location() #10
  %549 = load i32, ptr %548, align 4, !tbaa !5
  store i32 %549, ptr %21, align 4, !tbaa !5
  %550 = load ptr, ptr @stderr, align 8, !tbaa !9
  %551 = call i32 @s2n_print_stacktrace(ptr noundef %550)
  %552 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %553 = trunc i8 %552 to i1
  br i1 %553, label %554, label %576

554:                                              ; preds = %547
  %555 = load ptr, ptr @stderr, align 8, !tbaa !9
  %556 = call i32 @fileno(ptr noundef %555) #9
  %557 = call i32 @isatty(i32 noundef %556) #9
  %558 = icmp ne i32 %557, 0
  br i1 %558, label %559, label %576

559:                                              ; preds = %554
  %560 = load i32, ptr %21, align 4, !tbaa !5
  %561 = call ptr @__errno_location() #10
  store i32 %560, ptr %561, align 4, !tbaa !5
  %562 = load ptr, ptr @stderr, align 8, !tbaa !9
  %563 = load i32, ptr @test_count, align 4, !tbaa !5
  %564 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %565 = load i32, ptr %564, align 4, !tbaa !5
  %566 = call ptr @s2n_strerror(i32 noundef %565, ptr noundef @.str.4)
  %567 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %568 = load i32, ptr %567, align 4, !tbaa !5
  %569 = call ptr @s2n_strerror_debug(i32 noundef %568, ptr noundef @.str.4)
  %570 = call ptr @__errno_location() #10
  %571 = load i32, ptr %570, align 4, !tbaa !5
  %572 = call ptr @strerror(i32 noundef %571) #9
  %573 = call ptr @__errno_location() #10
  %574 = load i32, ptr %573, align 4, !tbaa !5
  %575 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %562, ptr noundef @.str.2, i32 noundef %563, ptr noundef @.str.14, ptr noundef @.str.1, i32 noundef 41, ptr noundef %566, ptr noundef %569, ptr noundef %572, i32 noundef %574) #9
  br label %593

576:                                              ; preds = %554, %547
  %577 = load i32, ptr %21, align 4, !tbaa !5
  %578 = call ptr @__errno_location() #10
  store i32 %577, ptr %578, align 4, !tbaa !5
  %579 = load ptr, ptr @stderr, align 8, !tbaa !9
  %580 = load i32, ptr @test_count, align 4, !tbaa !5
  %581 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %582 = load i32, ptr %581, align 4, !tbaa !5
  %583 = call ptr @s2n_strerror(i32 noundef %582, ptr noundef @.str.4)
  %584 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %585 = load i32, ptr %584, align 4, !tbaa !5
  %586 = call ptr @s2n_strerror_debug(i32 noundef %585, ptr noundef @.str.4)
  %587 = call ptr @__errno_location() #10
  %588 = load i32, ptr %587, align 4, !tbaa !5
  %589 = call ptr @strerror(i32 noundef %588) #9
  %590 = call ptr @__errno_location() #10
  %591 = load i32, ptr %590, align 4, !tbaa !5
  %592 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %579, ptr noundef @.str.5, i32 noundef %580, ptr noundef @.str.14, ptr noundef @.str.1, i32 noundef 41, ptr noundef %583, ptr noundef %586, ptr noundef %589, i32 noundef %591) #9
  br label %593

593:                                              ; preds = %576, %559
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %594

594:                                              ; preds = %593
  br label %595

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

596:                                              ; No predecessors!
  br label %597

597:                                              ; preds = %596
  br label %598

598:                                              ; preds = %597, %542
  br label %599

599:                                              ; preds = %598
  br label %600

600:                                              ; preds = %599
  br label %601

601:                                              ; preds = %600
  br label %602

602:                                              ; preds = %601
  %603 = call i32 @s2n_in_unit_test_set(i1 noundef zeroext false)
  %604 = icmp eq i32 %603, -1
  br i1 %604, label %605, label %658

605:                                              ; preds = %602
  br label %606

606:                                              ; preds = %605
  br label %607

607:                                              ; preds = %606
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  %608 = call ptr @__errno_location() #10
  %609 = load i32, ptr %608, align 4, !tbaa !5
  store i32 %609, ptr %22, align 4, !tbaa !5
  %610 = load ptr, ptr @stderr, align 8, !tbaa !9
  %611 = call i32 @s2n_print_stacktrace(ptr noundef %610)
  %612 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %613 = trunc i8 %612 to i1
  br i1 %613, label %614, label %636

614:                                              ; preds = %607
  %615 = load ptr, ptr @stderr, align 8, !tbaa !9
  %616 = call i32 @fileno(ptr noundef %615) #9
  %617 = call i32 @isatty(i32 noundef %616) #9
  %618 = icmp ne i32 %617, 0
  br i1 %618, label %619, label %636

619:                                              ; preds = %614
  %620 = load i32, ptr %22, align 4, !tbaa !5
  %621 = call ptr @__errno_location() #10
  store i32 %620, ptr %621, align 4, !tbaa !5
  %622 = load ptr, ptr @stderr, align 8, !tbaa !9
  %623 = load i32, ptr @test_count, align 4, !tbaa !5
  %624 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %625 = load i32, ptr %624, align 4, !tbaa !5
  %626 = call ptr @s2n_strerror(i32 noundef %625, ptr noundef @.str.4)
  %627 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %628 = load i32, ptr %627, align 4, !tbaa !5
  %629 = call ptr @s2n_strerror_debug(i32 noundef %628, ptr noundef @.str.4)
  %630 = call ptr @__errno_location() #10
  %631 = load i32, ptr %630, align 4, !tbaa !5
  %632 = call ptr @strerror(i32 noundef %631) #9
  %633 = call ptr @__errno_location() #10
  %634 = load i32, ptr %633, align 4, !tbaa !5
  %635 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %622, ptr noundef @.str.2, i32 noundef %623, ptr noundef @.str.15, ptr noundef @.str.1, i32 noundef 41, ptr noundef %626, ptr noundef %629, ptr noundef %632, i32 noundef %634) #9
  br label %653

636:                                              ; preds = %614, %607
  %637 = load i32, ptr %22, align 4, !tbaa !5
  %638 = call ptr @__errno_location() #10
  store i32 %637, ptr %638, align 4, !tbaa !5
  %639 = load ptr, ptr @stderr, align 8, !tbaa !9
  %640 = load i32, ptr @test_count, align 4, !tbaa !5
  %641 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %642 = load i32, ptr %641, align 4, !tbaa !5
  %643 = call ptr @s2n_strerror(i32 noundef %642, ptr noundef @.str.4)
  %644 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %645 = load i32, ptr %644, align 4, !tbaa !5
  %646 = call ptr @s2n_strerror_debug(i32 noundef %645, ptr noundef @.str.4)
  %647 = call ptr @__errno_location() #10
  %648 = load i32, ptr %647, align 4, !tbaa !5
  %649 = call ptr @strerror(i32 noundef %648) #9
  %650 = call ptr @__errno_location() #10
  %651 = load i32, ptr %650, align 4, !tbaa !5
  %652 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %639, ptr noundef @.str.5, i32 noundef %640, ptr noundef @.str.15, ptr noundef @.str.1, i32 noundef 41, ptr noundef %643, ptr noundef %646, ptr noundef %649, i32 noundef %651) #9
  br label %653

653:                                              ; preds = %636, %619
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  br label %654

654:                                              ; preds = %653
  br label %655

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

656:                                              ; No predecessors!
  br label %657

657:                                              ; preds = %656
  br label %658

658:                                              ; preds = %657, %602
  br label %659

659:                                              ; preds = %658
  br label %660

660:                                              ; preds = %659
  %661 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %662 = trunc i8 %661 to i1
  br i1 %662, label %663, label %679

663:                                              ; preds = %660
  %664 = load ptr, ptr @stdout, align 8, !tbaa !9
  %665 = call i32 @fileno(ptr noundef %664) #9
  %666 = call i32 @isatty(i32 noundef %665) #9
  %667 = icmp ne i32 %666, 0
  br i1 %667, label %668, label %679

668:                                              ; preds = %663
  %669 = load i32, ptr @test_count, align 4, !tbaa !5
  %670 = icmp ne i32 %669, 0
  br i1 %670, label %671, label %675

671:                                              ; preds = %668
  %672 = load ptr, ptr @stdout, align 8, !tbaa !9
  %673 = load i32, ptr @test_count, align 4, !tbaa !5
  %674 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %672, ptr noundef @.str.16, i32 noundef %673) #9
  br label %678

675:                                              ; preds = %668
  %676 = load ptr, ptr @stdout, align 8, !tbaa !9
  %677 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %676, ptr noundef @.str.17) #9
  br label %678

678:                                              ; preds = %675, %671
  br label %690

679:                                              ; preds = %663, %660
  %680 = load i32, ptr @test_count, align 4, !tbaa !5
  %681 = icmp ne i32 %680, 0
  br i1 %681, label %682, label %686

682:                                              ; preds = %679
  %683 = load ptr, ptr @stdout, align 8, !tbaa !9
  %684 = load i32, ptr @test_count, align 4, !tbaa !5
  %685 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %683, ptr noundef @.str.18, i32 noundef %684) #9
  br label %689

686:                                              ; preds = %679
  %687 = load ptr, ptr @stdout, align 8, !tbaa !9
  %688 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %687, ptr noundef @.str.19) #9
  br label %689

689:                                              ; preds = %686, %682
  br label %690

690:                                              ; preds = %689, %678
  store i32 0, ptr %3, align 4
  store i32 1, ptr %23, align 4
  br label %695

691:                                              ; No predecessors!
  br label %692

692:                                              ; preds = %691
  br label %693

693:                                              ; preds = %692
  br label %694

694:                                              ; preds = %693
  store i32 0, ptr %23, align 4
  br label %695

695:                                              ; preds = %694, %690
  %696 = call i32 @s2n_security_rule_result_free(ptr noundef %9)
  %697 = getelementptr inbounds %struct.s2n_result, ptr %24, i32 0, i32 0
  store i32 %696, ptr %697, align 4
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #9
  %698 = load i32, ptr %23, align 4
  switch i32 %698, label %701 [
    i32 0, label %699
    i32 1, label %699
  ]

699:                                              ; preds = %695, %695
  %700 = load i32, ptr %3, align 4
  ret i32 %700

701:                                              ; preds = %695
  unreachable
}

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

declare i32 @fflush(ptr noundef) #2

declare i32 @s2n_in_unit_test_set(i1 noundef zeroext) #2

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

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

declare i32 @s2n_print_stacktrace(ptr noundef) #2

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

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

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

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

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

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

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

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

declare i32 @s2n_enable_atexit() #2

declare i32 @s2n_init() #2

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

declare i32 @s2n_security_rule_result_free(ptr noundef) #2

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

declare i32 @s2n_security_rule_result_init_output(ptr noundef) #2

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

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

declare i32 @s2n_cleanup() #2

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

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

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


; 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_security_policy_selection = type { ptr, ptr, i8 }
%struct.s2n_security_rule_result = type { i8, i8, %struct.s2n_stuffer }
%struct.s2n_stuffer = type { %struct.s2n_blob, i32, i32, i32, i8 }
%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
@stdout = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [19 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [91 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [52 x i8], align 1
@s2n_errno = external thread_local local_unnamed_addr global i32, align 4
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [77 x i8], align 1
@security_policy_selection = external local_unnamed_addr global [0 x %struct.s2n_security_policy_selection], align 8
@.str.9 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca %struct.s2n_security_rule_result, align 8
  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, ptr noundef nonnull @.str.1) #10
  %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) #10
  %9 = icmp eq i32 %8, -1
  br i1 %9, label %10, label %34

10:                                               ; preds = %2
  %11 = tail call ptr @__errno_location() #11
  %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) #10
  %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) #10
  %20 = tail call i32 @isatty(i32 noundef %19) #10
  %.not47 = icmp eq i32 %20, 0
  br i1 %.not47, label %21, label %22

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

22:                                               ; preds = %17, %21
  %.str.5.sink = phi ptr [ @.str.5, %21 ], [ @.str.2, %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) #10
  %28 = load i32, ptr %25, align 4, !tbaa !5
  %29 = tail call ptr @s2n_strerror_debug(i32 noundef %28, ptr noundef nonnull @.str.4) #10
  %30 = load i32, ptr %11, align 4, !tbaa !5
  %31 = tail call ptr @strerror(i32 noundef %30) #10
  %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.3, ptr noundef nonnull @.str.1, i32 noundef 21, ptr noundef %27, ptr noundef %29, ptr noundef %31, i32 noundef %32) #12
  tail call void @exit(i32 noundef 1) #13
  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() #10
  %38 = icmp eq i32 %37, -1
  br i1 %38, label %39, label %63

39:                                               ; preds = %34
  %40 = tail call ptr @__errno_location() #11
  %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) #10
  %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) #10
  %49 = tail call i32 @isatty(i32 noundef %48) #10
  %.not46 = icmp eq i32 %49, 0
  br i1 %.not46, label %50, label %51

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

51:                                               ; preds = %46, %50
  %.str.5.sink60 = phi ptr [ @.str.5, %50 ], [ @.str.2, %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) #10
  %57 = load i32, ptr %54, align 4, !tbaa !5
  %58 = tail call ptr @s2n_strerror_debug(i32 noundef %57, ptr noundef nonnull @.str.4) #10
  %59 = load i32, ptr %40, align 4, !tbaa !5
  %60 = tail call ptr @strerror(i32 noundef %59) #10
  %61 = load i32, ptr %40, align 4, !tbaa !5
  %62 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef nonnull %.str.5.sink60, i32 noundef %53, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 21, ptr noundef %56, ptr noundef %58, ptr noundef %60, i32 noundef %61) #12
  tail call void @exit(i32 noundef 1) #13
  unreachable

63:                                               ; preds = %34
  %64 = tail call i32 @s2n_init() #10
  %65 = icmp eq i32 %64, -1
  br i1 %65, label %66, label %90

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

73:                                               ; preds = %66
  %74 = load ptr, ptr @stderr, align 8, !tbaa !9
  %75 = tail call i32 @fileno(ptr noundef %74) #10
  %76 = tail call i32 @isatty(i32 noundef %75) #10
  %.not45 = icmp eq i32 %76, 0
  br i1 %.not45, label %77, label %78

77:                                               ; preds = %73, %66
  br label %78

78:                                               ; preds = %73, %77
  %.str.5.sink71 = phi ptr [ @.str.5, %77 ], [ @.str.2, %73 ]
  store i32 %68, ptr %67, align 4, !tbaa !5
  %79 = load ptr, ptr @stderr, align 8, !tbaa !9
  %80 = load i32, ptr @test_count, align 4, !tbaa !5
  %81 = tail call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = tail call ptr @s2n_strerror(i32 noundef %82, ptr noundef nonnull @.str.4) #10
  %84 = load i32, ptr %81, align 4, !tbaa !5
  %85 = tail call ptr @s2n_strerror_debug(i32 noundef %84, ptr noundef nonnull @.str.4) #10
  %86 = load i32, ptr %67, align 4, !tbaa !5
  %87 = tail call ptr @strerror(i32 noundef %86) #10
  %88 = load i32, ptr %67, align 4, !tbaa !5
  %89 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef nonnull %.str.5.sink71, i32 noundef %80, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.1, i32 noundef 21, ptr noundef %83, ptr noundef %85, ptr noundef %87, i32 noundef %88) #12
  tail call void @exit(i32 noundef 1) #13
  unreachable

90:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %3, i8 0, i64 48, i1 false)
  %91 = load i32, ptr @test_count, align 4, !tbaa !5
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr @test_count, align 4, !tbaa !5
  %93 = call i32 @s2n_security_rule_result_init_output(ptr noundef nonnull %3) #10
  %94 = call zeroext i1 @s2n_result_is_ok(i32 %93)
  br i1 %94, label %.preheader, label %96

.preheader:                                       ; preds = %90
  %95 = load ptr, ptr @security_policy_selection, align 8, !tbaa !15
  %.not3548 = icmp eq ptr %95, null
  br i1 %.not3548, label %._crit_edge, label %.lr.ph

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

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

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

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

120:                                              ; preds = %156
  %121 = add i64 %.049, 1
  %122 = getelementptr inbounds [0 x %struct.s2n_security_policy_selection], ptr @security_policy_selection, i64 0, i64 %121
  %123 = load ptr, ptr %122, align 8, !tbaa !15
  %.not35 = icmp eq ptr %123, null
  br i1 %.not35, label %._crit_edge, label %.lr.ph, !llvm.loop !17

._crit_edge:                                      ; preds = %120, %.preheader
  %124 = load i8, ptr %3, align 8, !tbaa !19, !range !13, !noundef !14
  %125 = trunc nuw i8 %124 to i1
  br i1 %125, label %184, label %245

.lr.ph:                                           ; preds = %.preheader, %120
  %126 = phi ptr [ %122, %120 ], [ @security_policy_selection, %.preheader ]
  %.049 = phi i64 [ %121, %120 ], [ 0, %.preheader ]
  %127 = getelementptr inbounds i8, ptr %126, i64 8
  %128 = load ptr, ptr %127, align 8, !tbaa !23
  %129 = load i32, ptr @test_count, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr @test_count, align 4, !tbaa !5
  %131 = icmp eq ptr %128, null
  br i1 %131, label %132, label %156

132:                                              ; preds = %.lr.ph
  %133 = tail call ptr @__errno_location() #11
  %134 = load i32, ptr %133, align 4, !tbaa !5
  %135 = load ptr, ptr @stderr, align 8, !tbaa !9
  %136 = call i32 @s2n_print_stacktrace(ptr noundef %135) #10
  %137 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %138 = trunc nuw i8 %137 to i1
  br i1 %138, label %139, label %143

139:                                              ; preds = %132
  %140 = load ptr, ptr @stderr, align 8, !tbaa !9
  %141 = call i32 @fileno(ptr noundef %140) #10
  %142 = call i32 @isatty(i32 noundef %141) #10
  %.not44 = icmp eq i32 %142, 0
  br i1 %.not44, label %143, label %144

143:                                              ; preds = %139, %132
  br label %144

144:                                              ; preds = %139, %143
  %.str.5.sink93 = phi ptr [ @.str.5, %143 ], [ @.str.2, %139 ]
  store i32 %134, ptr %133, align 4, !tbaa !5
  %145 = load ptr, ptr @stderr, align 8, !tbaa !9
  %146 = load i32, ptr @test_count, align 4, !tbaa !5
  %147 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %148 = load i32, ptr %147, align 4, !tbaa !5
  %149 = call ptr @s2n_strerror(i32 noundef %148, ptr noundef nonnull @.str.4) #10
  %150 = load i32, ptr %147, align 4, !tbaa !5
  %151 = call ptr @s2n_strerror_debug(i32 noundef %150, ptr noundef nonnull @.str.4) #10
  %152 = load i32, ptr %133, align 4, !tbaa !5
  %153 = call ptr @strerror(i32 noundef %152) #10
  %154 = load i32, ptr %133, align 4, !tbaa !5
  %155 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %145, ptr noundef nonnull %.str.5.sink93, i32 noundef %146, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.1, i32 noundef 29, ptr noundef %149, ptr noundef %151, ptr noundef %153, i32 noundef %154) #12
  call void @exit(i32 noundef 1) #13
  unreachable

156:                                              ; preds = %.lr.ph
  %157 = add nsw i32 %129, 2
  store i32 %157, ptr @test_count, align 4, !tbaa !5
  %158 = call i32 @s2n_security_policy_validate_security_rules(ptr noundef nonnull %128, ptr noundef nonnull %3) #10
  %159 = call zeroext i1 @s2n_result_is_ok(i32 %158)
  br i1 %159, label %120, label %160

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

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

171:                                              ; preds = %167, %160
  br label %172

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

184:                                              ; preds = %._crit_edge
  %185 = getelementptr inbounds i8, ptr %3, i64 8
  %186 = getelementptr inbounds i8, ptr %3, i64 36
  %187 = load i32, ptr %186, align 4, !tbaa !24
  %188 = getelementptr inbounds i8, ptr %3, i64 32
  %189 = load i32, ptr %188, align 8, !tbaa !25
  %190 = sub i32 %187, %189
  %191 = call ptr @s2n_stuffer_raw_read(ptr noundef nonnull %185, i32 noundef %190) #10
  %192 = load i32, ptr @test_count, align 4, !tbaa !5
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr @test_count, align 4, !tbaa !5
  %194 = icmp eq ptr %191, null
  br i1 %194, label %195, label %219

195:                                              ; preds = %184
  %196 = tail call ptr @__errno_location() #11
  %197 = load i32, ptr %196, align 4, !tbaa !5
  %198 = load ptr, ptr @stderr, align 8, !tbaa !9
  %199 = call i32 @s2n_print_stacktrace(ptr noundef %198) #10
  %200 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %201 = trunc nuw i8 %200 to i1
  br i1 %201, label %202, label %206

202:                                              ; preds = %195
  %203 = load ptr, ptr @stderr, align 8, !tbaa !9
  %204 = call i32 @fileno(ptr noundef %203) #10
  %205 = call i32 @isatty(i32 noundef %204) #10
  %.not42 = icmp eq i32 %205, 0
  br i1 %.not42, label %206, label %207

206:                                              ; preds = %202, %195
  br label %207

207:                                              ; preds = %202, %206
  %.str.5.sink115 = phi ptr [ @.str.5, %206 ], [ @.str.2, %202 ]
  store i32 %197, ptr %196, align 4, !tbaa !5
  %208 = load ptr, ptr @stderr, align 8, !tbaa !9
  %209 = load i32, ptr @test_count, align 4, !tbaa !5
  %210 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %211 = load i32, ptr %210, align 4, !tbaa !5
  %212 = call ptr @s2n_strerror(i32 noundef %211, ptr noundef nonnull @.str.4) #10
  %213 = load i32, ptr %210, align 4, !tbaa !5
  %214 = call ptr @s2n_strerror_debug(i32 noundef %213, ptr noundef nonnull @.str.4) #10
  %215 = load i32, ptr %196, align 4, !tbaa !5
  %216 = call ptr @strerror(i32 noundef %215) #10
  %217 = load i32, ptr %196, align 4, !tbaa !5
  %218 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %208, ptr noundef nonnull %.str.5.sink115, i32 noundef %209, ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.1, i32 noundef 36, ptr noundef %212, ptr noundef %214, ptr noundef %216, i32 noundef %217) #12
  call void @exit(i32 noundef 1) #13
  unreachable

219:                                              ; preds = %184
  %220 = load ptr, ptr @stdout, align 8, !tbaa !9
  %221 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %220, ptr noundef nonnull @.str.12, i32 noundef %190, ptr noundef nonnull %191) #10
  %222 = tail call ptr @__errno_location() #11
  %223 = load i32, ptr %222, align 4, !tbaa !5
  %224 = load ptr, ptr @stderr, align 8, !tbaa !9
  %225 = call i32 @s2n_print_stacktrace(ptr noundef %224) #10
  %226 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %227 = trunc nuw i8 %226 to i1
  br i1 %227, label %228, label %232

228:                                              ; preds = %219
  %229 = load ptr, ptr @stderr, align 8, !tbaa !9
  %230 = call i32 @fileno(ptr noundef %229) #10
  %231 = call i32 @isatty(i32 noundef %230) #10
  %.not41 = icmp eq i32 %231, 0
  br i1 %.not41, label %232, label %233

232:                                              ; preds = %228, %219
  br label %233

233:                                              ; preds = %228, %232
  %.str.5.sink126 = phi ptr [ @.str.5, %232 ], [ @.str.2, %228 ]
  store i32 %223, ptr %222, align 4, !tbaa !5
  %234 = load ptr, ptr @stderr, align 8, !tbaa !9
  %235 = load i32, ptr @test_count, align 4, !tbaa !5
  %236 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %237 = load i32, ptr %236, align 4, !tbaa !5
  %238 = call ptr @s2n_strerror(i32 noundef %237, ptr noundef nonnull @.str.4) #10
  %239 = load i32, ptr %236, align 4, !tbaa !5
  %240 = call ptr @s2n_strerror_debug(i32 noundef %239, ptr noundef nonnull @.str.4) #10
  %241 = load i32, ptr %222, align 4, !tbaa !5
  %242 = call ptr @strerror(i32 noundef %241) #10
  %243 = load i32, ptr %222, align 4, !tbaa !5
  %244 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %234, ptr noundef nonnull %.str.5.sink126, i32 noundef %235, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.1, i32 noundef 38, ptr noundef %238, ptr noundef %240, ptr noundef %242, i32 noundef %243) #12
  call void @exit(i32 noundef 1) #13
  unreachable

245:                                              ; preds = %._crit_edge
  %246 = call i32 @s2n_cleanup() #10
  %247 = icmp eq i32 %246, -1
  br i1 %247, label %248, label %272

248:                                              ; preds = %245
  %249 = tail call ptr @__errno_location() #11
  %250 = load i32, ptr %249, align 4, !tbaa !5
  %251 = load ptr, ptr @stderr, align 8, !tbaa !9
  %252 = call i32 @s2n_print_stacktrace(ptr noundef %251) #10
  %253 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %254 = trunc nuw i8 %253 to i1
  br i1 %254, label %255, label %259

255:                                              ; preds = %248
  %256 = load ptr, ptr @stderr, align 8, !tbaa !9
  %257 = call i32 @fileno(ptr noundef %256) #10
  %258 = call i32 @isatty(i32 noundef %257) #10
  %.not40 = icmp eq i32 %258, 0
  br i1 %.not40, label %259, label %260

259:                                              ; preds = %255, %248
  br label %260

260:                                              ; preds = %255, %259
  %.str.5.sink137 = phi ptr [ @.str.5, %259 ], [ @.str.2, %255 ]
  store i32 %250, ptr %249, align 4, !tbaa !5
  %261 = load ptr, ptr @stderr, align 8, !tbaa !9
  %262 = load i32, ptr @test_count, align 4, !tbaa !5
  %263 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %264 = load i32, ptr %263, align 4, !tbaa !5
  %265 = call ptr @s2n_strerror(i32 noundef %264, ptr noundef nonnull @.str.4) #10
  %266 = load i32, ptr %263, align 4, !tbaa !5
  %267 = call ptr @s2n_strerror_debug(i32 noundef %266, ptr noundef nonnull @.str.4) #10
  %268 = load i32, ptr %249, align 4, !tbaa !5
  %269 = call ptr @strerror(i32 noundef %268) #10
  %270 = load i32, ptr %249, align 4, !tbaa !5
  %271 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %261, ptr noundef nonnull %.str.5.sink137, i32 noundef %262, ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.1, i32 noundef 41, ptr noundef %265, ptr noundef %267, ptr noundef %269, i32 noundef %270) #12
  call void @exit(i32 noundef 1) #13
  unreachable

272:                                              ; preds = %245
  %273 = call i32 @s2n_in_unit_test_set(i1 noundef zeroext false) #10
  %274 = icmp eq i32 %273, -1
  br i1 %274, label %275, label %299

275:                                              ; preds = %272
  %276 = tail call ptr @__errno_location() #11
  %277 = load i32, ptr %276, align 4, !tbaa !5
  %278 = load ptr, ptr @stderr, align 8, !tbaa !9
  %279 = call i32 @s2n_print_stacktrace(ptr noundef %278) #10
  %280 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %281 = trunc nuw i8 %280 to i1
  br i1 %281, label %282, label %286

282:                                              ; preds = %275
  %283 = load ptr, ptr @stderr, align 8, !tbaa !9
  %284 = call i32 @fileno(ptr noundef %283) #10
  %285 = call i32 @isatty(i32 noundef %284) #10
  %.not39 = icmp eq i32 %285, 0
  br i1 %.not39, label %286, label %287

286:                                              ; preds = %282, %275
  br label %287

287:                                              ; preds = %282, %286
  %.str.5.sink148 = phi ptr [ @.str.5, %286 ], [ @.str.2, %282 ]
  store i32 %277, ptr %276, align 4, !tbaa !5
  %288 = load ptr, ptr @stderr, align 8, !tbaa !9
  %289 = load i32, ptr @test_count, align 4, !tbaa !5
  %290 = call align 4 ptr @llvm.threadlocal.address.p0(ptr align 4 @s2n_errno)
  %291 = load i32, ptr %290, align 4, !tbaa !5
  %292 = call ptr @s2n_strerror(i32 noundef %291, ptr noundef nonnull @.str.4) #10
  %293 = load i32, ptr %290, align 4, !tbaa !5
  %294 = call ptr @s2n_strerror_debug(i32 noundef %293, ptr noundef nonnull @.str.4) #10
  %295 = load i32, ptr %276, align 4, !tbaa !5
  %296 = call ptr @strerror(i32 noundef %295) #10
  %297 = load i32, ptr %276, align 4, !tbaa !5
  %298 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %288, ptr noundef nonnull %.str.5.sink148, i32 noundef %289, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.1, i32 noundef 41, ptr noundef %292, ptr noundef %294, ptr noundef %296, i32 noundef %297) #12
  call void @exit(i32 noundef 1) #13
  unreachable

299:                                              ; preds = %272
  %300 = load i8, ptr @s2n_use_color_in_output, align 1, !tbaa !11, !range !13, !noundef !14
  %301 = trunc nuw i8 %300 to i1
  br i1 %301, label %302, label %313

302:                                              ; preds = %299
  %303 = load ptr, ptr @stdout, align 8, !tbaa !9
  %304 = call i32 @fileno(ptr noundef %303) #10
  %305 = call i32 @isatty(i32 noundef %304) #10
  %.not36 = icmp eq i32 %305, 0
  br i1 %.not36, label %313, label %306

306:                                              ; preds = %302
  %307 = load i32, ptr @test_count, align 4, !tbaa !5
  %.not38 = icmp eq i32 %307, 0
  %308 = load ptr, ptr @stdout, align 8, !tbaa !9
  br i1 %.not38, label %311, label %309

309:                                              ; preds = %306
  %310 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %308, ptr noundef nonnull @.str.16, i32 noundef %307) #10
  br label %320

311:                                              ; preds = %306
  %312 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %308, ptr noundef nonnull @.str.17) #10
  br label %320

313:                                              ; preds = %302, %299
  %314 = load i32, ptr @test_count, align 4, !tbaa !5
  %.not37 = icmp eq i32 %314, 0
  %315 = load ptr, ptr @stdout, align 8, !tbaa !9
  br i1 %.not37, label %318, label %316

316:                                              ; preds = %313
  %317 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %315, ptr noundef nonnull @.str.18, i32 noundef %314) #10
  br label %320

318:                                              ; preds = %313
  %319 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %315, ptr noundef nonnull @.str.19) #10
  br label %320

320:                                              ; preds = %316, %318, %309, %311
  %321 = call i32 @s2n_security_rule_result_free(ptr noundef nonnull %3) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #10
  ret i32 0
}

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

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

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

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

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

declare i32 @s2n_print_stacktrace(ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

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

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

declare i32 @s2n_enable_atexit() local_unnamed_addr #2

declare i32 @s2n_init() local_unnamed_addr #2

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

declare i32 @s2n_security_rule_result_free(ptr noundef) local_unnamed_addr #2

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

declare i32 @s2n_security_rule_result_init_output(ptr noundef) local_unnamed_addr #2

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

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

declare i32 @s2n_cleanup() local_unnamed_addr #2

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

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

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


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