; LLVM IR from openssl/openssl :: crypto/ec (ec_lib)

; 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.ec_group_st = type { ptr, ptr, ptr, ptr, i32, i32, i32, i32, ptr, i64, ptr, [6 x i32], ptr, ptr, i32, ptr, ptr, ptr, ptr, i32, %union.anon, ptr, ptr }
%union.anon = type { ptr }
%struct.ossl_param_st = type { ptr, i32, ptr, i64, i64 }

@.str = external hidden unnamed_addr constant [68 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1
@__func__.EC_GROUP_new_from_params = external hidden unnamed_addr constant [25 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [9 x i8], align 1

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

declare void @ERR_new() #1

declare void @ERR_set_debug(ptr noundef, i32 noundef, ptr noundef) #1

declare void @ERR_set_error(i32 noundef, i32 noundef, ptr noundef, ...) #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @EC_GROUP_free(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @EC_POINT_free(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @EC_POINT_new(ptr noundef) #2

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

declare i32 @BN_is_zero(ptr noundef) #1

declare i32 @BN_is_negative(ptr noundef) #1

declare i32 @BN_num_bits(ptr noundef) #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @EC_GROUP_set_seed(ptr noundef, ptr noundef, i64 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @EC_GROUP_get_degree(ptr noundef) #2

declare void @BN_CTX_start(ptr noundef) #1

declare ptr @BN_CTX_get(ptr noundef) #1

declare void @BN_CTX_end(ptr noundef) #1

declare void @BN_CTX_free(ptr noundef) #1

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

declare ptr @OSSL_PARAM_locate_const(ptr noundef, ptr noundef) #1

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

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

31:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  store i32 0, ptr %25, align 4, !tbaa !9
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = call ptr @group_new_from_name(ptr noundef %32, ptr noundef %33, ptr noundef %34)
  store ptr %35, ptr %9, align 8, !tbaa !5
  %36 = icmp eq ptr %35, null
  br i1 %36, label %37, label %38

37:                                               ; preds = %31
  store ptr null, ptr %4, align 8
  store i32 1, ptr %26, align 4
  br label %63

38:                                               ; preds = %31
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = call i32 @ossl_ec_group_set_params(ptr noundef %39, ptr noundef %40)
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %45, label %43

43:                                               ; preds = %38
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  call void @EC_GROUP_free(ptr noundef %44)
  store ptr null, ptr %4, align 8
  store i32 1, ptr %26, align 4
  br label %63

45:                                               ; preds = %38
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = call ptr @OSSL_PARAM_locate_const(ptr noundef %46, ptr noundef @.str.5)
  store ptr %47, ptr %8, align 8, !tbaa !5
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = icmp ne ptr %48, null
  br i1 %49, label %50, label %56

50:                                               ; preds = %45
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = call i32 @OSSL_PARAM_get_int(ptr noundef %51, ptr noundef %25)
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %56, label %54

54:                                               ; preds = %50
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1575, ptr noundef @__func__.EC_GROUP_new_from_params)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 145, ptr noundef null)
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  call void @EC_GROUP_free(ptr noundef %55)
  store ptr null, ptr %4, align 8
  store i32 1, ptr %26, align 4
  br label %63

56:                                               ; preds = %50, %45
  %57 = load i32, ptr %25, align 4, !tbaa !9
  %58 = icmp sgt i32 %57, 0
  %59 = zext i1 %58 to i32
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.ec_group_st, ptr %60, i32 0, i32 6
  store i32 %59, ptr %61, align 8, !tbaa !11
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %62, ptr %4, align 8
  store i32 1, ptr %26, align 4
  br label %63

63:                                               ; preds = %56, %54, %43, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  br label %323

64:                                               ; preds = %3
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = call ptr @BN_CTX_new_ex(ptr noundef %65)
  store ptr %66, ptr %22, align 8, !tbaa !5
  %67 = load ptr, ptr %22, align 8, !tbaa !5
  %68 = icmp eq ptr %67, null
  br i1 %68, label %69, label %70

69:                                               ; preds = %64
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1589, ptr noundef @__func__.EC_GROUP_new_from_params)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524291, ptr noundef null)
  store ptr null, ptr %4, align 8
  store i32 1, ptr %26, align 4
  br label %323

70:                                               ; preds = %64
  %71 = load ptr, ptr %22, align 8, !tbaa !5
  call void @BN_CTX_start(ptr noundef %71)
  %72 = load ptr, ptr %22, align 8, !tbaa !5
  %73 = call ptr @BN_CTX_get(ptr noundef %72)
  store ptr %73, ptr %14, align 8, !tbaa !5
  %74 = load ptr, ptr %22, align 8, !tbaa !5
  %75 = call ptr @BN_CTX_get(ptr noundef %74)
  store ptr %75, ptr %15, align 8, !tbaa !5
  %76 = load ptr, ptr %22, align 8, !tbaa !5
  %77 = call ptr @BN_CTX_get(ptr noundef %76)
  store ptr %77, ptr %16, align 8, !tbaa !5
  %78 = load ptr, ptr %22, align 8, !tbaa !5
  %79 = call ptr @BN_CTX_get(ptr noundef %78)
  store ptr %79, ptr %17, align 8, !tbaa !5
  %80 = load ptr, ptr %17, align 8, !tbaa !5
  %81 = icmp eq ptr %80, null
  br i1 %81, label %82, label %83

82:                                               ; preds = %70
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1599, ptr noundef @__func__.EC_GROUP_new_from_params)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524291, ptr noundef null)
  br label %313

83:                                               ; preds = %70
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = call ptr @OSSL_PARAM_locate_const(ptr noundef %84, ptr noundef @.str.6)
  store ptr %85, ptr %8, align 8, !tbaa !5
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = icmp eq ptr %86, null
  br i1 %87, label %93, label %88

88:                                               ; preds = %83
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.ossl_param_st, ptr %89, i32 0, i32 1
  %91 = load i32, ptr %90, align 8, !tbaa !14
  %92 = icmp ne i32 %91, 4
  br i1 %92, label %93, label %94

93:                                               ; preds = %88, %83
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1605, ptr noundef @__func__.EC_GROUP_new_from_params)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 103, ptr noundef null)
  br label %313

94:                                               ; preds = %88
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.ossl_param_st, ptr %95, i32 0, i32 2
  %97 = load ptr, ptr %96, align 8, !tbaa !16
  %98 = call i32 @OPENSSL_strcasecmp(ptr noundef %97, ptr noundef @.str.7)
  %99 = icmp eq i32 %98, 0
  br i1 %99, label %100, label %101

100:                                              ; preds = %94
  store i32 1, ptr %21, align 4, !tbaa !9
  br label %110

101:                                              ; preds = %94
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.ossl_param_st, ptr %102, i32 0, i32 2
  %104 = load ptr, ptr %103, align 8, !tbaa !16
  %105 = call i32 @OPENSSL_strcasecmp(ptr noundef %104, ptr noundef @.str.8)
  %106 = icmp eq i32 %105, 0
  br i1 %106, label %107, label %108

107:                                              ; preds = %101
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %109

108:                                              ; preds = %101
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1615, ptr noundef @__func__.EC_GROUP_new_from_params)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 131, ptr noundef null)
  br label %313

109:                                              ; preds = %107
  br label %110

110:                                              ; preds = %109, %100
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = call ptr @OSSL_PARAM_locate_const(ptr noundef %111, ptr noundef @.str.9)
  store ptr %112, ptr %10, align 8, !tbaa !5
  %113 = load ptr, ptr %10, align 8, !tbaa !5
  %114 = call i32 @OSSL_PARAM_get_BN(ptr noundef %113, ptr noundef %15)
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %117, label %116

116:                                              ; preds = %110
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1621, ptr noundef @__func__.EC_GROUP_new_from_params)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 168, ptr noundef null)
  br label %313

117:                                              ; preds = %110
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = call ptr @OSSL_PARAM_locate_const(ptr noundef %118, ptr noundef @.str.10)
  store ptr %119, ptr %11, align 8, !tbaa !5
  %120 = load ptr, ptr %11, align 8, !tbaa !5
  %121 = call i32 @OSSL_PARAM_get_BN(ptr noundef %120, ptr noundef %16)
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %124, label %123

123:                                              ; preds = %117
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1626, ptr noundef @__func__.EC_GROUP_new_from_params)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 169, ptr noundef null)
  br label %313

124:                                              ; preds = %117
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = call ptr @OSSL_PARAM_locate_const(ptr noundef %125, ptr noundef @.str.11)
  store ptr %126, ptr %8, align 8, !tbaa !5
  %127 = load ptr, ptr %8, align 8, !tbaa !5
  %128 = call i32 @OSSL_PARAM_get_BN(ptr noundef %127, ptr noundef %14)
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %131, label %130

130:                                              ; preds = %124
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1633, ptr noundef @__func__.EC_GROUP_new_from_params)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 172, ptr noundef null)
  br label %313

131:                                              ; preds = %124
  %132 = load i32, ptr %21, align 4, !tbaa !9
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %134, label %155

134:                                              ; preds = %131
  %135 = load ptr, ptr %14, align 8, !tbaa !5
  %136 = call i32 @BN_is_negative(ptr noundef %135)
  %137 = icmp ne i32 %136, 0
  br i1 %137, label %142, label %138

138:                                              ; preds = %134
  %139 = load ptr, ptr %14, align 8, !tbaa !5
  %140 = call i32 @BN_is_zero(ptr noundef %139)
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %142, label %143

142:                                              ; preds = %138, %134
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1639, ptr noundef @__func__.EC_GROUP_new_from_params)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 172, ptr noundef null)
  br label %313

143:                                              ; preds = %138
  %144 = load ptr, ptr %14, align 8, !tbaa !5
  %145 = call i32 @BN_num_bits(ptr noundef %144)
  store i32 %145, ptr %20, align 4, !tbaa !9
  %146 = load i32, ptr %20, align 4, !tbaa !9
  %147 = icmp sgt i32 %146, 661
  br i1 %147, label %148, label %149

148:                                              ; preds = %143
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1644, ptr noundef @__func__.EC_GROUP_new_from_params)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 143, ptr noundef null)
  br label %313

149:                                              ; preds = %143
  %150 = load ptr, ptr %14, align 8, !tbaa !5
  %151 = load ptr, ptr %15, align 8, !tbaa !5
  %152 = load ptr, ptr %16, align 8, !tbaa !5
  %153 = load ptr, ptr %22, align 8, !tbaa !5
  %154 = call ptr @EC_GROUP_new_curve_GFp(ptr noundef %150, ptr noundef %151, ptr noundef %152, ptr noundef %153)
  store ptr %154, ptr %9, align 8, !tbaa !5
  br label %170

155:                                              ; preds = %131
  %156 = load ptr, ptr %14, align 8, !tbaa !5
  %157 = load ptr, ptr %15, align 8, !tbaa !5
  %158 = load ptr, ptr %16, align 8, !tbaa !5
  %159 = call ptr @EC_GROUP_new_curve_GF2m(ptr noundef %156, ptr noundef %157, ptr noundef %158, ptr noundef null)
  store ptr %159, ptr %9, align 8, !tbaa !5
  %160 = load ptr, ptr %9, align 8, !tbaa !5
  %161 = icmp ne ptr %160, null
  br i1 %161, label %162, label %169

162:                                              ; preds = %155
  %163 = load ptr, ptr %9, align 8, !tbaa !5
  %164 = call i32 @EC_GROUP_get_degree(ptr noundef %163)
  store i32 %164, ptr %20, align 4, !tbaa !9
  %165 = load i32, ptr %20, align 4, !tbaa !9
  %166 = icmp sgt i32 %165, 661
  br i1 %166, label %167, label %168

167:                                              ; preds = %162
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1660, ptr noundef @__func__.EC_GROUP_new_from_params)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 143, ptr noundef null)
  br label %313

168:                                              ; preds = %162
  br label %169

169:                                              ; preds = %168, %155
  br label %170

170:                                              ; preds = %169, %149
  %171 = load ptr, ptr %9, align 8, !tbaa !5
  %172 = icmp eq ptr %171, null
  br i1 %172, label %173, label %174

173:                                              ; preds = %170
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1668, ptr noundef @__func__.EC_GROUP_new_from_params)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524304, ptr noundef null)
  br label %313

174:                                              ; preds = %170
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = call ptr @OSSL_PARAM_locate_const(ptr noundef %175, ptr noundef @.str.3)
  store ptr %176, ptr %8, align 8, !tbaa !5
  %177 = load ptr, ptr %8, align 8, !tbaa !5
  %178 = icmp ne ptr %177, null
  br i1 %178, label %179, label %197

179:                                              ; preds = %174
  %180 = load ptr, ptr %8, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.ossl_param_st, ptr %180, i32 0, i32 1
  %182 = load i32, ptr %181, align 8, !tbaa !14
  %183 = icmp ne i32 %182, 5
  br i1 %183, label %184, label %185

184:                                              ; preds = %179
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1676, ptr noundef @__func__.EC_GROUP_new_from_params)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 175, ptr noundef null)
  br label %313

185:                                              ; preds = %179
  %186 = load ptr, ptr %9, align 8, !tbaa !5
  %187 = load ptr, ptr %8, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.ossl_param_st, ptr %187, i32 0, i32 2
  %189 = load ptr, ptr %188, align 8, !tbaa !16
  %190 = load ptr, ptr %8, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.ossl_param_st, ptr %190, i32 0, i32 3
  %192 = load i64, ptr %191, align 8, !tbaa !17
  %193 = call i64 @EC_GROUP_set_seed(ptr noundef %186, ptr noundef %189, i64 noundef %192)
  %194 = icmp ne i64 %193, 0
  br i1 %194, label %196, label %195

195:                                              ; preds = %185
  br label %313

196:                                              ; preds = %185
  br label %197

197:                                              ; preds = %196, %174
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = call ptr @OSSL_PARAM_locate_const(ptr noundef %198, ptr noundef @.str.12)
  store ptr %199, ptr %8, align 8, !tbaa !5
  %200 = load ptr, ptr %8, align 8, !tbaa !5
  %201 = icmp eq ptr %200, null
  br i1 %201, label %207, label %202

202:                                              ; preds = %197
  %203 = load ptr, ptr %8, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.ossl_param_st, ptr %203, i32 0, i32 1
  %205 = load i32, ptr %204, align 8, !tbaa !14
  %206 = icmp ne i32 %205, 5
  br i1 %206, label %207, label %208

207:                                              ; preds = %202, %197
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1687, ptr noundef @__func__.EC_GROUP_new_from_params)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 173, ptr noundef null)
  br label %313

208:                                              ; preds = %202
  %209 = load ptr, ptr %8, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.ossl_param_st, ptr %209, i32 0, i32 2
  %211 = load ptr, ptr %210, align 8, !tbaa !16
  store ptr %211, ptr %23, align 8, !tbaa !5
  %212 = load ptr, ptr %9, align 8, !tbaa !5
  %213 = call ptr @EC_POINT_new(ptr noundef %212)
  store ptr %213, ptr %19, align 8, !tbaa !5
  %214 = icmp eq ptr %213, null
  br i1 %214, label %215, label %216

215:                                              ; preds = %208
  br label %313

216:                                              ; preds = %208
  %217 = load ptr, ptr %9, align 8, !tbaa !5
  %218 = load ptr, ptr %23, align 8, !tbaa !5
  %219 = getelementptr inbounds i8, ptr %218, i64 0
  %220 = load i8, ptr %219, align 1, !tbaa !18
  %221 = zext i8 %220 to i32
  %222 = and i32 %221, -2
  call void @EC_GROUP_set_point_conversion_form(ptr noundef %217, i32 noundef %222)
  %223 = load ptr, ptr %9, align 8, !tbaa !5
  %224 = load ptr, ptr %19, align 8, !tbaa !5
  %225 = load ptr, ptr %23, align 8, !tbaa !5
  %226 = load ptr, ptr %8, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.ossl_param_st, ptr %226, i32 0, i32 3
  %228 = load i64, ptr %227, align 8, !tbaa !17
  %229 = load ptr, ptr %22, align 8, !tbaa !5
  %230 = call i32 @EC_POINT_oct2point(ptr noundef %223, ptr noundef %224, ptr noundef %225, i64 noundef %228, ptr noundef %229)
  %231 = icmp ne i32 %230, 0
  br i1 %231, label %233, label %232

232:                                              ; preds = %216
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1696, ptr noundef @__func__.EC_GROUP_new_from_params)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 173, ptr noundef null)
  br label %313

233:                                              ; preds = %216
  %234 = load ptr, ptr %5, align 8, !tbaa !5
  %235 = call ptr @OSSL_PARAM_locate_const(ptr noundef %234, ptr noundef @.str.13)
  store ptr %235, ptr %8, align 8, !tbaa !5
  %236 = load ptr, ptr %8, align 8, !tbaa !5
  %237 = call i32 @OSSL_PARAM_get_BN(ptr noundef %236, ptr noundef %17)
  %238 = icmp ne i32 %237, 0
  br i1 %238, label %239, label %253

239:                                              ; preds = %233
  %240 = load ptr, ptr %17, align 8, !tbaa !5
  %241 = call i32 @BN_is_negative(ptr noundef %240)
  %242 = icmp ne i32 %241, 0
  br i1 %242, label %253, label %243

243:                                              ; preds = %239
  %244 = load ptr, ptr %17, align 8, !tbaa !5
  %245 = call i32 @BN_is_zero(ptr noundef %244)
  %246 = icmp ne i32 %245, 0
  br i1 %246, label %253, label %247

247:                                              ; preds = %243
  %248 = load ptr, ptr %17, align 8, !tbaa !5
  %249 = call i32 @BN_num_bits(ptr noundef %248)
  %250 = load i32, ptr %20, align 4, !tbaa !9
  %251 = add nsw i32 %250, 1
  %252 = icmp sgt i32 %249, %251
  br i1 %252, label %253, label %254

253:                                              ; preds = %247, %243, %239, %233
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1705, ptr noundef @__func__.EC_GROUP_new_from_params)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 122, ptr noundef null)
  br label %313

254:                                              ; preds = %247
  %255 = load ptr, ptr %5, align 8, !tbaa !5
  %256 = call ptr @OSSL_PARAM_locate_const(ptr noundef %255, ptr noundef @.str.14)
  store ptr %256, ptr %8, align 8, !tbaa !5
  %257 = load ptr, ptr %8, align 8, !tbaa !5
  %258 = icmp ne ptr %257, null
  br i1 %258, label %259, label %270

259:                                              ; preds = %254
  %260 = load ptr, ptr %22, align 8, !tbaa !5
  %261 = call ptr @BN_CTX_get(ptr noundef %260)
  store ptr %261, ptr %18, align 8, !tbaa !5
  %262 = load ptr, ptr %18, align 8, !tbaa !5
  %263 = icmp eq ptr %262, null
  br i1 %263, label %268, label %264

264:                                              ; preds = %259
  %265 = load ptr, ptr %8, align 8, !tbaa !5
  %266 = call i32 @OSSL_PARAM_get_BN(ptr noundef %265, ptr noundef %18)
  %267 = icmp ne i32 %266, 0
  br i1 %267, label %269, label %268

268:                                              ; preds = %264, %259
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1714, ptr noundef @__func__.EC_GROUP_new_from_params)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 171, ptr noundef null)
  br label %313

269:                                              ; preds = %264
  br label %270

270:                                              ; preds = %269, %254
  %271 = load ptr, ptr %9, align 8, !tbaa !5
  %272 = load ptr, ptr %19, align 8, !tbaa !5
  %273 = load ptr, ptr %17, align 8, !tbaa !5
  %274 = load ptr, ptr %18, align 8, !tbaa !5
  %275 = call i32 @EC_GROUP_set_generator(ptr noundef %271, ptr noundef %272, ptr noundef %273, ptr noundef %274)
  %276 = icmp ne i32 %275, 0
  br i1 %276, label %278, label %277

277:                                              ; preds = %270
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1721, ptr noundef @__func__.EC_GROUP_new_from_params)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 173, ptr noundef null)
  br label %313

278:                                              ; preds = %270
  %279 = load ptr, ptr %9, align 8, !tbaa !5
  %280 = load ptr, ptr %6, align 8, !tbaa !5
  %281 = load ptr, ptr %7, align 8, !tbaa !5
  %282 = load ptr, ptr %22, align 8, !tbaa !5
  %283 = call ptr @ec_group_explicit_to_named(ptr noundef %279, ptr noundef %280, ptr noundef %281, ptr noundef %282)
  store ptr %283, ptr %13, align 8, !tbaa !5
  %284 = load ptr, ptr %13, align 8, !tbaa !5
  %285 = icmp eq ptr %284, null
  br i1 %285, label %286, label %287

286:                                              ; preds = %278
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1727, ptr noundef @__func__.EC_GROUP_new_from_params)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 174, ptr noundef null)
  br label %313

287:                                              ; preds = %278
  %288 = load ptr, ptr %13, align 8, !tbaa !5
  %289 = load ptr, ptr %9, align 8, !tbaa !5
  %290 = icmp eq ptr %288, %289
  br i1 %290, label %291, label %307

291:                                              ; preds = %287
  %292 = load ptr, ptr %5, align 8, !tbaa !5
  %293 = call ptr @OSSL_PARAM_locate_const(ptr noundef %292, ptr noundef @.str.2)
  store ptr %293, ptr %8, align 8, !tbaa !5
  %294 = load ptr, ptr %8, align 8, !tbaa !5
  %295 = icmp ne ptr %294, null
  br i1 %295, label %296, label %301

296:                                              ; preds = %291
  %297 = load ptr, ptr %8, align 8, !tbaa !5
  %298 = call i32 @ossl_ec_encoding_param2id(ptr noundef %297, ptr noundef %24)
  %299 = icmp ne i32 %298, 0
  br i1 %299, label %301, label %300

300:                                              ; preds = %296
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1738, ptr noundef @__func__.EC_GROUP_new_from_params)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 102, ptr noundef null)
  br label %313

301:                                              ; preds = %296, %291
  %302 = load i32, ptr %24, align 4, !tbaa !9
  %303 = icmp eq i32 %302, 1
  br i1 %303, label %304, label %305

304:                                              ; preds = %301
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 1742, ptr noundef @__func__.EC_GROUP_new_from_params)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 102, ptr noundef null)
  br label %313

305:                                              ; preds = %301
  %306 = load ptr, ptr %9, align 8, !tbaa !5
  call void @EC_GROUP_set_asn1_flag(ptr noundef %306, i32 noundef 0)
  br label %310

307:                                              ; preds = %287
  %308 = load ptr, ptr %9, align 8, !tbaa !5
  call void @EC_GROUP_free(ptr noundef %308)
  %309 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %309, ptr %9, align 8, !tbaa !5
  br label %310

310:                                              ; preds = %307, %305
  %311 = load ptr, ptr %9, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.ec_group_st, ptr %311, i32 0, i32 6
  store i32 1, ptr %312, align 8, !tbaa !11
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %313

313:                                              ; preds = %310, %304, %300, %286, %277, %268, %253, %232, %215, %207, %195, %184, %173, %167, %148, %142, %130, %123, %116, %108, %93, %82
  %314 = load i32, ptr %12, align 4, !tbaa !9
  %315 = icmp ne i32 %314, 0
  br i1 %315, label %318, label %316

316:                                              ; preds = %313
  %317 = load ptr, ptr %9, align 8, !tbaa !5
  call void @EC_GROUP_free(ptr noundef %317)
  store ptr null, ptr %9, align 8, !tbaa !5
  br label %318

318:                                              ; preds = %316, %313
  %319 = load ptr, ptr %19, align 8, !tbaa !5
  call void @EC_POINT_free(ptr noundef %319)
  %320 = load ptr, ptr %22, align 8, !tbaa !5
  call void @BN_CTX_end(ptr noundef %320)
  %321 = load ptr, ptr %22, align 8, !tbaa !5
  call void @BN_CTX_free(ptr noundef %321)
  %322 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %322, ptr %4, align 8
  store i32 1, ptr %26, align 4
  br label %323

323:                                              ; preds = %318, %69, %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  %324 = load ptr, ptr %4, align 8
  ret ptr %324
}

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

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

declare ptr @BN_CTX_new_ex(ptr noundef) #1

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

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

declare ptr @EC_GROUP_new_curve_GFp(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare ptr @EC_GROUP_new_curve_GF2m(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @EC_POINT_oct2point(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) #1

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 40}
!12 = !{!"ec_group_st", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !6, i64 48, !13, i64 56, !6, i64 64, !7, i64 72, !6, i64 96, !6, i64 104, !10, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !10, i64 152, !7, i64 160, !6, i64 168, !6, i64 176}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !10, i64 8}
!15 = !{!"ossl_param_st", !6, i64 0, !10, i64 8, !6, i64 16, !13, i64 24, !13, i64 32}
!16 = !{!15, !6, i64 16}
!17 = !{!15, !13, i64 24}
!18 = !{!7, !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"

@.str = external hidden unnamed_addr constant [68 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1
@__func__.EC_GROUP_new_from_params = external hidden unnamed_addr constant [25 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [9 x i8], align 1

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

declare void @ERR_new() local_unnamed_addr #1

declare void @ERR_set_debug(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

declare void @ERR_set_error(i32 noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @EC_GROUP_free(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @EC_POINT_free(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @EC_POINT_new(ptr noundef) local_unnamed_addr #2

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

declare i32 @BN_is_zero(ptr noundef) local_unnamed_addr #1

declare i32 @BN_is_negative(ptr noundef) local_unnamed_addr #1

declare i32 @BN_num_bits(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @EC_GROUP_set_asn1_flag(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @EC_GROUP_set_point_conversion_form(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i64 @EC_GROUP_set_seed(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @EC_GROUP_get_degree(ptr noundef) local_unnamed_addr #2

declare void @BN_CTX_start(ptr noundef) local_unnamed_addr #1

declare ptr @BN_CTX_get(ptr noundef) local_unnamed_addr #1

declare void @BN_CTX_end(ptr noundef) local_unnamed_addr #1

declare void @BN_CTX_free(ptr noundef) local_unnamed_addr #1

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

declare ptr @OSSL_PARAM_locate_const(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @ossl_ec_encoding_param2id(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local ptr @EC_GROUP_new_from_params(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  store ptr null, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  store ptr null, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  store ptr null, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  store ptr null, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #3
  store i32 -1, ptr %9, align 4, !tbaa !9
  %11 = tail call ptr @OSSL_PARAM_locate_const(ptr noundef %0, ptr noundef nonnull @.str.4) #3
  %.not = icmp eq ptr %11, null
  br i1 %.not, label %29, label %12

12:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #3
  store i32 0, ptr %10, align 4, !tbaa !9
  %13 = tail call ptr @group_new_from_name(ptr noundef nonnull %11, ptr noundef %1, ptr noundef %2)
  %14 = icmp eq ptr %13, null
  br i1 %14, label %28, label %15

15:                                               ; preds = %12
  %16 = tail call i32 @ossl_ec_group_set_params(ptr noundef nonnull %13, ptr noundef %0)
  %.not131 = icmp eq i32 %16, 0
  br i1 %.not131, label %17, label %18

17:                                               ; preds = %15
  tail call void @EC_GROUP_free(ptr noundef nonnull %13)
  br label %28

18:                                               ; preds = %15
  %19 = tail call ptr @OSSL_PARAM_locate_const(ptr noundef %0, ptr noundef nonnull @.str.5) #3
  %.not132 = icmp eq ptr %19, null
  br i1 %.not132, label %25, label %20

20:                                               ; preds = %18
  %21 = call i32 @OSSL_PARAM_get_int(ptr noundef nonnull %19, ptr noundef nonnull %10) #3
  %.not133 = icmp eq i32 %21, 0
  br i1 %.not133, label %24, label %._crit_edge

._crit_edge:                                      ; preds = %20
  %.pre = load i32, ptr %10, align 4, !tbaa !9
  %22 = icmp sgt i32 %.pre, 0
  %23 = zext i1 %22 to i32
  br label %25

24:                                               ; preds = %20
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1575, ptr noundef nonnull @__func__.EC_GROUP_new_from_params) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 145, ptr noundef null) #3
  call void @EC_GROUP_free(ptr noundef nonnull %13)
  br label %28

25:                                               ; preds = %._crit_edge, %18
  %26 = phi i32 [ %23, %._crit_edge ], [ 0, %18 ]
  %27 = getelementptr inbounds i8, ptr %13, i64 40
  store i32 %26, ptr %27, align 8, !tbaa !11
  br label %28

28:                                               ; preds = %12, %25, %24, %17
  %.089 = phi ptr [ %13, %25 ], [ null, %24 ], [ null, %17 ], [ null, %12 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
  br label %173

29:                                               ; preds = %3
  %30 = tail call ptr @BN_CTX_new_ex(ptr noundef %1) #3
  %31 = icmp eq ptr %30, null
  br i1 %31, label %32, label %33

32:                                               ; preds = %29
  tail call void @ERR_new() #3
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1589, ptr noundef nonnull @__func__.EC_GROUP_new_from_params) #3
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524291, ptr noundef null) #3
  br label %173

33:                                               ; preds = %29
  tail call void @BN_CTX_start(ptr noundef nonnull %30) #3
  %34 = tail call ptr @BN_CTX_get(ptr noundef nonnull %30) #3
  store ptr %34, ptr %4, align 8, !tbaa !5
  %35 = tail call ptr @BN_CTX_get(ptr noundef nonnull %30) #3
  store ptr %35, ptr %5, align 8, !tbaa !5
  %36 = tail call ptr @BN_CTX_get(ptr noundef nonnull %30) #3
  store ptr %36, ptr %6, align 8, !tbaa !5
  %37 = tail call ptr @BN_CTX_get(ptr noundef nonnull %30) #3
  store ptr %37, ptr %7, align 8, !tbaa !5
  %38 = icmp eq ptr %37, null
  br i1 %38, label %39, label %40

39:                                               ; preds = %33
  tail call void @ERR_new() #3
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1599, ptr noundef nonnull @__func__.EC_GROUP_new_from_params) #3
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524291, ptr noundef null) #3
  br label %171

40:                                               ; preds = %33
  %41 = tail call ptr @OSSL_PARAM_locate_const(ptr noundef %0, ptr noundef nonnull @.str.6) #3
  %42 = icmp eq ptr %41, null
  br i1 %42, label %46, label %43

43:                                               ; preds = %40
  %44 = getelementptr inbounds i8, ptr %41, i64 8
  %45 = load i32, ptr %44, align 8, !tbaa !14
  %.not108 = icmp eq i32 %45, 4
  br i1 %.not108, label %47, label %46

46:                                               ; preds = %43, %40
  tail call void @ERR_new() #3
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1605, ptr noundef nonnull @__func__.EC_GROUP_new_from_params) #3
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 103, ptr noundef null) #3
  br label %171

47:                                               ; preds = %43
  %48 = getelementptr inbounds i8, ptr %41, i64 16
  %49 = load ptr, ptr %48, align 8, !tbaa !16
  %50 = tail call i32 @OPENSSL_strcasecmp(ptr noundef %49, ptr noundef nonnull @.str.7) #3
  %.not113 = icmp eq i32 %50, 0
  br i1 %.not113, label %56, label %51

51:                                               ; preds = %47
  %52 = load ptr, ptr %48, align 8, !tbaa !16
  %53 = tail call i32 @OPENSSL_strcasecmp(ptr noundef %52, ptr noundef nonnull @.str.8) #3
  %54 = icmp eq i32 %53, 0
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  tail call void @ERR_new() #3
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1615, ptr noundef nonnull @__func__.EC_GROUP_new_from_params) #3
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 131, ptr noundef null) #3
  br label %171

56:                                               ; preds = %51, %47
  %57 = tail call ptr @OSSL_PARAM_locate_const(ptr noundef %0, ptr noundef nonnull @.str.9) #3
  %58 = call i32 @OSSL_PARAM_get_BN(ptr noundef %57, ptr noundef nonnull %5) #3
  %.not109 = icmp eq i32 %58, 0
  br i1 %.not109, label %59, label %60

59:                                               ; preds = %56
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1621, ptr noundef nonnull @__func__.EC_GROUP_new_from_params) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 168, ptr noundef null) #3
  br label %171

60:                                               ; preds = %56
  %61 = call ptr @OSSL_PARAM_locate_const(ptr noundef %0, ptr noundef nonnull @.str.10) #3
  %62 = call i32 @OSSL_PARAM_get_BN(ptr noundef %61, ptr noundef nonnull %6) #3
  %.not110 = icmp eq i32 %62, 0
  br i1 %.not110, label %63, label %64

63:                                               ; preds = %60
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1626, ptr noundef nonnull @__func__.EC_GROUP_new_from_params) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 169, ptr noundef null) #3
  br label %171

64:                                               ; preds = %60
  %65 = call ptr @OSSL_PARAM_locate_const(ptr noundef %0, ptr noundef nonnull @.str.11) #3
  %66 = call i32 @OSSL_PARAM_get_BN(ptr noundef %65, ptr noundef nonnull %4) #3
  %.not111 = icmp eq i32 %66, 0
  br i1 %.not111, label %67, label %68

67:                                               ; preds = %64
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1633, ptr noundef nonnull @__func__.EC_GROUP_new_from_params) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 172, ptr noundef null) #3
  br label %171

68:                                               ; preds = %64
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  br i1 %.not113, label %70, label %81

70:                                               ; preds = %68
  %71 = call i32 @BN_is_negative(ptr noundef %69) #3
  %.not115 = icmp eq i32 %71, 0
  br i1 %.not115, label %72, label %75

72:                                               ; preds = %70
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = call i32 @BN_is_zero(ptr noundef %73) #3
  %.not116 = icmp eq i32 %74, 0
  br i1 %.not116, label %76, label %75

75:                                               ; preds = %72, %70
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1639, ptr noundef nonnull @__func__.EC_GROUP_new_from_params) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 172, ptr noundef null) #3
  br label %171

76:                                               ; preds = %72
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = call i32 @BN_num_bits(ptr noundef %77) #3
  %79 = icmp sgt i32 %78, 661
  br i1 %79, label %80, label %89

80:                                               ; preds = %76
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1644, ptr noundef nonnull @__func__.EC_GROUP_new_from_params) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 143, ptr noundef null) #3
  br label %171

81:                                               ; preds = %68
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = call ptr @EC_GROUP_new_curve_GF2m(ptr noundef %69, ptr noundef %82, ptr noundef %83, ptr noundef null) #3
  %.not114 = icmp eq ptr %84, null
  br i1 %.not114, label %.thread, label %85

85:                                               ; preds = %81
  %86 = call i32 @EC_GROUP_get_degree(ptr noundef nonnull %84)
  %87 = icmp sgt i32 %86, 661
  br i1 %87, label %88, label %.thread136

88:                                               ; preds = %85
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1660, ptr noundef nonnull @__func__.EC_GROUP_new_from_params) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 143, ptr noundef null) #3
  br label %171

89:                                               ; preds = %76
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = call ptr @EC_GROUP_new_curve_GFp(ptr noundef %90, ptr noundef %91, ptr noundef %92, ptr noundef nonnull %30) #3
  %94 = icmp eq ptr %93, null
  br i1 %94, label %.thread, label %.thread136

.thread:                                          ; preds = %81, %89
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1668, ptr noundef nonnull @__func__.EC_GROUP_new_from_params) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524304, ptr noundef null) #3
  br label %171

.thread136:                                       ; preds = %85, %89
  %.086140 = phi i32 [ %78, %89 ], [ %86, %85 ]
  %.090139 = phi ptr [ %93, %89 ], [ %84, %85 ]
  %95 = call ptr @OSSL_PARAM_locate_const(ptr noundef %0, ptr noundef nonnull @.str.3) #3
  %.not117 = icmp eq ptr %95, null
  br i1 %.not117, label %106, label %96

96:                                               ; preds = %.thread136
  %97 = getelementptr inbounds i8, ptr %95, i64 8
  %98 = load i32, ptr %97, align 8, !tbaa !14
  %.not118 = icmp eq i32 %98, 5
  br i1 %.not118, label %100, label %99

99:                                               ; preds = %96
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1676, ptr noundef nonnull @__func__.EC_GROUP_new_from_params) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 175, ptr noundef null) #3
  br label %171

100:                                              ; preds = %96
  %101 = getelementptr inbounds i8, ptr %95, i64 16
  %102 = load ptr, ptr %101, align 8, !tbaa !16
  %103 = getelementptr inbounds i8, ptr %95, i64 24
  %104 = load i64, ptr %103, align 8, !tbaa !17
  %105 = call i64 @EC_GROUP_set_seed(ptr noundef nonnull %.090139, ptr noundef %102, i64 noundef %104)
  %.not119 = icmp eq i64 %105, 0
  br i1 %.not119, label %171, label %106

106:                                              ; preds = %100, %.thread136
  %107 = call ptr @OSSL_PARAM_locate_const(ptr noundef %0, ptr noundef nonnull @.str.12) #3
  %108 = icmp eq ptr %107, null
  br i1 %108, label %112, label %109

109:                                              ; preds = %106
  %110 = getelementptr inbounds i8, ptr %107, i64 8
  %111 = load i32, ptr %110, align 8, !tbaa !14
  %.not120 = icmp eq i32 %111, 5
  br i1 %.not120, label %113, label %112

112:                                              ; preds = %109, %106
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1687, ptr noundef nonnull @__func__.EC_GROUP_new_from_params) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 173, ptr noundef null) #3
  br label %171

113:                                              ; preds = %109
  %114 = getelementptr inbounds i8, ptr %107, i64 16
  %115 = load ptr, ptr %114, align 8, !tbaa !16
  %116 = call ptr @EC_POINT_new(ptr noundef nonnull %.090139)
  %117 = icmp eq ptr %116, null
  br i1 %117, label %171, label %118

118:                                              ; preds = %113
  %119 = load i8, ptr %115, align 1, !tbaa !18
  %120 = and i8 %119, -2
  %121 = zext i8 %120 to i32
  call void @EC_GROUP_set_point_conversion_form(ptr noundef nonnull %.090139, i32 noundef %121)
  %122 = getelementptr inbounds i8, ptr %107, i64 24
  %123 = load i64, ptr %122, align 8, !tbaa !17
  %124 = call i32 @EC_POINT_oct2point(ptr noundef nonnull %.090139, ptr noundef nonnull %116, ptr noundef nonnull %115, i64 noundef %123, ptr noundef nonnull %30) #3
  %.not121 = icmp eq i32 %124, 0
  br i1 %.not121, label %125, label %126

125:                                              ; preds = %118
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1696, ptr noundef nonnull @__func__.EC_GROUP_new_from_params) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 173, ptr noundef null) #3
  br label %171

126:                                              ; preds = %118
  %127 = call ptr @OSSL_PARAM_locate_const(ptr noundef %0, ptr noundef nonnull @.str.13) #3
  %128 = call i32 @OSSL_PARAM_get_BN(ptr noundef %127, ptr noundef nonnull %7) #3
  %.not122 = icmp eq i32 %128, 0
  br i1 %.not122, label %140, label %129

129:                                              ; preds = %126
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = call i32 @BN_is_negative(ptr noundef %130) #3
  %.not123 = icmp eq i32 %131, 0
  br i1 %.not123, label %132, label %140

132:                                              ; preds = %129
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  %134 = call i32 @BN_is_zero(ptr noundef %133) #3
  %.not124 = icmp eq i32 %134, 0
  br i1 %.not124, label %135, label %140

135:                                              ; preds = %132
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = call i32 @BN_num_bits(ptr noundef %136) #3
  %138 = add nsw i32 %.086140, 1
  %139 = icmp sgt i32 %137, %138
  br i1 %139, label %140, label %141

140:                                              ; preds = %135, %132, %129, %126
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1705, ptr noundef nonnull @__func__.EC_GROUP_new_from_params) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 122, ptr noundef null) #3
  br label %171

141:                                              ; preds = %135
  %142 = call ptr @OSSL_PARAM_locate_const(ptr noundef %0, ptr noundef nonnull @.str.14) #3
  %.not125 = icmp eq ptr %142, null
  br i1 %.not125, label %149, label %143

143:                                              ; preds = %141
  %144 = call ptr @BN_CTX_get(ptr noundef nonnull %30) #3
  store ptr %144, ptr %8, align 8, !tbaa !5
  %145 = icmp eq ptr %144, null
  br i1 %145, label %148, label %146

146:                                              ; preds = %143
  %147 = call i32 @OSSL_PARAM_get_BN(ptr noundef nonnull %142, ptr noundef nonnull %8) #3
  %.not126 = icmp eq i32 %147, 0
  br i1 %.not126, label %148, label %._crit_edge148

._crit_edge148:                                   ; preds = %146
  %.pre149 = load ptr, ptr %8, align 8, !tbaa !5
  br label %149

148:                                              ; preds = %146, %143
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1714, ptr noundef nonnull @__func__.EC_GROUP_new_from_params) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 171, ptr noundef null) #3
  br label %171

149:                                              ; preds = %._crit_edge148, %141
  %150 = phi ptr [ %.pre149, %._crit_edge148 ], [ null, %141 ]
  %151 = load ptr, ptr %7, align 8, !tbaa !5
  %152 = call i32 @EC_GROUP_set_generator(ptr noundef nonnull %.090139, ptr noundef nonnull %116, ptr noundef %151, ptr noundef %150)
  %.not127 = icmp eq i32 %152, 0
  br i1 %.not127, label %153, label %154

153:                                              ; preds = %149
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1721, ptr noundef nonnull @__func__.EC_GROUP_new_from_params) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 173, ptr noundef null) #3
  br label %171

154:                                              ; preds = %149
  %155 = call ptr @ec_group_explicit_to_named(ptr noundef nonnull %.090139, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %30)
  %156 = icmp eq ptr %155, null
  br i1 %156, label %157, label %158

157:                                              ; preds = %154
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1727, ptr noundef nonnull @__func__.EC_GROUP_new_from_params) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 174, ptr noundef null) #3
  br label %171

158:                                              ; preds = %154
  %159 = icmp eq ptr %155, %.090139
  br i1 %159, label %160, label %168

160:                                              ; preds = %158
  %161 = call ptr @OSSL_PARAM_locate_const(ptr noundef %0, ptr noundef nonnull @.str.2) #3
  %.not128 = icmp eq ptr %161, null
  br i1 %.not128, label %.thread152, label %162

162:                                              ; preds = %160
  %163 = call i32 @ossl_ec_encoding_param2id(ptr noundef nonnull %161, ptr noundef nonnull %9) #3
  %.not129 = icmp eq i32 %163, 0
  br i1 %.not129, label %164, label %165

164:                                              ; preds = %162
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1738, ptr noundef nonnull @__func__.EC_GROUP_new_from_params) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 102, ptr noundef null) #3
  br label %171

165:                                              ; preds = %162
  %.pre151 = load i32, ptr %9, align 4, !tbaa !9
  %166 = icmp eq i32 %.pre151, 1
  br i1 %166, label %167, label %.thread152

167:                                              ; preds = %165
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 1742, ptr noundef nonnull @__func__.EC_GROUP_new_from_params) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 102, ptr noundef null) #3
  br label %171

.thread152:                                       ; preds = %160, %165
  call void @EC_GROUP_set_asn1_flag(ptr noundef nonnull %.090139, i32 noundef 0)
  br label %169

168:                                              ; preds = %158
  call void @EC_GROUP_free(ptr noundef nonnull %.090139)
  br label %169

169:                                              ; preds = %.thread152, %168
  %.191 = phi ptr [ %.090139, %.thread152 ], [ %155, %168 ]
  %170 = getelementptr inbounds i8, ptr %.191, i64 40
  store i32 1, ptr %170, align 8, !tbaa !11
  br label %172

171:                                              ; preds = %39, %46, %75, %80, %.thread, %99, %112, %113, %140, %148, %157, %167, %164, %153, %125, %100, %88, %67, %63, %59, %55
  %.2.ph = phi ptr [ null, %55 ], [ null, %59 ], [ null, %63 ], [ null, %67 ], [ %84, %88 ], [ %.090139, %100 ], [ %.090139, %125 ], [ %.090139, %153 ], [ %.090139, %164 ], [ %.090139, %167 ], [ %.090139, %157 ], [ %.090139, %148 ], [ %.090139, %140 ], [ %.090139, %113 ], [ %.090139, %112 ], [ %.090139, %99 ], [ null, %.thread ], [ null, %80 ], [ null, %75 ], [ null, %46 ], [ null, %39 ]
  %.087.ph = phi ptr [ null, %55 ], [ null, %59 ], [ null, %63 ], [ null, %67 ], [ null, %88 ], [ null, %100 ], [ %116, %125 ], [ %116, %153 ], [ %116, %164 ], [ %116, %167 ], [ %116, %157 ], [ %116, %148 ], [ %116, %140 ], [ null, %113 ], [ null, %112 ], [ null, %99 ], [ null, %.thread ], [ null, %80 ], [ null, %75 ], [ null, %46 ], [ null, %39 ]
  call void @EC_GROUP_free(ptr noundef %.2.ph)
  br label %172

172:                                              ; preds = %169, %171
  %.087146 = phi ptr [ %116, %169 ], [ %.087.ph, %171 ]
  %.3 = phi ptr [ %.191, %169 ], [ null, %171 ]
  call void @EC_POINT_free(ptr noundef %.087146)
  call void @BN_CTX_end(ptr noundef nonnull %30) #3
  call void @BN_CTX_free(ptr noundef nonnull %30) #3
  br label %173

173:                                              ; preds = %172, %32, %28
  %.1 = phi ptr [ %.089, %28 ], [ null, %32 ], [ %.3, %172 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  ret ptr %.1
}

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

declare i32 @OSSL_PARAM_get_int(ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @BN_CTX_new_ex(ptr noundef) local_unnamed_addr #1

declare i32 @OPENSSL_strcasecmp(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @OSSL_PARAM_get_BN(ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @EC_GROUP_new_curve_GFp(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @EC_GROUP_new_curve_GF2m(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @EC_POINT_oct2point(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 40}
!12 = !{!"ec_group_st", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !6, i64 48, !13, i64 56, !6, i64 64, !7, i64 72, !6, i64 96, !6, i64 104, !10, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !10, i64 152, !7, i64 160, !6, i64 168, !6, i64 176}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !10, i64 8}
!15 = !{!"ossl_param_st", !6, i64 0, !10, i64 8, !6, i64 16, !13, i64 24, !13, i64 32}
!16 = !{!15, !6, i64 16}
!17 = !{!15, !13, i64 24}
!18 = !{!7, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass