; LLVM IR from Triple-Z/Crypto-DSA :: src/dsa.ll (ZN5MyDSA12VerificationEPK9SignedMsg)

; 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.SignedMsg = type { %"class.std::__cxx11::basic_string", ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%class.MyDSA = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }

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

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

declare ptr @BN_new() #1

declare void @BN_clear_free(ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5MyDSA12VerificationEPK9SignedMsg(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef %1) #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %17 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %18 = call ptr @BN_new()
  store ptr %18, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %19 = call ptr @BN_new()
  store ptr %19, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %20 = call ptr @BN_new()
  store ptr %20, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %21 = call ptr @BN_new()
  store ptr %21, ptr %8, align 8, !tbaa !5
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %class.SignedMsg, ptr %23, i32 0, i32 2
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  %26 = getelementptr inbounds %class.MyDSA, ptr %17, i32 0, i32 1
  %27 = load ptr, ptr %26, align 8, !tbaa !14
  %28 = getelementptr inbounds %class.MyDSA, ptr %17, i32 0, i32 5
  %29 = load ptr, ptr %28, align 8, !tbaa !16
  %30 = call ptr @BN_mod_inverse(ptr noundef %22, ptr noundef %25, ptr noundef %27, ptr noundef %29)
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = getelementptr inbounds %class.MyDSA, ptr %17, i32 0, i32 1
  %34 = load ptr, ptr %33, align 8, !tbaa !14
  %35 = getelementptr inbounds %class.MyDSA, ptr %17, i32 0, i32 5
  %36 = load ptr, ptr %35, align 8, !tbaa !16
  %37 = call i32 @BN_div(ptr noundef null, ptr noundef %31, ptr noundef %32, ptr noundef %34, ptr noundef %36)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %38 = call ptr @BN_new()
  store ptr %38, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %class.SignedMsg, ptr %39, i32 0, i32 0
  %41 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %40) #4
  store ptr %41, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %class.SignedMsg, ptr %43, i32 0, i32 0
  %45 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %44) #4
  %46 = call ptr @SHA1(ptr noundef %42, i64 noundef %45, ptr noundef null)
  store ptr %46, ptr %11, align 8, !tbaa !5
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = call ptr @BN_bin2bn(ptr noundef %47, i32 noundef 20, ptr noundef %48)
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %class.MyDSA, ptr %17, i32 0, i32 1
  %54 = load ptr, ptr %53, align 8, !tbaa !14
  %55 = getelementptr inbounds %class.MyDSA, ptr %17, i32 0, i32 5
  %56 = load ptr, ptr %55, align 8, !tbaa !16
  %57 = call i32 @BN_mod_mul(ptr noundef %50, ptr noundef %51, ptr noundef %52, ptr noundef %54, ptr noundef %56)
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds %class.SignedMsg, ptr %59, i32 0, i32 1
  %61 = load ptr, ptr %60, align 8, !tbaa !17
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = getelementptr inbounds %class.MyDSA, ptr %17, i32 0, i32 1
  %64 = load ptr, ptr %63, align 8, !tbaa !14
  %65 = getelementptr inbounds %class.MyDSA, ptr %17, i32 0, i32 5
  %66 = load ptr, ptr %65, align 8, !tbaa !16
  %67 = call i32 @BN_mod_mul(ptr noundef %58, ptr noundef %61, ptr noundef %62, ptr noundef %64, ptr noundef %66)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %68 = call ptr @BN_new()
  store ptr %68, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %69 = call ptr @BN_new()
  store ptr %69, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %70 = call ptr @BN_new()
  store ptr %70, ptr %14, align 8, !tbaa !5
  %71 = load ptr, ptr %13, align 8, !tbaa !5
  %72 = getelementptr inbounds %class.MyDSA, ptr %17, i32 0, i32 2
  %73 = load ptr, ptr %72, align 8, !tbaa !18
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds %class.MyDSA, ptr %17, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8, !tbaa !19
  %77 = getelementptr inbounds %class.MyDSA, ptr %17, i32 0, i32 5
  %78 = load ptr, ptr %77, align 8, !tbaa !16
  %79 = call i32 @BN_mod_exp(ptr noundef %71, ptr noundef %73, ptr noundef %74, ptr noundef %76, ptr noundef %78)
  %80 = load ptr, ptr %14, align 8, !tbaa !5
  %81 = getelementptr inbounds %class.MyDSA, ptr %17, i32 0, i32 3
  %82 = load ptr, ptr %81, align 8, !tbaa !20
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds %class.MyDSA, ptr %17, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8, !tbaa !19
  %86 = getelementptr inbounds %class.MyDSA, ptr %17, i32 0, i32 5
  %87 = load ptr, ptr %86, align 8, !tbaa !16
  %88 = call i32 @BN_mod_exp(ptr noundef %80, ptr noundef %82, ptr noundef %83, ptr noundef %85, ptr noundef %87)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %89 = call ptr @BN_new()
  store ptr %89, ptr %15, align 8, !tbaa !5
  %90 = load ptr, ptr %15, align 8, !tbaa !5
  %91 = load ptr, ptr %13, align 8, !tbaa !5
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = getelementptr inbounds %class.MyDSA, ptr %17, i32 0, i32 0
  %94 = load ptr, ptr %93, align 8, !tbaa !19
  %95 = getelementptr inbounds %class.MyDSA, ptr %17, i32 0, i32 5
  %96 = load ptr, ptr %95, align 8, !tbaa !16
  %97 = call i32 @BN_mod_mul(ptr noundef %90, ptr noundef %91, ptr noundef %92, ptr noundef %94, ptr noundef %96)
  %98 = load ptr, ptr %12, align 8, !tbaa !5
  %99 = load ptr, ptr %15, align 8, !tbaa !5
  %100 = getelementptr inbounds %class.MyDSA, ptr %17, i32 0, i32 1
  %101 = load ptr, ptr %100, align 8, !tbaa !14
  %102 = getelementptr inbounds %class.MyDSA, ptr %17, i32 0, i32 5
  %103 = load ptr, ptr %102, align 8, !tbaa !16
  %104 = call i32 @BN_div(ptr noundef null, ptr noundef %98, ptr noundef %99, ptr noundef %101, ptr noundef %103)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 -1, ptr %16, align 4, !tbaa !21
  %105 = load ptr, ptr %12, align 8, !tbaa !5
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = getelementptr inbounds %class.SignedMsg, ptr %106, i32 0, i32 1
  %108 = load ptr, ptr %107, align 8, !tbaa !17
  %109 = call i32 @BN_cmp(ptr noundef %105, ptr noundef %108)
  %110 = icmp eq i32 %109, 0
  br i1 %110, label %111, label %112

111:                                              ; preds = %2
  store i32 1, ptr %16, align 4, !tbaa !21
  br label %113

112:                                              ; preds = %2
  store i32 0, ptr %16, align 4, !tbaa !21
  br label %113

113:                                              ; preds = %112, %111
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  call void @BN_clear_free(ptr noundef %114)
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  call void @BN_clear_free(ptr noundef %115)
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  call void @BN_clear_free(ptr noundef %116)
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  call void @BN_clear_free(ptr noundef %117)
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  call void @BN_clear_free(ptr noundef %118)
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  call void @BN_clear_free(ptr noundef %119)
  %120 = load ptr, ptr %14, align 8, !tbaa !5
  call void @BN_clear_free(ptr noundef %120)
  %121 = load ptr, ptr %15, align 8, !tbaa !5
  call void @BN_clear_free(ptr noundef %121)
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  call void @BN_clear_free(ptr noundef %122)
  %123 = load i32, ptr %16, align 4, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret i32 %123
}

declare ptr @BN_mod_inverse(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @BN_div(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

declare ptr @SHA1(ptr noundef, i64 noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

declare ptr @BN_bin2bn(ptr noundef, i32 noundef, ptr noundef) #1

declare i32 @BN_mod_mul(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @BN_mod_exp(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @BN_cmp(ptr noundef, ptr noundef) #1

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 40}
!10 = !{!"_ZTS9SignedMsg", !11, i64 0, !6, i64 32, !6, i64 40}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !13, i64 8, !7, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!15, !6, i64 8}
!15 = !{!"_ZTS5MyDSA", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!16 = !{!15, !6, i64 40}
!17 = !{!10, !6, i64 32}
!18 = !{!15, !6, i64 16}
!19 = !{!15, !6, i64 0}
!20 = !{!15, !6, i64 24}
!21 = !{!22, !22, i64 0}
!22 = !{!"int", !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"

declare ptr @BN_new() local_unnamed_addr #0

declare void @BN_clear_free(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_ZN5MyDSA12VerificationEPK9SignedMsg(ptr nocapture noundef nonnull readonly align 8 dereferenceable(56) %0, ptr noundef %1) local_unnamed_addr #1 align 2 {
  %3 = tail call ptr @BN_new()
  %4 = tail call ptr @BN_new()
  %5 = tail call ptr @BN_new()
  %6 = tail call ptr @BN_new()
  %7 = getelementptr inbounds i8, ptr %1, i64 40
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !13
  %11 = getelementptr inbounds i8, ptr %0, i64 40
  %12 = load ptr, ptr %11, align 8, !tbaa !15
  %13 = tail call ptr @BN_mod_inverse(ptr noundef %6, ptr noundef %8, ptr noundef %10, ptr noundef %12)
  %14 = load ptr, ptr %9, align 8, !tbaa !13
  %15 = load ptr, ptr %11, align 8, !tbaa !15
  %16 = tail call i32 @BN_div(ptr noundef null, ptr noundef %3, ptr noundef %6, ptr noundef %14, ptr noundef %15)
  %17 = tail call ptr @BN_new()
  %18 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #3
  %19 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #3
  %20 = tail call ptr @SHA1(ptr noundef %18, i64 noundef %19, ptr noundef null)
  %21 = tail call ptr @BN_bin2bn(ptr noundef %20, i32 noundef 20, ptr noundef %17)
  %22 = load ptr, ptr %9, align 8, !tbaa !13
  %23 = load ptr, ptr %11, align 8, !tbaa !15
  %24 = tail call i32 @BN_mod_mul(ptr noundef %4, ptr noundef %17, ptr noundef %3, ptr noundef %22, ptr noundef %23)
  %25 = getelementptr inbounds i8, ptr %1, i64 32
  %26 = load ptr, ptr %25, align 8, !tbaa !16
  %27 = load ptr, ptr %9, align 8, !tbaa !13
  %28 = load ptr, ptr %11, align 8, !tbaa !15
  %29 = tail call i32 @BN_mod_mul(ptr noundef %5, ptr noundef %26, ptr noundef %3, ptr noundef %27, ptr noundef %28)
  %30 = tail call ptr @BN_new()
  %31 = tail call ptr @BN_new()
  %32 = tail call ptr @BN_new()
  %33 = getelementptr inbounds i8, ptr %0, i64 16
  %34 = load ptr, ptr %33, align 8, !tbaa !17
  %35 = load ptr, ptr %0, align 8, !tbaa !18
  %36 = load ptr, ptr %11, align 8, !tbaa !15
  %37 = tail call i32 @BN_mod_exp(ptr noundef %31, ptr noundef %34, ptr noundef %4, ptr noundef %35, ptr noundef %36)
  %38 = getelementptr inbounds i8, ptr %0, i64 24
  %39 = load ptr, ptr %38, align 8, !tbaa !19
  %40 = load ptr, ptr %0, align 8, !tbaa !18
  %41 = load ptr, ptr %11, align 8, !tbaa !15
  %42 = tail call i32 @BN_mod_exp(ptr noundef %32, ptr noundef %39, ptr noundef %5, ptr noundef %40, ptr noundef %41)
  %43 = tail call ptr @BN_new()
  %44 = load ptr, ptr %0, align 8, !tbaa !18
  %45 = load ptr, ptr %11, align 8, !tbaa !15
  %46 = tail call i32 @BN_mod_mul(ptr noundef %43, ptr noundef %31, ptr noundef %32, ptr noundef %44, ptr noundef %45)
  %47 = load ptr, ptr %9, align 8, !tbaa !13
  %48 = load ptr, ptr %11, align 8, !tbaa !15
  %49 = tail call i32 @BN_div(ptr noundef null, ptr noundef %30, ptr noundef %43, ptr noundef %47, ptr noundef %48)
  %50 = load ptr, ptr %25, align 8, !tbaa !16
  %51 = tail call i32 @BN_cmp(ptr noundef %30, ptr noundef %50)
  %52 = icmp eq i32 %51, 0
  %. = zext i1 %52 to i32
  tail call void @BN_clear_free(ptr noundef %3)
  tail call void @BN_clear_free(ptr noundef %4)
  tail call void @BN_clear_free(ptr noundef %5)
  tail call void @BN_clear_free(ptr noundef %6)
  tail call void @BN_clear_free(ptr noundef %17)
  tail call void @BN_clear_free(ptr noundef %31)
  tail call void @BN_clear_free(ptr noundef %32)
  tail call void @BN_clear_free(ptr noundef %43)
  tail call void @BN_clear_free(ptr noundef %30)
  ret i32 %.
}

declare ptr @BN_mod_inverse(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @BN_div(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

declare ptr @SHA1(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

declare ptr @BN_bin2bn(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

declare i32 @BN_mod_mul(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @BN_mod_exp(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @BN_cmp(ptr noundef, ptr noundef) local_unnamed_addr #0

attributes #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 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 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 #3 = { 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, !9, i64 40}
!6 = !{!"_ZTS9SignedMsg", !7, i64 0, !9, i64 32, !9, i64 40}
!7 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !8, i64 0, !12, i64 8, !10, i64 16}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!14, !9, i64 8}
!14 = !{!"_ZTS5MyDSA", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32, !9, i64 40, !9, i64 48}
!15 = !{!14, !9, i64 40}
!16 = !{!6, !9, i64 32}
!17 = !{!14, !9, i64 16}
!18 = !{!14, !9, i64 0}
!19 = !{!14, !9, i64 24}


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