; LLVM IR from albertobsd/keyhunt :: secp256k1/SECP256K1.ll (ZN9Secp256K13AddER5PointS1_)

; 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.Point = type { %class.Int, %class.Int, %class.Int }
%class.Int = type { %union.anon }
%union.anon = type { [5 x i64] }

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

declare void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; 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

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

declare void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef) #0

declare void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef) #0

declare void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) #0

declare void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) #0

declare void @_ZN3Int6ModAddEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Secp256K13AddER5PointS1_(ptr dead_on_unwind noalias writable sret(%class.Point) align 8 %0, ptr noundef nonnull align 8 dereferenceable(983240) %1, ptr noundef nonnull align 8 dereferenceable(120) %2, ptr noundef nonnull align 8 dereferenceable(120) %3) #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %class.Int, align 8
  %10 = alloca %class.Int, align 8
  %11 = alloca %class.Int, align 8
  %12 = alloca %class.Int, align 8
  %13 = alloca %class.Int, align 8
  %14 = alloca %class.Int, align 8
  %15 = alloca %class.Int, align 8
  %16 = alloca %class.Int, align 8
  %17 = alloca %class.Int, align 8
  %18 = alloca %class.Int, align 8
  %19 = alloca %class.Int, align 8
  %20 = alloca %class.Int, align 8
  %21 = alloca %class.Int, align 8
  %22 = alloca %class.Int, align 8
  %23 = alloca %class.Int, align 8
  %24 = alloca %class.Int, align 8
  %25 = alloca %class.Int, align 8
  %26 = alloca i1, align 1
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %29 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %9)
  call void @llvm.lifetime.start.p0(i64 40, ptr %10) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %10)
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %11)
  call void @llvm.lifetime.start.p0(i64 40, ptr %12) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %12)
  call void @llvm.lifetime.start.p0(i64 40, ptr %13) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %13)
  call void @llvm.lifetime.start.p0(i64 40, ptr %14) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %14)
  call void @llvm.lifetime.start.p0(i64 40, ptr %15) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %15)
  call void @llvm.lifetime.start.p0(i64 40, ptr %16) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %16)
  call void @llvm.lifetime.start.p0(i64 40, ptr %17) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %17)
  call void @llvm.lifetime.start.p0(i64 40, ptr %18) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %18)
  call void @llvm.lifetime.start.p0(i64 40, ptr %19) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %19)
  call void @llvm.lifetime.start.p0(i64 40, ptr %20) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %20)
  call void @llvm.lifetime.start.p0(i64 40, ptr %21) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %21)
  call void @llvm.lifetime.start.p0(i64 40, ptr %22) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %22)
  call void @llvm.lifetime.start.p0(i64 40, ptr %23) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %23)
  call void @llvm.lifetime.start.p0(i64 40, ptr %24) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %24)
  call void @llvm.lifetime.start.p0(i64 40, ptr %25) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %25)
  store i1 false, ptr %26, align 1
  call void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %0)
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = getelementptr inbounds %class.Point, ptr %30, i32 0, i32 1
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = getelementptr inbounds %class.Point, ptr %32, i32 0, i32 2
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef %31, ptr noundef %33)
          to label %34 unwind label %78

34:                                               ; preds = %4
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 1
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds %class.Point, ptr %37, i32 0, i32 2
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef %36, ptr noundef %38)
          to label %39 unwind label %78

39:                                               ; preds = %34
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = getelementptr inbounds %class.Point, ptr %40, i32 0, i32 0
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds %class.Point, ptr %42, i32 0, i32 2
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %13, ptr noundef %41, ptr noundef %43)
          to label %44 unwind label %78

44:                                               ; preds = %39
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds %class.Point, ptr %45, i32 0, i32 0
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = getelementptr inbounds %class.Point, ptr %47, i32 0, i32 2
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %14, ptr noundef %46, ptr noundef %48)
          to label %49 unwind label %78

49:                                               ; preds = %44
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef %11, ptr noundef %12)
          to label %50 unwind label %78

50:                                               ; preds = %49
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %10, ptr noundef %13, ptr noundef %14)
          to label %51 unwind label %78

51:                                               ; preds = %50
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %class.Point, ptr %52, i32 0, i32 2
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = getelementptr inbounds %class.Point, ptr %54, i32 0, i32 2
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %18, ptr noundef %53, ptr noundef %55)
          to label %56 unwind label %78

56:                                               ; preds = %51
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef %9)
          to label %57 unwind label %78

57:                                               ; preds = %56
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef %10)
          to label %58 unwind label %78

58:                                               ; preds = %57
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef %15, ptr noundef %10)
          to label %59 unwind label %78

59:                                               ; preds = %58
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %20, ptr noundef %17, ptr noundef %18)
          to label %60 unwind label %78

60:                                               ; preds = %59
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %21, ptr noundef %15, ptr noundef %14)
          to label %61 unwind label %78

61:                                               ; preds = %60
  invoke void @_ZN3Int6ModAddEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %23, ptr noundef %21, ptr noundef %21)
          to label %62 unwind label %78

62:                                               ; preds = %61
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %19, ptr noundef %20, ptr noundef %16)
          to label %63 unwind label %78

63:                                               ; preds = %62
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %19, ptr noundef %23)
          to label %64 unwind label %78

64:                                               ; preds = %63
  %65 = getelementptr inbounds %class.Point, ptr %0, i32 0, i32 0
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %65, ptr noundef %10, ptr noundef %19)
          to label %66 unwind label %78

66:                                               ; preds = %64
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %22, ptr noundef %16, ptr noundef %12)
          to label %67 unwind label %78

67:                                               ; preds = %66
  %68 = getelementptr inbounds %class.Point, ptr %0, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %68, ptr noundef %21, ptr noundef %19)
          to label %69 unwind label %78

69:                                               ; preds = %67
  %70 = getelementptr inbounds %class.Point, ptr %0, i32 0, i32 1
  %71 = getelementptr inbounds %class.Point, ptr %0, i32 0, i32 1
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %70, ptr noundef %71, ptr noundef %9)
          to label %72 unwind label %78

72:                                               ; preds = %69
  %73 = getelementptr inbounds %class.Point, ptr %0, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %73, ptr noundef %22)
          to label %74 unwind label %78

74:                                               ; preds = %72
  %75 = getelementptr inbounds %class.Point, ptr %0, i32 0, i32 2
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %75, ptr noundef %16, ptr noundef %18)
          to label %76 unwind label %78

76:                                               ; preds = %74
  store i1 true, ptr %26, align 1
  %77 = load i1, ptr %26, align 1
  br i1 %77, label %83, label %82

78:                                               ; preds = %74, %72, %69, %67, %66, %64, %63, %62, %61, %60, %59, %58, %57, %56, %51, %50, %49, %44, %39, %34, %4
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %27, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %28, align 4
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #4
  br label %84

82:                                               ; preds = %76
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #4
  br label %83

83:                                               ; preds = %82, %76
  call void @llvm.lifetime.end.p0(i64 40, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #4
  ret void

84:                                               ; preds = %78
  %85 = load ptr, ptr %27, align 8
  %86 = load i32, ptr %28, align 4
  %87 = insertvalue { ptr, i32 } poison, ptr %85, 0
  %88 = insertvalue { ptr, i32 } %87, i32 %86, 1
  resume { ptr, i32 } %88
}

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 = { 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"}


; 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.Point = type { %class.Int, %class.Int, %class.Int }
%class.Int = type { %union.anon }
%union.anon = type { [5 x i64] }

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

declare void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; 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

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

declare void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) local_unnamed_addr #0

declare void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) local_unnamed_addr #0

declare void @_ZN3Int6ModAddEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Secp256K13AddER5PointS1_(ptr dead_on_unwind noalias writable sret(%class.Point) align 8 %0, ptr nocapture noundef nonnull readnone align 8 dereferenceable(983240) %1, ptr noundef nonnull align 8 dereferenceable(120) %2, ptr noundef nonnull align 8 dereferenceable(120) %3) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %class.Int, align 8
  %6 = alloca %class.Int, align 8
  %7 = alloca %class.Int, align 8
  %8 = alloca %class.Int, align 8
  %9 = alloca %class.Int, align 8
  %10 = alloca %class.Int, align 8
  %11 = alloca %class.Int, align 8
  %12 = alloca %class.Int, align 8
  %13 = alloca %class.Int, align 8
  %14 = alloca %class.Int, align 8
  %15 = alloca %class.Int, align 8
  %16 = alloca %class.Int, align 8
  %17 = alloca %class.Int, align 8
  %18 = alloca %class.Int, align 8
  %19 = alloca %class.Int, align 8
  %20 = alloca %class.Int, align 8
  %21 = alloca %class.Int, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %5)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %6)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %7)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %8)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %9)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %10)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %11)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %12) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %12)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %13) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %13)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %14) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %14)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %15) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %15)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %16) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %16)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %17) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %17)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %18) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %18)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %19) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %19)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %20) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %20)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %21) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %21)
  call void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %0)
  %22 = getelementptr inbounds i8, ptr %3, i64 40
  %23 = getelementptr inbounds i8, ptr %2, i64 80
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull %22, ptr noundef nonnull %23)
          to label %24 unwind label %48

24:                                               ; preds = %4
  %25 = getelementptr inbounds i8, ptr %2, i64 40
  %26 = getelementptr inbounds i8, ptr %3, i64 80
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull %25, ptr noundef nonnull %26)
          to label %27 unwind label %48

27:                                               ; preds = %24
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull %3, ptr noundef nonnull %23)
          to label %28 unwind label %48

28:                                               ; preds = %27
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %10, ptr noundef nonnull %2, ptr noundef nonnull %26)
          to label %29 unwind label %48

29:                                               ; preds = %28
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull %7, ptr noundef nonnull %8)
          to label %30 unwind label %48

30:                                               ; preds = %29
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef nonnull %9, ptr noundef nonnull %10)
          to label %31 unwind label %48

31:                                               ; preds = %30
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %14, ptr noundef nonnull %23, ptr noundef nonnull %26)
          to label %32 unwind label %48

32:                                               ; preds = %31
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %13, ptr noundef nonnull %5)
          to label %33 unwind label %48

33:                                               ; preds = %32
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull %6)
          to label %34 unwind label %48

34:                                               ; preds = %33
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull %11, ptr noundef nonnull %6)
          to label %35 unwind label %48

35:                                               ; preds = %34
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef nonnull %13, ptr noundef nonnull %14)
          to label %36 unwind label %48

36:                                               ; preds = %35
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef nonnull %11, ptr noundef nonnull %10)
          to label %37 unwind label %48

37:                                               ; preds = %36
  invoke void @_ZN3Int6ModAddEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %19, ptr noundef nonnull %17, ptr noundef nonnull %17)
          to label %38 unwind label %48

38:                                               ; preds = %37
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef nonnull %16, ptr noundef nonnull %12)
          to label %39 unwind label %48

39:                                               ; preds = %38
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef nonnull %19)
          to label %40 unwind label %48

40:                                               ; preds = %39
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %6, ptr noundef nonnull %15)
          to label %41 unwind label %48

41:                                               ; preds = %40
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %18, ptr noundef nonnull %12, ptr noundef nonnull %8)
          to label %42 unwind label %48

42:                                               ; preds = %41
  %43 = getelementptr inbounds i8, ptr %0, i64 40
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %43, ptr noundef nonnull %17, ptr noundef nonnull %15)
          to label %44 unwind label %48

44:                                               ; preds = %42
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %43, ptr noundef nonnull %43, ptr noundef nonnull %5)
          to label %45 unwind label %48

45:                                               ; preds = %44
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %43, ptr noundef nonnull %18)
          to label %46 unwind label %48

46:                                               ; preds = %45
  %47 = getelementptr inbounds i8, ptr %0, i64 80
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %47, ptr noundef nonnull %12, ptr noundef nonnull %14)
          to label %50 unwind label %48

48:                                               ; preds = %46, %45, %44, %42, %41, %40, %39, %38, %37, %36, %35, %34, %33, %32, %31, %30, %29, %28, %27, %24, %4
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %0) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %21) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #4
  resume { ptr, i32 } %49

50:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %21) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #4
  ret void
}

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 = { 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)"}


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