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

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

@.str.4 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [83 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0

declare void @_ZN3Int9SetBase16EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #1

declare void @_ZN3Int8SetInt32Ej(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9Secp256K14GetYE3Intb(ptr dead_on_unwind noalias writable sret(%class.Int) align 8, ptr noundef nonnull align 8 dereferenceable(393296), ptr noundef, i1 noundef zeroext) #3 align 2

declare void @_ZN5Point5ClearEv(ptr noundef nonnull align 8 dereferenceable(48)) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN9Secp256K12ECER5Point(ptr noundef nonnull align 8 dereferenceable(393296), ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN9Secp256K117ParsePublicKeyHexEPcR5PointRb(ptr noundef nonnull align 8 dereferenceable(393296) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 1 dereferenceable(1) %3) #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca [65 x i8], align 16
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca %class.Int, align 8
  %15 = alloca %class.Int, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca %class.Int, align 8
  %19 = alloca %class.Int, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %20 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 65, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = call i64 @strlen(ptr noundef %21) #6
  %23 = trunc i64 %22 to i32
  store i32 %23, ptr %11, align 4, !tbaa !9
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN5Point5ClearEv(ptr noundef nonnull align 8 dereferenceable(48) %24)
  %25 = load i32, ptr %11, align 4, !tbaa !9
  %26 = icmp slt i32 %25, 2
  br i1 %26, label %27, label %29

27:                                               ; preds = %4
  %28 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store i1 false, ptr %5, align 1
  store i32 1, ptr %12, align 4
  br label %119

29:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #5
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = call noundef zeroext i8 @_ZN9Secp256K17GetByteEPci(ptr noundef nonnull align 8 dereferenceable(393296) %20, ptr noundef %30, i32 noundef 0)
  store i8 %31, ptr %13, align 1, !tbaa !11
  %32 = load i8, ptr %13, align 1, !tbaa !11
  %33 = zext i8 %32 to i32
  switch i32 %33, label %107 [
    i32 2, label %34
    i32 3, label %61
    i32 4, label %88
  ]

34:                                               ; preds = %29
  %35 = load i32, ptr %11, align 4, !tbaa !9
  %36 = icmp ne i32 %35, 66
  br i1 %36, label %37, label %39

37:                                               ; preds = %34
  %38 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  store i1 false, ptr %5, align 1
  store i32 1, ptr %12, align 4
  br label %117

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 i8, ptr %42, i64 2
  call void @_ZN3Int9SetBase16EPKc(ptr noundef nonnull align 8 dereferenceable(16) %41, ptr noundef %43)
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = getelementptr inbounds %class.Point, ptr %44, i32 0, i32 0
  call void @_ZN3IntC1ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %45)
  invoke void @_ZN9Secp256K14GetYE3Intb(ptr dead_on_unwind writable sret(%class.Int) align 8 %14, ptr noundef nonnull align 8 dereferenceable(393296) %20, ptr noundef %15, i1 noundef zeroext true)
          to label %46 unwind label %52

46:                                               ; preds = %39
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = getelementptr inbounds %class.Point, ptr %47, i32 0, i32 1
  %49 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3IntaSERKS_(ptr noundef nonnull align 8 dereferenceable(16) %48, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %50 unwind label %56

50:                                               ; preds = %46
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  store i8 1, ptr %51, align 1, !tbaa !12
  br label %109

52:                                               ; preds = %39
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %16, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %17, align 4
  br label %60

56:                                               ; preds = %46
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %16, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %17, align 4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #5
  br label %60

60:                                               ; preds = %56, %52
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  br label %118

61:                                               ; preds = %29
  %62 = load i32, ptr %11, align 4, !tbaa !9
  %63 = icmp ne i32 %62, 66
  br i1 %63, label %64, label %66

64:                                               ; preds = %61
  %65 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  store i1 false, ptr %5, align 1
  store i32 1, ptr %12, align 4
  br label %117

66:                                               ; preds = %61
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = getelementptr inbounds %class.Point, ptr %67, i32 0, i32 0
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %69, i64 2
  call void @_ZN3Int9SetBase16EPKc(ptr noundef nonnull align 8 dereferenceable(16) %68, ptr noundef %70)
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = getelementptr inbounds %class.Point, ptr %71, i32 0, i32 0
  call void @_ZN3IntC1ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %72)
  invoke void @_ZN9Secp256K14GetYE3Intb(ptr dead_on_unwind writable sret(%class.Int) align 8 %18, ptr noundef nonnull align 8 dereferenceable(393296) %20, ptr noundef %19, i1 noundef zeroext false)
          to label %73 unwind label %79

73:                                               ; preds = %66
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = getelementptr inbounds %class.Point, ptr %74, i32 0, i32 1
  %76 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3IntaSERKS_(ptr noundef nonnull align 8 dereferenceable(16) %75, ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %77 unwind label %83

77:                                               ; preds = %73
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #5
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  store i8 1, ptr %78, align 1, !tbaa !12
  br label %109

79:                                               ; preds = %66
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %16, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %17, align 4
  br label %87

83:                                               ; preds = %73
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %16, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %17, align 4
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #5
  br label %87

87:                                               ; preds = %83, %79
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  br label %118

88:                                               ; preds = %29
  %89 = load i32, ptr %11, align 4, !tbaa !9
  %90 = icmp ne i32 %89, 130
  br i1 %90, label %91, label %93

91:                                               ; preds = %88
  %92 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  store i1 false, ptr %5, align 1
  store i32 1, ptr %12, align 4
  br label %117

93:                                               ; preds = %88
  %94 = getelementptr inbounds [65 x i8], ptr %10, i64 0, i64 0
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  %96 = getelementptr inbounds i8, ptr %95, i64 2
  %97 = call ptr @strncpy(ptr noundef %94, ptr noundef %96, i64 noundef 64) #5
  %98 = getelementptr inbounds [65 x i8], ptr %10, i64 0, i64 64
  store i8 0, ptr %98, align 16, !tbaa !11
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = getelementptr inbounds %class.Point, ptr %99, i32 0, i32 0
  %101 = getelementptr inbounds [65 x i8], ptr %10, i64 0, i64 0
  call void @_ZN3Int9SetBase16EPKc(ptr noundef nonnull align 8 dereferenceable(16) %100, ptr noundef %101)
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = getelementptr inbounds %class.Point, ptr %102, i32 0, i32 0
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = getelementptr inbounds i8, ptr %104, i64 66
  call void @_ZN3Int9SetBase16EPKc(ptr noundef nonnull align 8 dereferenceable(16) %103, ptr noundef %105)
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  store i8 0, ptr %106, align 1, !tbaa !12
  br label %109

107:                                              ; preds = %29
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  store i1 false, ptr %5, align 1
  store i32 1, ptr %12, align 4
  br label %117

109:                                              ; preds = %93, %77, %50
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  %111 = getelementptr inbounds %class.Point, ptr %110, i32 0, i32 2
  call void @_ZN3Int8SetInt32Ej(ptr noundef nonnull align 8 dereferenceable(16) %111, i32 noundef 1)
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = call noundef zeroext i1 @_ZN9Secp256K12ECER5Point(ptr noundef nonnull align 8 dereferenceable(393296) %20, ptr noundef nonnull align 8 dereferenceable(48) %112)
  br i1 %113, label %116, label %114

114:                                              ; preds = %109
  %115 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  store i1 false, ptr %5, align 1
  store i32 1, ptr %12, align 4
  br label %117

116:                                              ; preds = %109
  store i1 true, ptr %5, align 1
  store i32 1, ptr %12, align 4
  br label %117

117:                                              ; preds = %116, %114, %107, %91, %64, %37
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  br label %119

118:                                              ; preds = %87, %60
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 65, ptr %10) #5
  br label %121

119:                                              ; preds = %117, %27
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 65, ptr %10) #5
  %120 = load i1, ptr %5, align 1
  ret i1 %120

121:                                              ; preds = %118
  %122 = load ptr, ptr %16, align 8
  %123 = load i32, ptr %17, align 4
  %124 = insertvalue { ptr, i32 } poison, ptr %122, 0
  %125 = insertvalue { ptr, i32 } %124, i32 %123, 1
  resume { ptr, i32 } %125
}

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #4

declare i32 @printf(ptr noundef, ...) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZN9Secp256K17GetByteEPci(ptr noundef nonnull align 8 dereferenceable(393296), ptr noundef, i32 noundef) #3 align 2

declare void @_ZN3IntC1ERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN3IntaSERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #1

; Function Attrs: nounwind
declare ptr @strncpy(ptr noundef, ptr noundef, i64 noundef) #0

attributes #0 = { 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 #1 = { "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 willreturn memory(read) "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 #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }

!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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"bool", !7, i64 0}


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

@.str.4 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [83 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0

declare void @_ZN3Int9SetBase16EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #1

declare void @_ZN3Int8SetInt32Ej(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9Secp256K14GetYE3Intb(ptr dead_on_unwind noalias writable sret(%class.Int) align 8, ptr noundef nonnull align 8 dereferenceable(393296), ptr noundef, i1 noundef zeroext) local_unnamed_addr #3 align 2

declare void @_ZN5Point5ClearEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN9Secp256K12ECER5Point(ptr noundef nonnull align 8 dereferenceable(393296), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN9Secp256K117ParsePublicKeyHexEPcR5PointRb(ptr noundef nonnull align 8 dereferenceable(393296) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(48) %2, ptr nocapture noundef nonnull writeonly align 1 dereferenceable(1) %3) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca [65 x i8], align 16
  %6 = alloca %class.Int, align 8
  %7 = alloca %class.Int, align 8
  %8 = alloca %class.Int, align 8
  %9 = alloca %class.Int, align 8
  call void @llvm.lifetime.start.p0(i64 65, ptr nonnull %5) #7
  %10 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %1) #8
  %11 = trunc i64 %10 to i32
  tail call void @_ZN5Point5ClearEv(ptr noundef nonnull align 8 dereferenceable(48) %2)
  %12 = icmp slt i32 %11, 2
  br i1 %12, label %13, label %15

13:                                               ; preds = %4
  %14 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %61

15:                                               ; preds = %4
  %16 = tail call noundef zeroext i8 @_ZN9Secp256K17GetByteEPci(ptr noundef nonnull align 8 dereferenceable(393296) %0, ptr noundef %1, i32 noundef 0)
  switch i8 %16, label %53 [
    i8 2, label %17
    i8 3, label %31
    i8 4, label %45
  ]

17:                                               ; preds = %15
  %.not36 = icmp eq i32 %11, 66
  br i1 %.not36, label %20, label %18

18:                                               ; preds = %17
  %19 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %61

20:                                               ; preds = %17
  %21 = getelementptr inbounds i8, ptr %1, i64 2
  tail call void @_ZN3Int9SetBase16EPKc(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull %21)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #7
  call void @_ZN3IntC1ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %2)
  invoke void @_ZN9Secp256K14GetYE3Intb(ptr dead_on_unwind nonnull writable sret(%class.Int) align 8 %6, ptr noundef nonnull align 8 dereferenceable(393296) %0, ptr noundef nonnull %7, i1 noundef zeroext true)
          to label %22 unwind label %26

22:                                               ; preds = %20
  %23 = getelementptr inbounds i8, ptr %2, i64 16
  %24 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3IntaSERKS_(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %25 unwind label %28

25:                                               ; preds = %22
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  br label %55

26:                                               ; preds = %20
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %30

28:                                               ; preds = %22
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #7
  br label %30

30:                                               ; preds = %28, %26
  %.pn37 = phi { ptr, i32 } [ %29, %28 ], [ %27, %26 ]
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #7
  br label %60

31:                                               ; preds = %15
  %.not34 = icmp eq i32 %11, 66
  br i1 %.not34, label %34, label %32

32:                                               ; preds = %31
  %33 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %61

34:                                               ; preds = %31
  %35 = getelementptr inbounds i8, ptr %1, i64 2
  tail call void @_ZN3Int9SetBase16EPKc(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull %35)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  call void @_ZN3IntC1ERKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %2)
  invoke void @_ZN9Secp256K14GetYE3Intb(ptr dead_on_unwind nonnull writable sret(%class.Int) align 8 %8, ptr noundef nonnull align 8 dereferenceable(393296) %0, ptr noundef nonnull %9, i1 noundef zeroext false)
          to label %36 unwind label %40

36:                                               ; preds = %34
  %37 = getelementptr inbounds i8, ptr %2, i64 16
  %38 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3IntaSERKS_(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull align 8 dereferenceable(16) %8)
          to label %39 unwind label %42

39:                                               ; preds = %36
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  br label %55

40:                                               ; preds = %34
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %44

42:                                               ; preds = %36
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #7
  br label %44

44:                                               ; preds = %42, %40
  %.pn = phi { ptr, i32 } [ %43, %42 ], [ %41, %40 ]
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  br label %60

45:                                               ; preds = %15
  %.not = icmp eq i32 %11, 130
  br i1 %.not, label %48, label %46

46:                                               ; preds = %45
  %47 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  br label %61

48:                                               ; preds = %45
  %49 = getelementptr inbounds i8, ptr %1, i64 2
  %50 = call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) %49, i64 noundef 64) #7
  %51 = getelementptr inbounds i8, ptr %5, i64 64
  store i8 0, ptr %51, align 16, !tbaa !5
  call void @_ZN3Int9SetBase16EPKc(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull %5)
  %52 = getelementptr inbounds i8, ptr %1, i64 66
  call void @_ZN3Int9SetBase16EPKc(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull %52)
  br label %55

53:                                               ; preds = %15
  %54 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  br label %61

55:                                               ; preds = %48, %39, %25
  %.sink = phi i8 [ 0, %48 ], [ 1, %39 ], [ 1, %25 ]
  store i8 %.sink, ptr %3, align 1, !tbaa !8
  %56 = getelementptr inbounds i8, ptr %2, i64 32
  call void @_ZN3Int8SetInt32Ej(ptr noundef nonnull align 8 dereferenceable(16) %56, i32 noundef 1)
  %57 = call noundef zeroext i1 @_ZN9Secp256K12ECER5Point(ptr noundef nonnull align 8 dereferenceable(393296) %0, ptr noundef nonnull align 8 dereferenceable(48) %2)
  br i1 %57, label %61, label %58

58:                                               ; preds = %55
  %59 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  br label %61

60:                                               ; preds = %44, %30
  %.pn.pn = phi { ptr, i32 } [ %.pn, %44 ], [ %.pn37, %30 ]
  call void @llvm.lifetime.end.p0(i64 65, ptr nonnull %5) #7
  resume { ptr, i32 } %.pn.pn

61:                                               ; preds = %18, %32, %46, %53, %58, %55, %13
  %.132 = phi i1 [ false, %13 ], [ false, %53 ], [ false, %46 ], [ false, %58 ], [ false, %32 ], [ false, %18 ], [ true, %55 ]
  call void @llvm.lifetime.end.p0(i64 65, ptr nonnull %5) #7
  ret i1 %.132
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i8 @_ZN9Secp256K17GetByteEPci(ptr noundef nonnull align 8 dereferenceable(393296), ptr noundef, i32 noundef) local_unnamed_addr #3 align 2

declare void @_ZN3IntC1ERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN3IntaSERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strncpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly, i64 noundef) local_unnamed_addr #6

attributes #0 = { 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 #1 = { "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 nofree nounwind willreturn memory(argmem: read) "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 #5 = { nofree 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 #6 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"bool", !6, i64 0}


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