; LLVM IR from albertobsd/keyhunt :: bsgsd.ll (Z14init_generatorv)

; 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.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl" }
%"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl" = type { %"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Point = type { %class.Int, %class.Int, %class.Int }
%class.Int = type { %union.anon }
%union.anon = type { [5 x i64] }

@Gn = external dso_local global %"class.std::vector", align 8
@_2Gn = external dso_local global %class.Point, align 8
@stride = external dso_local global %class.Int, align 8
@secp = external dso_local global ptr, align 8

declare void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #1

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_Z14init_generatorv() #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca %class.Point, align 8
  %2 = alloca %class.Point, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %class.Point, align 8
  %6 = alloca i32, align 4
  %7 = alloca %class.Point, align 8
  %8 = alloca %class.Point, align 8
  call void @llvm.lifetime.start.p0(i64 120, ptr %1) #6
  %9 = load ptr, ptr @secp, align 8, !tbaa !5
  call void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind writable sret(%class.Point) align 8 %1, ptr noundef nonnull align 8 dereferenceable(983240) %9, ptr noundef @stride)
  call void @llvm.lifetime.start.p0(i64 120, ptr %2) #6
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %2)
          to label %10 unwind label %21

10:                                               ; preds = %0
  invoke void @_ZN5Point3SetERS_(ptr noundef nonnull align 8 dereferenceable(120) %2, ptr noundef nonnull align 8 dereferenceable(120) %1)
          to label %11 unwind label %25

11:                                               ; preds = %10
  invoke void @_ZNSt6vectorI5PointSaIS0_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) @Gn, i64 noundef 512)
          to label %12 unwind label %25

12:                                               ; preds = %11
  %13 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Gn, i64 noundef 0) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %2, i64 120, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 120, ptr %5) #6
  %14 = load ptr, ptr @secp, align 8, !tbaa !5
  invoke void @_ZN9Secp256K112DoubleDirectER5Point(ptr dead_on_unwind writable sret(%class.Point) align 8 %5, ptr noundef nonnull align 8 dereferenceable(983240) %14, ptr noundef nonnull align 8 dereferenceable(120) %2)
          to label %15 unwind label %29

15:                                               ; preds = %12
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %2, ptr align 8 %5, i64 120, i1 false), !tbaa.struct !9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %5) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %5) #6
  %16 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Gn, i64 noundef 1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %2, i64 120, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 2, ptr %6, align 4, !tbaa !11
  br label %17

17:                                               ; preds = %39, %15
  %18 = load i32, ptr %6, align 4, !tbaa !11
  %19 = icmp slt i32 %18, 512
  br i1 %19, label %33, label %20

20:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %46

21:                                               ; preds = %0
  %22 = landingpad { ptr, i32 }
          cleanup
  %23 = extractvalue { ptr, i32 } %22, 0
  store ptr %23, ptr %3, align 8
  %24 = extractvalue { ptr, i32 } %22, 1
  store i32 %24, ptr %4, align 4
  br label %55

25:                                               ; preds = %11, %10
  %26 = landingpad { ptr, i32 }
          cleanup
  %27 = extractvalue { ptr, i32 } %26, 0
  store ptr %27, ptr %3, align 8
  %28 = extractvalue { ptr, i32 } %26, 1
  store i32 %28, ptr %4, align 4
  br label %54

29:                                               ; preds = %12
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %3, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %5) #6
  br label %54

33:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 120, ptr %7) #6
  %34 = load ptr, ptr @secp, align 8, !tbaa !5
  invoke void @_ZN9Secp256K19AddDirectER5PointS1_(ptr dead_on_unwind writable sret(%class.Point) align 8 %7, ptr noundef nonnull align 8 dereferenceable(983240) %34, ptr noundef nonnull align 8 dereferenceable(120) %2, ptr noundef nonnull align 8 dereferenceable(120) %1)
          to label %35 unwind label %42

35:                                               ; preds = %33
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %2, ptr align 8 %7, i64 120, i1 false), !tbaa.struct !9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %7) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %7) #6
  %36 = load i32, ptr %6, align 4, !tbaa !11
  %37 = sext i32 %36 to i64
  %38 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Gn, i64 noundef %37) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 8 %2, i64 120, i1 false), !tbaa.struct !9
  br label %39

39:                                               ; preds = %35
  %40 = load i32, ptr %6, align 4, !tbaa !11
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %6, align 4, !tbaa !11
  br label %17, !llvm.loop !13

42:                                               ; preds = %33
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %3, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %54

46:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 120, ptr %8) #6
  %47 = load ptr, ptr @secp, align 8, !tbaa !5
  %48 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Gn, i64 noundef 511) #6
  invoke void @_ZN9Secp256K112DoubleDirectER5Point(ptr dead_on_unwind writable sret(%class.Point) align 8 %8, ptr noundef nonnull align 8 dereferenceable(983240) %47, ptr noundef nonnull align 8 dereferenceable(120) %48)
          to label %49 unwind label %50

49:                                               ; preds = %46
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 @_2Gn, ptr align 8 %8, i64 120, i1 false), !tbaa.struct !9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %8) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %8) #6
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %2) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %2) #6
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %1) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %1) #6
  ret void

50:                                               ; preds = %46
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %3, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %8) #6
  br label %54

54:                                               ; preds = %50, %42, %29, %25
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %2) #6
  br label %55

55:                                               ; preds = %54, %21
  call void @llvm.lifetime.end.p0(i64 120, ptr %2) #6
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %1) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %1) #6
  br label %56

56:                                               ; preds = %55
  %57 = load ptr, ptr %3, align 8
  %58 = load i32, ptr %4, align 4
  %59 = insertvalue { ptr, i32 } poison, ptr %57, 0
  %60 = insertvalue { ptr, i32 } %59, i32 %58, 1
  resume { ptr, i32 } %60
}

declare void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind writable sret(%class.Point) align 8, ptr noundef nonnull align 8 dereferenceable(983240), ptr noundef) #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI5PointSaIS0_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #5 align 2

declare void @_ZN9Secp256K112DoubleDirectER5Point(ptr dead_on_unwind writable sret(%class.Point) align 8, ptr noundef nonnull align 8 dereferenceable(983240), ptr noundef nonnull align 8 dereferenceable(120)) #0

declare void @_ZN9Secp256K19AddDirectER5PointS1_(ptr dead_on_unwind writable sret(%class.Point) align 8, ptr noundef nonnull align 8 dereferenceable(983240), ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(120)) #0

declare void @_ZN5Point3SetERS_(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(120)) #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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{i64 0, i64 40, !10, i64 40, i64 40, !10, i64 80, i64 40, !10}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl" }
%"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl" = type { %"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Point = type { %class.Int, %class.Int, %class.Int }
%class.Int = type { %union.anon }
%union.anon = type { [5 x i64] }

@Gn = external dso_local global %"class.std::vector", align 8
@_2Gn = external dso_local local_unnamed_addr global %class.Point, align 8
@stride = external dso_local global %class.Int, align 8
@secp = external dso_local local_unnamed_addr global ptr, align 8

declare void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120)) 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_Z14init_generatorv() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca %class.Point, align 8
  %2 = alloca %class.Point, align 8
  %3 = alloca %class.Point, align 8
  %4 = alloca %class.Point, align 8
  %5 = alloca %class.Point, align 8
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %1) #6
  %6 = load ptr, ptr @secp, align 8, !tbaa !5
  call void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %1, ptr noundef nonnull align 8 dereferenceable(983240) %6, ptr noundef nonnull @stride)
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %2) #6
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %2)
          to label %7 unwind label %17

7:                                                ; preds = %0
  invoke void @_ZN5Point3SetERS_(ptr noundef nonnull align 8 dereferenceable(120) %2, ptr noundef nonnull align 8 dereferenceable(120) %1)
          to label %8 unwind label %19

8:                                                ; preds = %7
  invoke void @_ZNSt6vectorI5PointSaIS0_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) @Gn, i64 noundef 512)
          to label %9 unwind label %19

9:                                                ; preds = %8
  %10 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Gn, i64 noundef 0) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %10, ptr noundef nonnull align 8 dereferenceable(120) %2, i64 120, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %3) #6
  %11 = load ptr, ptr @secp, align 8, !tbaa !5
  invoke void @_ZN9Secp256K112DoubleDirectER5Point(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %3, ptr noundef nonnull align 8 dereferenceable(983240) %11, ptr noundef nonnull align 8 dereferenceable(120) %2)
          to label %12 unwind label %21

12:                                               ; preds = %9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %2, ptr noundef nonnull align 8 dereferenceable(120) %3, i64 120, i1 false), !tbaa.struct !9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %3) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %3) #6
  %13 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Gn, i64 noundef 1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %13, ptr noundef nonnull align 8 dereferenceable(120) %2, i64 120, i1 false), !tbaa.struct !9
  br label %23

14:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %5) #6
  %15 = load ptr, ptr @secp, align 8, !tbaa !5
  %16 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Gn, i64 noundef 511) #6
  invoke void @_ZN9Secp256K112DoubleDirectER5Point(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %5, ptr noundef nonnull align 8 dereferenceable(983240) %15, ptr noundef nonnull align 8 dereferenceable(120) %16)
          to label %29 unwind label %30

17:                                               ; preds = %0
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %33

19:                                               ; preds = %8, %7
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %32

21:                                               ; preds = %9
  %22 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %3) #6
  br label %32

23:                                               ; preds = %12, %25
  %indvars.iv = phi i64 [ 2, %12 ], [ %indvars.iv.next, %25 ]
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %4) #6
  %24 = load ptr, ptr @secp, align 8, !tbaa !5
  invoke void @_ZN9Secp256K19AddDirectER5PointS1_(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %4, ptr noundef nonnull align 8 dereferenceable(983240) %24, ptr noundef nonnull align 8 dereferenceable(120) %2, ptr noundef nonnull align 8 dereferenceable(120) %1)
          to label %25 unwind label %27

25:                                               ; preds = %23
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %2, ptr noundef nonnull align 8 dereferenceable(120) %4, i64 120, i1 false), !tbaa.struct !9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %4) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %4) #6
  %26 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Gn, i64 noundef %indvars.iv) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %26, ptr noundef nonnull align 8 dereferenceable(120) %2, i64 120, i1 false), !tbaa.struct !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 512
  br i1 %exitcond.not, label %14, label %23, !llvm.loop !11

27:                                               ; preds = %23
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %4) #6
  br label %32

29:                                               ; preds = %14
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) @_2Gn, ptr noundef nonnull align 8 dereferenceable(120) %5, i64 120, i1 false), !tbaa.struct !9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %5) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %5) #6
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %2) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %2) #6
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %1) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %1) #6
  ret void

30:                                               ; preds = %14
  %31 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %5) #6
  br label %32

32:                                               ; preds = %30, %27, %21, %19
  %.pn = phi { ptr, i32 } [ %28, %27 ], [ %31, %30 ], [ %22, %21 ], [ %20, %19 ]
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %2) #6
  br label %33

33:                                               ; preds = %32, %17
  %.pn.pn = phi { ptr, i32 } [ %.pn, %32 ], [ %18, %17 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %2) #6
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %1) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn.pn
}

declare void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind writable sret(%class.Point) align 8, ptr noundef nonnull align 8 dereferenceable(983240), ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI5PointSaIS0_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #5 align 2

declare void @_ZN9Secp256K112DoubleDirectER5Point(ptr dead_on_unwind writable sret(%class.Point) align 8, ptr noundef nonnull align 8 dereferenceable(983240), ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #0

declare void @_ZN9Secp256K19AddDirectER5PointS1_(ptr dead_on_unwind writable sret(%class.Point) align 8, ptr noundef nonnull align 8 dereferenceable(983240), ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #0

declare void @_ZN5Point3SetERS_(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(120)) 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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{i64 0, i64 40, !10, i64 40, i64 40, !10, i64 80, i64 40, !10}
!10 = !{!7, !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass