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

; 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.ECDSA_SIG_st = type { ptr, ptr }
%struct.ec_key_st = type { ptr, ptr, i32, ptr, ptr, ptr, i32, i32, %struct.CRYPTO_REF_COUNT, i32, %struct.crypto_ex_data_st, ptr, ptr, i64 }
%struct.CRYPTO_REF_COUNT = type { i32 }
%struct.crypto_ex_data_st = type { ptr, ptr }
%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 }

@.str = external hidden unnamed_addr constant [72 x i8], align 1
@__func__.ossl_ecdsa_simple_sign_sig = external hidden unnamed_addr constant [27 x i8], align 1

declare void @ERR_new() #0

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

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

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

declare void @ECDSA_SIG_free(ptr noundef) #0

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

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

declare void @BN_clear_free(ptr noundef) #0

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

31:                                               ; preds = %5
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 287, ptr noundef @__func__.ossl_ecdsa_simple_sign_sig)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 786690, ptr noundef null)
  store ptr null, ptr %6, align 8
  store i32 1, ptr %24, align 4
  br label %223

32:                                               ; preds = %5
  %33 = load ptr, ptr %23, align 8, !tbaa !5
  %34 = icmp eq ptr %33, null
  br i1 %34, label %35, label %36

35:                                               ; preds = %32
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 291, ptr noundef @__func__.ossl_ecdsa_simple_sign_sig)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 125, ptr noundef null)
  store ptr null, ptr %6, align 8
  store i32 1, ptr %24, align 4
  br label %223

36:                                               ; preds = %32
  %37 = load ptr, ptr %11, align 8, !tbaa !5
  %38 = call i32 @EC_KEY_can_sign(ptr noundef %37)
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %41, label %40

40:                                               ; preds = %36
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 296, ptr noundef @__func__.ossl_ecdsa_simple_sign_sig)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 159, ptr noundef null)
  store ptr null, ptr %6, align 8
  store i32 1, ptr %24, align 4
  br label %223

41:                                               ; preds = %36
  %42 = call ptr @ECDSA_SIG_new()
  store ptr %42, ptr %22, align 8, !tbaa !5
  %43 = load ptr, ptr %22, align 8, !tbaa !5
  %44 = icmp eq ptr %43, null
  br i1 %44, label %45, label %46

45:                                               ; preds = %41
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 302, ptr noundef @__func__.ossl_ecdsa_simple_sign_sig)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524330, ptr noundef null)
  store ptr null, ptr %6, align 8
  store i32 1, ptr %24, align 4
  br label %223

46:                                               ; preds = %41
  %47 = call ptr @BN_new()
  %48 = load ptr, ptr %22, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.ECDSA_SIG_st, ptr %48, i32 0, i32 0
  store ptr %47, ptr %49, align 8, !tbaa !11
  %50 = call ptr @BN_new()
  %51 = load ptr, ptr %22, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.ECDSA_SIG_st, ptr %51, i32 0, i32 1
  store ptr %50, ptr %52, align 8, !tbaa !13
  %53 = load ptr, ptr %22, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.ECDSA_SIG_st, ptr %53, i32 0, i32 0
  %55 = load ptr, ptr %54, align 8, !tbaa !11
  %56 = icmp eq ptr %55, null
  br i1 %56, label %62, label %57

57:                                               ; preds = %46
  %58 = load ptr, ptr %22, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.ECDSA_SIG_st, ptr %58, i32 0, i32 1
  %60 = load ptr, ptr %59, align 8, !tbaa !13
  %61 = icmp eq ptr %60, null
  br i1 %61, label %62, label %63

62:                                               ; preds = %57, %46
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 308, ptr noundef @__func__.ossl_ecdsa_simple_sign_sig)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524291, ptr noundef null)
  br label %213

63:                                               ; preds = %57
  %64 = load ptr, ptr %22, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.ECDSA_SIG_st, ptr %64, i32 0, i32 1
  %66 = load ptr, ptr %65, align 8, !tbaa !13
  store ptr %66, ptr %16, align 8, !tbaa !5
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.ec_key_st, ptr %67, i32 0, i32 11
  %69 = load ptr, ptr %68, align 8, !tbaa !14
  %70 = call ptr @BN_CTX_new_ex(ptr noundef %69)
  store ptr %70, ptr %20, align 8, !tbaa !5
  %71 = icmp eq ptr %70, null
  br i1 %71, label %75, label %72

72:                                               ; preds = %63
  %73 = call ptr @BN_new()
  store ptr %73, ptr %17, align 8, !tbaa !5
  %74 = icmp eq ptr %73, null
  br i1 %74, label %75, label %76

75:                                               ; preds = %72, %63
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 315, ptr noundef @__func__.ossl_ecdsa_simple_sign_sig)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524291, ptr noundef null)
  br label %213

76:                                               ; preds = %72
  %77 = load ptr, ptr %21, align 8, !tbaa !5
  %78 = call ptr @EC_GROUP_get0_order(ptr noundef %77)
  store ptr %78, ptr %18, align 8, !tbaa !5
  %79 = icmp eq ptr %78, null
  br i1 %79, label %80, label %81

80:                                               ; preds = %76
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 320, ptr noundef @__func__.ossl_ecdsa_simple_sign_sig)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524304, ptr noundef null)
  br label %213

81:                                               ; preds = %76
  %82 = load ptr, ptr %18, align 8, !tbaa !5
  %83 = call i32 @BN_num_bits(ptr noundef %82)
  store i32 %83, ptr %13, align 4, !tbaa !9
  %84 = load i32, ptr %8, align 4, !tbaa !9
  %85 = mul nsw i32 8, %84
  %86 = load i32, ptr %13, align 4, !tbaa !9
  %87 = icmp sgt i32 %85, %86
  br i1 %87, label %88, label %92

88:                                               ; preds = %81
  %89 = load i32, ptr %13, align 4, !tbaa !9
  %90 = add nsw i32 %89, 7
  %91 = sdiv i32 %90, 8
  store i32 %91, ptr %8, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %88, %81
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = load i32, ptr %8, align 4, !tbaa !9
  %95 = load ptr, ptr %17, align 8, !tbaa !5
  %96 = call ptr @BN_bin2bn(ptr noundef %93, i32 noundef %94, ptr noundef %95)
  %97 = icmp ne ptr %96, null
  br i1 %97, label %99, label %98

98:                                               ; preds = %92
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 331, ptr noundef @__func__.ossl_ecdsa_simple_sign_sig)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524291, ptr noundef null)
  br label %213

99:                                               ; preds = %92
  %100 = load i32, ptr %8, align 4, !tbaa !9
  %101 = mul nsw i32 8, %100
  %102 = load i32, ptr %13, align 4, !tbaa !9
  %103 = icmp sgt i32 %101, %102
  br i1 %103, label %104, label %113

104:                                              ; preds = %99
  %105 = load ptr, ptr %17, align 8, !tbaa !5
  %106 = load ptr, ptr %17, align 8, !tbaa !5
  %107 = load i32, ptr %13, align 4, !tbaa !9
  %108 = and i32 %107, 7
  %109 = sub nsw i32 8, %108
  %110 = call i32 @BN_rshift(ptr noundef %105, ptr noundef %106, i32 noundef %109)
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %113, label %112

112:                                              ; preds = %104
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 336, ptr noundef @__func__.ossl_ecdsa_simple_sign_sig)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524291, ptr noundef null)
  br label %213

113:                                              ; preds = %104, %99
  br label %114

114:                                              ; preds = %211, %113
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = icmp eq ptr %115, null
  br i1 %116, label %120, label %117

117:                                              ; preds = %114
  %118 = load ptr, ptr %10, align 8, !tbaa !5
  %119 = icmp eq ptr %118, null
  br i1 %119, label %120, label %132

120:                                              ; preds = %117, %114
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = load ptr, ptr %20, align 8, !tbaa !5
  %123 = load ptr, ptr %22, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.ECDSA_SIG_st, ptr %123, i32 0, i32 0
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = load i32, ptr %8, align 4, !tbaa !9
  %127 = call i32 @ecdsa_sign_setup(ptr noundef %121, ptr noundef %122, ptr noundef %15, ptr noundef %124, ptr noundef %125, i32 noundef %126, i32 noundef 0, ptr noundef null, ptr noundef null, ptr noundef null)
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %130, label %129

129:                                              ; preds = %120
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 343, ptr noundef @__func__.ossl_ecdsa_simple_sign_sig)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524330, ptr noundef null)
  br label %213

130:                                              ; preds = %120
  %131 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %131, ptr %19, align 8, !tbaa !5
  br label %142

132:                                              ; preds = %117
  %133 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %133, ptr %19, align 8, !tbaa !5
  %134 = load ptr, ptr %22, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.ECDSA_SIG_st, ptr %134, i32 0, i32 0
  %136 = load ptr, ptr %135, align 8, !tbaa !11
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  %138 = call ptr @BN_copy(ptr noundef %136, ptr noundef %137)
  %139 = icmp eq ptr %138, null
  br i1 %139, label %140, label %141

140:                                              ; preds = %132
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 350, ptr noundef @__func__.ossl_ecdsa_simple_sign_sig)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524291, ptr noundef null)
  br label %213

141:                                              ; preds = %132
  br label %142

142:                                              ; preds = %141, %130
  %143 = load ptr, ptr %16, align 8, !tbaa !5
  %144 = load ptr, ptr %22, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.ECDSA_SIG_st, ptr %144, i32 0, i32 0
  %146 = load ptr, ptr %145, align 8, !tbaa !11
  %147 = load ptr, ptr %21, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.ec_group_st, ptr %147, i32 0, i32 18
  %149 = load ptr, ptr %148, align 8, !tbaa !19
  %150 = load ptr, ptr %20, align 8, !tbaa !5
  %151 = call i32 @bn_to_mont_fixed_top(ptr noundef %143, ptr noundef %146, ptr noundef %149, ptr noundef %150)
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %153, label %163

153:                                              ; preds = %142
  %154 = load ptr, ptr %16, align 8, !tbaa !5
  %155 = load ptr, ptr %16, align 8, !tbaa !5
  %156 = load ptr, ptr %23, align 8, !tbaa !5
  %157 = load ptr, ptr %21, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.ec_group_st, ptr %157, i32 0, i32 18
  %159 = load ptr, ptr %158, align 8, !tbaa !19
  %160 = load ptr, ptr %20, align 8, !tbaa !5
  %161 = call i32 @bn_mul_mont_fixed_top(ptr noundef %154, ptr noundef %155, ptr noundef %156, ptr noundef %159, ptr noundef %160)
  %162 = icmp ne i32 %161, 0
  br i1 %162, label %164, label %163

163:                                              ; preds = %153, %142
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 364, ptr noundef @__func__.ossl_ecdsa_simple_sign_sig)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524291, ptr noundef null)
  br label %213

164:                                              ; preds = %153
  %165 = load ptr, ptr %16, align 8, !tbaa !5
  %166 = load ptr, ptr %16, align 8, !tbaa !5
  %167 = load ptr, ptr %17, align 8, !tbaa !5
  %168 = load ptr, ptr %18, align 8, !tbaa !5
  %169 = call i32 @bn_mod_add_fixed_top(ptr noundef %165, ptr noundef %166, ptr noundef %167, ptr noundef %168)
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %172, label %171

171:                                              ; preds = %164
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 368, ptr noundef @__func__.ossl_ecdsa_simple_sign_sig)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524291, ptr noundef null)
  br label %213

172:                                              ; preds = %164
  %173 = load ptr, ptr %16, align 8, !tbaa !5
  %174 = load ptr, ptr %16, align 8, !tbaa !5
  %175 = load ptr, ptr %21, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.ec_group_st, ptr %175, i32 0, i32 18
  %177 = load ptr, ptr %176, align 8, !tbaa !19
  %178 = load ptr, ptr %20, align 8, !tbaa !5
  %179 = call i32 @bn_to_mont_fixed_top(ptr noundef %173, ptr noundef %174, ptr noundef %177, ptr noundef %178)
  %180 = icmp ne i32 %179, 0
  br i1 %180, label %181, label %191

181:                                              ; preds = %172
  %182 = load ptr, ptr %16, align 8, !tbaa !5
  %183 = load ptr, ptr %16, align 8, !tbaa !5
  %184 = load ptr, ptr %19, align 8, !tbaa !5
  %185 = load ptr, ptr %21, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.ec_group_st, ptr %185, i32 0, i32 18
  %187 = load ptr, ptr %186, align 8, !tbaa !19
  %188 = load ptr, ptr %20, align 8, !tbaa !5
  %189 = call i32 @BN_mod_mul_montgomery(ptr noundef %182, ptr noundef %183, ptr noundef %184, ptr noundef %187, ptr noundef %188)
  %190 = icmp ne i32 %189, 0
  br i1 %190, label %192, label %191

191:                                              ; preds = %181, %172
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 377, ptr noundef @__func__.ossl_ecdsa_simple_sign_sig)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524291, ptr noundef null)
  br label %213

192:                                              ; preds = %181
  %193 = load ptr, ptr %16, align 8, !tbaa !5
  %194 = call i32 @BN_is_zero(ptr noundef %193)
  %195 = icmp ne i32 %194, 0
  br i1 %195, label %196, label %209

196:                                              ; preds = %192
  %197 = load ptr, ptr %9, align 8, !tbaa !5
  %198 = icmp ne ptr %197, null
  br i1 %198, label %199, label %203

199:                                              ; preds = %196
  %200 = load ptr, ptr %10, align 8, !tbaa !5
  %201 = icmp ne ptr %200, null
  br i1 %201, label %202, label %203

202:                                              ; preds = %199
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 387, ptr noundef @__func__.ossl_ecdsa_simple_sign_sig)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 157, ptr noundef null)
  br label %213

203:                                              ; preds = %199, %196
  %204 = load i32, ptr %14, align 4, !tbaa !9
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %14, align 4, !tbaa !9
  %206 = icmp sgt i32 %204, 8
  br i1 %206, label %207, label %208

207:                                              ; preds = %203
  call void @ERR_new()
  call void @ERR_set_debug(ptr noundef @.str, i32 noundef 392, ptr noundef @__func__.ossl_ecdsa_simple_sign_sig)
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 176, ptr noundef null)
  br label %213

208:                                              ; preds = %203
  br label %210

209:                                              ; preds = %192
  br label %212

210:                                              ; preds = %208
  br label %211

211:                                              ; preds = %210
  br i1 true, label %114, label %212

212:                                              ; preds = %211, %209
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %213

213:                                              ; preds = %212, %207, %202, %191, %171, %163, %140, %129, %112, %98, %80, %75, %62
  %214 = load i32, ptr %12, align 4, !tbaa !9
  %215 = icmp ne i32 %214, 0
  br i1 %215, label %218, label %216

216:                                              ; preds = %213
  %217 = load ptr, ptr %22, align 8, !tbaa !5
  call void @ECDSA_SIG_free(ptr noundef %217)
  store ptr null, ptr %22, align 8, !tbaa !5
  br label %218

218:                                              ; preds = %216, %213
  %219 = load ptr, ptr %20, align 8, !tbaa !5
  call void @BN_CTX_free(ptr noundef %219)
  %220 = load ptr, ptr %17, align 8, !tbaa !5
  call void @BN_clear_free(ptr noundef %220)
  %221 = load ptr, ptr %15, align 8, !tbaa !5
  call void @BN_clear_free(ptr noundef %221)
  %222 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %222, ptr %6, align 8
  store i32 1, ptr %24, align 4
  br label %223

223:                                              ; preds = %218, %45, %40, %35, %31
  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 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, 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 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  %224 = load ptr, ptr %6, align 8
  ret ptr %224
}

declare ptr @EC_KEY_get0_group(ptr noundef) #0

declare ptr @EC_KEY_get0_private_key(ptr noundef) #0

declare i32 @EC_KEY_can_sign(ptr noundef) #0

declare ptr @ECDSA_SIG_new() #0

declare ptr @BN_new() #0

declare ptr @BN_CTX_new_ex(ptr noundef) #0

declare ptr @EC_GROUP_get0_order(ptr noundef) #0

declare i32 @BN_num_bits(ptr noundef) #0

declare ptr @BN_bin2bn(ptr noundef, i32 noundef, ptr noundef) #0

declare i32 @BN_rshift(ptr noundef, ptr noundef, i32 noundef) #0

declare ptr @BN_copy(ptr noundef, ptr noundef) #0

declare i32 @bn_to_mont_fixed_top(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @bn_mul_mont_fixed_top(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @bn_mod_add_fixed_top(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @BN_mod_mul_montgomery(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @BN_is_zero(ptr noundef) #0

declare void @BN_CTX_free(ptr noundef) #0

attributes #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 = { 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, !6, i64 0}
!12 = !{!"ECDSA_SIG_st", !6, i64 0, !6, i64 8}
!13 = !{!12, !6, i64 8}
!14 = !{!15, !6, i64 80}
!15 = !{!"ec_key_st", !6, i64 0, !6, i64 8, !10, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !10, i64 48, !10, i64 52, !16, i64 56, !10, i64 60, !17, i64 64, !6, i64 80, !6, i64 88, !18, i64 96}
!16 = !{!"", !7, i64 0}
!17 = !{!"crypto_ex_data_st", !6, i64 0, !6, i64 8}
!18 = !{!"long", !7, i64 0}
!19 = !{!20, !6, i64 144}
!20 = !{!"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, !18, 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}


; 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 [72 x i8], align 1
@__func__.ossl_ecdsa_simple_sign_sig = external hidden unnamed_addr constant [27 x i8], align 1

declare void @ERR_new() local_unnamed_addr #0

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

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

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

declare void @ECDSA_SIG_free(ptr noundef) local_unnamed_addr #0

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

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

declare void @BN_clear_free(ptr noundef) local_unnamed_addr #0

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

10:                                               ; preds = %5
  tail call void @ERR_new() #3
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 287, ptr noundef nonnull @__func__.ossl_ecdsa_simple_sign_sig) #3
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 786690, ptr noundef null) #3
  br label %104

11:                                               ; preds = %5
  %12 = icmp eq ptr %8, null
  br i1 %12, label %13, label %14

13:                                               ; preds = %11
  tail call void @ERR_new() #3
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 291, ptr noundef nonnull @__func__.ossl_ecdsa_simple_sign_sig) #3
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 125, ptr noundef null) #3
  br label %104

14:                                               ; preds = %11
  %15 = tail call i32 @EC_KEY_can_sign(ptr noundef %4) #3
  %.not = icmp eq i32 %15, 0
  br i1 %.not, label %16, label %17

16:                                               ; preds = %14
  tail call void @ERR_new() #3
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 296, ptr noundef nonnull @__func__.ossl_ecdsa_simple_sign_sig) #3
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 159, ptr noundef null) #3
  br label %104

17:                                               ; preds = %14
  %18 = tail call ptr @ECDSA_SIG_new() #3
  %19 = icmp eq ptr %18, null
  br i1 %19, label %20, label %21

20:                                               ; preds = %17
  tail call void @ERR_new() #3
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 302, ptr noundef nonnull @__func__.ossl_ecdsa_simple_sign_sig) #3
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524330, ptr noundef null) #3
  br label %104

21:                                               ; preds = %17
  %22 = tail call ptr @BN_new() #3
  store ptr %22, ptr %18, align 8, !tbaa !9
  %23 = tail call ptr @BN_new() #3
  %24 = getelementptr inbounds i8, ptr %18, i64 8
  store ptr %23, ptr %24, align 8, !tbaa !11
  %25 = load ptr, ptr %18, align 8, !tbaa !9
  %26 = icmp eq ptr %25, null
  %27 = icmp eq ptr %23, null
  %or.cond98 = select i1 %26, i1 true, i1 %27
  br i1 %or.cond98, label %28, label %29

28:                                               ; preds = %21
  tail call void @ERR_new() #3
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 308, ptr noundef nonnull @__func__.ossl_ecdsa_simple_sign_sig) #3
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524291, ptr noundef null) #3
  br label %102

29:                                               ; preds = %21
  %30 = getelementptr inbounds i8, ptr %4, i64 80
  %31 = load ptr, ptr %30, align 8, !tbaa !12
  %32 = tail call ptr @BN_CTX_new_ex(ptr noundef %31) #3
  %33 = icmp eq ptr %32, null
  br i1 %33, label %37, label %34

34:                                               ; preds = %29
  %35 = tail call ptr @BN_new() #3
  %36 = icmp eq ptr %35, null
  br i1 %36, label %37, label %38

37:                                               ; preds = %34, %29
  tail call void @ERR_new() #3
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 315, ptr noundef nonnull @__func__.ossl_ecdsa_simple_sign_sig) #3
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524291, ptr noundef null) #3
  br label %102

38:                                               ; preds = %34
  %39 = tail call ptr @EC_GROUP_get0_order(ptr noundef nonnull %7) #3
  %40 = icmp eq ptr %39, null
  br i1 %40, label %41, label %42

41:                                               ; preds = %38
  tail call void @ERR_new() #3
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 320, ptr noundef nonnull @__func__.ossl_ecdsa_simple_sign_sig) #3
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524304, ptr noundef null) #3
  br label %102

42:                                               ; preds = %38
  %43 = tail call i32 @BN_num_bits(ptr noundef nonnull %39) #3
  %44 = shl nsw i32 %1, 3
  %45 = icmp sgt i32 %44, %43
  br i1 %45, label %46, label %49

46:                                               ; preds = %42
  %47 = add nsw i32 %43, 7
  %48 = sdiv i32 %47, 8
  br label %49

49:                                               ; preds = %46, %42
  %.070 = phi i32 [ %48, %46 ], [ %1, %42 ]
  %50 = tail call ptr @BN_bin2bn(ptr noundef %0, i32 noundef %.070, ptr noundef nonnull %35) #3
  %.not88 = icmp eq ptr %50, null
  br i1 %.not88, label %51, label %52

51:                                               ; preds = %49
  tail call void @ERR_new() #3
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 331, ptr noundef nonnull @__func__.ossl_ecdsa_simple_sign_sig) #3
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524291, ptr noundef null) #3
  br label %102

52:                                               ; preds = %49
  %53 = shl nsw i32 %.070, 3
  %54 = icmp sgt i32 %53, %43
  br i1 %54, label %55, label %60

55:                                               ; preds = %52
  %56 = and i32 %43, 7
  %57 = sub nuw nsw i32 8, %56
  %58 = tail call i32 @BN_rshift(ptr noundef nonnull %35, ptr noundef nonnull %35, i32 noundef %57) #3
  %.not89 = icmp eq i32 %58, 0
  br i1 %.not89, label %59, label %60

59:                                               ; preds = %55
  tail call void @ERR_new() #3
  tail call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 336, ptr noundef nonnull @__func__.ossl_ecdsa_simple_sign_sig) #3
  tail call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524291, ptr noundef null) #3
  br label %102

60:                                               ; preds = %55, %52
  %61 = icmp eq ptr %2, null
  %62 = icmp eq ptr %3, null
  %or.cond = or i1 %61, %62
  %63 = getelementptr inbounds i8, ptr %7, i64 144
  %64 = icmp ne ptr %2, null
  %65 = icmp ne ptr %3, null
  %or.cond3 = and i1 %64, %65
  br label %66

66:                                               ; preds = %99, %60
  %.075 = phi i32 [ 0, %60 ], [ %100, %99 ]
  br i1 %or.cond, label %67, label %72

67:                                               ; preds = %66
  %68 = call i32 @ecdsa_sign_setup(ptr noundef %4, ptr noundef nonnull %32, ptr noundef nonnull %6, ptr noundef nonnull %18, ptr noundef %0, i32 noundef %.070, i32 noundef 0, ptr noundef null, ptr noundef null, ptr noundef null)
  %.not90 = icmp eq i32 %68, 0
  br i1 %.not90, label %69, label %70

69:                                               ; preds = %67
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 343, ptr noundef nonnull @__func__.ossl_ecdsa_simple_sign_sig) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524330, ptr noundef null) #3
  br label %102

70:                                               ; preds = %67
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  br label %77

72:                                               ; preds = %66
  %73 = load ptr, ptr %18, align 8, !tbaa !9
  %74 = call ptr @BN_copy(ptr noundef %73, ptr noundef nonnull %3) #3
  %75 = icmp eq ptr %74, null
  br i1 %75, label %76, label %77

76:                                               ; preds = %72
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 350, ptr noundef nonnull @__func__.ossl_ecdsa_simple_sign_sig) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524291, ptr noundef null) #3
  br label %102

77:                                               ; preds = %72, %70
  %.072 = phi ptr [ %71, %70 ], [ %2, %72 ]
  %78 = load ptr, ptr %18, align 8, !tbaa !9
  %79 = load ptr, ptr %63, align 8, !tbaa !18
  %80 = call i32 @bn_to_mont_fixed_top(ptr noundef nonnull %23, ptr noundef %78, ptr noundef %79, ptr noundef nonnull %32) #3
  %.not91 = icmp eq i32 %80, 0
  br i1 %.not91, label %84, label %81

81:                                               ; preds = %77
  %82 = load ptr, ptr %63, align 8, !tbaa !18
  %83 = call i32 @bn_mul_mont_fixed_top(ptr noundef nonnull %23, ptr noundef nonnull %23, ptr noundef nonnull %8, ptr noundef %82, ptr noundef nonnull %32) #3
  %.not92 = icmp eq i32 %83, 0
  br i1 %.not92, label %84, label %85

84:                                               ; preds = %81, %77
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 364, ptr noundef nonnull @__func__.ossl_ecdsa_simple_sign_sig) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524291, ptr noundef null) #3
  br label %102

85:                                               ; preds = %81
  %86 = call i32 @bn_mod_add_fixed_top(ptr noundef nonnull %23, ptr noundef nonnull %23, ptr noundef nonnull %35, ptr noundef nonnull %39) #3
  %.not93 = icmp eq i32 %86, 0
  br i1 %.not93, label %87, label %88

87:                                               ; preds = %85
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 368, ptr noundef nonnull @__func__.ossl_ecdsa_simple_sign_sig) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524291, ptr noundef null) #3
  br label %102

88:                                               ; preds = %85
  %89 = load ptr, ptr %63, align 8, !tbaa !18
  %90 = call i32 @bn_to_mont_fixed_top(ptr noundef nonnull %23, ptr noundef nonnull %23, ptr noundef %89, ptr noundef nonnull %32) #3
  %.not94 = icmp eq i32 %90, 0
  br i1 %.not94, label %94, label %91

91:                                               ; preds = %88
  %92 = load ptr, ptr %63, align 8, !tbaa !18
  %93 = call i32 @BN_mod_mul_montgomery(ptr noundef nonnull %23, ptr noundef nonnull %23, ptr noundef %.072, ptr noundef %92, ptr noundef nonnull %32) #3
  %.not95 = icmp eq i32 %93, 0
  br i1 %.not95, label %94, label %95

94:                                               ; preds = %91, %88
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 377, ptr noundef nonnull @__func__.ossl_ecdsa_simple_sign_sig) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 524291, ptr noundef null) #3
  br label %102

95:                                               ; preds = %91
  %96 = call i32 @BN_is_zero(ptr noundef nonnull %23) #3
  %.not96 = icmp eq i32 %96, 0
  br i1 %.not96, label %.loopexit, label %97

97:                                               ; preds = %95
  br i1 %or.cond3, label %98, label %99

98:                                               ; preds = %97
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 387, ptr noundef nonnull @__func__.ossl_ecdsa_simple_sign_sig) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 157, ptr noundef null) #3
  br label %102

99:                                               ; preds = %97
  %100 = add nuw nsw i32 %.075, 1
  %exitcond = icmp eq i32 %100, 10
  br i1 %exitcond, label %101, label %66

101:                                              ; preds = %99
  call void @ERR_new() #3
  call void @ERR_set_debug(ptr noundef nonnull @.str, i32 noundef 392, ptr noundef nonnull @__func__.ossl_ecdsa_simple_sign_sig) #3
  call void (i32, i32, ptr, ...) @ERR_set_error(i32 noundef 16, i32 noundef 176, ptr noundef null) #3
  br label %102

102:                                              ; preds = %28, %37, %41, %98, %101, %94, %87, %84, %69, %76, %59, %51
  %.1.ph = phi ptr [ %35, %51 ], [ %35, %59 ], [ %35, %76 ], [ %35, %69 ], [ %35, %84 ], [ %35, %87 ], [ %35, %94 ], [ %35, %101 ], [ %35, %98 ], [ %35, %41 ], [ null, %37 ], [ null, %28 ]
  %.071.ph = phi ptr [ %32, %51 ], [ %32, %59 ], [ %32, %76 ], [ %32, %69 ], [ %32, %84 ], [ %32, %87 ], [ %32, %94 ], [ %32, %101 ], [ %32, %98 ], [ %32, %41 ], [ %32, %37 ], [ null, %28 ]
  call void @ECDSA_SIG_free(ptr noundef nonnull %18) #3
  br label %.loopexit

.loopexit:                                        ; preds = %95, %102
  %.071104 = phi ptr [ %.071.ph, %102 ], [ %32, %95 ]
  %.1102 = phi ptr [ %.1.ph, %102 ], [ %35, %95 ]
  %.069 = phi ptr [ null, %102 ], [ %18, %95 ]
  call void @BN_CTX_free(ptr noundef %.071104) #3
  call void @BN_clear_free(ptr noundef %.1102) #3
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  call void @BN_clear_free(ptr noundef %103) #3
  br label %104

104:                                              ; preds = %.loopexit, %20, %16, %13, %10
  %.0 = phi ptr [ null, %10 ], [ null, %13 ], [ null, %20 ], [ %.069, %.loopexit ], [ null, %16 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  ret ptr %.0
}

declare ptr @EC_KEY_get0_group(ptr noundef) local_unnamed_addr #0

declare ptr @EC_KEY_get0_private_key(ptr noundef) local_unnamed_addr #0

declare i32 @EC_KEY_can_sign(ptr noundef) local_unnamed_addr #0

declare ptr @ECDSA_SIG_new() local_unnamed_addr #0

declare ptr @BN_new() local_unnamed_addr #0

declare ptr @BN_CTX_new_ex(ptr noundef) local_unnamed_addr #0

declare ptr @EC_GROUP_get0_order(ptr noundef) local_unnamed_addr #0

declare i32 @BN_num_bits(ptr noundef) local_unnamed_addr #0

declare ptr @BN_bin2bn(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

declare i32 @BN_rshift(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare ptr @BN_copy(ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @bn_to_mont_fixed_top(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @bn_mul_mont_fixed_top(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @bn_mod_add_fixed_top(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @BN_mod_mul_montgomery(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @BN_is_zero(ptr noundef) local_unnamed_addr #0

declare void @BN_CTX_free(ptr noundef) local_unnamed_addr #0

attributes #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 = { 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, !6, i64 0}
!10 = !{!"ECDSA_SIG_st", !6, i64 0, !6, i64 8}
!11 = !{!10, !6, i64 8}
!12 = !{!13, !6, i64 80}
!13 = !{!"ec_key_st", !6, i64 0, !6, i64 8, !14, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !14, i64 48, !14, i64 52, !15, i64 56, !14, i64 60, !16, i64 64, !6, i64 80, !6, i64 88, !17, i64 96}
!14 = !{!"int", !7, i64 0}
!15 = !{!"", !7, i64 0}
!16 = !{!"crypto_ex_data_st", !6, i64 0, !6, i64 8}
!17 = !{!"long", !7, i64 0}
!18 = !{!19, !6, i64 144}
!19 = !{!"ec_group_st", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !14, i64 32, !14, i64 36, !14, i64 40, !14, i64 44, !6, i64 48, !17, i64 56, !6, i64 64, !7, i64 72, !6, i64 96, !6, i64 104, !14, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !14, i64 152, !7, i64 160, !6, i64 168, !6, i64 176}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass