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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

@OriginalPointsBSGS = external dso_local global %"class.std::vector", align 8
@bPtable = external dso_local global ptr, align 8
@bloom_bPx3rd = external dso_local global ptr, align 8
@bsgs_m3 = external dso_local global i64, align 8
@BSGS_M2_double = external dso_local global %class.Int, align 8
@BSGS_AMP3 = external dso_local global %"class.std::vector", align 8
@secp = external dso_local global ptr, align 8

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

declare noundef zeroext i1 @_ZN3Int7IsEqualEPS_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) #0

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

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

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

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

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

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

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

declare void @_ZN5Point3SetERS_(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(120)) #0

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

declare i32 @bloom_check(ptr noundef, ptr noundef, i32 noundef) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z17bsgs_searchbinaryP11bsgs_xvaluePclPm(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z15bsgs_thirdcheckP3IntjjS0_(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #5 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %class.Int, align 8
  %14 = alloca %class.Int, align 8
  %15 = alloca %class.Point, align 8
  %16 = alloca %class.Point, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca %class.Point, align 8
  %20 = alloca %class.Point, align 8
  %21 = alloca %class.Point, align 8
  %22 = alloca [32 x i8], align 16
  %23 = alloca %class.Point, align 8
  %24 = alloca %class.Point, align 8
  %25 = alloca %class.Point, align 8
  %26 = alloca %class.Point, align 8
  %27 = alloca %class.Point, align 8
  %28 = alloca %class.Point, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 0, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 40, ptr %13) #6
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %13)
  call void @llvm.lifetime.start.p0(i64 40, ptr %14) #6
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %14)
  call void @llvm.lifetime.start.p0(i64 120, ptr %15) #6
  call void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %15)
  call void @llvm.lifetime.start.p0(i64 120, ptr %16) #6
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %16)
          to label %29 unwind label %97

29:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 120, ptr %19) #6
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %19)
          to label %30 unwind label %101

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 120, ptr %20) #6
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %20)
          to label %31 unwind label %105

31:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 120, ptr %21) #6
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %21)
          to label %32 unwind label %109

32:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #6
  %33 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @_ZN3Int8SetInt32Ej(ptr noundef nonnull align 8 dereferenceable(40) %13, i32 noundef %33)
          to label %34 unwind label %113

34:                                               ; preds = %32
  invoke void @_ZN3Int4MultEPS_(ptr noundef nonnull align 8 dereferenceable(40) %13, ptr noundef @BSGS_M2_double)
          to label %35 unwind label %113

35:                                               ; preds = %34
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN3Int3AddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %13, ptr noundef %36)
          to label %37 unwind label %113

37:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 120, ptr %23) #6
  %38 = load ptr, ptr @secp, align 8, !tbaa !5
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind writable sret(%class.Point) align 8 %23, ptr noundef nonnull align 8 dereferenceable(983240) %38, ptr noundef %13)
          to label %39 unwind label %117

39:                                               ; preds = %37
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %23, i64 120, i1 false), !tbaa.struct !13
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %23) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 120, ptr %24) #6
  %40 = load ptr, ptr @secp, align 8, !tbaa !5
  invoke void @_ZN9Secp256K18NegationER5Point(ptr dead_on_unwind writable sret(%class.Point) align 8 %24, ptr noundef nonnull align 8 dereferenceable(983240) %40, ptr noundef nonnull align 8 dereferenceable(120) %15)
          to label %41 unwind label %121

41:                                               ; preds = %39
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %24, i64 120, i1 false), !tbaa.struct !13
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %24) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 120, ptr %25) #6
  %42 = load ptr, ptr @secp, align 8, !tbaa !5
  %43 = load i32, ptr %7, align 4, !tbaa !9
  %44 = zext i32 %43 to i64
  %45 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @OriginalPointsBSGS, i64 noundef %44) #6
  invoke void @_ZN9Secp256K19AddDirectER5PointS1_(ptr dead_on_unwind writable sret(%class.Point) align 8 %25, ptr noundef nonnull align 8 dereferenceable(983240) %42, ptr noundef nonnull align 8 dereferenceable(120) %45, ptr noundef nonnull align 8 dereferenceable(120) %16)
          to label %46 unwind label %125

