; LLVM IR from intel/cryptography-primitives :: examples/rsa (rsa-1k-oaep-sha1-encryption)

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

%class.BigNumber = type { ptr, ptr }

@_ZL1N = external hidden global %class.BigNumber, align 8
@_ZL1E = external hidden global %class.BigNumber, align 8
@.str.4 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [31 x i8], align 1
@_ZL13sourceMessage = external hidden global [17 x i8], align 16
@_ZL4seed = external hidden global [21 x i8], align 16
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1
@_ZL13cipherTextRef = external hidden global [129 x i8], align 16
@.str.7 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #10
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #10
  %12 = call noundef i32 @_ZNK9BigNumber7BitSizeEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL1N)
  store i32 %12, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #10
  %13 = call noundef i32 @_ZNK9BigNumber7BitSizeEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL1E)
  store i32 %13, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #10
  store i32 0, ptr %5, align 4, !tbaa !5
  %14 = load i32, ptr %3, align 4, !tbaa !5
  %15 = load i32, ptr %4, align 4, !tbaa !5
  %16 = call i32 @ippsRSA_GetSizePublicKey(i32 noundef %14, i32 noundef %15, ptr noundef %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #10
  %17 = load i32, ptr %5, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = call noalias noundef nonnull ptr @_Znam(i64 noundef %18) #11
  store ptr %19, ptr %6, align 8, !tbaa !9
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %21 = load i32, ptr %4, align 4, !tbaa !5
  %22 = load ptr, ptr %6, align 8, !tbaa !9
  %23 = load i32, ptr %5, align 4, !tbaa !5
  %24 = call i32 @ippsRSA_InitPublicKey(i32 noundef %20, i32 noundef %21, ptr noundef %22, i32 noundef %23)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #10
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = call noundef i32 @_Z14bitSizeInBytesi(i32 noundef %25)
  store i32 %26, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #10
  %27 = load i32, ptr %7, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = call noalias noundef nonnull ptr @_Znam(i64 noundef %28) #11
  store ptr %29, ptr %8, align 8, !tbaa !9
  br label %30

30:                                               ; preds = %0
  %31 = call noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL1N)
  %32 = call noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL1E)
  %33 = load ptr, ptr %6, align 8, !tbaa !9
  %34 = call i32 @ippsRSA_SetPublicKey(ptr noundef %31, ptr noundef %32, ptr noundef %33)
  store i32 %34, ptr %2, align 4, !tbaa !5
  %35 = load i32, ptr %2, align 4, !tbaa !5
  %36 = call noundef i32 @_Z11checkStatusPKcii(ptr noundef @.str.4, i32 noundef 0, i32 noundef %35)
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %39, label %38

38:                                               ; preds = %30
  br label %79

39:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #10
  store i32 0, ptr %9, align 4, !tbaa !5
  %40 = load ptr, ptr %6, align 8, !tbaa !9
  %41 = call i32 @ippsRSA_GetBufferSizePublicKey(ptr noundef %9, ptr noundef %40)
  store i32 %41, ptr %2, align 4, !tbaa !5
  %42 = load i32, ptr %2, align 4, !tbaa !5
  %43 = call noundef i32 @_Z11checkStatusPKcii(ptr noundef @.str.5, i32 noundef 0, i32 noundef %42)
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %46, label %45

45:                                               ; preds = %39
  store i32 2, ptr %10, align 4
  br label %75

46:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #10
  %47 = load i32, ptr %9, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = call noalias noundef nonnull ptr @_Znam(i64 noundef %48) #11
  store ptr %49, ptr %11, align 8, !tbaa !9
  %50 = load ptr, ptr %8, align 8, !tbaa !9
  %51 = load ptr, ptr %6, align 8, !tbaa !9
  %52 = call ptr @ippsHashMethod_SHA1()
  %53 = load ptr, ptr %11, align 8, !tbaa !9
  %54 = call i32 @ippsRSAEncrypt_OAEP_rmf(ptr noundef @_ZL13sourceMessage, i32 noundef 16, ptr noundef null, i32 noundef 0, ptr noundef @_ZL4seed, ptr noundef %50, ptr noundef %51, ptr noundef %52, ptr noundef %53)
  store i32 %54, ptr %2, align 4, !tbaa !5
  %55 = load ptr, ptr %11, align 8, !tbaa !9
  %56 = icmp ne ptr %55, null
  br i1 %56, label %57, label %62

57:                                               ; preds = %46
  %58 = load ptr, ptr %11, align 8, !tbaa !9
  %59 = icmp eq ptr %58, null
  br i1 %59, label %61, label %60

60:                                               ; preds = %57
  call void @_ZdaPv(ptr noundef %58) #12
  br label %61

61:                                               ; preds = %60, %57
  br label %62

62:                                               ; preds = %61, %46
  %63 = load i32, ptr %2, align 4, !tbaa !5
  %64 = call noundef i32 @_Z11checkStatusPKcii(ptr noundef @.str.6, i32 noundef 0, i32 noundef %63)
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %67, label %66

66:                                               ; preds = %62
  store i32 2, ptr %10, align 4
  br label %74

67:                                               ; preds = %62
  %68 = load ptr, ptr %8, align 8, !tbaa !9
  %69 = call i32 @memcmp(ptr noundef @_ZL13cipherTextRef, ptr noundef %68, i64 noundef 128) #13
  %70 = icmp ne i32 0, %69
  br i1 %70, label %71, label %73

71:                                               ; preds = %67
  %72 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  store i32 -2, ptr %2, align 4, !tbaa !5
  br label %73

73:                                               ; preds = %71, %67
  store i32 0, ptr %10, align 4
  br label %74

74:                                               ; preds = %73, %66
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  br label %75

75:                                               ; preds = %74, %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #10
  %76 = load i32, ptr %10, align 4
  switch i32 %76, label %109 [
    i32 0, label %77
    i32 2, label %79
  ]

77:                                               ; preds = %75
  br label %78

78:                                               ; preds = %77
  br label %79

79:                                               ; preds = %78, %75, %38
  %80 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %81 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef @.str.6)
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef @.str.11)
  %83 = load i32, ptr %2, align 4, !tbaa !5
  %84 = icmp eq i32 0, %83
  br i1 %84, label %85, label %87

85:                                               ; preds = %79
  %86 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
  br label %89

87:                                               ; preds = %79
  %88 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  br label %89

89:                                               ; preds = %87, %85
  %90 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %91 = load ptr, ptr %8, align 8, !tbaa !9
  %92 = icmp ne ptr %91, null
  br i1 %92, label %93, label %98

93:                                               ; preds = %89
  %94 = load ptr, ptr %8, align 8, !tbaa !9
  %95 = icmp eq ptr %94, null
  br i1 %95, label %97, label %96

96:                                               ; preds = %93
  call void @_ZdaPv(ptr noundef %94) #12
  br label %97

97:                                               ; preds = %96, %93
  br label %98

98:                                               ; preds = %97, %89
  %99 = load ptr, ptr %6, align 8, !tbaa !9
  %100 = icmp ne ptr %99, null
  br i1 %100, label %101, label %106

101:                                              ; preds = %98
  %102 = load ptr, ptr %6, align 8, !tbaa !9
  %103 = icmp eq ptr %102, null
  br i1 %103, label %105, label %104

104:                                              ; preds = %101
  call void @_ZdaPv(ptr noundef %102) #12
  br label %105

105:                                              ; preds = %104, %101
  br label %106

106:                                              ; preds = %105, %98
  %107 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %107, ptr %1, align 4
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #10
  %108 = load i32, ptr %1, align 4
  ret i32 %108

109:                                              ; preds = %75
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK9BigNumber7BitSizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z14bitSizeInBytesi(i32 noundef) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16)) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z11checkStatusPKcii(ptr noundef, i32 noundef, i32 noundef) #7

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

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

declare ptr @ippsHashMethod_SHA1() #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #8

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #9

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

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

attributes #0 = { mustprogress norecurse 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin allocsize(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 #5 = { inlinehint mustprogress 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 #6 = { mustprogress 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 #7 = { inlinehint mustprogress 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 #8 = { nobuiltin 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 #9 = { nounwind willreturn memory(read) "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 #10 = { nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { builtin nounwind }
attributes #13 = { nounwind willreturn memory(read) }

!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++ 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"

%class.BigNumber = type { ptr, ptr }

@_ZL1N = external hidden global %class.BigNumber, align 8
@_ZL1E = external hidden global %class.BigNumber, align 8
@.str.4 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [31 x i8], align 1
@_ZL13sourceMessage = external hidden global [17 x i8], align 16
@_ZL4seed = external hidden global [21 x i8], align 16
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1
@_ZL13cipherTextRef = external hidden global [129 x i8], align 16
@.str.7 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call noundef i32 @_ZNK9BigNumber7BitSizeEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL1N)
  %4 = tail call noundef i32 @_ZNK9BigNumber7BitSizeEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL1E)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #11
  store i32 0, ptr %1, align 4, !tbaa !5
  %5 = call i32 @ippsRSA_GetSizePublicKey(i32 noundef %3, i32 noundef %4, ptr noundef nonnull %1)
  %6 = load i32, ptr %1, align 4, !tbaa !5
  %7 = sext i32 %6 to i64
  %8 = call noalias noundef nonnull ptr @_Znam(i64 noundef %7) #12
  %9 = call i32 @ippsRSA_InitPublicKey(i32 noundef %3, i32 noundef %4, ptr noundef nonnull %8, i32 noundef %6)
  %10 = call noundef i32 @_Z14bitSizeInBytesi(i32 noundef %3)
  %11 = sext i32 %10 to i64
  %12 = call noalias noundef nonnull ptr @_Znam(i64 noundef %11) #12
  %13 = call noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL1N)
  %14 = call noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL1E)
  %15 = call i32 @ippsRSA_SetPublicKey(ptr noundef %13, ptr noundef %14, ptr noundef nonnull %8)
  %16 = call noundef i32 @_Z11checkStatusPKcii(ptr noundef nonnull @.str.4, i32 noundef 0, i32 noundef %15)
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %31, label %17

17:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #11
  store i32 0, ptr %2, align 4, !tbaa !5
  %18 = call i32 @ippsRSA_GetBufferSizePublicKey(ptr noundef nonnull %2, ptr noundef nonnull %8)
  %19 = call noundef i32 @_Z11checkStatusPKcii(ptr noundef nonnull @.str.5, i32 noundef 0, i32 noundef %18)
  %.not24 = icmp eq i32 %19, 0
  br i1 %.not24, label %30, label %20

20:                                               ; preds = %17
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = call noalias noundef nonnull ptr @_Znam(i64 noundef %22) #12
  %24 = call ptr @ippsHashMethod_SHA1()
  %25 = call i32 @ippsRSAEncrypt_OAEP_rmf(ptr noundef nonnull @_ZL13sourceMessage, i32 noundef 16, ptr noundef null, i32 noundef 0, ptr noundef nonnull @_ZL4seed, ptr noundef nonnull %12, ptr noundef nonnull %8, ptr noundef %24, ptr noundef nonnull %23)
  call void @_ZdaPv(ptr noundef nonnull %23) #13
  %26 = call noundef i32 @_Z11checkStatusPKcii(ptr noundef nonnull @.str.6, i32 noundef 0, i32 noundef %25)
  %.not25 = icmp eq i32 %26, 0
  br i1 %.not25, label %30, label %27

27:                                               ; preds = %20
  %bcmp = call i32 @bcmp(ptr noundef nonnull dereferenceable(128) @_ZL13cipherTextRef, ptr noundef nonnull dereferenceable(128) %12, i64 128)
  %.not26 = icmp eq i32 %bcmp, 0
  br i1 %.not26, label %30, label %28

28:                                               ; preds = %27
  %29 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  br label %30

30:                                               ; preds = %20, %28, %27, %17
  %.2 = phi i32 [ %18, %17 ], [ %25, %20 ], [ -2, %28 ], [ %25, %27 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #11
  br label %31

31:                                               ; preds = %30, %0
  %.3 = phi i32 [ %.2, %30 ], [ %15, %0 ]
  %32 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef nonnull @.str.6)
  %34 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, ptr noundef nonnull @.str.11)
  %35 = icmp eq i32 %.3, 0
  %.str.12..str.13 = select i1 %35, ptr @.str.12, ptr @.str.13
  %36 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.12..str.13)
  %37 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  call void @_ZdaPv(ptr noundef nonnull %12) #13
  call void @_ZdaPv(ptr noundef nonnull %8) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #11
  ret i32 %.3
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK9BigNumber7BitSizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z14bitSizeInBytesi(i32 noundef) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z11checkStatusPKcii(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #7

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

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

declare ptr @ippsHashMethod_SHA1() local_unnamed_addr #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #8

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

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

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #10

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


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