; LLVM IR from albertobsd/keyhunt :: gmp256k1/GMP256K1.ll (ZN9Secp256K14Add2ER5PointS1_)

; 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 { [1 x %struct.__mpz_struct] }
%struct.__mpz_struct = type { i32, i32, ptr }

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nounwind
declare void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) 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 @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Secp256K14Add2ER5PointS1_(ptr dead_on_unwind noalias writable sret(%class.Point) align 8 %0, ptr noundef nonnull align 8 dereferenceable(393296) %1, ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(48) %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 ptr, align 8
  %12 = alloca i32, align 4
  %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 i1, align 1
  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
  %24 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9)
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #4
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %25 unwind label %82

25:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #4
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %26 unwind label %86

26:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #4
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %27 unwind label %90

27:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #4
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %28 unwind label %94

28:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #4
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %29 unwind label %98

29:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #4
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %30 unwind label %102

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #4
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %31 unwind label %106

31:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #4
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %32 unwind label %110

32:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #4
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %33 unwind label %114

33:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #4
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %34 unwind label %118

34:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #4
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %35 unwind label %122

35:                                               ; preds = %34
  store i1 false, ptr %23, align 1
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %0)
          to label %36 unwind label %126

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

41:                                               ; preds = %36
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds %class.Point, ptr %42, i32 0, i32 0
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = getelementptr inbounds %class.Point, ptr %44, i32 0, i32 2
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef %43, ptr noundef %45)
          to label %46 unwind label %130

46:                                               ; preds = %41
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = getelementptr inbounds %class.Point, ptr %47, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef %13, ptr noundef %48)
          to label %49 unwind label %130

49:                                               ; preds = %46
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds %class.Point, ptr %50, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef %14, ptr noundef %51)
          to label %52 unwind label %130

52:                                               ; preds = %49
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef %9)
          to label %53 unwind label %130

53:                                               ; preds = %52
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef %10)
          to label %54 unwind label %130

54:                                               ; preds = %53
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef %15, ptr noundef %10)
          to label %55 unwind label %130

55:                                               ; preds = %54
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = getelementptr inbounds %class.Point, ptr %56, i32 0, i32 2
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef %17, ptr noundef %57)
          to label %58 unwind label %130

58:                                               ; preds = %55
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = getelementptr inbounds %class.Point, ptr %59, i32 0, i32 0
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef %15, ptr noundef %60)
          to label %61 unwind label %130

61:                                               ; preds = %58
  invoke void @_ZN3Int6ModAddEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef %20, ptr noundef %20)
          to label %62 unwind label %130

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

63:                                               ; preds = %62
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef %22)
          to label %64 unwind label %130

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

66:                                               ; preds = %64
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = getelementptr inbounds %class.Point, ptr %67, i32 0, i32 1
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef %16, ptr noundef %68)
          to label %69 unwind label %130

69:                                               ; preds = %66
  %70 = getelementptr inbounds %class.Point, ptr %0, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %70, ptr noundef %20, ptr noundef %18)
          to label %71 unwind label %130

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

74:                                               ; preds = %71
  %75 = getelementptr inbounds %class.Point, ptr %0, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %75, ptr noundef %21)
          to label %76 unwind label %130

76:                                               ; preds = %74
  %77 = getelementptr inbounds %class.Point, ptr %0, i32 0, i32 2
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = getelementptr inbounds %class.Point, ptr %78, i32 0, i32 2
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %77, ptr noundef %16, ptr noundef %79)
          to label %80 unwind label %130

80:                                               ; preds = %76
  store i1 true, ptr %23, align 1
  %81 = load i1, ptr %23, align 1
  br i1 %81, label %135, label %134

82:                                               ; preds = %4
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %11, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %12, align 4
  br label %147

86:                                               ; preds = %25
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %11, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %12, align 4
  br label %146

90:                                               ; preds = %26
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %11, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %12, align 4
  br label %145

94:                                               ; preds = %27
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %11, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %12, align 4
  br label %144

98:                                               ; preds = %28
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %11, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %12, align 4
  br label %143

102:                                              ; preds = %29
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %11, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %12, align 4
  br label %142

106:                                              ; preds = %30
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %11, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %12, align 4
  br label %141

110:                                              ; preds = %31
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %11, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %12, align 4
  br label %140

114:                                              ; preds = %32
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %11, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %12, align 4
  br label %139

118:                                              ; preds = %33
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %11, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %12, align 4
  br label %138

122:                                              ; preds = %34
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %11, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %12, align 4
  br label %137

126:                                              ; preds = %35
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %11, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %12, align 4
  br label %136

130:                                              ; preds = %76, %74, %71, %69, %66, %64, %63, %62, %61, %58, %55, %54, %53, %52, %49, %46, %41, %36
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %11, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %12, align 4
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #4
  br label %136

134:                                              ; preds = %80
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #4
  br label %135

135:                                              ; preds = %134, %80
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #4
  ret void

136:                                              ; preds = %130, %126
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #4
  br label %137

137:                                              ; preds = %136, %122
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #4
  br label %138

138:                                              ; preds = %137, %118
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #4
  br label %139

139:                                              ; preds = %138, %114
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #4
  br label %140

140:                                              ; preds = %139, %110
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #4
  br label %141

141:                                              ; preds = %140, %106
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #4
  br label %142

142:                                              ; preds = %141, %102
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #4
  br label %143

143:                                              ; preds = %142, %98
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #4
  br label %144

144:                                              ; preds = %143, %94
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #4
  br label %145

145:                                              ; preds = %144, %90
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #4
  br label %146

146:                                              ; preds = %145, %86
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #4
  br label %147

147:                                              ; preds = %146, %82
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #4
  br label %148

148:                                              ; preds = %147
  %149 = load ptr, ptr %11, align 8
  %150 = load i32, ptr %12, align 4
  %151 = insertvalue { ptr, i32 } poison, ptr %149, 0
  %152 = insertvalue { ptr, i32 } %151, i32 %150, 1
  resume { ptr, i32 } %152
}

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

declare void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #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 = { 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 { [1 x %struct.__mpz_struct] }
%struct.__mpz_struct = type { i32, i32, ptr }

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nounwind
declare void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) 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 @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9Secp256K14Add2ER5PointS1_(ptr dead_on_unwind noalias writable sret(%class.Point) align 8 %0, ptr nocapture noundef nonnull readnone align 8 dereferenceable(393296) %1, ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(48) %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
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %17 unwind label %51

17:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %18 unwind label %53

18:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #4
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %19 unwind label %55

19:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #4
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %20 unwind label %57

20:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #4
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %21 unwind label %59

21:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #4
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %22 unwind label %61

22:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #4
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %23 unwind label %63

23:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #4
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %24 unwind label %65

24:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #4
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %25 unwind label %67

25:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #4
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %26 unwind label %69

26:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #4
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %27 unwind label %71

27:                                               ; preds = %26
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %0)
          to label %28 unwind label %73

28:                                               ; preds = %27
  %29 = getelementptr inbounds i8, ptr %3, i64 16
  %30 = getelementptr inbounds i8, ptr %2, i64 32
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull %29, ptr noundef nonnull %30)
          to label %31 unwind label %75

31:                                               ; preds = %28
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull %3, ptr noundef nonnull %30)
          to label %32 unwind label %75

32:                                               ; preds = %31
  %33 = getelementptr inbounds i8, ptr %2, i64 16
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull %7, ptr noundef nonnull %33)
          to label %34 unwind label %75

34:                                               ; preds = %32
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull %8, ptr noundef nonnull %2)
          to label %35 unwind label %75

35:                                               ; preds = %34
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull %5)
          to label %36 unwind label %75

36:                                               ; preds = %35
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull %6)
          to label %37 unwind label %75

37:                                               ; preds = %36
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull %9, ptr noundef nonnull %6)
          to label %38 unwind label %75

38:                                               ; preds = %37
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull %11, ptr noundef nonnull %30)
          to label %39 unwind label %75

39:                                               ; preds = %38
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull %9, ptr noundef nonnull %2)
          to label %40 unwind label %75

40:                                               ; preds = %39
  invoke void @_ZN3Int6ModAddEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull %14, ptr noundef nonnull %14)
          to label %41 unwind label %75

41:                                               ; preds = %40
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull %13, ptr noundef nonnull %10)
          to label %42 unwind label %75

42:                                               ; preds = %41
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull %16)
          to label %43 unwind label %75

43:                                               ; preds = %42
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull %6, ptr noundef nonnull %12)
          to label %44 unwind label %75

44:                                               ; preds = %43
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull %10, ptr noundef nonnull %33)
          to label %45 unwind label %75

45:                                               ; preds = %44
  %46 = getelementptr inbounds i8, ptr %0, i64 16
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %46, ptr noundef nonnull %14, ptr noundef nonnull %12)
          to label %47 unwind label %75

47:                                               ; preds = %45
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %46, ptr noundef nonnull %46, ptr noundef nonnull %5)
          to label %48 unwind label %75

48:                                               ; preds = %47
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %46, ptr noundef nonnull %15)
          to label %49 unwind label %75

49:                                               ; preds = %48
  %50 = getelementptr inbounds i8, ptr %0, i64 32
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %50, ptr noundef nonnull %10, ptr noundef nonnull %30)
          to label %77 unwind label %75

51:                                               ; preds = %4
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %89

53:                                               ; preds = %17
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %88

55:                                               ; preds = %18
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %87

57:                                               ; preds = %19
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %86

59:                                               ; preds = %20
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %85

61:                                               ; preds = %21
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %84

63:                                               ; preds = %22
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %83

65:                                               ; preds = %23
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %82

67:                                               ; preds = %24
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %81

69:                                               ; preds = %25
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %80

71:                                               ; preds = %26
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %79

73:                                               ; preds = %27
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %78

75:                                               ; preds = %49, %48, %47, %45, %44, %43, %42, %41, %40, %39, %38, %37, %36, %35, %34, %32, %31, %28
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #4
  br label %78

77:                                               ; preds = %49
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  ret void

78:                                               ; preds = %75, %73
  %.pn = phi { ptr, i32 } [ %76, %75 ], [ %74, %73 ]
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #4
  br label %79

79:                                               ; preds = %78, %71
  %.pn.pn = phi { ptr, i32 } [ %.pn, %78 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #4
  br label %80

80:                                               ; preds = %79, %69
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %79 ], [ %70, %69 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #4
  br label %81

81:                                               ; preds = %80, %67
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %80 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #4
  br label %82

82:                                               ; preds = %81, %65
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %81 ], [ %66, %65 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #4
  br label %83

83:                                               ; preds = %82, %63
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %82 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #4
  br label %84

84:                                               ; preds = %83, %61
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %83 ], [ %62, %61 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #4
  br label %85

85:                                               ; preds = %84, %59
  %.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn, %84 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #4
  br label %86

86:                                               ; preds = %85, %57
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn, %85 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #4
  br label %87

87:                                               ; preds = %86, %55
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn, %86 ], [ %56, %55 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #4
  br label %88

88:                                               ; preds = %87, %53
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %87 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #4
  br label %89

89:                                               ; preds = %88, %51
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %88 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

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

declare void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) 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 = { 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