; LLVM IR from intel/cryptography-primitives :: examples/rsa (rsa-3k-pss-sha384-type1-signature)

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

@N = external dso_local global %class.BigNumber, align 8
@D = external dso_local global %class.BigNumber, align 8
@.str.6 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [32 x i8], align 1
@_ZL13sourceMessage = external hidden constant [129 x i8], align 16
@_ZL4salt = external hidden constant [49 x i8], align 16
@.str.8 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZL12signatureRef = external hidden constant [385 x i8], align 16
@.str.9 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.15 = 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 i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #10
  store i32 3072, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #10
  store i32 0, 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) @N)
  store i32 %13, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #10
  %14 = call noundef i32 @_ZNK9BigNumber7BitSizeEv(ptr noundef nonnull align 8 dereferenceable(16) @D)
  store i32 %14, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #10
  %15 = call noundef i32 @_Z14bitSizeInBytesi(i32 noundef 3072)
  store i32 %15, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #10
  %16 = load i32, ptr %6, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = call noalias noundef nonnull ptr @_Znam(i64 noundef %17) #11
  store ptr %18, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #10
  store i32 0, ptr %8, align 4, !tbaa !5
  %19 = load i32, ptr %4, align 4, !tbaa !5
  %20 = load i32, ptr %5, align 4, !tbaa !5
  %21 = call i32 @ippsRSA_GetSizePrivateKeyType1(i32 noundef %19, i32 noundef %20, ptr noundef %8)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #10
  %22 = load i32, ptr %8, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = call noalias noundef nonnull ptr @_Znam(i64 noundef %23) #11
  store ptr %24, ptr %9, align 8, !tbaa !9
  %25 = load i32, ptr %4, align 4, !tbaa !5
  %26 = load i32, ptr %5, align 4, !tbaa !5
  %27 = load ptr, ptr %9, align 8, !tbaa !9
  %28 = load i32, ptr %8, align 4, !tbaa !5
  %29 = call i32 @ippsRSA_InitPrivateKeyType1(i32 noundef %25, i32 noundef %26, ptr noundef %27, i32 noundef %28)
  %30 = load ptr, ptr %9, align 8, !tbaa !9
  %31 = icmp ne ptr %30, null
  br i1 %31, label %32, label %85

32:                                               ; preds = %0
  br label %33

33:                                               ; preds = %32
  %34 = call noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @N)
  %35 = call noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @D)
  %36 = load ptr, ptr %9, align 8, !tbaa !9
  %37 = call i32 @ippsRSA_SetPrivateKeyType1(ptr noundef %34, ptr noundef %35, ptr noundef %36)
  store i32 %37, ptr %3, align 4, !tbaa !5
  %38 = load i32, ptr %3, align 4, !tbaa !5
  %39 = call noundef i32 @_Z11checkStatusPKcii(ptr noundef @.str.6, i32 noundef 0, i32 noundef %38)
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %42, label %41

41:                                               ; preds = %33
  br label %84

42:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #10
  store i32 0, ptr %10, align 4, !tbaa !5
  %43 = load ptr, ptr %9, align 8, !tbaa !9
  %44 = call i32 @ippsRSA_GetBufferSizePrivateKey(ptr noundef %10, ptr noundef %43)
  store i32 %44, ptr %3, align 4, !tbaa !5
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = call noundef i32 @_Z11checkStatusPKcii(ptr noundef @.str.7, i32 noundef 0, i32 noundef %45)
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %49, label %48

48:                                               ; preds = %42
  store i32 2, ptr %11, align 4
  br label %80

49:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #10
  %50 = load i32, ptr %10, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = call noalias noundef nonnull ptr @_Znam(i64 noundef %51) #11
  store ptr %52, ptr %12, align 8, !tbaa !9
  %53 = load ptr, ptr %7, align 8, !tbaa !9
  %54 = load ptr, ptr %9, align 8, !tbaa !9
  %55 = call ptr @ippsHashMethod_SHA384()
  %56 = load ptr, ptr %12, align 8, !tbaa !9
  %57 = call i32 @ippsRSASign_PSS_rmf(ptr noundef @_ZL13sourceMessage, i32 noundef 128, ptr noundef @_ZL4salt, i32 noundef 48, ptr noundef %53, ptr noundef %54, ptr noundef null, ptr noundef %55, ptr noundef %56)
  store i32 %57, ptr %3, align 4, !tbaa !5
  %58 = load ptr, ptr %12, align 8, !tbaa !9
  %59 = icmp ne ptr %58, null
  br i1 %59, label %60, label %65

60:                                               ; preds = %49
  %61 = load ptr, ptr %12, align 8, !tbaa !9
  %62 = icmp eq ptr %61, null
  br i1 %62, label %64, label %63

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

64:                                               ; preds = %63, %60
  br label %65

65:                                               ; preds = %64, %49
  %66 = load i32, ptr %3, align 4, !tbaa !5
  %67 = call noundef i32 @_Z11checkStatusPKcii(ptr noundef @.str.8, i32 noundef 0, i32 noundef %66)
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %70, label %69

69:                                               ; preds = %65
  store i32 2, ptr %11, align 4
  br label %79

70:                                               ; preds = %65
  %71 = load ptr, ptr %7, align 8, !tbaa !9
  %72 = load i32, ptr %6, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = call i32 @memcmp(ptr noundef @_ZL12signatureRef, ptr noundef %71, i64 noundef %73) #13
  %75 = icmp ne i32 0, %74
  br i1 %75, label %76, label %78

76:                                               ; preds = %70
  %77 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  store i32 -2, ptr %3, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %76, %70
  store i32 0, ptr %11, align 4
  br label %79

79:                                               ; preds = %78, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #10
  br label %80

80:                                               ; preds = %79, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #10
  %81 = load i32, ptr %11, align 4
  switch i32 %81, label %115 [
    i32 0, label %82
    i32 2, label %84
  ]

82:                                               ; preds = %80
  br label %83

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83, %80, %41
  br label %85

85:                                               ; preds = %84, %0
  %86 = load ptr, ptr %9, align 8, !tbaa !9
  %87 = icmp ne ptr %86, null
  br i1 %87, label %88, label %93

88:                                               ; preds = %85
  %89 = load ptr, ptr %9, align 8, !tbaa !9
  %90 = icmp eq ptr %89, null
  br i1 %90, label %92, label %91

91:                                               ; preds = %88
  call void @_ZdaPv(ptr noundef %89) #12
  br label %92

92:                                               ; preds = %91, %88
  br label %93

93:                                               ; preds = %92, %85
  %94 = load ptr, ptr %7, align 8, !tbaa !9
  %95 = icmp ne ptr %94, null
  br i1 %95, label %96, label %101

96:                                               ; preds = %93
  %97 = load ptr, ptr %7, align 8, !tbaa !9
  %98 = icmp eq ptr %97, null
  br i1 %98, label %100, label %99

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

100:                                              ; preds = %99, %96
  br label %101

101:                                              ; preds = %100, %93
  %102 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  %103 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, ptr noundef @.str.8)
  %104 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, ptr noundef @.str.13)
  %105 = load i32, ptr %3, align 4, !tbaa !5
  %106 = icmp eq i32 0, %105
  br i1 %106, label %107, label %109

107:                                              ; preds = %101
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  br label %111

109:                                              ; preds = %101
  %110 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  br label %111

111:                                              ; preds = %109, %107
  %112 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
  %113 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %113, ptr %1, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 4, 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
  %114 = load i32, ptr %1, align 4
  ret i32 %114

115:                                              ; preds = %80
  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

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

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

declare i32 @ippsRSA_GetSizePrivateKeyType1(i32 noundef, i32 noundef, ptr noundef) #5

declare i32 @ippsRSA_InitPrivateKeyType1(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #5

declare i32 @ippsRSA_SetPrivateKeyType1(ptr noundef, ptr noundef, ptr noundef) #5

; 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_GetBufferSizePrivateKey(ptr noundef, ptr noundef) #5

declare i32 @ippsRSASign_PSS_rmf(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #5

declare ptr @ippsHashMethod_SHA384() #5

; 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, ...) #5

; 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 = { 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 #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 = { "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 }

@N = external dso_local global %class.BigNumber, align 8
@D = external dso_local global %class.BigNumber, align 8
@.str.6 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [32 x i8], align 1
@_ZL13sourceMessage = external hidden constant [129 x i8], align 16
@_ZL4salt = external hidden constant [49 x i8], align 16
@.str.8 = external hidden unnamed_addr constant [20 x i8], align 1
@_ZL12signatureRef = external hidden constant [385 x i8], align 16
@.str.9 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.15 = 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) @N)
  %4 = tail call noundef i32 @_ZNK9BigNumber7BitSizeEv(ptr noundef nonnull align 8 dereferenceable(16) @D)
  %5 = tail call noundef i32 @_Z14bitSizeInBytesi(i32 noundef 3072)
  %6 = sext i32 %5 to i64
  %7 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %6) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #12
  store i32 0, ptr %1, align 4, !tbaa !5
  %8 = call i32 @ippsRSA_GetSizePrivateKeyType1(i32 noundef %3, i32 noundef %4, ptr noundef nonnull %1)
  %9 = load i32, ptr %1, align 4, !tbaa !5
  %10 = sext i32 %9 to i64
  %11 = call noalias noundef nonnull ptr @_Znam(i64 noundef %10) #11
  %12 = call i32 @ippsRSA_InitPrivateKeyType1(i32 noundef %3, i32 noundef %4, ptr noundef nonnull %11, i32 noundef %9)
  %13 = call noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @N)
  %14 = call noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @D)
  %15 = call i32 @ippsRSA_SetPrivateKeyType1(ptr noundef %13, ptr noundef %14, ptr noundef nonnull %11)
  %16 = call noundef i32 @_Z11checkStatusPKcii(ptr noundef nonnull @.str.6, 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) #12
  store i32 0, ptr %2, align 4, !tbaa !5
  %18 = call i32 @ippsRSA_GetBufferSizePrivateKey(ptr noundef nonnull %2, ptr noundef nonnull %11)
  %19 = call noundef i32 @_Z11checkStatusPKcii(ptr noundef nonnull @.str.7, i32 noundef 0, i32 noundef %18)
  %.not25 = icmp eq i32 %19, 0
  br i1 %.not25, 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) #11
  %24 = call ptr @ippsHashMethod_SHA384()
  %25 = call i32 @ippsRSASign_PSS_rmf(ptr noundef nonnull @_ZL13sourceMessage, i32 noundef 128, ptr noundef nonnull @_ZL4salt, i32 noundef 48, ptr noundef nonnull %7, ptr noundef nonnull %11, ptr noundef null, ptr noundef %24, ptr noundef nonnull %23)
  call void @_ZdaPv(ptr noundef nonnull %23) #13
  %26 = call noundef i32 @_Z11checkStatusPKcii(ptr noundef nonnull @.str.8, i32 noundef 0, i32 noundef %25)
  %.not26 = icmp eq i32 %26, 0
  br i1 %.not26, label %30, label %27

27:                                               ; preds = %20
  %bcmp = call i32 @bcmp(ptr nonnull @_ZL12signatureRef, ptr nonnull %7, i64 %6)
  %.not27 = icmp eq i32 %bcmp, 0
  br i1 %.not27, label %30, label %28

28:                                               ; preds = %27
  %29 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  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) #12
  br label %31

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

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

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

declare i32 @ippsRSA_GetSizePrivateKeyType1(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

declare i32 @ippsRSA_InitPrivateKeyType1(i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #5

declare i32 @ippsRSA_SetPrivateKeyType1(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

; 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_GetBufferSizePrivateKey(ptr noundef, ptr noundef) local_unnamed_addr #5

declare i32 @ippsRSASign_PSS_rmf(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #5

declare ptr @ippsHashMethod_SHA384() local_unnamed_addr #5

; 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 = { 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 #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 = { "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 = { builtin allocsize(0) }
attributes #12 = { nounwind }
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