; LLVM IR from openanolis/openssl :: demos/cms (cms_sign2)

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

@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store ptr null, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store ptr null, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store ptr null, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  store ptr null, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  store ptr null, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  store ptr null, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store ptr null, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store ptr null, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 1, ptr %14, align 4, !tbaa !5
  %15 = call i32 @OPENSSL_init_crypto(i64 noundef 12, ptr noundef null)
  %16 = call i32 @OPENSSL_init_crypto(i64 noundef 2, ptr noundef null)
  %17 = call ptr @BIO_new_file(ptr noundef @.str, ptr noundef @.str.1)
  store ptr %17, ptr %8, align 8, !tbaa !9
  %18 = load ptr, ptr %8, align 8, !tbaa !9
  %19 = icmp ne ptr %18, null
  br i1 %19, label %21, label %20

20:                                               ; preds = %2
  br label %87

21:                                               ; preds = %2
  %22 = load ptr, ptr %8, align 8, !tbaa !9
  %23 = call ptr @PEM_read_bio_X509(ptr noundef %22, ptr noundef null, ptr noundef null, ptr noundef null)
  store ptr %23, ptr %9, align 8, !tbaa !9
  %24 = load ptr, ptr %8, align 8, !tbaa !9
  %25 = call i64 @BIO_ctrl(ptr noundef %24, i32 noundef 1, i64 noundef 0, ptr noundef null)
  %26 = trunc i64 %25 to i32
  %27 = load ptr, ptr %8, align 8, !tbaa !9
  %28 = call ptr @PEM_read_bio_PrivateKey(ptr noundef %27, ptr noundef null, ptr noundef null, ptr noundef null)
  store ptr %28, ptr %11, align 8, !tbaa !9
  %29 = load ptr, ptr %8, align 8, !tbaa !9
  %30 = call i32 @BIO_free(ptr noundef %29)
  %31 = call ptr @BIO_new_file(ptr noundef @.str.2, ptr noundef @.str.1)
  store ptr %31, ptr %8, align 8, !tbaa !9
  %32 = load ptr, ptr %8, align 8, !tbaa !9
  %33 = icmp ne ptr %32, null
  br i1 %33, label %35, label %34

34:                                               ; preds = %21
  br label %87

35:                                               ; preds = %21
  %36 = load ptr, ptr %8, align 8, !tbaa !9
  %37 = call ptr @PEM_read_bio_X509(ptr noundef %36, ptr noundef null, ptr noundef null, ptr noundef null)
  store ptr %37, ptr %10, align 8, !tbaa !9
  %38 = load ptr, ptr %8, align 8, !tbaa !9
  %39 = call i64 @BIO_ctrl(ptr noundef %38, i32 noundef 1, i64 noundef 0, ptr noundef null)
  %40 = trunc i64 %39 to i32
  %41 = load ptr, ptr %8, align 8, !tbaa !9
  %42 = call ptr @PEM_read_bio_PrivateKey(ptr noundef %41, ptr noundef null, ptr noundef null, ptr noundef null)
  store ptr %42, ptr %12, align 8, !tbaa !9
  %43 = load ptr, ptr %10, align 8, !tbaa !9
  %44 = icmp ne ptr %43, null
  br i1 %44, label %45, label %48

45:                                               ; preds = %35
  %46 = load ptr, ptr %12, align 8, !tbaa !9
  %47 = icmp ne ptr %46, null
  br i1 %47, label %49, label %48

48:                                               ; preds = %45, %35
  br label %87

49:                                               ; preds = %45
  %50 = call ptr @BIO_new_file(ptr noundef @.str.3, ptr noundef @.str.1)
  store ptr %50, ptr %6, align 8, !tbaa !9
  %51 = load ptr, ptr %6, align 8, !tbaa !9
  %52 = icmp ne ptr %51, null
  br i1 %52, label %54, label %53

53:                                               ; preds = %49
  br label %87

54:                                               ; preds = %49
  %55 = load ptr, ptr %6, align 8, !tbaa !9
  %56 = call ptr @CMS_sign(ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef %55, i32 noundef 20480)
  store ptr %56, ptr %13, align 8, !tbaa !9
  %57 = load ptr, ptr %13, align 8, !tbaa !9
  %58 = icmp ne ptr %57, null
  br i1 %58, label %60, label %59

59:                                               ; preds = %54
  br label %87

60:                                               ; preds = %54
  %61 = load ptr, ptr %13, align 8, !tbaa !9
  %62 = load ptr, ptr %9, align 8, !tbaa !9
  %63 = load ptr, ptr %11, align 8, !tbaa !9
  %64 = call ptr @CMS_add1_signer(ptr noundef %61, ptr noundef %62, ptr noundef %63, ptr noundef null, i32 noundef 0)
  %65 = icmp ne ptr %64, null
  br i1 %65, label %67, label %66

66:                                               ; preds = %60
  br label %87

67:                                               ; preds = %60
  %68 = load ptr, ptr %13, align 8, !tbaa !9
  %69 = load ptr, ptr %10, align 8, !tbaa !9
  %70 = load ptr, ptr %12, align 8, !tbaa !9
  %71 = call ptr @CMS_add1_signer(ptr noundef %68, ptr noundef %69, ptr noundef %70, ptr noundef null, i32 noundef 0)
  %72 = icmp ne ptr %71, null
  br i1 %72, label %74, label %73

73:                                               ; preds = %67
  br label %87

74:                                               ; preds = %67
  %75 = call ptr @BIO_new_file(ptr noundef @.str.4, ptr noundef @.str.5)
  store ptr %75, ptr %7, align 8, !tbaa !9
  %76 = load ptr, ptr %7, align 8, !tbaa !9
  %77 = icmp ne ptr %76, null
  br i1 %77, label %79, label %78

78:                                               ; preds = %74
  br label %87

79:                                               ; preds = %74
  %80 = load ptr, ptr %7, align 8, !tbaa !9
  %81 = load ptr, ptr %13, align 8, !tbaa !9
  %82 = load ptr, ptr %6, align 8, !tbaa !9
  %83 = call i32 @SMIME_write_CMS(ptr noundef %80, ptr noundef %81, ptr noundef %82, i32 noundef 4096)
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %86, label %85

85:                                               ; preds = %79
  br label %87

86:                                               ; preds = %79
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %86, %85, %78, %73, %66, %59, %53, %48, %34, %20
  %88 = load i32, ptr %14, align 4, !tbaa !5
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %94

90:                                               ; preds = %87
  %91 = load ptr, ptr @stderr, align 8, !tbaa !9
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef @.str.6) #4
  %93 = load ptr, ptr @stderr, align 8, !tbaa !9
  call void @ERR_print_errors_fp(ptr noundef %93)
  br label %94

94:                                               ; preds = %90, %87
  %95 = load ptr, ptr %13, align 8, !tbaa !9
  call void @CMS_ContentInfo_free(ptr noundef %95)
  %96 = load ptr, ptr %9, align 8, !tbaa !9
  call void @X509_free(ptr noundef %96)
  %97 = load ptr, ptr %11, align 8, !tbaa !9
  call void @EVP_PKEY_free(ptr noundef %97)
  %98 = load ptr, ptr %10, align 8, !tbaa !9
  call void @X509_free(ptr noundef %98)
  %99 = load ptr, ptr %12, align 8, !tbaa !9
  call void @EVP_PKEY_free(ptr noundef %99)
  %100 = load ptr, ptr %6, align 8, !tbaa !9
  %101 = call i32 @BIO_free(ptr noundef %100)
  %102 = load ptr, ptr %7, align 8, !tbaa !9
  %103 = call i32 @BIO_free(ptr noundef %102)
  %104 = load ptr, ptr %8, align 8, !tbaa !9
  %105 = call i32 @BIO_free(ptr noundef %104)
  %106 = load i32, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  ret i32 %106
}

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

declare i32 @OPENSSL_init_crypto(i64 noundef, ptr noundef) #2

declare ptr @BIO_new_file(ptr noundef, ptr noundef) #2

declare ptr @PEM_read_bio_X509(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare i64 @BIO_ctrl(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #2

declare ptr @PEM_read_bio_PrivateKey(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @BIO_free(ptr noundef) #2

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

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

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

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

declare void @ERR_print_errors_fp(ptr noundef) #2

declare void @CMS_ContentInfo_free(ptr noundef) #2

declare void @X509_free(ptr noundef) #2

declare void @EVP_PKEY_free(ptr noundef) #2

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

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

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

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


; 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 [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = tail call i32 @OPENSSL_init_crypto(i64 noundef 12, ptr noundef null) #3
  %4 = tail call i32 @OPENSSL_init_crypto(i64 noundef 2, ptr noundef null) #3
  %5 = tail call ptr @BIO_new_file(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1) #3
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %.thread, label %6

6:                                                ; preds = %2
  %7 = tail call ptr @PEM_read_bio_X509(ptr noundef nonnull %5, ptr noundef null, ptr noundef null, ptr noundef null) #3
  %8 = tail call i64 @BIO_ctrl(ptr noundef nonnull %5, i32 noundef 1, i64 noundef 0, ptr noundef null) #3
  %9 = tail call ptr @PEM_read_bio_PrivateKey(ptr noundef nonnull %5, ptr noundef null, ptr noundef null, ptr noundef null) #3
  %10 = tail call i32 @BIO_free(ptr noundef nonnull %5) #3
  %11 = tail call ptr @BIO_new_file(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1) #3
  %.not53 = icmp eq ptr %11, null
  br i1 %.not53, label %.thread, label %12

12:                                               ; preds = %6
  %13 = tail call ptr @PEM_read_bio_X509(ptr noundef nonnull %11, ptr noundef null, ptr noundef null, ptr noundef null) #3
  %14 = tail call i64 @BIO_ctrl(ptr noundef nonnull %11, i32 noundef 1, i64 noundef 0, ptr noundef null) #3
  %15 = tail call ptr @PEM_read_bio_PrivateKey(ptr noundef nonnull %11, ptr noundef null, ptr noundef null, ptr noundef null) #3
  %16 = icmp ne ptr %13, null
  %17 = icmp ne ptr %15, null
  %or.cond = select i1 %16, i1 %17, i1 false
  br i1 %or.cond, label %18, label %.thread

18:                                               ; preds = %12
  %19 = tail call ptr @BIO_new_file(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1) #3
  %.not54 = icmp eq ptr %19, null
  br i1 %.not54, label %.thread, label %20

20:                                               ; preds = %18
  %21 = tail call ptr @CMS_sign(ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef nonnull %19, i32 noundef 20480) #3
  %.not55 = icmp eq ptr %21, null
  br i1 %.not55, label %.thread, label %22

22:                                               ; preds = %20
  %23 = tail call ptr @CMS_add1_signer(ptr noundef nonnull %21, ptr noundef %7, ptr noundef %9, ptr noundef null, i32 noundef 0) #3
  %.not56 = icmp eq ptr %23, null
  br i1 %.not56, label %.thread, label %24

24:                                               ; preds = %22
  %25 = tail call ptr @CMS_add1_signer(ptr noundef nonnull %21, ptr noundef nonnull %13, ptr noundef nonnull %15, ptr noundef null, i32 noundef 0) #3
  %.not57 = icmp eq ptr %25, null
  br i1 %.not57, label %.thread, label %26

26:                                               ; preds = %24
  %27 = tail call ptr @BIO_new_file(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5) #3
  %.not58 = icmp eq ptr %27, null
  br i1 %.not58, label %.thread, label %28

28:                                               ; preds = %26
  %29 = tail call i32 @SMIME_write_CMS(ptr noundef nonnull %27, ptr noundef nonnull %21, ptr noundef nonnull %19, i32 noundef 4096) #3
  %.not59.not = icmp eq i32 %29, 0
  br i1 %.not59.not, label %.thread, label %33

.thread:                                          ; preds = %2, %6, %12, %18, %20, %22, %24, %26, %28
  %.03486 = phi ptr [ %21, %28 ], [ %21, %26 ], [ %21, %24 ], [ %21, %22 ], [ null, %20 ], [ null, %18 ], [ null, %12 ], [ null, %6 ], [ null, %2 ]
  %.03584 = phi ptr [ %15, %28 ], [ %15, %26 ], [ %15, %24 ], [ %15, %22 ], [ %15, %20 ], [ %15, %18 ], [ %15, %12 ], [ null, %6 ], [ null, %2 ]
  %.03682 = phi ptr [ %9, %28 ], [ %9, %26 ], [ %9, %24 ], [ %9, %22 ], [ %9, %20 ], [ %9, %18 ], [ %9, %12 ], [ %9, %6 ], [ null, %2 ]
  %.03780 = phi ptr [ %13, %28 ], [ %13, %26 ], [ %13, %24 ], [ %13, %22 ], [ %13, %20 ], [ %13, %18 ], [ %13, %12 ], [ null, %6 ], [ null, %2 ]
  %.03878 = phi ptr [ %7, %28 ], [ %7, %26 ], [ %7, %24 ], [ %7, %22 ], [ %7, %20 ], [ %7, %18 ], [ %7, %12 ], [ %7, %6 ], [ null, %2 ]
  %.03976 = phi ptr [ %11, %28 ], [ %11, %26 ], [ %11, %24 ], [ %11, %22 ], [ %11, %20 ], [ %11, %18 ], [ %11, %12 ], [ null, %6 ], [ null, %2 ]
  %.04074 = phi ptr [ %27, %28 ], [ null, %26 ], [ null, %24 ], [ null, %22 ], [ null, %20 ], [ null, %18 ], [ null, %12 ], [ null, %6 ], [ null, %2 ]
  %.04172 = phi ptr [ %19, %28 ], [ %19, %26 ], [ %19, %24 ], [ %19, %22 ], [ %19, %20 ], [ null, %18 ], [ null, %12 ], [ null, %6 ], [ null, %2 ]
  %30 = load ptr, ptr @stderr, align 8, !tbaa !5
  %31 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef nonnull @.str.6) #4
  %32 = load ptr, ptr @stderr, align 8, !tbaa !5
  tail call void @ERR_print_errors_fp(ptr noundef %32) #3
  br label %33

33:                                               ; preds = %.thread, %28
  %.089 = phi i32 [ 1, %.thread ], [ 0, %28 ]
  %.03487 = phi ptr [ %.03486, %.thread ], [ %21, %28 ]
  %.03585 = phi ptr [ %.03584, %.thread ], [ %15, %28 ]
  %.03683 = phi ptr [ %.03682, %.thread ], [ %9, %28 ]
  %.03781 = phi ptr [ %.03780, %.thread ], [ %13, %28 ]
  %.03879 = phi ptr [ %.03878, %.thread ], [ %7, %28 ]
  %.03977 = phi ptr [ %.03976, %.thread ], [ %11, %28 ]
  %.04075 = phi ptr [ %.04074, %.thread ], [ %27, %28 ]
  %.04173 = phi ptr [ %.04172, %.thread ], [ %19, %28 ]
  tail call void @CMS_ContentInfo_free(ptr noundef %.03487) #3
  tail call void @X509_free(ptr noundef %.03879) #3
  tail call void @EVP_PKEY_free(ptr noundef %.03683) #3
  tail call void @X509_free(ptr noundef %.03781) #3
  tail call void @EVP_PKEY_free(ptr noundef %.03585) #3
  %34 = tail call i32 @BIO_free(ptr noundef %.04173) #3
  %35 = tail call i32 @BIO_free(ptr noundef %.04075) #3
  %36 = tail call i32 @BIO_free(ptr noundef %.03977) #3
  ret i32 %.089
}

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

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

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

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

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

declare i32 @BIO_free(ptr noundef) local_unnamed_addr #1

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

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

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

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

declare void @ERR_print_errors_fp(ptr noundef) local_unnamed_addr #1

declare void @CMS_ContentInfo_free(ptr noundef) local_unnamed_addr #1

declare void @X509_free(ptr noundef) local_unnamed_addr #1

declare void @EVP_PKEY_free(ptr noundef) local_unnamed_addr #1

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


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