; LLVM IR from intel/cryptography-primitives :: examples/dsa (dsa-dlp-sha-1-verification)

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

@_ZL1G = external hidden global %class.BigNumber, align 8
@_ZL1P = external hidden global %class.BigNumber, align 8
@_ZL1Q = external hidden global %class.BigNumber, align 8
@_ZL1Y = external hidden global %class.BigNumber, align 8
@_ZL4sigR = external hidden global %class.BigNumber, align 8
@_ZL4sigS = external hidden global %class.BigNumber, align 8
@_ZL3MSG = external hidden global [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [47 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: nounwind
declare void @_ZN9BigNumberD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca [20 x i8], align 16
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %class.BigNumber, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #9
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #9
  store ptr null, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #9
  store i32 0, ptr %4, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #9
  store i32 160, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  store i32 20, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %15 = call ptr @ippsHashMethod_SHA1()
  store ptr %15, ptr %8, align 8, !tbaa !9
  br label %16

16:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 20, ptr %9) #9
  call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 20, i1 false)
  %17 = getelementptr inbounds [20 x i8], ptr %9, i64 0, i64 0
  %18 = load ptr, ptr %8, align 8, !tbaa !9
  %19 = call i32 @ippsHashMessage_rmf(ptr noundef @_ZL3MSG, i32 noundef 6, ptr noundef %17, ptr noundef %18)
  store i32 %19, ptr %2, align 4, !tbaa !5
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = icmp ne i32 0, %20
  br i1 %21, label %22, label %23

22:                                               ; preds = %16
  store i32 2, ptr %10, align 4
  br label %104

23:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  store i32 160, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #9
  %24 = call noundef i32 @_Z14bitSizeInWordsi(i32 noundef 160)
  call void @_ZN9BigNumberC1EPKji13IppsBigNumSGN(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef null, i32 noundef %24, i32 noundef 1)
  %25 = getelementptr inbounds [20 x i8], ptr %9, i64 0, i64 0
  %26 = invoke noundef i32 @_Z14bitSizeInBytesi(i32 noundef 160)
          to label %27 unwind label %35

27:                                               ; preds = %23
  %28 = invoke noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %29 unwind label %35

29:                                               ; preds = %27
  %30 = invoke i32 @ippsSetOctString_BN(ptr noundef %25, i32 noundef %26, ptr noundef %28)
          to label %31 unwind label %35

31:                                               ; preds = %29
  store i32 %30, ptr %2, align 4, !tbaa !5
  %32 = load i32, ptr %2, align 4, !tbaa !5
  %33 = icmp ne i32 0, %32
  br i1 %33, label %34, label %39

34:                                               ; preds = %31
  store i32 2, ptr %10, align 4
  br label %103

35:                                               ; preds = %91, %89, %87, %85, %78, %76, %69, %67, %65, %63, %56, %52, %45, %39, %29, %27, %23
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %13, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %14, align 4
  call void @_ZN9BigNumberD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 20, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  br label %131

39:                                               ; preds = %31
  %40 = invoke i32 @ippsDLPGetSize(i32 noundef 1024, i32 noundef 160, ptr noundef %5)
          to label %41 unwind label %35

41:                                               ; preds = %39
  store i32 %40, ptr %2, align 4, !tbaa !5
  %42 = load i32, ptr %2, align 4, !tbaa !5
  %43 = icmp ne i32 0, %42
  br i1 %43, label %44, label %45

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

45:                                               ; preds = %41
  %46 = load i32, ptr %5, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %47) #10
          to label %49 unwind label %35

49:                                               ; preds = %45
  store ptr %48, ptr %3, align 8, !tbaa !9
  %50 = load ptr, ptr %3, align 8, !tbaa !9
  %51 = icmp eq ptr null, %50
  br i1 %51, label %52, label %56

52:                                               ; preds = %49
  %53 = load i32, ptr %5, align 4, !tbaa !5
  %54 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %53)
          to label %55 unwind label %35

55:                                               ; preds = %52
  store i32 -1, ptr %1, align 4
  store i32 1, ptr %10, align 4
  br label %103

56:                                               ; preds = %49
  %57 = load ptr, ptr %3, align 8, !tbaa !9
  %58 = invoke i32 @ippsDLPInit(i32 noundef 1024, i32 noundef 160, ptr noundef %57)
          to label %59 unwind label %35

59:                                               ; preds = %56
  store i32 %58, ptr %2, align 4, !tbaa !5
  %60 = load i32, ptr %2, align 4, !tbaa !5
  %61 = icmp ne i32 0, %60
  br i1 %61, label %62, label %63

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

63:                                               ; preds = %59
  %64 = invoke noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL1P)
          to label %65 unwind label %35

65:                                               ; preds = %63
  %66 = invoke noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL1Q)
          to label %67 unwind label %35

67:                                               ; preds = %65
  %68 = invoke noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL1G)
          to label %69 unwind label %35

69:                                               ; preds = %67
  %70 = load ptr, ptr %3, align 8, !tbaa !9
  %71 = invoke i32 @ippsDLPSet(ptr noundef %64, ptr noundef %66, ptr noundef %68, ptr noundef %70)
          to label %72 unwind label %35

72:                                               ; preds = %69
  store i32 %71, ptr %2, align 4, !tbaa !5
  %73 = load i32, ptr %2, align 4, !tbaa !5
  %74 = icmp ne i32 0, %73
  br i1 %74, label %75, label %76

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

76:                                               ; preds = %72
  %77 = invoke noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL1Y)
          to label %78 unwind label %35

78:                                               ; preds = %76
  %79 = load ptr, ptr %3, align 8, !tbaa !9
  %80 = invoke i32 @ippsDLPSetKeyPair(ptr noundef null, ptr noundef %77, ptr noundef %79)
          to label %81 unwind label %35

81:                                               ; preds = %78
  store i32 %80, ptr %2, align 4, !tbaa !5
  %82 = load i32, ptr %2, align 4, !tbaa !5
  %83 = icmp ne i32 0, %82
  br i1 %83, label %84, label %85

84:                                               ; preds = %81
  store i32 2, ptr %10, align 4
  br label %103

85:                                               ; preds = %81
  %86 = invoke noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %87 unwind label %35

87:                                               ; preds = %85
  %88 = invoke noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL4sigR)
          to label %89 unwind label %35

89:                                               ; preds = %87
  %90 = invoke noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL4sigS)
          to label %91 unwind label %35

91:                                               ; preds = %89
  %92 = load ptr, ptr %3, align 8, !tbaa !9
  %93 = invoke i32 @ippsDLPVerifyDSA(ptr noundef %86, ptr noundef %88, ptr noundef %90, ptr noundef %4, ptr noundef %92)
          to label %94 unwind label %35

94:                                               ; preds = %91
  store i32 %93, ptr %2, align 4, !tbaa !5
  %95 = load i32, ptr %2, align 4, !tbaa !5
  %96 = icmp ne i32 0, %95
  br i1 %96, label %97, label %98

97:                                               ; preds = %94
  store i32 2, ptr %10, align 4
  br label %103

98:                                               ; preds = %94
  %99 = load i32, ptr %4, align 4, !tbaa !11
  %100 = icmp ne i32 0, %99
  br i1 %100, label %101, label %102

101:                                              ; preds = %98
  store i32 -2, ptr %2, align 4, !tbaa !5
  br label %102

102:                                              ; preds = %101, %98
  store i32 0, ptr %10, align 4
  br label %103

103:                                              ; preds = %102, %97, %84, %75, %62, %55, %44, %34
  call void @_ZN9BigNumberD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  br label %104

104:                                              ; preds = %103, %22
  call void @llvm.lifetime.end.p0(i64 20, ptr %9) #9
  %105 = load i32, ptr %10, align 4
  switch i32 %105, label %129 [
    i32 0, label %106
    i32 2, label %108
  ]

106:                                              ; preds = %104
  br label %107

107:                                              ; preds = %106
  br label %108

108:                                              ; preds = %107, %104
  %109 = load ptr, ptr %3, align 8, !tbaa !9
  %110 = icmp ne ptr null, %109
  br i1 %110, label %111, label %116

111:                                              ; preds = %108
  %112 = load ptr, ptr %3, align 8, !tbaa !9
  %113 = icmp eq ptr %112, null
  br i1 %113, label %115, label %114

114:                                              ; preds = %111
  call void @_ZdaPv(ptr noundef %112) #11
  br label %115

115:                                              ; preds = %114, %111
  br label %116

116:                                              ; preds = %115, %108
  %117 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  %118 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, ptr noundef @.str.15)
  %119 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, ptr noundef @.str.17)
  %120 = load i32, ptr %2, align 4, !tbaa !5
  %121 = icmp eq i32 0, %120
  br i1 %121, label %122, label %124

122:                                              ; preds = %116
  %123 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
  br label %126

124:                                              ; preds = %116
  %125 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
  br label %126

126:                                              ; preds = %124, %122
  %127 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
  %128 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %128, ptr %1, align 4
  store i32 1, ptr %10, align 4
  br label %129

129:                                              ; preds = %126, %104
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  %130 = load i32, ptr %1, align 4
  ret i32 %130

131:                                              ; preds = %35
  %132 = load ptr, ptr %13, align 8
  %133 = load i32, ptr %14, align 4
  %134 = insertvalue { ptr, i32 } poison, ptr %132, 0
  %135 = insertvalue { ptr, i32 } %134, i32 %133, 1
  resume { ptr, i32 } %135
}

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

declare ptr @ippsHashMethod_SHA1() #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

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

declare void @_ZN9BigNumberC1EPKji13IppsBigNumSGN(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i32 noundef, i32 noundef) unnamed_addr #3

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 #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 }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { 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"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS11IppDLResult", !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 }

@_ZL1G = external hidden global %class.BigNumber, align 8
@_ZL1P = external hidden global %class.BigNumber, align 8
@_ZL1Q = external hidden global %class.BigNumber, align 8
@_ZL1Y = external hidden global %class.BigNumber, align 8
@_ZL4sigR = external hidden global %class.BigNumber, align 8
@_ZL4sigS = external hidden global %class.BigNumber, align 8
@_ZL3MSG = external hidden global [6 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [47 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: nounwind
declare void @_ZN9BigNumberD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca [20 x i8], align 16
  %4 = alloca %class.BigNumber, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #10
  store i32 0, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #10
  store i32 0, ptr %2, align 4, !tbaa !9
  %5 = tail call ptr @ippsHashMethod_SHA1()
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(20) %3, i8 0, i64 20, i1 false)
  %6 = call i32 @ippsHashMessage_rmf(ptr noundef nonnull @_ZL3MSG, i32 noundef 6, ptr noundef nonnull %3, ptr noundef %5)
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %7, label %.thread49

.thread49:                                        ; preds = %0
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #10
  br label %45

7:                                                ; preds = %0
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #10
  %8 = call noundef i32 @_Z14bitSizeInWordsi(i32 noundef 160)
  call void @_ZN9BigNumberC1EPKji13IppsBigNumSGN(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef null, i32 noundef %8, i32 noundef 1)
  %9 = call noundef i32 @_Z14bitSizeInBytesi(i32 noundef 160)
  %10 = call noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %11 = invoke i32 @ippsSetOctString_BN(ptr noundef nonnull %3, i32 noundef %9, ptr noundef %10)
          to label %12 unwind label %13

12:                                               ; preds = %7
  %.not36 = icmp eq i32 %11, 0
  br i1 %.not36, label %15, label %43

13:                                               ; preds = %35, %31, %25, %22, %18, %15, %7
  %14 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN9BigNumberD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #10
  resume { ptr, i32 } %14

15:                                               ; preds = %12
  %16 = invoke i32 @ippsDLPGetSize(i32 noundef 1024, i32 noundef 160, ptr noundef nonnull %2)
          to label %17 unwind label %13

17:                                               ; preds = %15
  %.not37 = icmp eq i32 %16, 0
  br i1 %.not37, label %18, label %43

18:                                               ; preds = %17
  %19 = load i32, ptr %2, align 4, !tbaa !9
  %20 = sext i32 %19 to i64
  %21 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %20) #11
          to label %22 unwind label %13

22:                                               ; preds = %18
  %23 = invoke i32 @ippsDLPInit(i32 noundef 1024, i32 noundef 160, ptr noundef nonnull %21)
          to label %24 unwind label %13

24:                                               ; preds = %22
  %.not38 = icmp eq i32 %23, 0
  br i1 %.not38, label %25, label %44

25:                                               ; preds = %24
  %26 = call noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL1P)
  %27 = call noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL1Q)
  %28 = call noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL1G)
  %29 = invoke i32 @ippsDLPSet(ptr noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef nonnull %21)
          to label %30 unwind label %13

30:                                               ; preds = %25
  %.not39 = icmp eq i32 %29, 0
  br i1 %.not39, label %31, label %44

31:                                               ; preds = %30
  %32 = call noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL1Y)
  %33 = invoke i32 @ippsDLPSetKeyPair(ptr noundef null, ptr noundef %32, ptr noundef nonnull %21)
          to label %34 unwind label %13

34:                                               ; preds = %31
  %.not40 = icmp eq i32 %33, 0
  br i1 %.not40, label %35, label %44

35:                                               ; preds = %34
  %36 = call noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %37 = call noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL4sigR)
  %38 = call noundef ptr @_ZNK9BigNumbercvP9_cpBigNumEv(ptr noundef nonnull align 8 dereferenceable(16) @_ZL4sigS)
  %39 = invoke i32 @ippsDLPVerifyDSA(ptr noundef %36, ptr noundef %37, ptr noundef %38, ptr noundef nonnull %1, ptr noundef nonnull %21)
          to label %40 unwind label %13

40:                                               ; preds = %35
  %.not41 = icmp eq i32 %39, 0
  br i1 %.not41, label %41, label %44

41:                                               ; preds = %40
  %42 = load i32, ptr %1, align 4, !tbaa !5
  %.not42 = icmp eq i32 %42, 0
  %spec.select = select i1 %.not42, i32 0, i32 -2
  br label %44

43:                                               ; preds = %17, %12
  %.121 = phi i32 [ %11, %12 ], [ %16, %17 ]
  call void @_ZN9BigNumberD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #10
  br label %45

44:                                               ; preds = %41, %24, %30, %34, %40
  %.121.ph = phi i32 [ %39, %40 ], [ %33, %34 ], [ %29, %30 ], [ %23, %24 ], [ %spec.select, %41 ]
  call void @_ZN9BigNumberD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #10
  call void @_ZdaPv(ptr noundef nonnull %21) #12
  br label %45

45:                                               ; preds = %43, %.thread49, %44
  %.2224853 = phi i32 [ %6, %.thread49 ], [ %.121.ph, %44 ], [ %.121, %43 ]
  %46 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  %47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, ptr noundef nonnull @.str.15)
  %48 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, ptr noundef nonnull @.str.17)
  %49 = icmp eq i32 %.2224853, 0
  %.str.18..str.19 = select i1 %49, ptr @.str.18, ptr @.str.19
  %50 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.18..str.19)
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #10
  ret i32 %.2224853
}

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

declare ptr @ippsHashMethod_SHA1() local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

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

declare void @_ZN9BigNumberC1EPKji13IppsBigNumSGN(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i32 noundef, i32 noundef) unnamed_addr #3

declare i32 @ippsSetOctString_BN(ptr noundef, i32 noundef, ptr 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 @__gxx_personality_v0(...)

; 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

declare i32 @ippsDLPGetSize(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 #7

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

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

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

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

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

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

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

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 #8 = { 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 #9 = { 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 #10 = { nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { 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 = !{!"_ZTS11IppDLResult", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}


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