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

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

@_ZL1P = external hidden global %class.BigNumber, align 8
@_ZL1Q = external hidden global %class.BigNumber, align 8
@_ZL2DP = external hidden global %class.BigNumber, align 8
@_ZL2DQ = external hidden global %class.BigNumber, align 8
@_ZL4InvQ = external hidden global %class.BigNumber, align 8
@.str.10 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [32 x i8], align 1
@_ZL10cipherText = external hidden global [129 x i8], align 16
@.str.12 = external hidden unnamed_addr constant [24 x i8], align 1
@_ZL16sourceMessageRef = external hidden global [17 x i8], align 16
@.str.13 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.19 = 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) @_ZL1P)
  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) @_ZL1Q)
  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_GetSizePrivateKeyType2(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_InitPrivateKeyType2(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 = load i32, ptr %4, align 4, !tbaa !5
  %27 = add nsw i32 %25, %26
  %28 = call noundef i32 @_Z14bitSizeInBytesi(i32 noundef %27)
  store i32 %28, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #10
  %29 = load i32, ptr %7, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = call noalias noundef nonnull ptr @_Znam(i64 noundef %30) #11
  store ptr %31, ptr %8, align 8, !tbaa !9
  br label %32

32:                                               ; preds = %0
  %33 = call noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL1P)
  %34 = call noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL1Q)
  %35 = call noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL2DP)
  %36 = call noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL2DQ)
  %37 = call noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL4InvQ)
  %38 = load ptr, ptr %6, align 8, !tbaa !9
  %39 = call i32 @ippsRSA_SetPrivateKeyType2(ptr noundef %33, ptr noundef %34, ptr noundef %35, ptr noundef %36, ptr noundef %37, ptr noundef %38)
  store i32 %39, ptr %2, align 4, !tbaa !5
  %40 = load i32, ptr %2, align 4, !tbaa !5
  %41 = call noundef i32 @_Z11checkStatusPKcii(ptr noundef @.str.10, i32 noundef 0, i32 noundef %40)
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %44, label %43

43:                                               ; preds = %32
  br label %84

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

50:                                               ; preds = %44
  store i32 2, ptr %10, align 4
  br label %80

51:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #10
  %52 = load i32, ptr %9, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = call noalias noundef nonnull ptr @_Znam(i64 noundef %53) #11
  store ptr %54, ptr %11, align 8, !tbaa !9
  %55 = load ptr, ptr %8, align 8, !tbaa !9
  %56 = load ptr, ptr %6, align 8, !tbaa !9
  %57 = call ptr @ippsHashMethod_SHA1()
  %58 = load ptr, ptr %11, align 8, !tbaa !9
  %59 = call i32 @ippsRSADecrypt_OAEP_rmf(ptr noundef @_ZL10cipherText, ptr noundef null, i32 noundef 0, ptr noundef %55, ptr noundef %7, ptr noundef %56, ptr noundef %57, ptr noundef %58)
  store i32 %59, ptr %2, align 4, !tbaa !5
  %60 = load ptr, ptr %11, align 8, !tbaa !9
  %61 = icmp ne ptr %60, null
  br i1 %61, label %62, label %67

62:                                               ; preds = %51
  %63 = load ptr, ptr %11, align 8, !tbaa !9
  %64 = icmp eq ptr %63, null
  br i1 %64, label %66, label %65

65:                                               ; preds = %62
  call void @_ZdaPv(ptr noundef %63) #12
  br label %66

66:                                               ; preds = %65, %62
  br label %67

67:                                               ; preds = %66, %51
  %68 = load i32, ptr %2, align 4, !tbaa !5
  %69 = call noundef i32 @_Z11checkStatusPKcii(ptr noundef @.str.12, i32 noundef 0, i32 noundef %68)
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %72, label %71

71:                                               ; preds = %67
  store i32 2, ptr %10, align 4
  br label %79

72:                                               ; preds = %67
  %73 = load ptr, ptr %8, align 8, !tbaa !9
  %74 = call i32 @memcmp(ptr noundef @_ZL16sourceMessageRef, ptr noundef %73, i64 noundef 16) #13
  %75 = icmp ne i32 0, %74
  br i1 %75, label %76, label %78

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

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

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

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

82:                                               ; preds = %80
  br label %83

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83, %80, %43
  %85 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  %86 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, ptr noundef @.str.12)
  %87 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, ptr noundef @.str.17)
  %88 = load i32, ptr %2, align 4, !tbaa !5
  %89 = icmp eq i32 0, %88
  br i1 %89, label %90, label %92

90:                                               ; preds = %84
  %91 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
  br label %94

92:                                               ; preds = %84
  %93 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
  br label %94

94:                                               ; preds = %92, %90
  %95 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  %96 = load ptr, ptr %8, align 8, !tbaa !9
  %97 = icmp ne ptr %96, null
  br i1 %97, label %98, label %103

98:                                               ; preds = %94
  %99 = load ptr, ptr %8, align 8, !tbaa !9
  %100 = icmp eq ptr %99, null
  br i1 %100, label %102, label %101

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

102:                                              ; preds = %101, %98
  br label %103

103:                                              ; preds = %102, %94
  %104 = load ptr, ptr %6, align 8, !tbaa !9
  %105 = icmp ne ptr %104, null
  br i1 %105, label %106, label %111

106:                                              ; preds = %103
  %107 = load ptr, ptr %6, align 8, !tbaa !9
  %108 = icmp eq ptr %107, null
  br i1 %108, label %110, label %109

109:                                              ; preds = %106
  call void @_ZdaPv(ptr noundef %107) #12
  br label %110

110:                                              ; preds = %109, %106
  br label %111

111:                                              ; preds = %110, %103
  %112 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %112, 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
  %113 = load i32, ptr %1, align 4
  ret i32 %113

114:                                              ; 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

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

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

declare i32 @ippsRSA_InitPrivateKeyType2(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_SetPrivateKeyType2(ptr noundef, ptr noundef, ptr noundef, 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_GetBufferSizePrivateKey(ptr noundef, ptr noundef) #3

declare i32 @ippsRSADecrypt_OAEP_rmf(ptr 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 }

@_ZL1P = external hidden global %class.BigNumber, align 8
@_ZL1Q = external hidden global %class.BigNumber, align 8
@_ZL2DP = external hidden global %class.BigNumber, align 8
@_ZL2DQ = external hidden global %class.BigNumber, align 8
@_ZL4InvQ = external hidden global %class.BigNumber, align 8
@.str.10 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [32 x i8], align 1
@_ZL10cipherText = external hidden global [129 x i8], align 16
@.str.12 = external hidden unnamed_addr constant [24 x i8], align 1
@_ZL16sourceMessageRef = external hidden global [17 x i8], align 16
@.str.13 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.19 = 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 = alloca i32, align 4
  %4 = tail call noundef i32 @_ZNK9BigNumber7BitSizeEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL1P)
  %5 = tail call noundef i32 @_ZNK9BigNumber7BitSizeEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL1Q)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #11
  store i32 0, ptr %1, align 4, !tbaa !5
  %6 = call i32 @ippsRSA_GetSizePrivateKeyType2(i32 noundef %4, i32 noundef %5, ptr noundef nonnull %1)
  %7 = load i32, ptr %1, align 4, !tbaa !5
  %8 = sext i32 %7 to i64
  %9 = call noalias noundef nonnull ptr @_Znam(i64 noundef %8) #12
  %10 = call i32 @ippsRSA_InitPrivateKeyType2(i32 noundef %4, i32 noundef %5, ptr noundef nonnull %9, i32 noundef %7)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #11
  %11 = add nsw i32 %5, %4
  %12 = call noundef i32 @_Z14bitSizeInBytesi(i32 noundef %11)
  store i32 %12, ptr %2, align 4, !tbaa !5
  %13 = sext i32 %12 to i64
  %14 = call noalias noundef nonnull ptr @_Znam(i64 noundef %13) #12
  %15 = call noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL1P)
  %16 = call noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL1Q)
  %17 = call noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL2DP)
  %18 = call noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL2DQ)
  %19 = call noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL4InvQ)
  %20 = call i32 @ippsRSA_SetPrivateKeyType2(ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef nonnull %9)
  %21 = call noundef i32 @_Z11checkStatusPKcii(ptr noundef nonnull @.str.10, i32 noundef 0, i32 noundef %20)
  %.not = icmp eq i32 %21, 0
  br i1 %.not, label %36, label %22

22:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #11
  store i32 0, ptr %3, align 4, !tbaa !5
  %23 = call i32 @ippsRSA_GetBufferSizePrivateKey(ptr noundef nonnull %3, ptr noundef nonnull %9)
  %24 = call noundef i32 @_Z11checkStatusPKcii(ptr noundef nonnull @.str.11, i32 noundef 0, i32 noundef %23)
  %.not24 = icmp eq i32 %24, 0
  br i1 %.not24, label %35, label %25

25:                                               ; preds = %22
  %26 = load i32, ptr %3, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = call noalias noundef nonnull ptr @_Znam(i64 noundef %27) #12
  %29 = call ptr @ippsHashMethod_SHA1()
  %30 = call i32 @ippsRSADecrypt_OAEP_rmf(ptr noundef nonnull @_ZL10cipherText, ptr noundef null, i32 noundef 0, ptr noundef nonnull %14, ptr noundef nonnull %2, ptr noundef nonnull %9, ptr noundef %29, ptr noundef nonnull %28)
  call void @_ZdaPv(ptr noundef nonnull %28) #13
  %31 = call noundef i32 @_Z11checkStatusPKcii(ptr noundef nonnull @.str.12, i32 noundef 0, i32 noundef %30)
  %.not25 = icmp eq i32 %31, 0
  br i1 %.not25, label %35, label %32

32:                                               ; preds = %25
  %bcmp = call i32 @bcmp(ptr noundef nonnull dereferenceable(16) @_ZL16sourceMessageRef, ptr noundef nonnull dereferenceable(16) %14, i64 16)
  %.not26 = icmp eq i32 %bcmp, 0
  br i1 %.not26, label %35, label %33

33:                                               ; preds = %32
  %34 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  br label %35

35:                                               ; preds = %25, %33, %32, %22
  %.2 = phi i32 [ %23, %22 ], [ %30, %25 ], [ -2, %33 ], [ %30, %32 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #11
  br label %36

36:                                               ; preds = %35, %0
  %.3 = phi i32 [ %.2, %35 ], [ %20, %0 ]
  %37 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  %38 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, ptr noundef nonnull @.str.12)
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, ptr noundef nonnull @.str.17)
  %40 = icmp eq i32 %.3, 0
  %.str.18..str.19 = select i1 %40, ptr @.str.18, ptr @.str.19
  %41 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.18..str.19)
  %42 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  call void @_ZdaPv(ptr noundef nonnull %14) #13
  call void @_ZdaPv(ptr noundef nonnull %9) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #11
  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_GetSizePrivateKeyType2(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_InitPrivateKeyType2(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_SetPrivateKeyType2(ptr noundef, ptr noundef, ptr noundef, 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_GetBufferSizePrivateKey(ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @ippsRSADecrypt_OAEP_rmf(ptr 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,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass