; LLVM IR from intel/cryptography-primitives :: sources/ippcp (pcpdlpinit)

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

%struct._cpDLP = type { i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

; Function Attrs: nounwind uwtable
define dso_local i32 @ippsDLPInit(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
  %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 i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store i32 %0, ptr %5, align 4, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !9
  %19 = load ptr, ptr %7, align 8, !tbaa !9
  %20 = icmp eq ptr null, %19
  br i1 %20, label %21, label %22

21:                                               ; preds = %3
  store i32 -8, ptr %4, align 4
  br label %207

22:                                               ; preds = %3
  %23 = load i32, ptr %5, align 4, !tbaa !5
  %24 = icmp sgt i32 512, %23
  br i1 %24, label %25, label %26

25:                                               ; preds = %22
  store i32 -6, ptr %4, align 4
  br label %207

26:                                               ; preds = %22
  %27 = load i32, ptr %6, align 4, !tbaa !5
  %28 = icmp sgt i32 160, %27
  br i1 %28, label %29, label %30

29:                                               ; preds = %26
  store i32 -6, ptr %4, align 4
  br label %207

30:                                               ; preds = %26
  %31 = load i32, ptr %6, align 4, !tbaa !5
  %32 = load i32, ptr %5, align 4, !tbaa !5
  %33 = icmp sge i32 %31, %32
  br i1 %33, label %34, label %35

34:                                               ; preds = %30
  store i32 -6, ptr %4, align 4
  br label %207

35:                                               ; preds = %30
  %36 = load ptr, ptr %7, align 8, !tbaa !9
  %37 = call i64 @IPP_UINT_PTR(ptr noundef %36)
  %38 = trunc i64 %37 to i32
  %39 = xor i32 541346896, %38
  %40 = load ptr, ptr %7, align 8, !tbaa !9
  %41 = getelementptr inbounds %struct._cpDLP, ptr %40, i32 0, i32 0
  store i32 %39, ptr %41, align 8, !tbaa !11
  %42 = load ptr, ptr %7, align 8, !tbaa !9
  %43 = getelementptr inbounds %struct._cpDLP, ptr %42, i32 0, i32 1
  store i32 0, ptr %43, align 4, !tbaa !13
  %44 = load i32, ptr %5, align 4, !tbaa !5
  %45 = load ptr, ptr %7, align 8, !tbaa !9
  %46 = getelementptr inbounds %struct._cpDLP, ptr %45, i32 0, i32 2
  store i32 %44, ptr %46, align 8, !tbaa !14
  %47 = load i32, ptr %6, align 4, !tbaa !5
  %48 = load ptr, ptr %7, align 8, !tbaa !9
  %49 = getelementptr inbounds %struct._cpDLP, ptr %48, i32 0, i32 3
  store i32 %47, ptr %49, align 4, !tbaa !15
  %50 = load ptr, ptr %7, align 8, !tbaa !9
  %51 = getelementptr inbounds %struct._cpDLP, ptr %50, i32 0, i32 4
  store i32 0, ptr %51, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %52 = load ptr, ptr %7, align 8, !tbaa !9
  store ptr %52, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %53 = load i32, ptr %5, align 4, !tbaa !5
  %54 = add nsw i32 %53, 31
  %55 = ashr i32 %54, 5
  store i32 %55, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %56 = load i32, ptr %6, align 4, !tbaa !5
  %57 = add nsw i32 %56, 31
  %58 = ashr i32 %57, 5
  store i32 %58, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %59 = load i32, ptr %5, align 4, !tbaa !5
  %60 = load i32, ptr %6, align 4, !tbaa !5
  %61 = call i32 @cpMontExpScratchBufferSize(i32 noundef %59, i32 noundef %60, i32 noundef 2)
  store i32 %61, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %62 = load i32, ptr %6, align 4, !tbaa !5
  %63 = call i32 @cpMontExp_WinSize(i32 noundef %62)
  store i32 %63, ptr %18, align 4, !tbaa !5
  %64 = load i32, ptr %18, align 4, !tbaa !5
  %65 = icmp sgt i32 %64, 1
  %66 = zext i1 %65 to i64
  %67 = select i1 %65, i32 1, i32 0
  %68 = load ptr, ptr %7, align 8, !tbaa !9
  %69 = getelementptr inbounds %struct._cpDLP, ptr %68, i32 0, i32 4
  store i32 %67, ptr %69, align 8, !tbaa !16
  %70 = load i32, ptr %15, align 4, !tbaa !5
  %71 = call i32 @ippsBigNumGetSize(i32 noundef %70, ptr noundef %8)
  %72 = load i32, ptr %16, align 4, !tbaa !5
  %73 = call i32 @ippsBigNumGetSize(i32 noundef %72, ptr noundef %9)
  %74 = load i32, ptr %5, align 4, !tbaa !5
  %75 = call i32 @gsModEngineGetSize(i32 noundef %74, i32 noundef 6, ptr noundef %10)
  %76 = load i32, ptr %6, align 4, !tbaa !5
  %77 = call i32 @gsModEngineGetSize(i32 noundef %76, i32 noundef 6, ptr noundef %11)
  %78 = load i32, ptr %5, align 4, !tbaa !5
  %79 = call i32 @ippsPrimeGetSize(i32 noundef %78, ptr noundef %12)
  %80 = load i32, ptr %5, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  %82 = call i32 @cpBigNumListGetSize(i32 noundef %81, i32 noundef 8)
  store i32 %82, ptr %13, align 4, !tbaa !5
  %83 = load ptr, ptr %14, align 8, !tbaa !9
  %84 = getelementptr inbounds i8, ptr %83, i64 112
  store ptr %84, ptr %14, align 8, !tbaa !9
  %85 = load ptr, ptr %14, align 8, !tbaa !9
  %86 = load ptr, ptr %7, align 8, !tbaa !9
  %87 = getelementptr inbounds %struct._cpDLP, ptr %86, i32 0, i32 5
  store ptr %85, ptr %87, align 8, !tbaa !17
  %88 = load i32, ptr %10, align 4, !tbaa !5
  %89 = load ptr, ptr %14, align 8, !tbaa !9
  %90 = sext i32 %88 to i64
  %91 = getelementptr inbounds i8, ptr %89, i64 %90
  store ptr %91, ptr %14, align 8, !tbaa !9
  %92 = load ptr, ptr %7, align 8, !tbaa !9
  %93 = getelementptr inbounds %struct._cpDLP, ptr %92, i32 0, i32 6
  store ptr null, ptr %93, align 8, !tbaa !18
  %94 = load ptr, ptr %14, align 8, !tbaa !9
  %95 = load ptr, ptr %7, align 8, !tbaa !9
  %96 = getelementptr inbounds %struct._cpDLP, ptr %95, i32 0, i32 7
  store ptr %94, ptr %96, align 8, !tbaa !19
  %97 = load i32, ptr %11, align 4, !tbaa !5
  %98 = load ptr, ptr %14, align 8, !tbaa !9
  %99 = sext i32 %97 to i64
  %100 = getelementptr inbounds i8, ptr %98, i64 %99
  store ptr %100, ptr %14, align 8, !tbaa !9
  %101 = load ptr, ptr %14, align 8, !tbaa !9
  %102 = load ptr, ptr %7, align 8, !tbaa !9
  %103 = getelementptr inbounds %struct._cpDLP, ptr %102, i32 0, i32 8
  store ptr %101, ptr %103, align 8, !tbaa !20
  %104 = load i32, ptr %8, align 4, !tbaa !5
  %105 = load ptr, ptr %14, align 8, !tbaa !9
  %106 = sext i32 %104 to i64
  %107 = getelementptr inbounds i8, ptr %105, i64 %106
  store ptr %107, ptr %14, align 8, !tbaa !9
  %108 = load ptr, ptr %14, align 8, !tbaa !9
  %109 = load ptr, ptr %7, align 8, !tbaa !9
  %110 = getelementptr inbounds %struct._cpDLP, ptr %109, i32 0, i32 9
  store ptr %108, ptr %110, align 8, !tbaa !21
  %111 = load i32, ptr %9, align 4, !tbaa !5
  %112 = load ptr, ptr %14, align 8, !tbaa !9
  %113 = sext i32 %111 to i64
  %114 = getelementptr inbounds i8, ptr %112, i64 %113
  store ptr %114, ptr %14, align 8, !tbaa !9
  %115 = load ptr, ptr %14, align 8, !tbaa !9
  %116 = load ptr, ptr %7, align 8, !tbaa !9
  %117 = getelementptr inbounds %struct._cpDLP, ptr %116, i32 0, i32 10
  store ptr %115, ptr %117, align 8, !tbaa !22
  %118 = load i32, ptr %8, align 4, !tbaa !5
  %119 = load ptr, ptr %14, align 8, !tbaa !9
  %120 = sext i32 %118 to i64
  %121 = getelementptr inbounds i8, ptr %119, i64 %120
  store ptr %121, ptr %14, align 8, !tbaa !9
  %122 = load ptr, ptr %14, align 8, !tbaa !9
  %123 = load ptr, ptr %7, align 8, !tbaa !9
  %124 = getelementptr inbounds %struct._cpDLP, ptr %123, i32 0, i32 11
  store ptr %122, ptr %124, align 8, !tbaa !23
  %125 = load i32, ptr %12, align 4, !tbaa !5
  %126 = load ptr, ptr %14, align 8, !tbaa !9
  %127 = sext i32 %125 to i64
  %128 = getelementptr inbounds i8, ptr %126, i64 %127
  store ptr %128, ptr %14, align 8, !tbaa !9
  %129 = load ptr, ptr %14, align 8, !tbaa !9
  %130 = load ptr, ptr %14, align 8, !tbaa !9
  %131 = call i64 @IPP_INT_PTR(ptr noundef %130)
  %132 = and i64 %131, 63
  %133 = xor i64 %132, -1
  %134 = add nsw i64 %133, 1
  %135 = and i64 %134, 63
  %136 = getelementptr inbounds i8, ptr %129, i64 %135
  %137 = load ptr, ptr %7, align 8, !tbaa !9
  %138 = getelementptr inbounds %struct._cpDLP, ptr %137, i32 0, i32 12
  store ptr %136, ptr %138, align 8, !tbaa !24
  %139 = load i32, ptr %17, align 4, !tbaa !5
  %140 = load ptr, ptr %14, align 8, !tbaa !9
  %141 = sext i32 %139 to i64
  %142 = getelementptr inbounds i8, ptr %140, i64 %141
  store ptr %142, ptr %14, align 8, !tbaa !9
  %143 = load ptr, ptr %14, align 8, !tbaa !9
  %144 = load ptr, ptr %7, align 8, !tbaa !9
  %145 = getelementptr inbounds %struct._cpDLP, ptr %144, i32 0, i32 13
  store ptr %143, ptr %145, align 8, !tbaa !25
  %146 = load i32, ptr %13, align 4, !tbaa !5
  %147 = load ptr, ptr %14, align 8, !tbaa !9
  %148 = sext i32 %146 to i64
  %149 = getelementptr inbounds i8, ptr %147, i64 %148
  store ptr %149, ptr %14, align 8, !tbaa !9
  %150 = load ptr, ptr %7, align 8, !tbaa !9
  %151 = getelementptr inbounds %struct._cpDLP, ptr %150, i32 0, i32 14
  store ptr null, ptr %151, align 8, !tbaa !26
  %152 = load ptr, ptr %7, align 8, !tbaa !9
  %153 = getelementptr inbounds %struct._cpDLP, ptr %152, i32 0, i32 15
  store ptr null, ptr %153, align 8, !tbaa !27
  %154 = load i32, ptr %18, align 4, !tbaa !5
  %155 = icmp sgt i32 %154, 1
  br i1 %155, label %156, label %165

156:                                              ; preds = %35
  %157 = load ptr, ptr %14, align 8, !tbaa !9
  %158 = load ptr, ptr %14, align 8, !tbaa !9
  %159 = call i64 @IPP_INT_PTR(ptr noundef %158)
  %160 = and i64 %159, 7
  %161 = xor i64 %160, -1
  %162 = add nsw i64 %161, 1
  %163 = and i64 %162, 7
  %164 = getelementptr inbounds i8, ptr %157, i64 %163
  br label %166

165:                                              ; preds = %35
  br label %166

166:                                              ; preds = %165, %156
  %167 = phi ptr [ %164, %156 ], [ null, %165 ]
  %168 = load ptr, ptr %7, align 8, !tbaa !9
  %169 = getelementptr inbounds %struct._cpDLP, ptr %168, i32 0, i32 14
  store ptr %167, ptr %169, align 8, !tbaa !26
  %170 = load ptr, ptr %7, align 8, !tbaa !9
  %171 = getelementptr inbounds %struct._cpDLP, ptr %170, i32 0, i32 5
  %172 = load ptr, ptr %171, align 8, !tbaa !17
  %173 = load i32, ptr %5, align 4, !tbaa !5
  %174 = call ptr @gsModArithDLP()
  %175 = call i32 @gsModEngineInit(ptr noundef %172, ptr noundef null, i32 noundef %173, i32 noundef 6, ptr noundef %174)
  %176 = load ptr, ptr %7, align 8, !tbaa !9
  %177 = getelementptr inbounds %struct._cpDLP, ptr %176, i32 0, i32 7
  %178 = load ptr, ptr %177, align 8, !tbaa !19
  %179 = load i32, ptr %6, align 4, !tbaa !5
  %180 = call ptr @gsModArithDLP()
  %181 = call i32 @gsModEngineInit(ptr noundef %178, ptr noundef null, i32 noundef %179, i32 noundef 6, ptr noundef %180)
  %182 = load i32, ptr %15, align 4, !tbaa !5
  %183 = load ptr, ptr %7, align 8, !tbaa !9
  %184 = getelementptr inbounds %struct._cpDLP, ptr %183, i32 0, i32 8
  %185 = load ptr, ptr %184, align 8, !tbaa !20
  %186 = call i32 @ippsBigNumInit(i32 noundef %182, ptr noundef %185)
  %187 = load i32, ptr %15, align 4, !tbaa !5
  %188 = load ptr, ptr %7, align 8, !tbaa !9
  %189 = getelementptr inbounds %struct._cpDLP, ptr %188, i32 0, i32 10
  %190 = load ptr, ptr %189, align 8, !tbaa !22
  %191 = call i32 @ippsBigNumInit(i32 noundef %187, ptr noundef %190)
  %192 = load i32, ptr %16, align 4, !tbaa !5
  %193 = load ptr, ptr %7, align 8, !tbaa !9
  %194 = getelementptr inbounds %struct._cpDLP, ptr %193, i32 0, i32 9
  %195 = load ptr, ptr %194, align 8, !tbaa !21
  %196 = call i32 @ippsBigNumInit(i32 noundef %192, ptr noundef %195)
  %197 = load i32, ptr %5, align 4, !tbaa !5
  %198 = load ptr, ptr %7, align 8, !tbaa !9
  %199 = getelementptr inbounds %struct._cpDLP, ptr %198, i32 0, i32 11
  %200 = load ptr, ptr %199, align 8, !tbaa !23
  %201 = call i32 @ippsPrimeInit(i32 noundef %197, ptr noundef %200)
  %202 = load i32, ptr %5, align 4, !tbaa !5
  %203 = add nsw i32 %202, 1
  %204 = load ptr, ptr %7, align 8, !tbaa !9
  %205 = getelementptr inbounds %struct._cpDLP, ptr %204, i32 0, i32 13
  %206 = load ptr, ptr %205, align 8, !tbaa !25
  call void @cpBigNumListInit(i32 noundef %203, i32 noundef 8, ptr noundef %206)
  store i32 0, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %207

207:                                              ; preds = %166, %34, %29, %25, %21
  %208 = load i32, ptr %4, align 4
  ret i32 %208
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @IPP_UINT_PTR(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
declare hidden i32 @cpMontExpScratchBufferSize(i32 noundef, i32 noundef, i32 noundef) #0

declare i32 @cpMontExp_WinSize(i32 noundef) #3

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

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

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

declare i32 @cpBigNumListGetSize(i32 noundef, i32 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @IPP_INT_PTR(ptr noundef) #1

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

declare ptr @gsModArithDLP() #3

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

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

declare void @cpBigNumListInit(i32 noundef, i32 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

attributes #0 = { 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 #1 = { inlinehint 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 #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 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_cpDLP", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104}
!13 = !{!12, !6, i64 4}
!14 = !{!12, !6, i64 8}
!15 = !{!12, !6, i64 12}
!16 = !{!12, !6, i64 16}
!17 = !{!12, !10, i64 24}
!18 = !{!12, !10, i64 32}
!19 = !{!12, !10, i64 40}
!20 = !{!12, !10, i64 48}
!21 = !{!12, !10, i64 56}
!22 = !{!12, !10, i64 64}
!23 = !{!12, !10, i64 72}
!24 = !{!12, !10, i64 80}
!25 = !{!12, !10, i64 88}
!26 = !{!12, !10, i64 96}
!27 = !{!12, !10, i64 104}


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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -8, 1) i32 @ippsDLPInit(i32 noundef %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = icmp eq ptr %2, null
  br i1 %9, label %93, label %10

10:                                               ; preds = %3
  %11 = icmp sgt i32 %0, 511
  %12 = icmp sgt i32 %1, 159
  %or.cond.not82 = and i1 %11, %12
  %.not = icmp slt i32 %1, %0
  %or.cond79 = and i1 %.not, %or.cond.not82
  br i1 %or.cond79, label %13, label %93

13:                                               ; preds = %10
  %14 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %2)
  %15 = trunc i64 %14 to i32
  %16 = xor i32 %15, 541346896
  store i32 %16, ptr %2, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %2, i64 4
  store i32 0, ptr %17, align 4, !tbaa !11
  %18 = getelementptr inbounds i8, ptr %2, i64 8
  store i32 %0, ptr %18, align 8, !tbaa !12
  %19 = getelementptr inbounds i8, ptr %2, i64 12
  store i32 %1, ptr %19, align 4, !tbaa !13
  %20 = getelementptr inbounds i8, ptr %2, i64 16
  store i32 0, ptr %20, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  %21 = add nuw nsw i32 %0, 31
  %22 = lshr i32 %21, 5
  %23 = add nuw nsw i32 %1, 31
  %24 = lshr i32 %23, 5
  %25 = tail call i32 @cpMontExpScratchBufferSize(i32 noundef %0, i32 noundef %1, i32 noundef 2)
  %26 = tail call i32 @cpMontExp_WinSize(i32 noundef %1) #5
  %27 = icmp sgt i32 %26, 1
  %28 = zext i1 %27 to i32
  store i32 %28, ptr %20, align 8, !tbaa !14
  %29 = call i32 @ippsBigNumGetSize(i32 noundef %22, ptr noundef nonnull %4) #5
  %30 = call i32 @ippsBigNumGetSize(i32 noundef %24, ptr noundef nonnull %5) #5
  %31 = call i32 @gsModEngineGetSize(i32 noundef %0, i32 noundef 6, ptr noundef nonnull %6) #5
  %32 = call i32 @gsModEngineGetSize(i32 noundef %1, i32 noundef 6, ptr noundef nonnull %7) #5
  %33 = call i32 @ippsPrimeGetSize(i32 noundef %0, ptr noundef nonnull %8) #5
  %34 = add nuw nsw i32 %0, 1
  %35 = call i32 @cpBigNumListGetSize(i32 noundef %34, i32 noundef 8) #5
  %36 = getelementptr inbounds i8, ptr %2, i64 112
  %37 = getelementptr inbounds i8, ptr %2, i64 24
  store ptr %36, ptr %37, align 8, !tbaa !15
  %38 = load i32, ptr %6, align 4, !tbaa !16
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds i8, ptr %36, i64 %39
  %41 = getelementptr inbounds i8, ptr %2, i64 32
  store ptr null, ptr %41, align 8, !tbaa !17
  %42 = getelementptr inbounds i8, ptr %2, i64 40
  store ptr %40, ptr %42, align 8, !tbaa !18
  %43 = load i32, ptr %7, align 4, !tbaa !16
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds i8, ptr %40, i64 %44
  %46 = getelementptr inbounds i8, ptr %2, i64 48
  store ptr %45, ptr %46, align 8, !tbaa !19
  %47 = load i32, ptr %4, align 4, !tbaa !16
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds i8, ptr %45, i64 %48
  %50 = getelementptr inbounds i8, ptr %2, i64 56
  store ptr %49, ptr %50, align 8, !tbaa !20
  %51 = load i32, ptr %5, align 4, !tbaa !16
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds i8, ptr %49, i64 %52
  %54 = getelementptr inbounds i8, ptr %2, i64 64
  store ptr %53, ptr %54, align 8, !tbaa !21
  %55 = getelementptr inbounds i8, ptr %53, i64 %48
  %56 = getelementptr inbounds i8, ptr %2, i64 72
  store ptr %55, ptr %56, align 8, !tbaa !22
  %57 = load i32, ptr %8, align 4, !tbaa !16
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds i8, ptr %55, i64 %58
  %60 = call i64 @IPP_INT_PTR(ptr noundef %59)
  %61 = sub i64 0, %60
  %62 = and i64 %61, 63
  %63 = getelementptr inbounds i8, ptr %59, i64 %62
  %64 = getelementptr inbounds i8, ptr %2, i64 80
  store ptr %63, ptr %64, align 8, !tbaa !23
  %65 = sext i32 %25 to i64
  %66 = getelementptr inbounds i8, ptr %59, i64 %65
  %67 = getelementptr inbounds i8, ptr %2, i64 88
  store ptr %66, ptr %67, align 8, !tbaa !24
  %68 = getelementptr inbounds i8, ptr %2, i64 96
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %68, i8 0, i64 16, i1 false)
  br i1 %27, label %69, label %76

69:                                               ; preds = %13
  %70 = sext i32 %35 to i64
  %71 = getelementptr inbounds i8, ptr %66, i64 %70
  %72 = call i64 @IPP_INT_PTR(ptr noundef %71)
  %73 = sub i64 0, %72
  %74 = and i64 %73, 7
  %75 = getelementptr inbounds i8, ptr %71, i64 %74
  br label %76

76:                                               ; preds = %13, %69
  %77 = phi ptr [ %75, %69 ], [ null, %13 ]
  store ptr %77, ptr %68, align 8, !tbaa !25
  %78 = load ptr, ptr %37, align 8, !tbaa !15
  %79 = call ptr @gsModArithDLP() #5
  %80 = call i32 @gsModEngineInit(ptr noundef %78, ptr noundef null, i32 noundef %0, i32 noundef 6, ptr noundef %79) #5
  %81 = load ptr, ptr %42, align 8, !tbaa !18
  %82 = call ptr @gsModArithDLP() #5
  %83 = call i32 @gsModEngineInit(ptr noundef %81, ptr noundef null, i32 noundef %1, i32 noundef 6, ptr noundef %82) #5
  %84 = load ptr, ptr %46, align 8, !tbaa !19
  %85 = call i32 @ippsBigNumInit(i32 noundef %22, ptr noundef %84) #5
  %86 = load ptr, ptr %54, align 8, !tbaa !21
  %87 = call i32 @ippsBigNumInit(i32 noundef %22, ptr noundef %86) #5
  %88 = load ptr, ptr %50, align 8, !tbaa !20
  %89 = call i32 @ippsBigNumInit(i32 noundef %24, ptr noundef %88) #5
  %90 = load ptr, ptr %56, align 8, !tbaa !22
  %91 = call i32 @ippsPrimeInit(i32 noundef %0, ptr noundef %90) #5
  %92 = load ptr, ptr %67, align 8, !tbaa !24
  call void @cpBigNumListInit(i32 noundef %34, i32 noundef 8, ptr noundef %92) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  br label %93

93:                                               ; preds = %10, %3, %76
  %.0 = phi i32 [ 0, %76 ], [ -8, %3 ], [ -6, %10 ]
  ret i32 %.0
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @IPP_UINT_PTR(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare hidden i32 @cpMontExpScratchBufferSize(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare i32 @cpMontExp_WinSize(i32 noundef) local_unnamed_addr #3

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

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

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

declare i32 @cpBigNumListGetSize(i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @IPP_INT_PTR(ptr noundef) local_unnamed_addr #1

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

declare ptr @gsModArithDLP() local_unnamed_addr #3

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

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

declare void @cpBigNumListInit(i32 noundef, i32 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

attributes #0 = { 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 #1 = { inlinehint 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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, !7, i64 0}
!6 = !{!"_cpDLP", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!6, !7, i64 8}
!13 = !{!6, !7, i64 12}
!14 = !{!6, !7, i64 16}
!15 = !{!6, !10, i64 24}
!16 = !{!7, !7, i64 0}
!17 = !{!6, !10, i64 32}
!18 = !{!6, !10, i64 40}
!19 = !{!6, !10, i64 48}
!20 = !{!6, !10, i64 56}
!21 = !{!6, !10, i64 64}
!22 = !{!6, !10, i64 72}
!23 = !{!6, !10, i64 80}
!24 = !{!6, !10, i64 88}
!25 = !{!6, !10, i64 96}


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