; LLVM IR from openssl/openssl :: fuzz (provider)

; 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"

@digests_collection = external hidden global ptr, align 8
@cipher_collection = external hidden global ptr, align 8
@kdf_collection = external hidden global ptr, align 8
@mac_collection = external hidden global ptr, align 8
@kem_collection = external hidden global ptr, align 8
@rand_collection = external hidden global ptr, align 8
@asym_ciphers_collection = external hidden global ptr, align 8
@signature_collection = external hidden global ptr, align 8
@keyexch_collection = external hidden global ptr, align 8
@.str = external hidden unnamed_addr constant [65 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @FuzzerTestOneInput(ptr noundef %0, i64 noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 1, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store ptr null, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store ptr null, ptr %7, align 8, !tbaa !5
  %27 = call i32 @read_uint(ptr noundef %3, ptr noundef %4, ptr noundef %6)
  %28 = icmp ne i32 %27, 0
  br i1 %28, label %30, label %29

29:                                               ; preds = %2
  store i32 0, ptr %5, align 4, !tbaa !11
  br label %328

30:                                               ; preds = %2
  %31 = call i32 @read_int(ptr noundef %3, ptr noundef %4, ptr noundef %7)
  %32 = icmp ne i32 %31, 0
  br i1 %32, label %34, label %33

33:                                               ; preds = %30
  store i32 0, ptr %5, align 4, !tbaa !11
  br label %328

34:                                               ; preds = %30
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = load i64, ptr %35, align 8, !tbaa !9
  %37 = urem i64 %36, 10
  switch i64 %37, label %326 [
    i64 0, label %38
    i64 1, label %70
    i64 2, label %102
    i64 3, label %134
    i64 4, label %166
    i64 5, label %198
    i64 6, label %230
    i64 7, label %262
    i64 8, label %294
    i64 9, label %327
  ]

38:                                               ; preds = %34
  br label %39

39:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %40 = load ptr, ptr @digests_collection, align 8, !tbaa !5
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = load i64, ptr %41, align 8, !tbaa !9
  %43 = load ptr, ptr @digests_collection, align 8, !tbaa !5
  %44 = call i32 @sk_EVP_MD_num(ptr noundef %43)
  %45 = sext i32 %44 to i64
  %46 = srem i64 %42, %45
  %47 = trunc i64 %46 to i32
  %48 = call ptr @sk_EVP_MD_value(ptr noundef %40, i32 noundef %47)
  store ptr %48, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = icmp eq ptr %49, null
  br i1 %50, label %51, label %52

51:                                               ; preds = %39
  store i32 4, ptr %10, align 4
  br label %65

52:                                               ; preds = %39
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = call ptr @EVP_MD_settable_ctx_params(ptr noundef %53)
  %55 = call ptr @fuzz_params(ptr noundef %54, ptr noundef %3, ptr noundef %4)
  store ptr %55, ptr %9, align 8, !tbaa !5
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = icmp ne ptr %56, null
  br i1 %57, label %58, label %62

58:                                               ; preds = %52
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = call i32 @do_evp_md(ptr noundef %59, ptr noundef %60)
  br label %62

62:                                               ; preds = %58, %52
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free_params(ptr noundef %63)
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  call void @OSSL_PARAM_free(ptr noundef %64)
  store i32 0, ptr %10, align 4
  br label %65

65:                                               ; preds = %62, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %66 = load i32, ptr %10, align 4
  switch i32 %66, label %332 [
    i32 0, label %67
    i32 4, label %69
  ]

67:                                               ; preds = %65
  br label %68

68:                                               ; preds = %67
  br label %69

69:                                               ; preds = %68, %65
  br label %327

70:                                               ; preds = %34
  br label %71

71:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %72 = load ptr, ptr @cipher_collection, align 8, !tbaa !5
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = load i64, ptr %73, align 8, !tbaa !9
  %75 = load ptr, ptr @cipher_collection, align 8, !tbaa !5
  %76 = call i32 @sk_EVP_CIPHER_num(ptr noundef %75)
  %77 = sext i32 %76 to i64
  %78 = srem i64 %74, %77
  %79 = trunc i64 %78 to i32
  %80 = call ptr @sk_EVP_CIPHER_value(ptr noundef %72, i32 noundef %79)
  store ptr %80, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  %82 = icmp eq ptr %81, null
  br i1 %82, label %83, label %84

83:                                               ; preds = %71
  store i32 6, ptr %10, align 4
  br label %97

84:                                               ; preds = %71
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  %86 = call ptr @EVP_CIPHER_settable_ctx_params(ptr noundef %85)
  %87 = call ptr @fuzz_params(ptr noundef %86, ptr noundef %3, ptr noundef %4)
  store ptr %87, ptr %12, align 8, !tbaa !5
  %88 = load ptr, ptr %12, align 8, !tbaa !5
  %89 = icmp ne ptr %88, null
  br i1 %89, label %90, label %94

90:                                               ; preds = %84
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = load ptr, ptr %12, align 8, !tbaa !5
  %93 = call i32 @do_evp_cipher(ptr noundef %91, ptr noundef %92)
  br label %94

94:                                               ; preds = %90, %84
  %95 = load ptr, ptr %12, align 8, !tbaa !5
  call void @free_params(ptr noundef %95)
  %96 = load ptr, ptr %12, align 8, !tbaa !5
  call void @OSSL_PARAM_free(ptr noundef %96)
  store i32 0, ptr %10, align 4
  br label %97

97:                                               ; preds = %94, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  %98 = load i32, ptr %10, align 4
  switch i32 %98, label %332 [
    i32 0, label %99
    i32 6, label %101
  ]

99:                                               ; preds = %97
  br label %100

100:                                              ; preds = %99
  br label %101

101:                                              ; preds = %100, %97
  br label %327

102:                                              ; preds = %34
  br label %103

103:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %104 = load ptr, ptr @kdf_collection, align 8, !tbaa !5
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = load i64, ptr %105, align 8, !tbaa !9
  %107 = load ptr, ptr @kdf_collection, align 8, !tbaa !5
  %108 = call i32 @sk_EVP_KDF_num(ptr noundef %107)
  %109 = sext i32 %108 to i64
  %110 = srem i64 %106, %109
  %111 = trunc i64 %110 to i32
  %112 = call ptr @sk_EVP_KDF_value(ptr noundef %104, i32 noundef %111)
  store ptr %112, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %113 = load ptr, ptr %13, align 8, !tbaa !5
  %114 = icmp eq ptr %113, null
  br i1 %114, label %115, label %116

115:                                              ; preds = %103
  store i32 8, ptr %10, align 4
  br label %129

116:                                              ; preds = %103
  %117 = load ptr, ptr %13, align 8, !tbaa !5
  %118 = call ptr @EVP_KDF_settable_ctx_params(ptr noundef %117)
  %119 = call ptr @fuzz_params(ptr noundef %118, ptr noundef %3, ptr noundef %4)
  store ptr %119, ptr %14, align 8, !tbaa !5
  %120 = load ptr, ptr %14, align 8, !tbaa !5
  %121 = icmp ne ptr %120, null
  br i1 %121, label %122, label %126

122:                                              ; preds = %116
  %123 = load ptr, ptr %13, align 8, !tbaa !5
  %124 = load ptr, ptr %14, align 8, !tbaa !5
  %125 = call i32 @do_evp_kdf(ptr noundef %123, ptr noundef %124)
  br label %126

126:                                              ; preds = %122, %116
  %127 = load ptr, ptr %14, align 8, !tbaa !5
  call void @free_params(ptr noundef %127)
  %128 = load ptr, ptr %14, align 8, !tbaa !5
  call void @OSSL_PARAM_free(ptr noundef %128)
  store i32 0, ptr %10, align 4
  br label %129

129:                                              ; preds = %126, %115
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  %130 = load i32, ptr %10, align 4
  switch i32 %130, label %332 [
    i32 0, label %131
    i32 8, label %133
  ]

131:                                              ; preds = %129
  br label %132

132:                                              ; preds = %131
  br label %133

133:                                              ; preds = %132, %129
  br label %327

134:                                              ; preds = %34
  br label %135

135:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %136 = load ptr, ptr @mac_collection, align 8, !tbaa !5
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  %138 = load i64, ptr %137, align 8, !tbaa !9
  %139 = load ptr, ptr @mac_collection, align 8, !tbaa !5
  %140 = call i32 @sk_EVP_MAC_num(ptr noundef %139)
  %141 = sext i32 %140 to i64
  %142 = srem i64 %138, %141
  %143 = trunc i64 %142 to i32
  %144 = call ptr @sk_EVP_MAC_value(ptr noundef %136, i32 noundef %143)
  store ptr %144, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %145 = load ptr, ptr %15, align 8, !tbaa !5
  %146 = icmp eq ptr %145, null
  br i1 %146, label %147, label %148

147:                                              ; preds = %135
  store i32 10, ptr %10, align 4
  br label %161

148:                                              ; preds = %135
  %149 = load ptr, ptr %15, align 8, !tbaa !5
  %150 = call ptr @EVP_MAC_settable_ctx_params(ptr noundef %149)
  %151 = call ptr @fuzz_params(ptr noundef %150, ptr noundef %3, ptr noundef %4)
  store ptr %151, ptr %16, align 8, !tbaa !5
  %152 = load ptr, ptr %16, align 8, !tbaa !5
  %153 = icmp ne ptr %152, null
  br i1 %153, label %154, label %158

154:                                              ; preds = %148
  %155 = load ptr, ptr %15, align 8, !tbaa !5
  %156 = load ptr, ptr %16, align 8, !tbaa !5
  %157 = call i32 @do_evp_mac(ptr noundef %155, ptr noundef %156)
  br label %158

158:                                              ; preds = %154, %148
  %159 = load ptr, ptr %16, align 8, !tbaa !5
  call void @free_params(ptr noundef %159)
  %160 = load ptr, ptr %16, align 8, !tbaa !5
  call void @OSSL_PARAM_free(ptr noundef %160)
  store i32 0, ptr %10, align 4
  br label %161

161:                                              ; preds = %158, %147
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  %162 = load i32, ptr %10, align 4
  switch i32 %162, label %332 [
    i32 0, label %163
    i32 10, label %165
  ]

163:                                              ; preds = %161
  br label %164

164:                                              ; preds = %163
  br label %165

165:                                              ; preds = %164, %161
  br label %327

166:                                              ; preds = %34
  br label %167

167:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %168 = load ptr, ptr @kem_collection, align 8, !tbaa !5
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  %170 = load i64, ptr %169, align 8, !tbaa !9
  %171 = load ptr, ptr @kem_collection, align 8, !tbaa !5
  %172 = call i32 @sk_EVP_KEM_num(ptr noundef %171)
  %173 = sext i32 %172 to i64
  %174 = srem i64 %170, %173
  %175 = trunc i64 %174 to i32
  %176 = call ptr @sk_EVP_KEM_value(ptr noundef %168, i32 noundef %175)
  store ptr %176, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %177 = load ptr, ptr %17, align 8, !tbaa !5
  %178 = icmp eq ptr %177, null
  br i1 %178, label %179, label %180

179:                                              ; preds = %167
  store i32 12, ptr %10, align 4
  br label %193

180:                                              ; preds = %167
  %181 = load ptr, ptr %17, align 8, !tbaa !5
  %182 = call ptr @EVP_KEM_settable_ctx_params(ptr noundef %181)
  %183 = call ptr @fuzz_params(ptr noundef %182, ptr noundef %3, ptr noundef %4)
  store ptr %183, ptr %18, align 8, !tbaa !5
  %184 = load ptr, ptr %18, align 8, !tbaa !5
  %185 = icmp ne ptr %184, null
  br i1 %185, label %186, label %190

186:                                              ; preds = %180
  %187 = load ptr, ptr %17, align 8, !tbaa !5
  %188 = load ptr, ptr %18, align 8, !tbaa !5
  %189 = call i32 @do_evp_kem(ptr noundef %187, ptr noundef %188)
  br label %190

190:                                              ; preds = %186, %180
  %191 = load ptr, ptr %18, align 8, !tbaa !5
  call void @free_params(ptr noundef %191)
  %192 = load ptr, ptr %18, align 8, !tbaa !5
  call void @OSSL_PARAM_free(ptr noundef %192)
  store i32 0, ptr %10, align 4
  br label %193

193:                                              ; preds = %190, %179
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  %194 = load i32, ptr %10, align 4
  switch i32 %194, label %332 [
    i32 0, label %195
    i32 12, label %197
  ]

195:                                              ; preds = %193
  br label %196

196:                                              ; preds = %195
  br label %197

197:                                              ; preds = %196, %193
  br label %327

198:                                              ; preds = %34
  br label %199

199:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %200 = load ptr, ptr @rand_collection, align 8, !tbaa !5
  %201 = load ptr, ptr %7, align 8, !tbaa !5
  %202 = load i64, ptr %201, align 8, !tbaa !9
  %203 = load ptr, ptr @rand_collection, align 8, !tbaa !5
  %204 = call i32 @sk_EVP_RAND_num(ptr noundef %203)
  %205 = sext i32 %204 to i64
  %206 = srem i64 %202, %205
  %207 = trunc i64 %206 to i32
  %208 = call ptr @sk_EVP_RAND_value(ptr noundef %200, i32 noundef %207)
  store ptr %208, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %209 = load ptr, ptr %19, align 8, !tbaa !5
  %210 = icmp eq ptr %209, null
  br i1 %210, label %211, label %212

211:                                              ; preds = %199
  store i32 14, ptr %10, align 4
  br label %225

212:                                              ; preds = %199
  %213 = load ptr, ptr %19, align 8, !tbaa !5
  %214 = call ptr @EVP_RAND_settable_ctx_params(ptr noundef %213)
  %215 = call ptr @fuzz_params(ptr noundef %214, ptr noundef %3, ptr noundef %4)
  store ptr %215, ptr %20, align 8, !tbaa !5
  %216 = load ptr, ptr %20, align 8, !tbaa !5
  %217 = icmp ne ptr %216, null
  br i1 %217, label %218, label %222

218:                                              ; preds = %212
  %219 = load ptr, ptr %19, align 8, !tbaa !5
  %220 = load ptr, ptr %20, align 8, !tbaa !5
  %221 = call i32 @do_evp_rand(ptr noundef %219, ptr noundef %220)
  br label %222

222:                                              ; preds = %218, %212
  %223 = load ptr, ptr %20, align 8, !tbaa !5
  call void @free_params(ptr noundef %223)
  %224 = load ptr, ptr %20, align 8, !tbaa !5
  call void @OSSL_PARAM_free(ptr noundef %224)
  store i32 0, ptr %10, align 4
  br label %225

225:                                              ; preds = %222, %211
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  %226 = load i32, ptr %10, align 4
  switch i32 %226, label %332 [
    i32 0, label %227
    i32 14, label %229
  ]

227:                                              ; preds = %225
  br label %228

228:                                              ; preds = %227
  br label %229

229:                                              ; preds = %228, %225
  br label %327

230:                                              ; preds = %34
  br label %231

231:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %232 = load ptr, ptr @asym_ciphers_collection, align 8, !tbaa !5
  %233 = load ptr, ptr %7, align 8, !tbaa !5
  %234 = load i64, ptr %233, align 8, !tbaa !9
  %235 = load ptr, ptr @asym_ciphers_collection, align 8, !tbaa !5
  %236 = call i32 @sk_EVP_ASYM_CIPHER_num(ptr noundef %235)
  %237 = sext i32 %236 to i64
  %238 = srem i64 %234, %237
  %239 = trunc i64 %238 to i32
  %240 = call ptr @sk_EVP_ASYM_CIPHER_value(ptr noundef %232, i32 noundef %239)
  store ptr %240, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %241 = load ptr, ptr %21, align 8, !tbaa !5
  %242 = icmp eq ptr %241, null
  br i1 %242, label %243, label %244

243:                                              ; preds = %231
  store i32 16, ptr %10, align 4
  br label %257

244:                                              ; preds = %231
  %245 = load ptr, ptr %21, align 8, !tbaa !5
  %246 = call ptr @EVP_ASYM_CIPHER_settable_ctx_params(ptr noundef %245)
  %247 = call ptr @fuzz_params(ptr noundef %246, ptr noundef %3, ptr noundef %4)
  store ptr %247, ptr %22, align 8, !tbaa !5
  %248 = load ptr, ptr %22, align 8, !tbaa !5
  %249 = icmp ne ptr %248, null
  br i1 %249, label %250, label %254

250:                                              ; preds = %244
  %251 = load ptr, ptr %21, align 8, !tbaa !5
  %252 = load ptr, ptr %22, align 8, !tbaa !5
  %253 = call i32 @do_evp_asym_cipher(ptr noundef %251, ptr noundef %252)
  br label %254

254:                                              ; preds = %250, %244
  %255 = load ptr, ptr %22, align 8, !tbaa !5
  call void @free_params(ptr noundef %255)
  %256 = load ptr, ptr %22, align 8, !tbaa !5
  call void @OSSL_PARAM_free(ptr noundef %256)
  store i32 0, ptr %10, align 4
  br label %257

257:                                              ; preds = %254, %243
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  %258 = load i32, ptr %10, align 4
  switch i32 %258, label %332 [
    i32 0, label %259
    i32 16, label %261
  ]

259:                                              ; preds = %257
  br label %260

260:                                              ; preds = %259
  br label %261

261:                                              ; preds = %260, %257
  br label %327

262:                                              ; preds = %34
  br label %263

263:                                              ; preds = %262
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %264 = load ptr, ptr @signature_collection, align 8, !tbaa !5
  %265 = load ptr, ptr %7, align 8, !tbaa !5
  %266 = load i64, ptr %265, align 8, !tbaa !9
  %267 = load ptr, ptr @signature_collection, align 8, !tbaa !5
  %268 = call i32 @sk_EVP_SIGNATURE_num(ptr noundef %267)
  %269 = sext i32 %268 to i64
  %270 = srem i64 %266, %269
  %271 = trunc i64 %270 to i32
  %272 = call ptr @sk_EVP_SIGNATURE_value(ptr noundef %264, i32 noundef %271)
  store ptr %272, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %273 = load ptr, ptr %23, align 8, !tbaa !5
  %274 = icmp eq ptr %273, null
  br i1 %274, label %275, label %276

275:                                              ; preds = %263
  store i32 18, ptr %10, align 4
  br label %289

276:                                              ; preds = %263
  %277 = load ptr, ptr %23, align 8, !tbaa !5
  %278 = call ptr @EVP_SIGNATURE_settable_ctx_params(ptr noundef %277)
  %279 = call ptr @fuzz_params(ptr noundef %278, ptr noundef %3, ptr noundef %4)
  store ptr %279, ptr %24, align 8, !tbaa !5
  %280 = load ptr, ptr %24, align 8, !tbaa !5
  %281 = icmp ne ptr %280, null
  br i1 %281, label %282, label %286

282:                                              ; preds = %276
  %283 = load ptr, ptr %23, align 8, !tbaa !5
  %284 = load ptr, ptr %24, align 8, !tbaa !5
  %285 = call i32 @do_evp_sig(ptr noundef %283, ptr noundef %284)
  br label %286

286:                                              ; preds = %282, %276
  %287 = load ptr, ptr %24, align 8, !tbaa !5
  call void @free_params(ptr noundef %287)
  %288 = load ptr, ptr %24, align 8, !tbaa !5
  call void @OSSL_PARAM_free(ptr noundef %288)
  store i32 0, ptr %10, align 4
  br label %289

289:                                              ; preds = %286, %275
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  %290 = load i32, ptr %10, align 4
  switch i32 %290, label %332 [
    i32 0, label %291
    i32 18, label %293
  ]

291:                                              ; preds = %289
  br label %292

292:                                              ; preds = %291
  br label %293

293:                                              ; preds = %292, %289
  br label %327

294:                                              ; preds = %34
  br label %295

295:                                              ; preds = %294
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %296 = load ptr, ptr @keyexch_collection, align 8, !tbaa !5
  %297 = load ptr, ptr %7, align 8, !tbaa !5
  %298 = load i64, ptr %297, align 8, !tbaa !9
  %299 = load ptr, ptr @keyexch_collection, align 8, !tbaa !5
  %300 = call i32 @sk_EVP_KEYEXCH_num(ptr noundef %299)
  %301 = sext i32 %300 to i64
  %302 = srem i64 %298, %301
  %303 = trunc i64 %302 to i32
  %304 = call ptr @sk_EVP_KEYEXCH_value(ptr noundef %296, i32 noundef %303)
  store ptr %304, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %305 = load ptr, ptr %25, align 8, !tbaa !5
  %306 = icmp eq ptr %305, null
  br i1 %306, label %307, label %308

307:                                              ; preds = %295
  store i32 20, ptr %10, align 4
  br label %321

308:                                              ; preds = %295
  %309 = load ptr, ptr %25, align 8, !tbaa !5
  %310 = call ptr @EVP_KEYEXCH_settable_ctx_params(ptr noundef %309)
  %311 = call ptr @fuzz_params(ptr noundef %310, ptr noundef %3, ptr noundef %4)
  store ptr %311, ptr %26, align 8, !tbaa !5
  %312 = load ptr, ptr %26, align 8, !tbaa !5
  %313 = icmp ne ptr %312, null
  br i1 %313, label %314, label %318

314:                                              ; preds = %308
  %315 = load ptr, ptr %25, align 8, !tbaa !5
  %316 = load ptr, ptr %26, align 8, !tbaa !5
  %317 = call i32 @do_evp_key_exch(ptr noundef %315, ptr noundef %316)
  br label %318

318:                                              ; preds = %314, %308
  %319 = load ptr, ptr %26, align 8, !tbaa !5
  call void @free_params(ptr noundef %319)
  %320 = load ptr, ptr %26, align 8, !tbaa !5
  call void @OSSL_PARAM_free(ptr noundef %320)
  store i32 0, ptr %10, align 4
  br label %321

321:                                              ; preds = %318, %307
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  %322 = load i32, ptr %10, align 4
  switch i32 %322, label %332 [
    i32 0, label %323
    i32 20, label %325
  ]

323:                                              ; preds = %321
  br label %324

324:                                              ; preds = %323
  br label %325

325:                                              ; preds = %324, %321
  br label %327

326:                                              ; preds = %34
  store i32 0, ptr %5, align 4, !tbaa !11
  br label %328

327:                                              ; preds = %325, %293, %261, %229, %197, %165, %133, %101, %69, %34
  br label %328

328:                                              ; preds = %327, %326, %33, %29
  %329 = load ptr, ptr %6, align 8, !tbaa !5
  call void @CRYPTO_free(ptr noundef %329, ptr noundef @.str, i32 noundef 655)
  %330 = load ptr, ptr %7, align 8, !tbaa !5
  call void @CRYPTO_free(ptr noundef %330, ptr noundef @.str, i32 noundef 656)
  %331 = load i32, ptr %5, align 4, !tbaa !11
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret i32 %331

332:                                              ; preds = %321, %289, %257, %225, %193, %161, %129, %97, %65
  unreachable
}

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

; Function Attrs: nounwind uwtable
declare hidden i32 @read_uint(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden i32 @read_int(ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @sk_EVP_MD_value(ptr noundef, i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @sk_EVP_MD_num(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden ptr @fuzz_params(ptr noundef, ptr noundef, ptr noundef) #0

declare ptr @EVP_MD_settable_ctx_params(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @do_evp_md(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @free_params(ptr noundef) #0

declare void @OSSL_PARAM_free(ptr noundef) #3

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @sk_EVP_CIPHER_value(ptr noundef, i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @sk_EVP_CIPHER_num(ptr noundef) #2

declare ptr @EVP_CIPHER_settable_ctx_params(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @do_evp_cipher(ptr noundef, ptr noundef) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @sk_EVP_KDF_value(ptr noundef, i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @sk_EVP_KDF_num(ptr noundef) #2

declare ptr @EVP_KDF_settable_ctx_params(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @do_evp_kdf(ptr noundef, ptr noundef) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @sk_EVP_MAC_value(ptr noundef, i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @sk_EVP_MAC_num(ptr noundef) #2

declare ptr @EVP_MAC_settable_ctx_params(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @do_evp_mac(ptr noundef, ptr noundef) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @sk_EVP_KEM_value(ptr noundef, i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @sk_EVP_KEM_num(ptr noundef) #2

declare ptr @EVP_KEM_settable_ctx_params(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @do_evp_kem(ptr noundef, ptr noundef) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @sk_EVP_RAND_value(ptr noundef, i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @sk_EVP_RAND_num(ptr noundef) #2

declare ptr @EVP_RAND_settable_ctx_params(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @do_evp_rand(ptr noundef, ptr noundef) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @sk_EVP_ASYM_CIPHER_value(ptr noundef, i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @sk_EVP_ASYM_CIPHER_num(ptr noundef) #2

declare ptr @EVP_ASYM_CIPHER_settable_ctx_params(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @do_evp_asym_cipher(ptr noundef, ptr noundef) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @sk_EVP_SIGNATURE_value(ptr noundef, i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @sk_EVP_SIGNATURE_num(ptr noundef) #2

declare ptr @EVP_SIGNATURE_settable_ctx_params(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @do_evp_sig(ptr noundef, ptr noundef) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @sk_EVP_KEYEXCH_value(ptr noundef, i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @sk_EVP_KEYEXCH_num(ptr noundef) #2

declare ptr @EVP_KEYEXCH_settable_ctx_params(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @do_evp_key_exch(ptr noundef, ptr noundef) #0

declare void @CRYPTO_free(ptr noundef, ptr noundef, i32 noundef) #3

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

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

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


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

@digests_collection = external hidden local_unnamed_addr global ptr, align 8
@cipher_collection = external hidden local_unnamed_addr global ptr, align 8
@kdf_collection = external hidden local_unnamed_addr global ptr, align 8
@mac_collection = external hidden local_unnamed_addr global ptr, align 8
@kem_collection = external hidden local_unnamed_addr global ptr, align 8
@rand_collection = external hidden local_unnamed_addr global ptr, align 8
@asym_ciphers_collection = external hidden local_unnamed_addr global ptr, align 8
@signature_collection = external hidden local_unnamed_addr global ptr, align 8
@keyexch_collection = external hidden local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [65 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @FuzzerTestOneInput(ptr noundef %0, i64 noundef %1) local_unnamed_addr #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  store ptr null, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  store ptr null, ptr %6, align 8, !tbaa !5
  %7 = call i32 @read_uint(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5)
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %149, label %8

8:                                                ; preds = %2
  %9 = call i32 @read_int(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %6)
  %.not81 = icmp eq i32 %9, 0
  br i1 %.not81, label %149, label %10

10:                                               ; preds = %8
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  %12 = load i64, ptr %11, align 8, !tbaa !9
  %13 = urem i64 %12, 10
  switch i64 %13, label %default.unreachable91 [
    i64 0, label %14
    i64 1, label %29
    i64 2, label %44
    i64 3, label %59
    i64 4, label %74
    i64 5, label %89
    i64 6, label %104
    i64 7, label %119
    i64 8, label %134
    i64 9, label %149
  ]

14:                                               ; preds = %10
  %15 = load ptr, ptr @digests_collection, align 8, !tbaa !5
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = load i64, ptr %16, align 8, !tbaa !9
  %18 = call i32 @sk_EVP_MD_num(ptr noundef %15)
  %19 = sext i32 %18 to i64
  %20 = srem i64 %17, %19
  %21 = trunc nsw i64 %20 to i32
  %22 = call ptr @sk_EVP_MD_value(ptr noundef %15, i32 noundef %21)
  %23 = icmp eq ptr %22, null
  br i1 %23, label %149, label %24

24:                                               ; preds = %14
  %25 = call ptr @EVP_MD_settable_ctx_params(ptr noundef nonnull %22) #4
  %26 = call ptr @fuzz_params(ptr noundef %25, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %.not90 = icmp eq ptr %26, null
  br i1 %.not90, label %.sink.split, label %27

27:                                               ; preds = %24
  %28 = call i32 @do_evp_md(ptr noundef nonnull %22, ptr noundef nonnull %26)
  br label %.sink.split

29:                                               ; preds = %10
  %30 = load ptr, ptr @cipher_collection, align 8, !tbaa !5
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = load i64, ptr %31, align 8, !tbaa !9
  %33 = call i32 @sk_EVP_CIPHER_num(ptr noundef %30)
  %34 = sext i32 %33 to i64
  %35 = srem i64 %32, %34
  %36 = trunc nsw i64 %35 to i32
  %37 = call ptr @sk_EVP_CIPHER_value(ptr noundef %30, i32 noundef %36)
  %38 = icmp eq ptr %37, null
  br i1 %38, label %149, label %39

39:                                               ; preds = %29
  %40 = call ptr @EVP_CIPHER_settable_ctx_params(ptr noundef nonnull %37) #4
  %41 = call ptr @fuzz_params(ptr noundef %40, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %.not89 = icmp eq ptr %41, null
  br i1 %.not89, label %.sink.split, label %42

42:                                               ; preds = %39
  %43 = call i32 @do_evp_cipher(ptr noundef nonnull %37, ptr noundef nonnull %41)
  br label %.sink.split

44:                                               ; preds = %10
  %45 = load ptr, ptr @kdf_collection, align 8, !tbaa !5
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = load i64, ptr %46, align 8, !tbaa !9
  %48 = call i32 @sk_EVP_KDF_num(ptr noundef %45)
  %49 = sext i32 %48 to i64
  %50 = srem i64 %47, %49
  %51 = trunc nsw i64 %50 to i32
  %52 = call ptr @sk_EVP_KDF_value(ptr noundef %45, i32 noundef %51)
  %53 = icmp eq ptr %52, null
  br i1 %53, label %149, label %54

54:                                               ; preds = %44
  %55 = call ptr @EVP_KDF_settable_ctx_params(ptr noundef nonnull %52) #4
  %56 = call ptr @fuzz_params(ptr noundef %55, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %.not88 = icmp eq ptr %56, null
  br i1 %.not88, label %.sink.split, label %57

57:                                               ; preds = %54
  %58 = call i32 @do_evp_kdf(ptr noundef nonnull %52, ptr noundef nonnull %56)
  br label %.sink.split

59:                                               ; preds = %10
  %60 = load ptr, ptr @mac_collection, align 8, !tbaa !5
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = load i64, ptr %61, align 8, !tbaa !9
  %63 = call i32 @sk_EVP_MAC_num(ptr noundef %60)
  %64 = sext i32 %63 to i64
  %65 = srem i64 %62, %64
  %66 = trunc nsw i64 %65 to i32
  %67 = call ptr @sk_EVP_MAC_value(ptr noundef %60, i32 noundef %66)
  %68 = icmp eq ptr %67, null
  br i1 %68, label %149, label %69

69:                                               ; preds = %59
  %70 = call ptr @EVP_MAC_settable_ctx_params(ptr noundef nonnull %67) #4
  %71 = call ptr @fuzz_params(ptr noundef %70, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %.not87 = icmp eq ptr %71, null
  br i1 %.not87, label %.sink.split, label %72

72:                                               ; preds = %69
  %73 = call i32 @do_evp_mac(ptr noundef nonnull %67, ptr noundef nonnull %71)
  br label %.sink.split

74:                                               ; preds = %10
  %75 = load ptr, ptr @kem_collection, align 8, !tbaa !5
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = load i64, ptr %76, align 8, !tbaa !9
  %78 = call i32 @sk_EVP_KEM_num(ptr noundef %75)
  %79 = sext i32 %78 to i64
  %80 = srem i64 %77, %79
  %81 = trunc nsw i64 %80 to i32
  %82 = call ptr @sk_EVP_KEM_value(ptr noundef %75, i32 noundef %81)
  %83 = icmp eq ptr %82, null
  br i1 %83, label %149, label %84

84:                                               ; preds = %74
  %85 = call ptr @EVP_KEM_settable_ctx_params(ptr noundef nonnull %82) #4
  %86 = call ptr @fuzz_params(ptr noundef %85, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %.not86 = icmp eq ptr %86, null
  br i1 %.not86, label %.sink.split, label %87

87:                                               ; preds = %84
  %88 = call i32 @do_evp_kem(ptr noundef nonnull %82, ptr noundef nonnull %86)
  br label %.sink.split

89:                                               ; preds = %10
  %90 = load ptr, ptr @rand_collection, align 8, !tbaa !5
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = load i64, ptr %91, align 8, !tbaa !9
  %93 = call i32 @sk_EVP_RAND_num(ptr noundef %90)
  %94 = sext i32 %93 to i64
  %95 = srem i64 %92, %94
  %96 = trunc nsw i64 %95 to i32
  %97 = call ptr @sk_EVP_RAND_value(ptr noundef %90, i32 noundef %96)
  %98 = icmp eq ptr %97, null
  br i1 %98, label %149, label %99

99:                                               ; preds = %89
  %100 = call ptr @EVP_RAND_settable_ctx_params(ptr noundef nonnull %97) #4
  %101 = call ptr @fuzz_params(ptr noundef %100, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %.not85 = icmp eq ptr %101, null
  br i1 %.not85, label %.sink.split, label %102

102:                                              ; preds = %99
  %103 = call i32 @do_evp_rand(ptr noundef nonnull %97, ptr noundef nonnull %101)
  br label %.sink.split

104:                                              ; preds = %10
  %105 = load ptr, ptr @asym_ciphers_collection, align 8, !tbaa !5
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = load i64, ptr %106, align 8, !tbaa !9
  %108 = call i32 @sk_EVP_ASYM_CIPHER_num(ptr noundef %105)
  %109 = sext i32 %108 to i64
  %110 = srem i64 %107, %109
  %111 = trunc nsw i64 %110 to i32
  %112 = call ptr @sk_EVP_ASYM_CIPHER_value(ptr noundef %105, i32 noundef %111)
  %113 = icmp eq ptr %112, null
  br i1 %113, label %149, label %114

114:                                              ; preds = %104
  %115 = call ptr @EVP_ASYM_CIPHER_settable_ctx_params(ptr noundef nonnull %112) #4
  %116 = call ptr @fuzz_params(ptr noundef %115, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %.not84 = icmp eq ptr %116, null
  br i1 %.not84, label %.sink.split, label %117

117:                                              ; preds = %114
  %118 = call i32 @do_evp_asym_cipher(ptr noundef nonnull %112, ptr noundef nonnull %116)
  br label %.sink.split

119:                                              ; preds = %10
  %120 = load ptr, ptr @signature_collection, align 8, !tbaa !5
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = load i64, ptr %121, align 8, !tbaa !9
  %123 = call i32 @sk_EVP_SIGNATURE_num(ptr noundef %120)
  %124 = sext i32 %123 to i64
  %125 = srem i64 %122, %124
  %126 = trunc nsw i64 %125 to i32
  %127 = call ptr @sk_EVP_SIGNATURE_value(ptr noundef %120, i32 noundef %126)
  %128 = icmp eq ptr %127, null
  br i1 %128, label %149, label %129

129:                                              ; preds = %119
  %130 = call ptr @EVP_SIGNATURE_settable_ctx_params(ptr noundef nonnull %127) #4
  %131 = call ptr @fuzz_params(ptr noundef %130, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %.not83 = icmp eq ptr %131, null
  br i1 %.not83, label %.sink.split, label %132

132:                                              ; preds = %129
  %133 = call i32 @do_evp_sig(ptr noundef nonnull %127, ptr noundef nonnull %131)
  br label %.sink.split

134:                                              ; preds = %10
  %135 = load ptr, ptr @keyexch_collection, align 8, !tbaa !5
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = load i64, ptr %136, align 8, !tbaa !9
  %138 = call i32 @sk_EVP_KEYEXCH_num(ptr noundef %135)
  %139 = sext i32 %138 to i64
  %140 = srem i64 %137, %139
  %141 = trunc nsw i64 %140 to i32
  %142 = call ptr @sk_EVP_KEYEXCH_value(ptr noundef %135, i32 noundef %141)
  %143 = icmp eq ptr %142, null
  br i1 %143, label %149, label %144

144:                                              ; preds = %134
  %145 = call ptr @EVP_KEYEXCH_settable_ctx_params(ptr noundef nonnull %142) #4
  %146 = call ptr @fuzz_params(ptr noundef %145, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %.not82 = icmp eq ptr %146, null
  br i1 %.not82, label %.sink.split, label %147

147:                                              ; preds = %144
  %148 = call i32 @do_evp_key_exch(ptr noundef nonnull %142, ptr noundef nonnull %146)
  br label %.sink.split

default.unreachable91:                            ; preds = %10
  unreachable

.sink.split:                                      ; preds = %144, %147, %129, %132, %114, %117, %99, %102, %84, %87, %69, %72, %54, %57, %39, %42, %24, %27
  %.sink92 = phi ptr [ %26, %27 ], [ %26, %24 ], [ %41, %42 ], [ %41, %39 ], [ %56, %57 ], [ %56, %54 ], [ %71, %72 ], [ %71, %69 ], [ %86, %87 ], [ %86, %84 ], [ %101, %102 ], [ %101, %99 ], [ %116, %117 ], [ %116, %114 ], [ %131, %132 ], [ %131, %129 ], [ %146, %147 ], [ %146, %144 ]
  call void @free_params(ptr noundef %.sink92)
  call void @OSSL_PARAM_free(ptr noundef %.sink92) #4
  br label %149

149:                                              ; preds = %.sink.split, %134, %119, %104, %89, %74, %59, %44, %29, %14, %8, %2, %10
  %.0 = phi i32 [ 1, %10 ], [ 0, %2 ], [ 0, %8 ], [ 1, %14 ], [ 1, %29 ], [ 1, %44 ], [ 1, %59 ], [ 1, %74 ], [ 1, %89 ], [ 1, %104 ], [ 1, %119 ], [ 1, %134 ], [ 1, %.sink.split ]
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  call void @CRYPTO_free(ptr noundef %150, ptr noundef nonnull @.str, i32 noundef 655) #4
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  call void @CRYPTO_free(ptr noundef %151, ptr noundef nonnull @.str, i32 noundef 656) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  ret i32 %.0
}

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

; Function Attrs: nounwind uwtable
declare hidden i32 @read_uint(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @read_int(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @sk_EVP_MD_value(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @sk_EVP_MD_num(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden ptr @fuzz_params(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare ptr @EVP_MD_settable_ctx_params(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden i32 @do_evp_md(ptr noundef, ptr noundef) local_unnamed_addr #0

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

declare void @OSSL_PARAM_free(ptr noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @sk_EVP_CIPHER_value(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @sk_EVP_CIPHER_num(ptr noundef) local_unnamed_addr #2

declare ptr @EVP_CIPHER_settable_ctx_params(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden i32 @do_evp_cipher(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @sk_EVP_KDF_value(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @sk_EVP_KDF_num(ptr noundef) local_unnamed_addr #2

declare ptr @EVP_KDF_settable_ctx_params(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden i32 @do_evp_kdf(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @sk_EVP_MAC_value(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @sk_EVP_MAC_num(ptr noundef) local_unnamed_addr #2

declare ptr @EVP_MAC_settable_ctx_params(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden i32 @do_evp_mac(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @sk_EVP_KEM_value(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @sk_EVP_KEM_num(ptr noundef) local_unnamed_addr #2

declare ptr @EVP_KEM_settable_ctx_params(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden i32 @do_evp_kem(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @sk_EVP_RAND_value(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @sk_EVP_RAND_num(ptr noundef) local_unnamed_addr #2

declare ptr @EVP_RAND_settable_ctx_params(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden i32 @do_evp_rand(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @sk_EVP_ASYM_CIPHER_value(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @sk_EVP_ASYM_CIPHER_num(ptr noundef) local_unnamed_addr #2

declare ptr @EVP_ASYM_CIPHER_settable_ctx_params(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden i32 @do_evp_asym_cipher(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @sk_EVP_SIGNATURE_value(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @sk_EVP_SIGNATURE_num(ptr noundef) local_unnamed_addr #2

declare ptr @EVP_SIGNATURE_settable_ctx_params(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden i32 @do_evp_sig(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @sk_EVP_KEYEXCH_value(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @sk_EVP_KEYEXCH_num(ptr noundef) local_unnamed_addr #2

declare ptr @EVP_KEYEXCH_settable_ctx_params(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden i32 @do_evp_key_exch(ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @CRYPTO_free(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

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

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SCCPPass,SROAPass,SimplifyCFGPass