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

; 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._cpHashAttr = type { i32, i32, i32, i32, [2 x i64] }
%struct._cpHashCtx = type { i32, i32, i64, i64, ptr, ptr, [8 x i64], i32, [128 x i8] }
%struct._cpGFpEC = type { i32, i32, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct._cpGFp = type { i32, i32, ptr }
%struct._gsModEngine = type { ptr, i32, i32, i32, i32, i32, ptr, ptr, ptr, i64, ptr, ptr, ptr, ptr, i32, i32, ptr }
%struct._cpGFpECPoint = type { i32, i32, i32, ptr }

@cpHashAlgAttr = external constant [0 x %struct._cpHashAttr], align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @ippsGFpECSetPointHashBackCompatible(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef %6) #0 {
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca [64 x i8], align 16
  %22 = alloca i32, align 4
  %23 = alloca [9 x i64], align 16
  %24 = alloca i32, align 4
  %25 = alloca %struct._cpHashCtx, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i64, align 8
  %28 = alloca [4 x i8], align 1
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca i32, align 4
  store i32 %0, ptr %9, align 4, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !9
  store i32 %2, ptr %11, align 4, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !9
  store ptr %4, ptr %13, align 8, !tbaa !9
  store i32 %5, ptr %14, align 4, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %32 = load i32, ptr %14, align 4, !tbaa !5
  %33 = call i32 @cpValidHashAlg(i32 noundef %32)
  store i32 %33, ptr %14, align 4, !tbaa !5
  %34 = load i32, ptr %14, align 4, !tbaa !5
  %35 = icmp eq i32 0, %34
  br i1 %35, label %36, label %37

36:                                               ; preds = %7
  store i32 -14, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %199

37:                                               ; preds = %7
  %38 = load i32, ptr %11, align 4, !tbaa !5
  %39 = icmp slt i32 %38, 0
  br i1 %39, label %40, label %41

40:                                               ; preds = %37
  store i32 -15, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %199

41:                                               ; preds = %37
  %42 = load i32, ptr %11, align 4, !tbaa !5
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %44, label %48

44:                                               ; preds = %41
  %45 = load ptr, ptr %10, align 8, !tbaa !9
  %46 = icmp ne ptr %45, null
  br i1 %46, label %48, label %47

47:                                               ; preds = %44
  store i32 -8, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %199

48:                                               ; preds = %44, %41
  %49 = load ptr, ptr %12, align 8, !tbaa !9
  %50 = icmp eq ptr null, %49
  br i1 %50, label %51, label %52

51:                                               ; preds = %48
  store i32 -8, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %199

52:                                               ; preds = %48
  %53 = load ptr, ptr %13, align 8, !tbaa !9
  %54 = icmp eq ptr null, %53
  br i1 %54, label %55, label %56

55:                                               ; preds = %52
  store i32 -8, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %199

56:                                               ; preds = %52
  %57 = load ptr, ptr %15, align 8, !tbaa !9
  %58 = icmp eq ptr null, %57
  br i1 %58, label %59, label %60

59:                                               ; preds = %56
  store i32 -8, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %199

60:                                               ; preds = %56
  %61 = load ptr, ptr %13, align 8, !tbaa !9
  %62 = getelementptr inbounds %struct._cpGFpEC, ptr %61, i32 0, i32 0
  %63 = load i32, ptr %62, align 8, !tbaa !11
  %64 = load ptr, ptr %13, align 8, !tbaa !9
  %65 = call i64 @IPP_UINT_PTR(ptr noundef %64)
  %66 = trunc i64 %65 to i32
  %67 = xor i32 %63, %66
  %68 = icmp eq i32 %67, 1129136461
  br i1 %68, label %70, label %69

69:                                               ; preds = %60
  store i32 -13, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %199

70:                                               ; preds = %60
  %71 = load ptr, ptr %13, align 8, !tbaa !9
  %72 = getelementptr inbounds %struct._cpGFpEC, ptr %71, i32 0, i32 2
  %73 = load ptr, ptr %72, align 8, !tbaa !13
  store ptr %73, ptr %16, align 8, !tbaa !9
  %74 = load ptr, ptr %16, align 8, !tbaa !9
  %75 = getelementptr inbounds %struct._cpGFp, ptr %74, i32 0, i32 2
  %76 = load ptr, ptr %75, align 8, !tbaa !14
  store ptr %76, ptr %17, align 8, !tbaa !9
  %77 = load ptr, ptr %17, align 8, !tbaa !9
  %78 = getelementptr inbounds %struct._gsModEngine, ptr %77, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8, !tbaa !16
  %80 = icmp eq ptr %79, null
  br i1 %80, label %82, label %81

81:                                               ; preds = %70
  store i32 -5, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %199

82:                                               ; preds = %70
  %83 = load ptr, ptr %12, align 8, !tbaa !9
  %84 = getelementptr inbounds %struct._cpGFpECPoint, ptr %83, i32 0, i32 0
  %85 = load i32, ptr %84, align 8, !tbaa !19
  %86 = load ptr, ptr %12, align 8, !tbaa !9
  %87 = call i64 @IPP_UINT_PTR(ptr noundef %86)
  %88 = trunc i64 %87 to i32
  %89 = xor i32 %85, %88
  %90 = icmp eq i32 %89, 1129136462
  br i1 %90, label %92, label %91

91:                                               ; preds = %82
  store i32 -13, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %199

92:                                               ; preds = %82
  %93 = load ptr, ptr %12, align 8, !tbaa !9
  %94 = getelementptr inbounds %struct._cpGFpECPoint, ptr %93, i32 0, i32 2
  %95 = load i32, ptr %94, align 8, !tbaa !21
  %96 = load ptr, ptr %17, align 8, !tbaa !9
  %97 = getelementptr inbounds %struct._gsModEngine, ptr %96, i32 0, i32 3
  %98 = load i32, ptr %97, align 8, !tbaa !22
  %99 = icmp ne i32 %95, %98
  br i1 %99, label %100, label %101

100:                                              ; preds = %92
  store i32 -11, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %199

101:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %102 = load ptr, ptr %17, align 8, !tbaa !9
  %103 = getelementptr inbounds %struct._gsModEngine, ptr %102, i32 0, i32 3
  %104 = load i32, ptr %103, align 8, !tbaa !22
  store i32 %104, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %105 = load ptr, ptr %17, align 8, !tbaa !9
  %106 = getelementptr inbounds %struct._gsModEngine, ptr %105, i32 0, i32 8
  %107 = load ptr, ptr %106, align 8, !tbaa !23
  store ptr %107, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %108 = load i32, ptr %14, align 4, !tbaa !5
  %109 = zext i32 %108 to i64
  %110 = getelementptr inbounds [0 x %struct._cpHashAttr], ptr @cpHashAlgAttr, i64 0, i64 %109
  %111 = getelementptr inbounds %struct._cpHashAttr, ptr %110, i32 0, i32 1
  %112 = load i32, ptr %111, align 4, !tbaa !24
  store i32 %112, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 72, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 240, ptr %25) #4
  %113 = load i32, ptr %14, align 4, !tbaa !5
  %114 = call i32 @ippsHashInit(ptr noundef %25, i32 noundef %113)
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %115 = load ptr, ptr %17, align 8, !tbaa !9
  %116 = call ptr @gsModPoolAlloc(ptr noundef %115, i32 noundef 1)
  store ptr %116, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %117 = load i32, ptr %9, align 4, !tbaa !5
  %118 = zext i32 %117 to i64
  store i64 %118, ptr %27, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  %119 = getelementptr inbounds [4 x i8], ptr %28, i64 0, i64 0
  %120 = call i32 @cpToOctStr_BNU(ptr noundef %119, i32 noundef 4, ptr noundef %27, i32 noundef 1)
  %121 = getelementptr inbounds [4 x i8], ptr %28, i64 0, i64 0
  %122 = call i32 @ippsHashUpdate(ptr noundef %121, i32 noundef 4, ptr noundef %25)
  %123 = load ptr, ptr %10, align 8, !tbaa !9
  %124 = load i32, ptr %11, align 4, !tbaa !5
  %125 = call i32 @ippsHashUpdate(ptr noundef %123, i32 noundef %124, ptr noundef %25)
  %126 = getelementptr inbounds [64 x i8], ptr %21, i64 0, i64 0
  %127 = call i32 @ippsHashFinal(ptr noundef %126, ptr noundef %25)
  %128 = getelementptr inbounds [9 x i64], ptr %23, i64 0, i64 0
  %129 = getelementptr inbounds [64 x i8], ptr %21, i64 0, i64 0
  %130 = load i32, ptr %22, align 4, !tbaa !5
  %131 = call i32 @cpFromOctStr_BNU(ptr noundef %128, ptr noundef %129, i32 noundef %130)
  store i32 %131, ptr %24, align 4, !tbaa !5
  %132 = getelementptr inbounds [9 x i64], ptr %23, i64 0, i64 0
  %133 = load i32, ptr %24, align 4, !tbaa !5
  %134 = load ptr, ptr %20, align 8, !tbaa !9
  %135 = load i32, ptr %19, align 4, !tbaa !5
  %136 = call i32 @cpMod_BNU(ptr noundef %132, i32 noundef %133, ptr noundef %134, i32 noundef %135)
  store i32 %136, ptr %24, align 4, !tbaa !5
  %137 = load ptr, ptr %26, align 8, !tbaa !9
  %138 = getelementptr inbounds [9 x i64], ptr %23, i64 0, i64 0
  %139 = load i32, ptr %24, align 4, !tbaa !5
  %140 = load ptr, ptr %17, align 8, !tbaa !9
  %141 = call ptr @cpGFpSet(ptr noundef %137, ptr noundef %138, i32 noundef %139, ptr noundef %140)
  %142 = load ptr, ptr %12, align 8, !tbaa !9
  %143 = load ptr, ptr %26, align 8, !tbaa !9
  %144 = load ptr, ptr %13, align 8, !tbaa !9
  %145 = call i32 @gfec_MakePoint(ptr noundef %142, ptr noundef %143, ptr noundef %144)
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %147, label %193

147:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %148 = load ptr, ptr %12, align 8, !tbaa !9
  %149 = getelementptr inbounds %struct._cpGFpECPoint, ptr %148, i32 0, i32 3
  %150 = load ptr, ptr %149, align 8, !tbaa !27
  %151 = load ptr, ptr %12, align 8, !tbaa !9
  %152 = getelementptr inbounds %struct._cpGFpECPoint, ptr %151, i32 0, i32 2
  %153 = load i32, ptr %152, align 8, !tbaa !21
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds i64, ptr %150, i64 %154
  store ptr %155, ptr %29, align 8, !tbaa !9
  %156 = load ptr, ptr %29, align 8, !tbaa !9
  %157 = getelementptr inbounds i64, ptr %156, i64 0
  %158 = load i64, ptr %157, align 8, !tbaa !26
  %159 = and i64 %158, 1
  %160 = icmp ne i64 %159, 0
  br i1 %160, label %161, label %166

161:                                              ; preds = %147
  %162 = load ptr, ptr %29, align 8, !tbaa !9
  %163 = load ptr, ptr %29, align 8, !tbaa !9
  %164 = load ptr, ptr %17, align 8, !tbaa !9
  %165 = call ptr @cpGFpNeg(ptr noundef %162, ptr noundef %163, ptr noundef %164)
  br label %166

166:                                              ; preds = %161, %147
  %167 = load ptr, ptr %13, align 8, !tbaa !9
  %168 = getelementptr inbounds %struct._cpGFpEC, ptr %167, i32 0, i32 3
  %169 = load i32, ptr %168, align 8, !tbaa !28
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %171, label %191

171:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  %172 = load ptr, ptr %13, align 8, !tbaa !9
  %173 = getelementptr inbounds %struct._cpGFpEC, ptr %172, i32 0, i32 9
  %174 = load ptr, ptr %173, align 8, !tbaa !29
  store ptr %174, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  %175 = load ptr, ptr %17, align 8, !tbaa !9
  %176 = getelementptr inbounds %struct._gsModEngine, ptr %175, i32 0, i32 3
  %177 = load i32, ptr %176, align 8, !tbaa !22
  store i32 %177, ptr %31, align 4, !tbaa !5
  %178 = load ptr, ptr %30, align 8, !tbaa !9
  %179 = load i32, ptr %31, align 4, !tbaa !5
  %180 = call i32 @cpGFpElementIsEquChunk(ptr noundef %178, i32 noundef %179, i64 noundef 1)
  %181 = icmp ne i32 %180, 0
  br i1 %181, label %190, label %182

182:                                              ; preds = %171
  %183 = load ptr, ptr %12, align 8, !tbaa !9
  %184 = load ptr, ptr %12, align 8, !tbaa !9
  %185 = load ptr, ptr %30, align 8, !tbaa !9
  %186 = load i32, ptr %31, align 4, !tbaa !5
  %187 = load ptr, ptr %13, align 8, !tbaa !9
  %188 = load ptr, ptr %15, align 8, !tbaa !9
  %189 = call ptr @gfec_MulPoint(ptr noundef %183, ptr noundef %184, ptr noundef %185, i32 noundef %186, ptr noundef %187, ptr noundef %188)
  br label %190

190:                                              ; preds = %182, %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  br label %191

191:                                              ; preds = %190, %166
  %192 = load ptr, ptr %17, align 8, !tbaa !9
  call void @gsModPoolFree(ptr noundef %192, i32 noundef 1)
  store i32 0, ptr %8, align 4
  store i32 1, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  br label %194

193:                                              ; preds = %101
  store i32 0, ptr %18, align 4
  br label %194

194:                                              ; preds = %193, %191
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  %195 = load i32, ptr %18, align 4
  switch i32 %195, label %198 [
    i32 0, label %196
  ]

196:                                              ; preds = %194
  %197 = load ptr, ptr %17, align 8, !tbaa !9
  call void @gsModPoolFree(ptr noundef %197, i32 noundef 1)
  store i32 -1016, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %198

198:                                              ; preds = %196, %194
  call void @llvm.lifetime.end.p0(i64 240, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 72, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %199

199:                                              ; preds = %198, %100, %91, %81, %69, %59, %55, %51, %47, %40, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  %200 = load i32, ptr %8, align 4
  ret i32 %200
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @cpValidHashAlg(i32 noundef) #2

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @gsModPoolAlloc(ptr noundef, i32 noundef) #2

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @cpMod_BNU(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @cpGFpNeg(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @cpGFpElementIsEquChunk(ptr noundef, i32 noundef, i64 noundef) #2

declare ptr @gfec_MulPoint(ptr noundef, ptr noundef, ptr noundef, i32 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) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @gsModPoolFree(ptr noundef, i32 noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = !{!"_cpGFpEC", !6, i64 0, !6, i64 4, !10, i64 8, !6, i64 16, !6, i64 20, !6, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !6, i64 64, !6, i64 68, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128}
!13 = !{!12, !10, i64 8}
!14 = !{!15, !10, i64 8}
!15 = !{!"_cpGFp", !6, i64 0, !6, i64 4, !10, i64 8}
!16 = !{!17, !10, i64 0}
!17 = !{!"_gsModEngine", !10, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !18, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !6, i64 96, !6, i64 100, !10, i64 104}
!18 = !{!"long long", !7, i64 0}
!19 = !{!20, !6, i64 0}
!20 = !{!"_cpGFpECPoint", !6, i64 0, !6, i64 4, !6, i64 8, !10, i64 16}
!21 = !{!20, !6, i64 8}
!22 = !{!17, !6, i64 16}
!23 = !{!17, !10, i64 48}
!24 = !{!25, !6, i64 4}
!25 = !{!"_cpHashAttr", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !7, i64 16}
!26 = !{!18, !18, i64 0}
!27 = !{!20, !10, i64 16}
!28 = !{!12, !6, i64 16}
!29 = !{!12, !10, i64 56}


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

%struct._cpHashAttr = type { i32, i32, i32, i32, [2 x i64] }
%struct._cpHashCtx = type { i32, i32, i64, i64, ptr, ptr, [8 x i64], i32, [128 x i8] }

@cpHashAlgAttr = external local_unnamed_addr constant [0 x %struct._cpHashAttr], align 8

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1016, 1) i32 @ippsGFpECSetPointHashBackCompatible(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef %6) local_unnamed_addr #0 {
  %8 = alloca [64 x i8], align 16
  %9 = alloca [9 x i64], align 16
  %10 = alloca %struct._cpHashCtx, align 8
  %11 = alloca i64, align 8
  %12 = alloca [4 x i8], align 1
  %13 = tail call i32 @cpValidHashAlg(i32 noundef %5)
  %14 = icmp eq i32 %13, 0
  br i1 %14, label %87, label %15

15:                                               ; preds = %7
  %16 = icmp slt i32 %2, 0
  br i1 %16, label %87, label %17

17:                                               ; preds = %15
  %18 = icmp ne i32 %2, 0
  %19 = icmp eq ptr %1, null
  %or.cond.not71 = and i1 %19, %18
  %20 = icmp eq ptr %3, null
  %or.cond66 = or i1 %or.cond.not71, %20
  %21 = icmp eq ptr %4, null
  %or.cond67 = or i1 %or.cond66, %21
  %22 = icmp eq ptr %6, null
  %or.cond68 = or i1 %or.cond67, %22
  br i1 %or.cond68, label %87, label %23

23:                                               ; preds = %17
  %24 = load i32, ptr %4, align 8, !tbaa !5
  %25 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %4)
  %26 = trunc i64 %25 to i32
  %27 = xor i32 %24, %26
  %28 = icmp eq i32 %27, 1129136461
  br i1 %28, label %29, label %87

29:                                               ; preds = %23
  %30 = getelementptr inbounds i8, ptr %4, i64 8
  %31 = load ptr, ptr %30, align 8, !tbaa !11
  %32 = getelementptr inbounds i8, ptr %31, i64 8
  %33 = load ptr, ptr %32, align 8, !tbaa !12
  %34 = load ptr, ptr %33, align 8, !tbaa !14
  %35 = icmp eq ptr %34, null
  br i1 %35, label %36, label %87

36:                                               ; preds = %29
  %37 = load i32, ptr %3, align 8, !tbaa !17
  %38 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %3)
  %39 = trunc i64 %38 to i32
  %40 = xor i32 %37, %39
  %41 = icmp eq i32 %40, 1129136462
  br i1 %41, label %42, label %87

42:                                               ; preds = %36
  %43 = getelementptr inbounds i8, ptr %3, i64 8
  %44 = load i32, ptr %43, align 8, !tbaa !19
  %45 = getelementptr inbounds i8, ptr %33, i64 16
  %46 = load i32, ptr %45, align 8, !tbaa !20
  %.not = icmp eq i32 %44, %46
  br i1 %.not, label %47, label %87

47:                                               ; preds = %42
  %48 = getelementptr inbounds i8, ptr %33, i64 48
  %49 = load ptr, ptr %48, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #4
  %50 = zext i32 %13 to i64
  %51 = getelementptr inbounds [0 x %struct._cpHashAttr], ptr @cpHashAlgAttr, i64 0, i64 %50, i32 1
  %52 = load i32, ptr %51, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 240, ptr nonnull %10) #4
  %53 = call i32 @ippsHashInit(ptr noundef nonnull %10, i32 noundef %13) #4
  %54 = call ptr @gsModPoolAlloc(ptr noundef nonnull %33, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  %55 = zext i32 %0 to i64
  store i64 %55, ptr %11, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #4
  %56 = call i32 @cpToOctStr_BNU(ptr noundef nonnull %12, i32 noundef 4, ptr noundef nonnull %11, i32 noundef 1) #4
  %57 = call i32 @ippsHashUpdate(ptr noundef nonnull %12, i32 noundef 4, ptr noundef nonnull %10) #4
  %58 = call i32 @ippsHashUpdate(ptr noundef %1, i32 noundef %2, ptr noundef nonnull %10) #4
  %59 = call i32 @ippsHashFinal(ptr noundef nonnull %8, ptr noundef nonnull %10) #4
  %60 = call i32 @cpFromOctStr_BNU(ptr noundef nonnull %9, ptr noundef nonnull %8, i32 noundef %52) #4
  %61 = call i32 @cpMod_BNU(ptr noundef nonnull %9, i32 noundef %60, ptr noundef %49, i32 noundef %44)
  %62 = call ptr @cpGFpSet(ptr noundef %54, ptr noundef nonnull %9, i32 noundef %61, ptr noundef nonnull %33) #4
  %63 = call i32 @gfec_MakePoint(ptr noundef nonnull %3, ptr noundef %54, ptr noundef nonnull %4) #4
  %.not62 = icmp eq i32 %63, 0
  br i1 %.not62, label %85, label %64

64:                                               ; preds = %47
  %65 = getelementptr inbounds i8, ptr %3, i64 16
  %66 = load ptr, ptr %65, align 8, !tbaa !25
  %67 = load i32, ptr %43, align 8, !tbaa !19
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds i64, ptr %66, i64 %68
  %70 = load i64, ptr %69, align 8, !tbaa !24
  %71 = and i64 %70, 1
  %.not63 = icmp eq i64 %71, 0
  br i1 %.not63, label %74, label %72

72:                                               ; preds = %64
  %73 = call ptr @cpGFpNeg(ptr noundef nonnull %69, ptr noundef nonnull %69, ptr noundef nonnull %33)
  br label %74

74:                                               ; preds = %72, %64
  %75 = getelementptr inbounds i8, ptr %4, i64 16
  %76 = load i32, ptr %75, align 8, !tbaa !26
  %.not64 = icmp eq i32 %76, 0
  br i1 %.not64, label %84, label %77

77:                                               ; preds = %74
  %78 = getelementptr inbounds i8, ptr %4, i64 56
  %79 = load ptr, ptr %78, align 8, !tbaa !27
  %80 = load i32, ptr %45, align 8, !tbaa !20
  %81 = call i32 @cpGFpElementIsEquChunk(ptr noundef %79, i32 noundef %80, i64 noundef 1)
  %.not65 = icmp eq i32 %81, 0
  br i1 %.not65, label %82, label %84

82:                                               ; preds = %77
  %83 = call ptr @gfec_MulPoint(ptr noundef nonnull %3, ptr noundef nonnull %3, ptr noundef %79, i32 noundef %80, ptr noundef nonnull %4, ptr noundef nonnull %6) #4
  br label %84

84:                                               ; preds = %77, %82, %74
  call void @gsModPoolFree(ptr noundef nonnull %33, i32 noundef 1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  br label %86

85:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @gsModPoolFree(ptr noundef nonnull %33, i32 noundef 1)
  br label %86

86:                                               ; preds = %84, %85
  %.1 = phi i32 [ -1016, %85 ], [ 0, %84 ]
  call void @llvm.lifetime.end.p0(i64 240, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #4
  br label %87

87:                                               ; preds = %42, %36, %29, %23, %17, %15, %7, %86
  %.2 = phi i32 [ %.1, %86 ], [ -14, %7 ], [ -15, %15 ], [ -8, %17 ], [ -13, %23 ], [ -5, %29 ], [ -13, %36 ], [ -11, %42 ]
  ret i32 %.2
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @cpValidHashAlg(i32 noundef) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @gsModPoolAlloc(ptr noundef, i32 noundef) local_unnamed_addr #2

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @cpMod_BNU(ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @cpGFpNeg(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @cpGFpElementIsEquChunk(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #2

declare ptr @gfec_MulPoint(ptr noundef, ptr noundef, ptr noundef, i32 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) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @gsModPoolFree(ptr noundef, i32 noundef) local_unnamed_addr #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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, !7, i64 0}
!6 = !{!"_cpGFpEC", !7, i64 0, !7, i64 4, !10, i64 8, !7, i64 16, !7, i64 20, !7, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !7, i64 64, !7, i64 68, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!13, !10, i64 8}
!13 = !{!"_cpGFp", !7, i64 0, !7, i64 4, !10, i64 8}
!14 = !{!15, !10, i64 0}
!15 = !{!"_gsModEngine", !10, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !16, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !7, i64 96, !7, i64 100, !10, i64 104}
!16 = !{!"long long", !8, i64 0}
!17 = !{!18, !7, i64 0}
!18 = !{!"_cpGFpECPoint", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16}
!19 = !{!18, !7, i64 8}
!20 = !{!15, !7, i64 16}
!21 = !{!15, !10, i64 48}
!22 = !{!23, !7, i64 4}
!23 = !{!"_cpHashAttr", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !8, i64 16}
!24 = !{!16, !16, i64 0}
!25 = !{!18, !10, i64 16}
!26 = !{!6, !7, i64 16}
!27 = !{!6, !10, i64 56}


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