; LLVM IR from aws/s2n-tls :: bin (policy)

; 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_rule = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.s2n_kem_preferences = type { i8, ptr, i8, ptr, i8 }
%struct.s2n_security_policy = type { i8, ptr, ptr, ptr, ptr, ptr, ptr, i8, [2 x i8] }
%struct.s2n_cipher_preferences = type { i16, ptr, i8 }
%struct.s2n_cipher_suite = type { i8, ptr, ptr, [2 x i8], ptr, i32, ptr, [2 x ptr], i8, ptr, ptr, i32, i8 }
%struct.s2n_signature_preferences = type { i8, ptr }
%struct.s2n_signature_scheme = type { i16, ptr, i32, i32, i8, i8, i16, ptr }
%struct.s2n_ecc_preferences = type { i8, ptr }
%struct.s2n_ecc_named_curve = type { i16, i32, ptr, i8, ptr }
%struct.s2n_certificate_key_preferences = type { i8, ptr }
%struct.s2n_certificate_key = type { ptr, i16, i16 }
%struct.s2n_kem = type { ptr, i32, i16, i16, i16, i16, i16, ptr, ptr, ptr }
%struct.s2n_kem_group = type { ptr, i16, ptr, ptr, i8 }

@version_strs = external dso_local global [35 x ptr], align 16
@.str.6 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [10 x i8], align 1
@security_rule_definitions = external constant [2 x %struct.s2n_security_rule], align 16
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [19 x i8], align 1
@kem_preferences_null = external constant %struct.s2n_kem_preferences, align 8
@.str.21 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [15 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 ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  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
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = icmp ne i32 %17, 2
  br i1 %18, label %19, label %21

19:                                               ; preds = %2
  %20 = call i32 @usage()
  call void @exit(i32 noundef 1) #4
  unreachable

21:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %22 = load ptr, ptr %5, align 8, !tbaa !9
  %23 = getelementptr inbounds ptr, ptr %22, i64 1
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  store ptr %24, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store ptr null, ptr %7, align 8, !tbaa !9
  %25 = load ptr, ptr %6, align 8, !tbaa !9
  %26 = call i32 @s2n_find_security_policy_from_version(ptr noundef %25, ptr noundef %7)
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %28, label %30

28:                                               ; preds = %21
  %29 = call i32 @usage()
  call void @exit(i32 noundef 1) #4
  unreachable

30:                                               ; preds = %21
  %31 = load ptr, ptr %6, align 8, !tbaa !9
  %32 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %31)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %33 = load ptr, ptr %7, align 8, !tbaa !9
  %34 = getelementptr inbounds %struct.s2n_security_policy, ptr %33, i32 0, i32 0
  %35 = load i8, ptr %34, align 8, !tbaa !11
  %36 = zext i8 %35 to i64
  %37 = getelementptr inbounds [35 x ptr], ptr @version_strs, i64 0, i64 %36
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  store ptr %38, ptr %8, align 8, !tbaa !9
  %39 = load ptr, ptr %8, align 8, !tbaa !9
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %43

41:                                               ; preds = %30
  %42 = load ptr, ptr %8, align 8, !tbaa !9
  br label %44

43:                                               ; preds = %30
  br label %44

44:                                               ; preds = %43, %41
  %45 = phi ptr [ %42, %41 ], [ @.str.8, %43 ]
  %46 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %45)
  %47 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store i64 0, ptr %9, align 8, !tbaa !14
  br label %48

48:                                               ; preds = %66, %44
  %49 = load i64, ptr %9, align 8, !tbaa !14
  %50 = icmp ult i64 %49, 2
  br i1 %50, label %52, label %51

51:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %69

52:                                               ; preds = %48
  %53 = load i64, ptr %9, align 8, !tbaa !14
  %54 = getelementptr inbounds [2 x %struct.s2n_security_rule], ptr @security_rule_definitions, i64 0, i64 %53
  %55 = getelementptr inbounds %struct.s2n_security_rule, ptr %54, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8, !tbaa !16
  %57 = load ptr, ptr %7, align 8, !tbaa !9
  %58 = getelementptr inbounds %struct.s2n_security_policy, ptr %57, i32 0, i32 8
  %59 = load i64, ptr %9, align 8, !tbaa !14
  %60 = getelementptr inbounds [2 x i8], ptr %58, i64 0, i64 %59
  %61 = load i8, ptr %60, align 1, !tbaa !18, !range !19, !noundef !20
  %62 = trunc i8 %61 to i1
  %63 = zext i1 %62 to i64
  %64 = select i1 %62, ptr @.str.11, ptr @.str.12
  %65 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %56, ptr noundef %64)
  br label %66

66:                                               ; preds = %52
  %67 = load i64, ptr %9, align 8, !tbaa !14
  %68 = add i64 %67, 1
  store i64 %68, ptr %9, align 8, !tbaa !14
  br label %48, !llvm.loop !21

69:                                               ; preds = %51
  %70 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  %71 = load ptr, ptr %7, align 8, !tbaa !9
  %72 = getelementptr inbounds %struct.s2n_security_policy, ptr %71, i32 0, i32 1
  %73 = load ptr, ptr %72, align 8, !tbaa !23
  %74 = getelementptr inbounds %struct.s2n_cipher_preferences, ptr %73, i32 0, i32 2
  %75 = load i8, ptr %74, align 8, !tbaa !24, !range !19, !noundef !20
  %76 = trunc i8 %75 to i1
  br i1 %76, label %77, label %79

77:                                               ; preds = %69
  %78 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  br label %79

79:                                               ; preds = %77, %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store i64 0, ptr %10, align 8, !tbaa !14
  br label %80

80:                                               ; preds = %102, %79
  %81 = load i64, ptr %10, align 8, !tbaa !14
  %82 = load ptr, ptr %7, align 8, !tbaa !9
  %83 = getelementptr inbounds %struct.s2n_security_policy, ptr %82, i32 0, i32 1
  %84 = load ptr, ptr %83, align 8, !tbaa !23
  %85 = getelementptr inbounds %struct.s2n_cipher_preferences, ptr %84, i32 0, i32 0
  %86 = load i16, ptr %85, align 8, !tbaa !27
  %87 = zext i16 %86 to i64
  %88 = icmp ult i64 %81, %87
  br i1 %88, label %90, label %89

89:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %105

90:                                               ; preds = %80
  %91 = load ptr, ptr %7, align 8, !tbaa !9
  %92 = getelementptr inbounds %struct.s2n_security_policy, ptr %91, i32 0, i32 1
  %93 = load ptr, ptr %92, align 8, !tbaa !23
  %94 = getelementptr inbounds %struct.s2n_cipher_preferences, ptr %93, i32 0, i32 1
  %95 = load ptr, ptr %94, align 8, !tbaa !28
  %96 = load i64, ptr %10, align 8, !tbaa !14
  %97 = getelementptr inbounds ptr, ptr %95, i64 %96
  %98 = load ptr, ptr %97, align 8, !tbaa !9
  %99 = getelementptr inbounds %struct.s2n_cipher_suite, ptr %98, i32 0, i32 2
  %100 = load ptr, ptr %99, align 8, !tbaa !29
  %101 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, ptr noundef %100)
  br label %102

102:                                              ; preds = %90
  %103 = load i64, ptr %10, align 8, !tbaa !14
  %104 = add i64 %103, 1
  store i64 %104, ptr %10, align 8, !tbaa !14
  br label %80, !llvm.loop !31

105:                                              ; preds = %89
  %106 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store i64 0, ptr %11, align 8, !tbaa !14
  br label %107

107:                                              ; preds = %129, %105
  %108 = load i64, ptr %11, align 8, !tbaa !14
  %109 = load ptr, ptr %7, align 8, !tbaa !9
  %110 = getelementptr inbounds %struct.s2n_security_policy, ptr %109, i32 0, i32 3
  %111 = load ptr, ptr %110, align 8, !tbaa !32
  %112 = getelementptr inbounds %struct.s2n_signature_preferences, ptr %111, i32 0, i32 0
  %113 = load i8, ptr %112, align 8, !tbaa !33
  %114 = zext i8 %113 to i64
  %115 = icmp ult i64 %108, %114
  br i1 %115, label %117, label %116

116:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %132

117:                                              ; preds = %107
  %118 = load ptr, ptr %7, align 8, !tbaa !9
  %119 = getelementptr inbounds %struct.s2n_security_policy, ptr %118, i32 0, i32 3
  %120 = load ptr, ptr %119, align 8, !tbaa !32
  %121 = getelementptr inbounds %struct.s2n_signature_preferences, ptr %120, i32 0, i32 1
  %122 = load ptr, ptr %121, align 8, !tbaa !35
  %123 = load i64, ptr %11, align 8, !tbaa !14
  %124 = getelementptr inbounds ptr, ptr %122, i64 %123
  %125 = load ptr, ptr %124, align 8, !tbaa !9
  %126 = getelementptr inbounds %struct.s2n_signature_scheme, ptr %125, i32 0, i32 1
  %127 = load ptr, ptr %126, align 8, !tbaa !36
  %128 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, ptr noundef %127)
  br label %129

129:                                              ; preds = %117
  %130 = load i64, ptr %11, align 8, !tbaa !14
  %131 = add i64 %130, 1
  store i64 %131, ptr %11, align 8, !tbaa !14
  br label %107, !llvm.loop !38

132:                                              ; preds = %116
  %133 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store i64 0, ptr %12, align 8, !tbaa !14
  br label %134

134:                                              ; preds = %156, %132
  %135 = load i64, ptr %12, align 8, !tbaa !14
  %136 = load ptr, ptr %7, align 8, !tbaa !9
  %137 = getelementptr inbounds %struct.s2n_security_policy, ptr %136, i32 0, i32 5
  %138 = load ptr, ptr %137, align 8, !tbaa !39
  %139 = getelementptr inbounds %struct.s2n_ecc_preferences, ptr %138, i32 0, i32 0
  %140 = load i8, ptr %139, align 8, !tbaa !40
  %141 = zext i8 %140 to i64
  %142 = icmp ult i64 %135, %141
  br i1 %142, label %144, label %143

143:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %159

144:                                              ; preds = %134
  %145 = load ptr, ptr %7, align 8, !tbaa !9
  %146 = getelementptr inbounds %struct.s2n_security_policy, ptr %145, i32 0, i32 5
  %147 = load ptr, ptr %146, align 8, !tbaa !39
  %148 = getelementptr inbounds %struct.s2n_ecc_preferences, ptr %147, i32 0, i32 1
  %149 = load ptr, ptr %148, align 8, !tbaa !42
  %150 = load i64, ptr %12, align 8, !tbaa !14
  %151 = getelementptr inbounds ptr, ptr %149, i64 %150
  %152 = load ptr, ptr %151, align 8, !tbaa !9
  %153 = getelementptr inbounds %struct.s2n_ecc_named_curve, ptr %152, i32 0, i32 2
  %154 = load ptr, ptr %153, align 8, !tbaa !43
  %155 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, ptr noundef %154)
  br label %156

156:                                              ; preds = %144
  %157 = load i64, ptr %12, align 8, !tbaa !14
  %158 = add i64 %157, 1
  store i64 %158, ptr %12, align 8, !tbaa !14
  br label %134, !llvm.loop !45

159:                                              ; preds = %143
  %160 = load ptr, ptr %7, align 8, !tbaa !9
  %161 = getelementptr inbounds %struct.s2n_security_policy, ptr %160, i32 0, i32 4
  %162 = load ptr, ptr %161, align 8, !tbaa !46
  %163 = icmp ne ptr %162, null
  br i1 %163, label %164, label %199

164:                                              ; preds = %159
  %165 = load ptr, ptr %7, align 8, !tbaa !9
  %166 = getelementptr inbounds %struct.s2n_security_policy, ptr %165, i32 0, i32 7
  %167 = load i8, ptr %166, align 8, !tbaa !47, !range !19, !noundef !20
  %168 = trunc i8 %167 to i1
  br i1 %168, label %169, label %171

169:                                              ; preds = %164
  %170 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
  br label %171

171:                                              ; preds = %169, %164
  %172 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store i64 0, ptr %13, align 8, !tbaa !14
  br label %173

173:                                              ; preds = %195, %171
  %174 = load i64, ptr %13, align 8, !tbaa !14
  %175 = load ptr, ptr %7, align 8, !tbaa !9
  %176 = getelementptr inbounds %struct.s2n_security_policy, ptr %175, i32 0, i32 4
  %177 = load ptr, ptr %176, align 8, !tbaa !46
  %178 = getelementptr inbounds %struct.s2n_signature_preferences, ptr %177, i32 0, i32 0
  %179 = load i8, ptr %178, align 8, !tbaa !33
  %180 = zext i8 %179 to i64
  %181 = icmp ult i64 %174, %180
  br i1 %181, label %183, label %182

182:                                              ; preds = %173
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %198

183:                                              ; preds = %173
  %184 = load ptr, ptr %7, align 8, !tbaa !9
  %185 = getelementptr inbounds %struct.s2n_security_policy, ptr %184, i32 0, i32 4
  %186 = load ptr, ptr %185, align 8, !tbaa !46
  %187 = getelementptr inbounds %struct.s2n_signature_preferences, ptr %186, i32 0, i32 1
  %188 = load ptr, ptr %187, align 8, !tbaa !35
  %189 = load i64, ptr %13, align 8, !tbaa !14
  %190 = getelementptr inbounds ptr, ptr %188, i64 %189
  %191 = load ptr, ptr %190, align 8, !tbaa !9
  %192 = getelementptr inbounds %struct.s2n_signature_scheme, ptr %191, i32 0, i32 1
  %193 = load ptr, ptr %192, align 8, !tbaa !36
  %194 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, ptr noundef %193)
  br label %195

195:                                              ; preds = %183
  %196 = load i64, ptr %13, align 8, !tbaa !14
  %197 = add i64 %196, 1
  store i64 %197, ptr %13, align 8, !tbaa !14
  br label %173, !llvm.loop !48

198:                                              ; preds = %182
  br label %199

199:                                              ; preds = %198, %159
  %200 = load ptr, ptr %7, align 8, !tbaa !9
  %201 = getelementptr inbounds %struct.s2n_security_policy, ptr %200, i32 0, i32 6
  %202 = load ptr, ptr %201, align 8, !tbaa !49
  %203 = icmp ne ptr %202, null
  br i1 %203, label %204, label %232

204:                                              ; preds = %199
  %205 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store i64 0, ptr %14, align 8, !tbaa !14
  br label %206

206:                                              ; preds = %228, %204
  %207 = load i64, ptr %14, align 8, !tbaa !14
  %208 = load ptr, ptr %7, align 8, !tbaa !9
  %209 = getelementptr inbounds %struct.s2n_security_policy, ptr %208, i32 0, i32 6
  %210 = load ptr, ptr %209, align 8, !tbaa !49
  %211 = getelementptr inbounds %struct.s2n_certificate_key_preferences, ptr %210, i32 0, i32 0
  %212 = load i8, ptr %211, align 8, !tbaa !50
  %213 = zext i8 %212 to i64
  %214 = icmp ult i64 %207, %213
  br i1 %214, label %216, label %215

215:                                              ; preds = %206
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %231

216:                                              ; preds = %206
  %217 = load ptr, ptr %7, align 8, !tbaa !9
  %218 = getelementptr inbounds %struct.s2n_security_policy, ptr %217, i32 0, i32 6
  %219 = load ptr, ptr %218, align 8, !tbaa !49
  %220 = getelementptr inbounds %struct.s2n_certificate_key_preferences, ptr %219, i32 0, i32 1
  %221 = load ptr, ptr %220, align 8, !tbaa !52
  %222 = load i64, ptr %14, align 8, !tbaa !14
  %223 = getelementptr inbounds ptr, ptr %221, i64 %222
  %224 = load ptr, ptr %223, align 8, !tbaa !9
  %225 = getelementptr inbounds %struct.s2n_certificate_key, ptr %224, i32 0, i32 0
  %226 = load ptr, ptr %225, align 8, !tbaa !53
  %227 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, ptr noundef %226)
  br label %228

228:                                              ; preds = %216
  %229 = load i64, ptr %14, align 8, !tbaa !14
  %230 = add i64 %229, 1
  store i64 %230, ptr %14, align 8, !tbaa !14
  br label %206, !llvm.loop !55

231:                                              ; preds = %215
  br label %232

232:                                              ; preds = %231, %199
  %233 = load ptr, ptr %7, align 8, !tbaa !9
  %234 = getelementptr inbounds %struct.s2n_security_policy, ptr %233, i32 0, i32 2
  %235 = load ptr, ptr %234, align 8, !tbaa !56
  %236 = icmp ne ptr %235, null
  br i1 %236, label %237, label %305

237:                                              ; preds = %232
  %238 = load ptr, ptr %7, align 8, !tbaa !9
  %239 = getelementptr inbounds %struct.s2n_security_policy, ptr %238, i32 0, i32 2
  %240 = load ptr, ptr %239, align 8, !tbaa !56
  %241 = icmp ne ptr %240, @kem_preferences_null
  br i1 %241, label %242, label %305

242:                                              ; preds = %237
  %243 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
  %244 = load ptr, ptr %7, align 8, !tbaa !9
  %245 = getelementptr inbounds %struct.s2n_security_policy, ptr %244, i32 0, i32 2
  %246 = load ptr, ptr %245, align 8, !tbaa !56
  %247 = getelementptr inbounds %struct.s2n_kem_preferences, ptr %246, i32 0, i32 4
  %248 = load i8, ptr %247, align 8, !tbaa !57
  %249 = zext i8 %248 to i32
  %250 = call i32 (ptr, ...) @printf(ptr noundef @.str.22, i32 noundef %249)
  %251 = call i32 (ptr, ...) @printf(ptr noundef @.str.23)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store i64 0, ptr %15, align 8, !tbaa !14
  br label %252

252:                                              ; preds = %274, %242
  %253 = load i64, ptr %15, align 8, !tbaa !14
  %254 = load ptr, ptr %7, align 8, !tbaa !9
  %255 = getelementptr inbounds %struct.s2n_security_policy, ptr %254, i32 0, i32 2
  %256 = load ptr, ptr %255, align 8, !tbaa !56
  %257 = getelementptr inbounds %struct.s2n_kem_preferences, ptr %256, i32 0, i32 0
  %258 = load i8, ptr %257, align 8, !tbaa !59
  %259 = zext i8 %258 to i64
  %260 = icmp ult i64 %253, %259
  br i1 %260, label %262, label %261

261:                                              ; preds = %252
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %277

262:                                              ; preds = %252
  %263 = load ptr, ptr %7, align 8, !tbaa !9
  %264 = getelementptr inbounds %struct.s2n_security_policy, ptr %263, i32 0, i32 2
  %265 = load ptr, ptr %264, align 8, !tbaa !56
  %266 = getelementptr inbounds %struct.s2n_kem_preferences, ptr %265, i32 0, i32 1
  %267 = load ptr, ptr %266, align 8, !tbaa !60
  %268 = load i64, ptr %15, align 8, !tbaa !14
  %269 = getelementptr inbounds ptr, ptr %267, i64 %268
  %270 = load ptr, ptr %269, align 8, !tbaa !9
  %271 = getelementptr inbounds %struct.s2n_kem, ptr %270, i32 0, i32 0
  %272 = load ptr, ptr %271, align 8, !tbaa !61
  %273 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, ptr noundef %272)
  br label %274

274:                                              ; preds = %262
  %275 = load i64, ptr %15, align 8, !tbaa !14
  %276 = add i64 %275, 1
  store i64 %276, ptr %15, align 8, !tbaa !14
  br label %252, !llvm.loop !63

277:                                              ; preds = %261
  %278 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store i64 0, ptr %16, align 8, !tbaa !14
  br label %279

279:                                              ; preds = %301, %277
  %280 = load i64, ptr %16, align 8, !tbaa !14
  %281 = load ptr, ptr %7, align 8, !tbaa !9
  %282 = getelementptr inbounds %struct.s2n_security_policy, ptr %281, i32 0, i32 2
  %283 = load ptr, ptr %282, align 8, !tbaa !56
  %284 = getelementptr inbounds %struct.s2n_kem_preferences, ptr %283, i32 0, i32 2
  %285 = load i8, ptr %284, align 8, !tbaa !64
  %286 = zext i8 %285 to i64
  %287 = icmp ult i64 %280, %286
  br i1 %287, label %289, label %288

288:                                              ; preds = %279
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %304

289:                                              ; preds = %279
  %290 = load ptr, ptr %7, align 8, !tbaa !9
  %291 = getelementptr inbounds %struct.s2n_security_policy, ptr %290, i32 0, i32 2
  %292 = load ptr, ptr %291, align 8, !tbaa !56
  %293 = getelementptr inbounds %struct.s2n_kem_preferences, ptr %292, i32 0, i32 3
  %294 = load ptr, ptr %293, align 8, !tbaa !65
  %295 = load i64, ptr %16, align 8, !tbaa !14
  %296 = getelementptr inbounds ptr, ptr %294, i64 %295
  %297 = load ptr, ptr %296, align 8, !tbaa !9
  %298 = getelementptr inbounds %struct.s2n_kem_group, ptr %297, i32 0, i32 0
  %299 = load ptr, ptr %298, align 8, !tbaa !66
  %300 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, ptr noundef %299)
  br label %301

301:                                              ; preds = %289
  %302 = load i64, ptr %16, align 8, !tbaa !14
  %303 = add i64 %302, 1
  store i64 %303, ptr %16, align 8, !tbaa !14
  br label %279, !llvm.loop !68

304:                                              ; preds = %288
  br label %305

305:                                              ; preds = %304, %237, %232
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  ret i32 0
}

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

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

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

declare i32 @printf(ptr noundef, ...) #3

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

; Function Attrs: nounwind uwtable
declare hidden i32 @usage() #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { noreturn nounwind }
attributes #5 = { 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, !7, i64 0}
!12 = !{!"s2n_security_policy", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !13, i64 56, !7, i64 57}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !10, i64 0}
!17 = !{!"s2n_security_rule", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48}
!18 = !{!13, !13, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!12, !10, i64 8}
!24 = !{!25, !13, i64 16}
!25 = !{!"s2n_cipher_preferences", !26, i64 0, !10, i64 8, !13, i64 16}
!26 = !{!"short", !7, i64 0}
!27 = !{!25, !26, i64 0}
!28 = !{!25, !10, i64 8}
!29 = !{!30, !10, i64 16}
!30 = !{!"s2n_cipher_suite", !6, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !10, i64 32, !6, i64 40, !10, i64 48, !7, i64 56, !7, i64 72, !10, i64 80, !10, i64 88, !6, i64 96, !7, i64 100}
!31 = distinct !{!31, !22}
!32 = !{!12, !10, i64 24}
!33 = !{!34, !7, i64 0}
!34 = !{!"s2n_signature_preferences", !7, i64 0, !10, i64 8}
!35 = !{!34, !10, i64 8}
!36 = !{!37, !10, i64 8}
!37 = !{!"s2n_signature_scheme", !26, i64 0, !10, i64 8, !6, i64 16, !6, i64 20, !7, i64 24, !7, i64 25, !26, i64 26, !10, i64 32}
!38 = distinct !{!38, !22}
!39 = !{!12, !10, i64 40}
!40 = !{!41, !7, i64 0}
!41 = !{!"s2n_ecc_preferences", !7, i64 0, !10, i64 8}
!42 = !{!41, !10, i64 8}
!43 = !{!44, !10, i64 8}
!44 = !{!"s2n_ecc_named_curve", !26, i64 0, !6, i64 4, !10, i64 8, !7, i64 16, !10, i64 24}
!45 = distinct !{!45, !22}
!46 = !{!12, !10, i64 32}
!47 = !{!12, !13, i64 56}
!48 = distinct !{!48, !22}
!49 = !{!12, !10, i64 48}
!50 = !{!51, !7, i64 0}
!51 = !{!"s2n_certificate_key_preferences", !7, i64 0, !10, i64 8}
!52 = !{!51, !10, i64 8}
!53 = !{!54, !10, i64 0}
!54 = !{!"s2n_certificate_key", !10, i64 0, !26, i64 8, !26, i64 10}
!55 = distinct !{!55, !22}
!56 = !{!12, !10, i64 16}
!57 = !{!58, !7, i64 32}
!58 = !{!"s2n_kem_preferences", !7, i64 0, !10, i64 8, !7, i64 16, !10, i64 24, !7, i64 32}
!59 = !{!58, !7, i64 0}
!60 = !{!58, !10, i64 8}
!61 = !{!62, !10, i64 0}
!62 = !{!"s2n_kem", !10, i64 0, !6, i64 8, !26, i64 12, !26, i64 14, !26, i64 16, !26, i64 18, !26, i64 20, !10, i64 24, !10, i64 32, !10, i64 40}
!63 = distinct !{!63, !22}
!64 = !{!58, !7, i64 16}
!65 = !{!58, !10, i64 24}
!66 = !{!67, !10, i64 0}
!67 = !{!"s2n_kem_group", !10, i64 0, !26, i64 8, !10, i64 16, !10, i64 24, !13, i64 32}
!68 = distinct !{!68, !22}


; 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_rule = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.s2n_kem_preferences = type { i8, ptr, i8, ptr, i8 }

@version_strs = external dso_local local_unnamed_addr global [35 x ptr], align 16
@.str.6 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [10 x i8], align 1
@security_rule_definitions = external local_unnamed_addr constant [2 x %struct.s2n_security_rule], align 16
@.str.11 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [19 x i8], align 1
@kem_preferences_null = external constant %struct.s2n_kem_preferences, align 8
@.str.21 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca ptr, align 8
  %.not = icmp eq i32 %0, 2
  br i1 %.not, label %6, label %4

4:                                                ; preds = %2
  %5 = tail call i32 @usage()
  tail call void @exit(i32 noundef 1) #5
  unreachable

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  store ptr null, ptr %3, align 8, !tbaa !5
  %9 = call i32 @s2n_find_security_policy_from_version(ptr noundef %8, ptr noundef nonnull %3) #6
  %.not38 = icmp eq i32 %9, 0
  br i1 %.not38, label %12, label %10

10:                                               ; preds = %6
  %11 = call i32 @usage()
  call void @exit(i32 noundef 1) #5
  unreachable

12:                                               ; preds = %6
  %13 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef %8)
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = load i8, ptr %14, align 8, !tbaa !9
  %16 = zext i8 %15 to i64
  %17 = getelementptr inbounds [35 x ptr], ptr @version_strs, i64 0, i64 %16
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %.not39 = icmp eq ptr %18, null
  %19 = select i1 %.not39, ptr @.str.8, ptr %18
  %20 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef nonnull %19)
  %21 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %22 = load ptr, ptr @security_rule_definitions, align 16, !tbaa !12
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %23, i64 57
  %25 = load i8, ptr %24, align 1, !tbaa !14, !range !15, !noundef !16
  %26 = trunc nuw i8 %25 to i1
  %27 = select i1 %26, ptr @.str.11, ptr @.str.12
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, ptr noundef %22, ptr noundef nonnull %27)
  %29 = load ptr, ptr getelementptr inbounds (i8, ptr @security_rule_definitions, i64 56), align 8, !tbaa !12
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %30, i64 58
  %32 = load i8, ptr %31, align 1, !tbaa !14, !range !15, !noundef !16
  %33 = trunc nuw i8 %32 to i1
  %34 = select i1 %33, ptr @.str.11, ptr @.str.12
  %35 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, ptr noundef %29, ptr noundef nonnull %34)
  %36 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %37, i64 8
  %39 = load ptr, ptr %38, align 8, !tbaa !17
  %40 = getelementptr inbounds i8, ptr %39, i64 16
  %41 = load i8, ptr %40, align 8, !tbaa !18, !range !15, !noundef !16
  %42 = trunc nuw i8 %41 to i1
  br i1 %42, label %43, label %45

43:                                               ; preds = %12
  %44 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  %.pre = load ptr, ptr %3, align 8, !tbaa !5
  %.phi.trans.insert = getelementptr inbounds i8, ptr %.pre, i64 8
  %.pre77 = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !17
  br label %45

45:                                               ; preds = %43, %12
  %46 = phi ptr [ %.pre77, %43 ], [ %39, %12 ]
  %47 = load i16, ptr %46, align 8, !tbaa !21
  %.not69 = icmp eq i16 %47, 0
  br i1 %.not69, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %45
  %48 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16)
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %49, i64 24
  %51 = load ptr, ptr %50, align 8, !tbaa !22
  %52 = load i8, ptr %51, align 8, !tbaa !23
  %.not70 = icmp eq i8 %52, 0
  br i1 %.not70, label %._crit_edge51, label %.lr.ph50

.lr.ph:                                           ; preds = %45, %.lr.ph
  %53 = phi ptr [ %64, %.lr.ph ], [ %46, %45 ]
  %.03547 = phi i64 [ %61, %.lr.ph ], [ 0, %45 ]
  %54 = getelementptr inbounds i8, ptr %53, i64 8
  %55 = load ptr, ptr %54, align 8, !tbaa !25
  %56 = getelementptr inbounds ptr, ptr %55, i64 %.03547
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %57, i64 16
  %59 = load ptr, ptr %58, align 8, !tbaa !26
  %60 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, ptr noundef %59)
  %61 = add nuw nsw i64 %.03547, 1
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %62, i64 8
  %64 = load ptr, ptr %63, align 8, !tbaa !17
  %65 = load i16, ptr %64, align 8, !tbaa !21
  %66 = zext i16 %65 to i64
  %67 = icmp ult i64 %61, %66
  br i1 %67, label %.lr.ph, label %._crit_edge, !llvm.loop !29

._crit_edge51:                                    ; preds = %.lr.ph50, %._crit_edge
  %68 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17)
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %69, i64 40
  %71 = load ptr, ptr %70, align 8, !tbaa !31
  %72 = load i8, ptr %71, align 8, !tbaa !32
  %.not71 = icmp eq i8 %72, 0
  br i1 %.not71, label %._crit_edge55, label %.lr.ph54

.lr.ph50:                                         ; preds = %._crit_edge, %.lr.ph50
  %73 = phi ptr [ %84, %.lr.ph50 ], [ %51, %._crit_edge ]
  %.03448 = phi i64 [ %81, %.lr.ph50 ], [ 0, %._crit_edge ]
  %74 = getelementptr inbounds i8, ptr %73, i64 8
  %75 = load ptr, ptr %74, align 8, !tbaa !34
  %76 = getelementptr inbounds ptr, ptr %75, i64 %.03448
  %77 = load ptr, ptr %76, align 8, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %77, i64 8
  %79 = load ptr, ptr %78, align 8, !tbaa !35
  %80 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, ptr noundef %79)
  %81 = add nuw nsw i64 %.03448, 1
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds i8, ptr %82, i64 24
  %84 = load ptr, ptr %83, align 8, !tbaa !22
  %85 = load i8, ptr %84, align 8, !tbaa !23
  %86 = zext i8 %85 to i64
  %87 = icmp ult i64 %81, %86
  br i1 %87, label %.lr.ph50, label %._crit_edge51, !llvm.loop !37

._crit_edge55:                                    ; preds = %.lr.ph54, %._crit_edge51
  %.lcssa = phi ptr [ %69, %._crit_edge51 ], [ %99, %.lr.ph54 ]
  %88 = getelementptr inbounds i8, ptr %.lcssa, i64 32
  %89 = load ptr, ptr %88, align 8, !tbaa !38
  %.not40 = icmp eq ptr %89, null
  br i1 %.not40, label %.loopexit45, label %105

.lr.ph54:                                         ; preds = %._crit_edge51, %.lr.ph54
  %90 = phi ptr [ %101, %.lr.ph54 ], [ %71, %._crit_edge51 ]
  %.03352 = phi i64 [ %98, %.lr.ph54 ], [ 0, %._crit_edge51 ]
  %91 = getelementptr inbounds i8, ptr %90, i64 8
  %92 = load ptr, ptr %91, align 8, !tbaa !39
  %93 = getelementptr inbounds ptr, ptr %92, i64 %.03352
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  %95 = getelementptr inbounds i8, ptr %94, i64 8
  %96 = load ptr, ptr %95, align 8, !tbaa !40
  %97 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, ptr noundef %96)
  %98 = add nuw nsw i64 %.03352, 1
  %99 = load ptr, ptr %3, align 8, !tbaa !5
  %100 = getelementptr inbounds i8, ptr %99, i64 40
  %101 = load ptr, ptr %100, align 8, !tbaa !31
  %102 = load i8, ptr %101, align 8, !tbaa !32
  %103 = zext i8 %102 to i64
  %104 = icmp ult i64 %98, %103
  br i1 %104, label %.lr.ph54, label %._crit_edge55, !llvm.loop !42

105:                                              ; preds = %._crit_edge55
  %106 = getelementptr inbounds i8, ptr %.lcssa, i64 56
  %107 = load i8, ptr %106, align 8, !tbaa !43, !range !15, !noundef !16
  %108 = trunc nuw i8 %107 to i1
  br i1 %108, label %109, label %111

109:                                              ; preds = %105
  %110 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18)
  br label %111

111:                                              ; preds = %109, %105
  %112 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19)
  %113 = load ptr, ptr %3, align 8, !tbaa !5
  %114 = getelementptr inbounds i8, ptr %113, i64 32
  %115 = load ptr, ptr %114, align 8, !tbaa !38
  %116 = load i8, ptr %115, align 8, !tbaa !23
  %.not72 = icmp eq i8 %116, 0
  br i1 %.not72, label %.loopexit45, label %.lr.ph58

.lr.ph58:                                         ; preds = %111, %.lr.ph58
  %117 = phi ptr [ %128, %.lr.ph58 ], [ %115, %111 ]
  %.03256 = phi i64 [ %125, %.lr.ph58 ], [ 0, %111 ]
  %118 = getelementptr inbounds i8, ptr %117, i64 8
  %119 = load ptr, ptr %118, align 8, !tbaa !34
  %120 = getelementptr inbounds ptr, ptr %119, i64 %.03256
  %121 = load ptr, ptr %120, align 8, !tbaa !5
  %122 = getelementptr inbounds i8, ptr %121, i64 8
  %123 = load ptr, ptr %122, align 8, !tbaa !35
  %124 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, ptr noundef %123)
  %125 = add nuw nsw i64 %.03256, 1
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = getelementptr inbounds i8, ptr %126, i64 32
  %128 = load ptr, ptr %127, align 8, !tbaa !38
  %129 = load i8, ptr %128, align 8, !tbaa !23
  %130 = zext i8 %129 to i64
  %131 = icmp ult i64 %125, %130
  br i1 %131, label %.lr.ph58, label %.loopexit45, !llvm.loop !44

.loopexit45:                                      ; preds = %.lr.ph58, %111, %._crit_edge55
  %132 = phi ptr [ %113, %111 ], [ %.lcssa, %._crit_edge55 ], [ %126, %.lr.ph58 ]
  %133 = getelementptr inbounds i8, ptr %132, i64 48
  %134 = load ptr, ptr %133, align 8, !tbaa !45
  %.not41 = icmp eq ptr %134, null
  br i1 %.not41, label %.loopexit44, label %135

135:                                              ; preds = %.loopexit45
  %136 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20)
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = getelementptr inbounds i8, ptr %137, i64 48
  %139 = load ptr, ptr %138, align 8, !tbaa !45
  %140 = load i8, ptr %139, align 8, !tbaa !46
  %.not73 = icmp eq i8 %140, 0
  br i1 %.not73, label %.loopexit44, label %.lr.ph61

.lr.ph61:                                         ; preds = %135, %.lr.ph61
  %141 = phi ptr [ %151, %.lr.ph61 ], [ %139, %135 ]
  %.03159 = phi i64 [ %148, %.lr.ph61 ], [ 0, %135 ]
  %142 = getelementptr inbounds i8, ptr %141, i64 8
  %143 = load ptr, ptr %142, align 8, !tbaa !48
  %144 = getelementptr inbounds ptr, ptr %143, i64 %.03159
  %145 = load ptr, ptr %144, align 8, !tbaa !5
  %146 = load ptr, ptr %145, align 8, !tbaa !49
  %147 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, ptr noundef %146)
  %148 = add nuw nsw i64 %.03159, 1
  %149 = load ptr, ptr %3, align 8, !tbaa !5
  %150 = getelementptr inbounds i8, ptr %149, i64 48
  %151 = load ptr, ptr %150, align 8, !tbaa !45
  %152 = load i8, ptr %151, align 8, !tbaa !46
  %153 = zext i8 %152 to i64
  %154 = icmp ult i64 %148, %153
  br i1 %154, label %.lr.ph61, label %.loopexit44, !llvm.loop !51

.loopexit44:                                      ; preds = %.lr.ph61, %135, %.loopexit45
  %155 = phi ptr [ %137, %135 ], [ %132, %.loopexit45 ], [ %149, %.lr.ph61 ]
  %156 = getelementptr inbounds i8, ptr %155, i64 16
  %157 = load ptr, ptr %156, align 8, !tbaa !52
  %.not42 = icmp eq ptr %157, null
  %.not43 = icmp eq ptr %157, @kem_preferences_null
  %or.cond = or i1 %.not42, %.not43
  br i1 %or.cond, label %.loopexit, label %158

158:                                              ; preds = %.loopexit44
  %159 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21)
  %160 = load ptr, ptr %3, align 8, !tbaa !5
  %161 = getelementptr inbounds i8, ptr %160, i64 16
  %162 = load ptr, ptr %161, align 8, !tbaa !52
  %163 = getelementptr inbounds i8, ptr %162, i64 32
  %164 = load i8, ptr %163, align 8, !tbaa !53
  %165 = zext i8 %164 to i32
  %166 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.22, i32 noundef %165)
  %167 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.23)
  %168 = load ptr, ptr %3, align 8, !tbaa !5
  %169 = getelementptr inbounds i8, ptr %168, i64 16
  %170 = load ptr, ptr %169, align 8, !tbaa !52
  %171 = load i8, ptr %170, align 8, !tbaa !55
  %.not74 = icmp eq i8 %171, 0
  br i1 %.not74, label %._crit_edge65, label %.lr.ph64

._crit_edge65:                                    ; preds = %.lr.ph64, %158
  %172 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.25)
  %173 = load ptr, ptr %3, align 8, !tbaa !5
  %174 = getelementptr inbounds i8, ptr %173, i64 16
  %175 = load ptr, ptr %174, align 8, !tbaa !52
  %176 = getelementptr inbounds i8, ptr %175, i64 16
  %177 = load i8, ptr %176, align 8, !tbaa !56
  %.not75 = icmp eq i8 %177, 0
  br i1 %.not75, label %.loopexit, label %.lr.ph68

.lr.ph64:                                         ; preds = %158, %.lr.ph64
  %178 = phi ptr [ %188, %.lr.ph64 ], [ %170, %158 ]
  %.03062 = phi i64 [ %185, %.lr.ph64 ], [ 0, %158 ]
  %179 = getelementptr inbounds i8, ptr %178, i64 8
  %180 = load ptr, ptr %179, align 8, !tbaa !57
  %181 = getelementptr inbounds ptr, ptr %180, i64 %.03062
  %182 = load ptr, ptr %181, align 8, !tbaa !5
  %183 = load ptr, ptr %182, align 8, !tbaa !58
  %184 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24, ptr noundef %183)
  %185 = add nuw nsw i64 %.03062, 1
  %186 = load ptr, ptr %3, align 8, !tbaa !5
  %187 = getelementptr inbounds i8, ptr %186, i64 16
  %188 = load ptr, ptr %187, align 8, !tbaa !52
  %189 = load i8, ptr %188, align 8, !tbaa !55
  %190 = zext i8 %189 to i64
  %191 = icmp ult i64 %185, %190
  br i1 %191, label %.lr.ph64, label %._crit_edge65, !llvm.loop !60

.lr.ph68:                                         ; preds = %._crit_edge65, %.lr.ph68
  %192 = phi ptr [ %202, %.lr.ph68 ], [ %175, %._crit_edge65 ]
  %.066 = phi i64 [ %199, %.lr.ph68 ], [ 0, %._crit_edge65 ]
  %193 = getelementptr inbounds i8, ptr %192, i64 24
  %194 = load ptr, ptr %193, align 8, !tbaa !61
  %195 = getelementptr inbounds ptr, ptr %194, i64 %.066
  %196 = load ptr, ptr %195, align 8, !tbaa !5
  %197 = load ptr, ptr %196, align 8, !tbaa !62
  %198 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24, ptr noundef %197)
  %199 = add nuw nsw i64 %.066, 1
  %200 = load ptr, ptr %3, align 8, !tbaa !5
  %201 = getelementptr inbounds i8, ptr %200, i64 16
  %202 = load ptr, ptr %201, align 8, !tbaa !52
  %203 = getelementptr inbounds i8, ptr %202, i64 16
  %204 = load i8, ptr %203, align 8, !tbaa !56
  %205 = zext i8 %204 to i64
  %206 = icmp ult i64 %199, %205
  br i1 %206, label %.lr.ph68, label %.loopexit, !llvm.loop !64

.loopexit:                                        ; preds = %.lr.ph68, %._crit_edge65, %.loopexit44
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  ret i32 0
}

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @usage() local_unnamed_addr #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind }
attributes #6 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !7, i64 0}
!10 = !{!"s2n_security_policy", !7, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !11, i64 56, !7, i64 57}
!11 = !{!"_Bool", !7, i64 0}
!12 = !{!13, !6, i64 0}
!13 = !{!"s2n_security_rule", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!14 = !{!11, !11, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!10, !6, i64 8}
!18 = !{!19, !11, i64 16}
!19 = !{!"s2n_cipher_preferences", !20, i64 0, !6, i64 8, !11, i64 16}
!20 = !{!"short", !7, i64 0}
!21 = !{!19, !20, i64 0}
!22 = !{!10, !6, i64 24}
!23 = !{!24, !7, i64 0}
!24 = !{!"s2n_signature_preferences", !7, i64 0, !6, i64 8}
!25 = !{!19, !6, i64 8}
!26 = !{!27, !6, i64 16}
!27 = !{!"s2n_cipher_suite", !28, i64 0, !6, i64 8, !6, i64 16, !7, i64 24, !6, i64 32, !28, i64 40, !6, i64 48, !7, i64 56, !7, i64 72, !6, i64 80, !6, i64 88, !28, i64 96, !7, i64 100}
!28 = !{!"int", !7, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!10, !6, i64 40}
!32 = !{!33, !7, i64 0}
!33 = !{!"s2n_ecc_preferences", !7, i64 0, !6, i64 8}
!34 = !{!24, !6, i64 8}
!35 = !{!36, !6, i64 8}
!36 = !{!"s2n_signature_scheme", !20, i64 0, !6, i64 8, !28, i64 16, !28, i64 20, !7, i64 24, !7, i64 25, !20, i64 26, !6, i64 32}
!37 = distinct !{!37, !30}
!38 = !{!10, !6, i64 32}
!39 = !{!33, !6, i64 8}
!40 = !{!41, !6, i64 8}
!41 = !{!"s2n_ecc_named_curve", !20, i64 0, !28, i64 4, !6, i64 8, !7, i64 16, !6, i64 24}
!42 = distinct !{!42, !30}
!43 = !{!10, !11, i64 56}
!44 = distinct !{!44, !30}
!45 = !{!10, !6, i64 48}
!46 = !{!47, !7, i64 0}
!47 = !{!"s2n_certificate_key_preferences", !7, i64 0, !6, i64 8}
!48 = !{!47, !6, i64 8}
!49 = !{!50, !6, i64 0}
!50 = !{!"s2n_certificate_key", !6, i64 0, !20, i64 8, !20, i64 10}
!51 = distinct !{!51, !30}
!52 = !{!10, !6, i64 16}
!53 = !{!54, !7, i64 32}
!54 = !{!"s2n_kem_preferences", !7, i64 0, !6, i64 8, !7, i64 16, !6, i64 24, !7, i64 32}
!55 = !{!54, !7, i64 0}
!56 = !{!54, !7, i64 16}
!57 = !{!54, !6, i64 8}
!58 = !{!59, !6, i64 0}
!59 = !{!"s2n_kem", !6, i64 0, !28, i64 8, !20, i64 12, !20, i64 14, !20, i64 16, !20, i64 18, !20, i64 20, !6, i64 24, !6, i64 32, !6, i64 40}
!60 = distinct !{!60, !30}
!61 = !{!54, !6, i64 24}
!62 = !{!63, !6, i64 0}
!63 = !{!"s2n_kem_group", !6, i64 0, !20, i64 8, !6, i64 16, !6, i64 24, !11, i64 32}
!64 = distinct !{!64, !30}


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