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

; 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 }
%struct._gsModMethod = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

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

; Function Attrs: nounwind uwtable
define dso_local i32 @ippsGFpECSetPointHash(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 %208

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 %208

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 %208

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 %208

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 %208

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 %208

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 %208

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 %208

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 %208

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 %208

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 %202

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 %17, align 8, !tbaa !9
  %157 = getelementptr inbounds %struct._gsModEngine, ptr %156, i32 0, i32 6
  %158 = load ptr, ptr %157, align 8, !tbaa !28
  %159 = getelementptr inbounds %struct._gsModMethod, ptr %158, i32 0, i32 1
  %160 = load ptr, ptr %159, align 8, !tbaa !29
  %161 = load ptr, ptr %26, align 8, !tbaa !9
  %162 = load ptr, ptr %29, align 8, !tbaa !9
  %163 = load ptr, ptr %17, align 8, !tbaa !9
  %164 = call ptr %160(ptr noundef %161, ptr noundef %162, ptr noundef %163)
  %165 = load ptr, ptr %26, align 8, !tbaa !9
  %166 = getelementptr inbounds i64, ptr %165, i64 0
  %167 = load i64, ptr %166, align 8, !tbaa !26
  %168 = and i64 %167, 1
  %169 = icmp ne i64 %168, 0
  br i1 %169, label %170, label %175

170:                                              ; preds = %147
  %171 = load ptr, ptr %29, align 8, !tbaa !9
  %172 = load ptr, ptr %29, align 8, !tbaa !9
  %173 = load ptr, ptr %17, align 8, !tbaa !9
  %174 = call ptr @cpGFpNeg(ptr noundef %171, ptr noundef %172, ptr noundef %173)
  br label %175

175:                                              ; preds = %170, %147
  %176 = load ptr, ptr %13, align 8, !tbaa !9
  %177 = getelementptr inbounds %struct._cpGFpEC, ptr %176, i32 0, i32 3
  %178 = load i32, ptr %177, align 8, !tbaa !31
  %179 = icmp ne i32 %178, 0
  br i1 %179, label %180, label %200

180:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  %181 = load ptr, ptr %13, align 8, !tbaa !9
  %182 = getelementptr inbounds %struct._cpGFpEC, ptr %181, i32 0, i32 9
  %183 = load ptr, ptr %182, align 8, !tbaa !32
  store ptr %183, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  %184 = load ptr, ptr %17, align 8, !tbaa !9
  %185 = getelementptr inbounds %struct._gsModEngine, ptr %184, i32 0, i32 3
  %186 = load i32, ptr %185, align 8, !tbaa !22
  store i32 %186, ptr %31, align 4, !tbaa !5
  %187 = load ptr, ptr %30, align 8, !tbaa !9
  %188 = load i32, ptr %31, align 4, !tbaa !5
  %189 = call i32 @cpGFpElementIsEquChunk(ptr noundef %187, i32 noundef %188, i64 noundef 1)
  %190 = icmp ne i32 %189, 0
  br i1 %190, label %199, label %191

191:                                              ; preds = %180
  %192 = load ptr, ptr %12, align 8, !tbaa !9
  %193 = load ptr, ptr %12, align 8, !tbaa !9
  %194 = load ptr, ptr %30, align 8, !tbaa !9
  %195 = load i32, ptr %31, align 4, !tbaa !5
  %196 = load ptr, ptr %13, align 8, !tbaa !9
  %197 = load ptr, ptr %15, align 8, !tbaa !9
  %198 = call ptr @gfec_MulPoint(ptr noundef %192, ptr noundef %193, ptr noundef %194, i32 noundef %195, ptr noundef %196, ptr noundef %197)
  br label %199

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

200:                                              ; preds = %199, %175
  %201 = load ptr, ptr %17, align 8, !tbaa !9
  call void @gsModPoolFree(ptr noundef %201, 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 %203

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

203:                                              ; preds = %202, %200
  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
  %204 = load i32, ptr %18, align 4
  switch i32 %204, label %207 [
    i32 0, label %205
  ]

205:                                              ; preds = %203
  %206 = load ptr, ptr %17, align 8, !tbaa !9
  call void @gsModPoolFree(ptr noundef %206, i32 noundef 1)
  store i32 -1016, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %207

207:                                              ; preds = %205, %203
  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 %208

208:                                              ; preds = %207, %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
  %209 = load i32, ptr %8, align 4
  ret i32 %209
}

; 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 = !{!17, !10, i64 32}
!29 = !{!30, !10, i64 8}
!30 = !{!"_gsModMethod", !10, i64 0, !10, i64 8, !10, 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}
!31 = !{!12, !6, i64 16}
!32 = !{!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 @ippsGFpECSetPointHash(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 %92, label %15

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

17:                                               ; preds = %15
  %18 = icmp ne i32 %2, 0
  %19 = icmp eq ptr %1, null
  %or.cond.not75 = and i1 %19, %18
  %20 = icmp eq ptr %3, null
  %or.cond70 = or i1 %or.cond.not75, %20
  %21 = icmp eq ptr %4, null
  %or.cond71 = or i1 %or.cond70, %21
  %22 = icmp eq ptr %6, null
  %or.cond72 = or i1 %or.cond71, %22
  br i1 %or.cond72, label %92, 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 %92

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 %92

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 %92

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 %92

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
  %.not66 = icmp eq i32 %63, 0
  br i1 %.not66, label %90, 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 = getelementptr inbounds i8, ptr %33, i64 32
  %71 = load ptr, ptr %70, align 8, !tbaa !26
  %72 = getelementptr inbounds i8, ptr %71, i64 8
  %73 = load ptr, ptr %72, align 8, !tbaa !27
  %74 = call ptr %73(ptr noundef %54, ptr noundef %69, ptr noundef nonnull %33) #4
  %75 = load i64, ptr %54, align 8, !tbaa !24
  %76 = and i64 %75, 1
  %.not67 = icmp eq i64 %76, 0
  br i1 %.not67, label %79, label %77

77:                                               ; preds = %64
  %78 = call ptr @cpGFpNeg(ptr noundef %69, ptr noundef %69, ptr noundef nonnull %33)
  br label %79

79:                                               ; preds = %77, %64
  %80 = getelementptr inbounds i8, ptr %4, i64 16
  %81 = load i32, ptr %80, align 8, !tbaa !29
  %.not68 = icmp eq i32 %81, 0
  br i1 %.not68, label %89, label %82

82:                                               ; preds = %79
  %83 = getelementptr inbounds i8, ptr %4, i64 56
  %84 = load ptr, ptr %83, align 8, !tbaa !30
  %85 = load i32, ptr %45, align 8, !tbaa !20
  %86 = call i32 @cpGFpElementIsEquChunk(ptr noundef %84, i32 noundef %85, i64 noundef 1)
  %.not69 = icmp eq i32 %86, 0
  br i1 %.not69, label %87, label %89

87:                                               ; preds = %82
  %88 = call ptr @gfec_MulPoint(ptr noundef nonnull %3, ptr noundef nonnull %3, ptr noundef %84, i32 noundef %85, ptr noundef nonnull %4, ptr noundef nonnull %6) #4
  br label %89

89:                                               ; preds = %82, %87, %79
  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 %91

90:                                               ; 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 %91

91:                                               ; preds = %89, %90
  %.1 = phi i32 [ -1016, %90 ], [ 0, %89 ]
  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 %92

92:                                               ; preds = %42, %36, %29, %23, %17, %15, %7, %91
  %.2 = phi i32 [ %.1, %91 ], [ -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 = !{!15, !10, i64 32}
!27 = !{!28, !10, i64 8}
!28 = !{!"_gsModMethod", !10, i64 0, !10, i64 8, !10, 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}
!29 = !{!6, !7, i64 16}
!30 = !{!6, !10, i64 56}


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