46:                                               ; preds = %41
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %25, i64 120, i1 false), !tbaa.struct !13
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %25) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %25) #6
  invoke void @_ZN5Point3SetERS_(ptr noundef nonnull align 8 dereferenceable(120) %19, ptr noundef nonnull align 8 dereferenceable(120) %20)
          to label %47 unwind label %113

47:                                               ; preds = %46
  br label %48

48:                                               ; preds = %192, %47
  call void @llvm.lifetime.start.p0(i64 120, ptr %26) #6
  %49 = load ptr, ptr @secp, align 8, !tbaa !5
  %50 = load i32, ptr %10, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @BSGS_AMP3, i64 noundef %51) #6
  invoke void @_ZN9Secp256K19AddDirectER5PointS1_(ptr dead_on_unwind writable sret(%class.Point) align 8 %26, ptr noundef nonnull align 8 dereferenceable(983240) %49, ptr noundef nonnull align 8 dereferenceable(120) %19, ptr noundef nonnull align 8 dereferenceable(120) %52)
          to label %53 unwind label %129

53:                                               ; preds = %48
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %26, i64 120, i1 false), !tbaa.struct !13
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %26) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %26) #6
  invoke void @_ZN5Point3SetERS_(ptr noundef nonnull align 8 dereferenceable(120) %20, ptr noundef nonnull align 8 dereferenceable(120) %21)
          to label %54 unwind label %113

54:                                               ; preds = %53
  %55 = getelementptr inbounds %class.Point, ptr %20, i32 0, i32 0
  %56 = getelementptr inbounds [32 x i8], ptr %22, i64 0, i64 0
  invoke void @_ZN3Int10Get32BytesEPh(ptr noundef nonnull align 8 dereferenceable(40) %55, ptr noundef %56)
          to label %57 unwind label %113

57:                                               ; preds = %54
  %58 = load ptr, ptr @bloom_bPx3rd, align 8, !tbaa !5
  %59 = getelementptr inbounds [32 x i8], ptr %22, i64 0, i64 0
  %60 = load i8, ptr %59, align 16, !tbaa !14
  %61 = zext i8 %60 to i64
  %62 = getelementptr inbounds %struct.bloom, ptr %58, i64 %61
  %63 = getelementptr inbounds [32 x i8], ptr %22, i64 0, i64 0
  %64 = invoke i32 @bloom_check(ptr noundef %62, ptr noundef %63, i32 noundef 32)
          to label %65 unwind label %113

65:                                               ; preds = %57
  store i32 %64, ptr %12, align 4, !tbaa !9
  %66 = load i32, ptr %12, align 4, !tbaa !9
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %166

68:                                               ; preds = %65
  %69 = load ptr, ptr @bPtable, align 8, !tbaa !5
  %70 = getelementptr inbounds [32 x i8], ptr %22, i64 0, i64 0
  %71 = load i64, ptr @bsgs_m3, align 8, !tbaa !11
  %72 = call noundef i32 @_Z17bsgs_searchbinaryP11bsgs_xvaluePclPm(ptr noundef %69, ptr noundef %70, i64 noundef %71, ptr noundef %9)
  store i32 %72, ptr %12, align 4, !tbaa !9
  %73 = load i32, ptr %12, align 4, !tbaa !9
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %165

75:                                               ; preds = %68
  %76 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @_Z14calcualteindexiP3Int(i32 noundef %76, ptr noundef %14)
          to label %77 unwind label %113

77:                                               ; preds = %75
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %78, ptr noundef %14)
          to label %79 unwind label %113

79:                                               ; preds = %77
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = load i64, ptr %9, align 8, !tbaa !11
  %82 = add i64 %81, 1
  invoke void @_ZN3Int3AddEm(ptr noundef nonnull align 8 dereferenceable(40) %80, i64 noundef %82)
          to label %83 unwind label %113

83:                                               ; preds = %79
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN3Int3AddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %84, ptr noundef %13)
          to label %85 unwind label %113

85:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 120, ptr %27) #6
  %86 = load ptr, ptr @secp, align 8, !tbaa !5
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind writable sret(%class.Point) align 8 %27, ptr noundef nonnull align 8 dereferenceable(983240) %86, ptr noundef %87)
          to label %88 unwind label %133

88:                                               ; preds = %85
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %27, i64 120, i1 false), !tbaa.struct !13
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %27) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %27) #6
  %89 = getelementptr inbounds %class.Point, ptr %16, i32 0, i32 0
  %90 = load i32, ptr %7, align 4, !tbaa !9
  %91 = zext i32 %90 to i64
  %92 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @OriginalPointsBSGS, i64 noundef %91) #6
  %93 = getelementptr inbounds %class.Point, ptr %92, i32 0, i32 0
  %94 = invoke noundef zeroext i1 @_ZN3Int7IsEqualEPS_(ptr noundef nonnull align 8 dereferenceable(40) %89, ptr noundef %93)
          to label %95 unwind label %113

95:                                               ; preds = %88
  br i1 %94, label %96, label %137

96:                                               ; preds = %95
  store i32 1, ptr %11, align 4, !tbaa !9
  br label %164

97:                                               ; preds = %4
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %17, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %18, align 4
  br label %200

101:                                              ; preds = %29
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %17, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %18, align 4
  br label %199

105:                                              ; preds = %30
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %17, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %18, align 4
  br label %198

109:                                              ; preds = %31
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %17, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %18, align 4
  br label %197

113:                                              ; preds = %178, %176, %174, %166, %150, %145, %141, %139, %137, %88, %83, %79, %77, %75, %57, %54, %53, %46, %35, %34, %32
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %17, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %18, align 4
  br label %196

117:                                              ; preds = %37
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %17, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %23) #6
  br label %196

121:                                              ; preds = %39
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %17, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %24) #6
  br label %196

125:                                              ; preds = %41
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %17, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %25) #6
  br label %196

129:                                              ; preds = %48
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %17, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %26) #6
  br label %196

133:                                              ; preds = %85
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %17, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %27) #6
  br label %196

137:                                              ; preds = %95
  %138 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @_Z14calcualteindexiP3Int(i32 noundef %138, ptr noundef %14)
          to label %139 unwind label %113

139:                                              ; preds = %137
  %140 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %140, ptr noundef %14)
          to label %141 unwind label %113

141:                                              ; preds = %139
  %142 = load ptr, ptr %8, align 8, !tbaa !5
  %143 = load i64, ptr %9, align 8, !tbaa !11
  %144 = add i64 %143, 1
  invoke void @_ZN3Int3SubEm(ptr noundef nonnull align 8 dereferenceable(40) %142, i64 noundef %144)
          to label %145 unwind label %113

145:                                              ; preds = %141
  %146 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN3Int3AddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %146, ptr noundef %13)
          to label %147 unwind label %113

147:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 120, ptr %28) #6
  %148 = load ptr, ptr @secp, align 8, !tbaa !5
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind writable sret(%class.Point) align 8 %28, ptr noundef nonnull align 8 dereferenceable(983240) %148, ptr noundef %149)
          to label %150 unwind label %159

150:                                              ; preds = %147
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %28, i64 120, i1 false), !tbaa.struct !13
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %28) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %28) #6
  %151 = getelementptr inbounds %class.Point, ptr %16, i32 0, i32 0
  %152 = load i32, ptr %7, align 4, !tbaa !9
  %153 = zext i32 %152 to i64
  %154 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @OriginalPointsBSGS, i64 noundef %153) #6
  %155 = getelementptr inbounds %class.Point, ptr %154, i32 0, i32 0
  %156 = invoke noundef zeroext i1 @_ZN3Int7IsEqualEPS_(ptr noundef nonnull align 8 dereferenceable(40) %151, ptr noundef %155)
          to label %157 unwind label %113

157:                                              ; preds = %150
  br i1 %156, label %158, label %163

158:                                              ; preds = %157
  store i32 1, ptr %11, align 4, !tbaa !9
  br label %163

159:                                              ; preds = %147
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %17, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %28) #6
  br label %196

163:                                              ; preds = %158, %157
  br label %164

164:                                              ; preds = %163, %96
  br label %165

165:                                              ; preds = %164, %68
  br label %182

166:                                              ; preds = %65
  %167 = getelementptr inbounds %class.Point, ptr %19, i32 0, i32 0
  %168 = load i32, ptr %10, align 4, !tbaa !9
  %169 = sext i32 %168 to i64
  %170 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @BSGS_AMP3, i64 noundef %169) #6
  %171 = getelementptr inbounds %class.Point, ptr %170, i32 0, i32 0
  %172 = invoke noundef zeroext i1 @_ZN3Int7IsEqualEPS_(ptr noundef nonnull align 8 dereferenceable(40) %167, ptr noundef %171)
          to label %173 unwind label %113

173:                                              ; preds = %166
  br i1 %172, label %174, label %181

174:                                              ; preds = %173
  %175 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @_Z14calcualteindexiP3Int(i32 noundef %175, ptr noundef %14)
          to label %176 unwind label %113

176:                                              ; preds = %174
  %177 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %177, ptr noundef %14)
          to label %178 unwind label %113

178:                                              ; preds = %176
  %179 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN3Int3AddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %179, ptr noundef %13)
          to label %180 unwind label %113

180:                                              ; preds = %178
  store i32 1, ptr %11, align 4, !tbaa !9
  br label %181

181:                                              ; preds = %180, %173
  br label %182

182:                                              ; preds = %181, %165
  %183 = load i32, ptr %10, align 4, !tbaa !9
  %184 = add nsw i32 %183, 1
  store i32 %184, ptr %10, align 4, !tbaa !9
  br label %185

185:                                              ; preds = %182
  %186 = load i32, ptr %10, align 4, !tbaa !9
  %187 = icmp slt i32 %186, 32
  br i1 %187, label %188, label %192

188:                                              ; preds = %185
  %189 = load i32, ptr %11, align 4, !tbaa !9
  %190 = icmp ne i32 %189, 0
  %191 = xor i1 %190, true
  br label %192

192:                                              ; preds = %188, %185
  %193 = phi i1 [ false, %185 ], [ %191, %188 ]
  br i1 %193, label %48, label %194, !llvm.loop !15

194:                                              ; preds = %192
  %195 = load i32, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #6
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %21) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %21) #6
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %20) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %20) #6
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %19) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %19) #6
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %16) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %16) #6
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %15) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  ret i32 %195

196:                                              ; preds = %159, %133, %129, %125, %121, %117, %113
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #6
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %21) #6
  br label %197

197:                                              ; preds = %196, %109
  call void @llvm.lifetime.end.p0(i64 120, ptr %21) #6
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %20) #6
  br label %198

198:                                              ; preds = %197, %105
  call void @llvm.lifetime.end.p0(i64 120, ptr %20) #6
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %19) #6
  br label %199

199:                                              ; preds = %198, %101
  call void @llvm.lifetime.end.p0(i64 120, ptr %19) #6
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %16) #6
  br label %200

200:                                              ; preds = %199, %97
  call void @llvm.lifetime.end.p0(i64 120, ptr %16) #6
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %15) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %201

201:                                              ; preds = %200
  %202 = load ptr, ptr %17, align 8
  %203 = load i32, ptr %18, align 4
  %204 = insertvalue { ptr, i32 } poison, ptr %202, 0
  %205 = insertvalue { ptr, i32 } %204, i32 %203, 1
  resume { ptr, i32 } %205
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z14calcualteindexiP3Int(i32 noundef, ptr noundef) #5

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{i64 0, i64 40, !14, i64 40, i64 40, !14, i64 80, i64 40, !14}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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

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

@OriginalPointsBSGS = external dso_local global %"class.std::vector", align 8
@bPtable = external dso_local local_unnamed_addr global ptr, align 8
@bloom_bPx3rd = external dso_local local_unnamed_addr global ptr, align 8
@bsgs_m3 = external dso_local local_unnamed_addr global i64, align 8
@BSGS_M2_double = external dso_local global %class.Int, align 8
@BSGS_AMP3 = external dso_local global %"class.std::vector", align 8
@secp = external dso_local local_unnamed_addr global ptr, align 8

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

declare noundef zeroext i1 @_ZN3Int7IsEqualEPS_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) local_unnamed_addr #0

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

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

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

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

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

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

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

declare void @_ZN5Point3SetERS_(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #0

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

declare i32 @bloom_check(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z17bsgs_searchbinaryP11bsgs_xvaluePclPm(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 2) i32 @_Z15bsgs_thirdcheckP3IntjjS0_(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) local_unnamed_addr #5 personality ptr @__gxx_personality_v0 {
  %5 = alloca i64, align 8
  %6 = alloca %class.Int, align 8
  %7 = alloca %class.Int, align 8
  %8 = alloca %class.Point, align 8
  %9 = alloca %class.Point, align 8
  %10 = alloca %class.Point, align 8
  %11 = alloca %class.Point, align 8
  %12 = alloca %class.Point, align 8
  %13 = alloca [32 x i8], align 16
  %14 = alloca %class.Point, align 8
  %15 = alloca %class.Point, align 8
  %16 = alloca %class.Point, align 8
  %17 = alloca %class.Point, align 8
  %18 = alloca %class.Point, align 8
  %19 = alloca %class.Point, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  store i64 0, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #6
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %6)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #6
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %7)
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %8) #6
  call void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %8)
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %9) #6
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %9)
          to label %20 unwind label %63

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

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

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

23:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #6
  invoke void @_ZN3Int8SetInt32Ej(ptr noundef nonnull align 8 dereferenceable(40) %6, i32 noundef %1)
          to label %24 unwind label %.loopexit.split-lp

24:                                               ; preds = %23
  invoke void @_ZN3Int4MultEPS_(ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef nonnull @BSGS_M2_double)
          to label %25 unwind label %.loopexit.split-lp

25:                                               ; preds = %24
  invoke void @_ZN3Int3AddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef %0)
          to label %26 unwind label %.loopexit.split-lp

26:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %14) #6
  %27 = load ptr, ptr @secp, align 8, !tbaa !9
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %14, ptr noundef nonnull align 8 dereferenceable(983240) %27, ptr noundef nonnull %6)
          to label %28 unwind label %71

28:                                               ; preds = %26
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %8, ptr noundef nonnull align 8 dereferenceable(120) %14, i64 120, i1 false), !tbaa.struct !11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %14) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %15) #6
  %29 = load ptr, ptr @secp, align 8, !tbaa !9
  invoke void @_ZN9Secp256K18NegationER5Point(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %15, ptr noundef nonnull align 8 dereferenceable(983240) %29, ptr noundef nonnull align 8 dereferenceable(120) %8)
          to label %30 unwind label %73

30:                                               ; preds = %28
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %9, ptr noundef nonnull align 8 dereferenceable(120) %15, i64 120, i1 false), !tbaa.struct !11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %15) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %16) #6
  %31 = load ptr, ptr @secp, align 8, !tbaa !9
  %32 = zext i32 %2 to i64
  %33 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @OriginalPointsBSGS, i64 noundef %32) #6
  invoke void @_ZN9Secp256K19AddDirectER5PointS1_(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %16, ptr noundef nonnull align 8 dereferenceable(983240) %31, ptr noundef nonnull align 8 dereferenceable(120) %33, ptr noundef nonnull align 8 dereferenceable(120) %9)
          to label %34 unwind label %75

34:                                               ; preds = %30
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %11, ptr noundef nonnull align 8 dereferenceable(120) %16, i64 120, i1 false), !tbaa.struct !11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %16) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %16) #6
  invoke void @_ZN5Point3SetERS_(ptr noundef nonnull align 8 dereferenceable(120) %10, ptr noundef nonnull align 8 dereferenceable(120) %11)
          to label %.preheader unwind label %.loopexit.split-lp

.preheader:                                       ; preds = %34, %103
  %indvars.iv = phi i64 [ %indvars.iv.next, %103 ], [ 0, %34 ]
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %17) #6
  %35 = load ptr, ptr @secp, align 8, !tbaa !9
  %36 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @BSGS_AMP3, i64 noundef %indvars.iv) #6
  invoke void @_ZN9Secp256K19AddDirectER5PointS1_(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %17, ptr noundef nonnull align 8 dereferenceable(983240) %35, ptr noundef nonnull align 8 dereferenceable(120) %10, ptr noundef nonnull align 8 dereferenceable(120) %36)
          to label %37 unwind label %77

37:                                               ; preds = %.preheader
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %12, ptr noundef nonnull align 8 dereferenceable(120) %17, i64 120, i1 false), !tbaa.struct !11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %17) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %17) #6
  invoke void @_ZN5Point3SetERS_(ptr noundef nonnull align 8 dereferenceable(120) %11, ptr noundef nonnull align 8 dereferenceable(120) %12)
          to label %38 unwind label %.loopexit

38:                                               ; preds = %37
  invoke void @_ZN3Int10Get32BytesEPh(ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull %13)
          to label %39 unwind label %.loopexit

39:                                               ; preds = %38
  %40 = load ptr, ptr @bloom_bPx3rd, align 8, !tbaa !9
  %41 = load i8, ptr %13, align 16, !tbaa !12
  %42 = zext i8 %41 to i64
  %43 = getelementptr inbounds %struct.bloom, ptr %40, i64 %42
  %44 = invoke i32 @bloom_check(ptr noundef %43, ptr noundef nonnull %13, i32 noundef 32)
          to label %45 unwind label %.loopexit

45:                                               ; preds = %39
  %.not = icmp eq i32 %44, 0
  br i1 %.not, label %95, label %46

46:                                               ; preds = %45
  %47 = load ptr, ptr @bPtable, align 8, !tbaa !9
  %48 = load i64, ptr @bsgs_m3, align 8, !tbaa !5
  %49 = call noundef i32 @_Z17bsgs_searchbinaryP11bsgs_xvaluePclPm(ptr noundef %47, ptr noundef nonnull %13, i64 noundef %48, ptr noundef nonnull %5)
  %.not36 = icmp eq i32 %49, 0
  br i1 %.not36, label %103, label %50

50:                                               ; preds = %46
  %51 = trunc nuw nsw i64 %indvars.iv to i32
  invoke void @_Z14calcualteindexiP3Int(i32 noundef %51, ptr noundef nonnull %7)
          to label %52 unwind label %.loopexit

52:                                               ; preds = %50
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull %7)
          to label %53 unwind label %.loopexit

53:                                               ; preds = %52
  %54 = load i64, ptr %5, align 8, !tbaa !5
  %55 = add i64 %54, 1
  invoke void @_ZN3Int3AddEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef %55)
          to label %56 unwind label %.loopexit

56:                                               ; preds = %53
  invoke void @_ZN3Int3AddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull %6)
          to label %57 unwind label %.loopexit

57:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %18) #6
  %58 = load ptr, ptr @secp, align 8, !tbaa !9
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %18, ptr noundef nonnull align 8 dereferenceable(983240) %58, ptr noundef nonnull %3)
          to label %59 unwind label %79

59:                                               ; preds = %57
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %9, ptr noundef nonnull align 8 dereferenceable(120) %18, i64 120, i1 false), !tbaa.struct !11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %18) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %18) #6
  %60 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @OriginalPointsBSGS, i64 noundef %32) #6
  %61 = invoke noundef zeroext i1 @_ZN3Int7IsEqualEPS_(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull %60)
          to label %62 unwind label %.loopexit

62:                                               ; preds = %59
  br i1 %61, label %.thread, label %81

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

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

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

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

.loopexit:                                        ; preds = %37, %38, %39, %50, %52, %53, %56, %59, %81, %82, %83, %86, %89, %95
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %106

.loopexit.split-lp:                               ; preds = %23, %24, %25, %34, %99, %101, %102
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %106

71:                                               ; preds = %26
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %14) #6
  br label %106

73:                                               ; preds = %28
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %15) #6
  br label %106

75:                                               ; preds = %30
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %16) #6
  br label %106

77:                                               ; preds = %.preheader
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %17) #6
  br label %106

79:                                               ; preds = %57
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %18) #6
  br label %106

81:                                               ; preds = %62
  invoke void @_Z14calcualteindexiP3Int(i32 noundef %51, ptr noundef nonnull %7)
          to label %82 unwind label %.loopexit

82:                                               ; preds = %81
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull %7)
          to label %83 unwind label %.loopexit

83:                                               ; preds = %82
  %84 = load i64, ptr %5, align 8, !tbaa !5
  %85 = add i64 %84, 1
  invoke void @_ZN3Int3SubEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef %85)
          to label %86 unwind label %.loopexit

86:                                               ; preds = %83
  invoke void @_ZN3Int3AddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull %6)
          to label %87 unwind label %.loopexit

87:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %19) #6
  %88 = load ptr, ptr @secp, align 8, !tbaa !9
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %19, ptr noundef nonnull align 8 dereferenceable(983240) %88, ptr noundef nonnull %3)
          to label %89 unwind label %93

89:                                               ; preds = %87
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %9, ptr noundef nonnull align 8 dereferenceable(120) %19, i64 120, i1 false), !tbaa.struct !11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %19) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %19) #6
  %90 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @OriginalPointsBSGS, i64 noundef %32) #6
  %91 = invoke noundef zeroext i1 @_ZN3Int7IsEqualEPS_(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull %90)
          to label %92 unwind label %.loopexit

92:                                               ; preds = %89
  %spec.select = zext i1 %91 to i32
  br label %103

93:                                               ; preds = %87
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %19) #6
  br label %106

95:                                               ; preds = %45
  %96 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @BSGS_AMP3, i64 noundef %indvars.iv) #6
  %97 = invoke noundef zeroext i1 @_ZN3Int7IsEqualEPS_(ptr noundef nonnull align 8 dereferenceable(40) %10, ptr noundef nonnull %96)
          to label %98 unwind label %.loopexit

98:                                               ; preds = %95
  br i1 %97, label %99, label %103

99:                                               ; preds = %98
  %100 = trunc nuw nsw i64 %indvars.iv to i32
  invoke void @_Z14calcualteindexiP3Int(i32 noundef %100, ptr noundef nonnull %7)
          to label %101 unwind label %.loopexit.split-lp

101:                                              ; preds = %99
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull %7)
          to label %102 unwind label %.loopexit.split-lp

102:                                              ; preds = %101
  invoke void @_ZN3Int3AddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull %6)
          to label %.thread unwind label %.loopexit.split-lp

103:                                              ; preds = %92, %98, %46
  %.133 = phi i32 [ 0, %46 ], [ 0, %98 ], [ %spec.select, %92 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %104 = icmp ult i64 %indvars.iv, 31
  %.not42 = icmp eq i32 %.133, 0
  %105 = and i1 %104, %.not42
  br i1 %105, label %.preheader, label %.thread, !llvm.loop !13

.thread:                                          ; preds = %62, %103, %102
  %.13345 = phi i32 [ 1, %102 ], [ 1, %62 ], [ %.133, %103 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %12) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %12) #6
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %11) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %11) #6
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %10) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %10) #6
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %9) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %9) #6
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %8) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  ret i32 %.13345

106:                                              ; preds = %.loopexit, %.loopexit.split-lp, %93, %79, %77, %75, %73, %71
  %.pn = phi { ptr, i32 } [ %94, %93 ], [ %80, %79 ], [ %78, %77 ], [ %76, %75 ], [ %74, %73 ], [ %72, %71 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %12) #6
  br label %107

107:                                              ; preds = %106, %69
  %.pn.pn = phi { ptr, i32 } [ %.pn, %106 ], [ %70, %69 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %12) #6
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %11) #6
  br label %108

108:                                              ; preds = %107, %67
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %107 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %11) #6
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %10) #6
  br label %109

109:                                              ; preds = %108, %65
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %108 ], [ %66, %65 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %10) #6
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %9) #6
  br label %110

110:                                              ; preds = %109, %63
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %109 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %9) #6
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %8) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  resume { ptr, i32 } %.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z14calcualteindexiP3Int(i32 noundef, ptr noundef) local_unnamed_addr #5

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{i64 0, i64 40, !12, i64 40, i64 40, !12, i64 80, i64 40, !12}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass