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

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl" }
%"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl" = type { %"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Point = type { %class.Int, %class.Int, %class.Int }
%class.Int = type { [1 x %struct.__mpz_struct] }
%struct.__mpz_struct = type { i32, i32, ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%struct.tothread = type { i32, ptr, ptr }
%class.Secp256K1 = type { %class.Point, %class.Int, %class.Int, [8192 x %class.Point] }
%struct.bloom = type { i64, i64, i64, i8, x86_fp80, i8, i8, i8, double, ptr }

@GSn = external dso_local global %"class.std::vector", align 8
@_2GSn = external dso_local global %class.Point, align 8
@THREADOUTPUT = external dso_local global i32, align 4
@write_keys = external dso_local global %union.pthread_mutex_t, align 8
@bsgs_thread = external dso_local global %union.pthread_mutex_t, align 8
@steps = external dso_local global ptr, align 8
@ends = external dso_local global ptr, align 8
@FLAGQUIET = external dso_local global i32, align 4
@FLAGMATRIX = external dso_local global i32, align 4
@bsgs_found = external dso_local global ptr, align 8
@OriginalPointsBSGS = external dso_local global %"class.std::vector", align 8
@OriginalPointsBSGScompressed = external dso_local global ptr, align 8
@bloom_bP = external dso_local global ptr, align 8
@bsgs_aux = external dso_local global i64, align 8
@bsgs_point_number = external dso_local global i32, align 4
@BSGS_M = external dso_local global %class.Int, align 8
@BSGS_M_double = external dso_local global %class.Int, align 8
@n_range_start = external dso_local global %class.Int, align 8
@n_range_end = external dso_local global %class.Int, align 8
@secp = external dso_local global ptr, align 8
@stdout = external global ptr, align 8
@.str.228 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.238 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.239 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.240 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.241 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.242 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.243 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.244 = external hidden unnamed_addr constant [37 x i8], align 1

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #4

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

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

declare noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(16)) #0

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5

; Function Attrs: nounwind
declare void @free(ptr noundef) #1

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

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #0

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

declare i32 @fclose(ptr noundef) #0

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

declare i32 @fflush(ptr noundef) #0

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

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #0

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

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

; Function Attrs: nounwind
declare i32 @pthread_mutex_lock(ptr noundef) #1

; Function Attrs: nounwind
declare i32 @pthread_mutex_unlock(ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_Z26thread_process_bsgs_randomPv(ptr noundef %0) #7 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca [32 x i8], align 16
  %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.Point, align 8
  %15 = alloca %class.Point, align 8
  %16 = alloca %class.Point, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca %class.Point, align 8
  %25 = alloca i32, align 4
  %26 = alloca [513 x %class.Int], align 16
  %27 = alloca [1024 x %class.Point], align 16
  %28 = alloca %class.Int, align 8
  %29 = alloca %class.Int, align 8
  %30 = alloca %class.Int, align 8
  %31 = alloca %class.Int, align 8
  %32 = alloca %class.Int, align 8
  %33 = alloca %class.Int, align 8
  %34 = alloca %class.Point, align 8
  %35 = alloca %class.Point, align 8
  %36 = alloca %class.Point, align 8
  %37 = alloca %class.Point, align 8
  %38 = alloca %class.Point, align 8
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca %class.Point, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #8
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9)
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #8
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %43 unwind label %93

43:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #8
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %44 unwind label %97

44:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 48, ptr %14) #8
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %14)
          to label %45 unwind label %101

45:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 48, ptr %15) #8
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %15)
          to label %46 unwind label %105

46:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 48, ptr %16) #8
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %16)
          to label %47 unwind label %109

47:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %48 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #9
          to label %49 unwind label %113

49:                                               ; preds = %47
  invoke void @_ZN8IntGroupC1Ei(ptr noundef nonnull align 8 dereferenceable(20) %48, i32 noundef 513)
          to label %50 unwind label %117

50:                                               ; preds = %49
  store ptr %48, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %24) #8
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %24)
          to label %51 unwind label %121

51:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 511, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8208, ptr %26) #8
  %52 = getelementptr inbounds [513 x %class.Int], ptr %26, i32 0, i32 0
  %53 = getelementptr inbounds %class.Int, ptr %52, i64 513
  br label %54

54:                                               ; preds = %56, %51
  %55 = phi ptr [ %52, %51 ], [ %57, %56 ]
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %55)
          to label %56 unwind label %125

56:                                               ; preds = %54
  %57 = getelementptr inbounds %class.Int, ptr %55, i64 1
  %58 = icmp eq ptr %57, %53
  br i1 %58, label %59, label %54

59:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 49152, ptr %27) #8
  %60 = getelementptr inbounds [1024 x %class.Point], ptr %27, i32 0, i32 0
  %61 = getelementptr inbounds %class.Point, ptr %60, i64 1024
  br label %62

62:                                               ; preds = %64, %59
  %63 = phi ptr [ %60, %59 ], [ %65, %64 ]
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %63)
          to label %64 unwind label %135

64:                                               ; preds = %62
  %65 = getelementptr inbounds %class.Point, ptr %63, i64 1
  %66 = icmp eq ptr %65, %61
  br i1 %66, label %67, label %62

67:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #8
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %28)
          to label %68 unwind label %145

68:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #8
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %29)
          to label %69 unwind label %149

69:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #8
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %30)
          to label %70 unwind label %153

70:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #8
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %31)
          to label %71 unwind label %157

71:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #8
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %32)
          to label %72 unwind label %161

72:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #8
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %33)
          to label %73 unwind label %165

73:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 48, ptr %34) #8
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %34)
          to label %74 unwind label %169

74:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 48, ptr %35) #8
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %35)
          to label %75 unwind label %173

75:                                               ; preds = %74
  %76 = load ptr, ptr %23, align 8, !tbaa !5
  %77 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 0
  invoke void @_ZN8IntGroup3SetEP3Int(ptr noundef nonnull align 8 dereferenceable(20) %76, ptr noundef %77)
          to label %78 unwind label %177

78:                                               ; preds = %75
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %79, ptr %5, align 8, !tbaa !5
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.tothread, ptr %80, i32 0, i32 0
  %82 = load i32, ptr %81, align 8, !tbaa !11
  store i32 %82, ptr %21, align 4, !tbaa !9
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %83) #8
  %84 = load i64, ptr @bsgs_aux, align 8, !tbaa !13
  %85 = udiv i64 %84, 1024
  %86 = trunc i64 %85 to i32
  store i32 %86, ptr %22, align 4, !tbaa !9
  %87 = load i64, ptr @bsgs_aux, align 8, !tbaa !13
  %88 = urem i64 %87, 1024
  %89 = icmp ne i64 %88, 0
  br i1 %89, label %90, label %181

90:                                               ; preds = %78
  %91 = load i32, ptr %22, align 4, !tbaa !9
  %92 = add i32 %91, 1
  store i32 %92, ptr %22, align 4, !tbaa !9
  br label %181

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

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

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

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

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

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

117:                                              ; preds = %49
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %11, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %12, align 4
  call void @_ZdlPvm(ptr noundef %48, i64 noundef 24) #10
  br label %648

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

125:                                              ; preds = %54
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %11, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %12, align 4
  %129 = icmp eq ptr %52, %55
  br i1 %129, label %134, label %130

130:                                              ; preds = %130, %125
  %131 = phi ptr [ %55, %125 ], [ %132, %130 ]
  %132 = getelementptr inbounds %class.Int, ptr %131, i64 -1
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %132) #8
  %133 = icmp eq ptr %132, %52
  br i1 %133, label %134, label %130

134:                                              ; preds = %130, %125
  br label %646

135:                                              ; preds = %62
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %11, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %12, align 4
  %139 = icmp eq ptr %60, %63
  br i1 %139, label %144, label %140

140:                                              ; preds = %140, %135
  %141 = phi ptr [ %63, %135 ], [ %142, %140 ]
  %142 = getelementptr inbounds %class.Point, ptr %141, i64 -1
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %142) #8
  %143 = icmp eq ptr %142, %60
  br i1 %143, label %144, label %140

144:                                              ; preds = %140, %135
  br label %632

145:                                              ; preds = %67
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %11, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %12, align 4
  br label %617

149:                                              ; preds = %68
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %11, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %12, align 4
  br label %616

153:                                              ; preds = %69
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %11, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %12, align 4
  br label %615

157:                                              ; preds = %70
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %11, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %12, align 4
  br label %614

161:                                              ; preds = %71
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %11, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %12, align 4
  br label %613

165:                                              ; preds = %72
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %11, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %12, align 4
  br label %612

169:                                              ; preds = %73
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %11, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %12, align 4
  br label %611

173:                                              ; preds = %74
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %11, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %12, align 4
  br label %610

177:                                              ; preds = %224, %221, %220, %219, %209, %206, %204, %196, %193, %191, %185, %183, %182, %181, %75
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %11, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %12, align 4
  br label %609

181:                                              ; preds = %90, %78
  invoke void @_ZN3Int3SetEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef @BSGS_M_double)
          to label %182 unwind label %177

182:                                              ; preds = %181
  invoke void @_ZN3Int4MultEm(ptr noundef nonnull align 8 dereferenceable(16) %33, i64 noundef 512)
          to label %183 unwind label %177

183:                                              ; preds = %182
  invoke void @_ZN3Int3AddEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef @BSGS_M)
          to label %184 unwind label %177

184:                                              ; preds = %183
  br label %185

185:                                              ; preds = %601, %184
  %186 = call i32 @pthread_mutex_lock(ptr noundef @bsgs_thread) #8
  invoke void @_ZN3Int4RandEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef @n_range_start, ptr noundef @n_range_end)
          to label %187 unwind label %177

187:                                              ; preds = %185
  %188 = call i32 @pthread_mutex_unlock(ptr noundef @bsgs_thread) #8
  %189 = load i32, ptr @FLAGMATRIX, align 4, !tbaa !9
  %190 = icmp ne i32 %189, 0
  br i1 %190, label %191, label %201

191:                                              ; preds = %187
  %192 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %193 unwind label %177

193:                                              ; preds = %191
  store ptr %192, ptr %7, align 8, !tbaa !5
  %194 = load ptr, ptr %7, align 8, !tbaa !5
  %195 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.242, ptr noundef %194)
          to label %196 unwind label %177

196:                                              ; preds = %193
  %197 = load ptr, ptr @stdout, align 8, !tbaa !5
  %198 = invoke i32 @fflush(ptr noundef %197)
          to label %199 unwind label %177

199:                                              ; preds = %196
  %200 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %200) #8
  br label %215

201:                                              ; preds = %187
  %202 = load i32, ptr @FLAGQUIET, align 4, !tbaa !9
  %203 = icmp eq i32 %202, 0
  br i1 %203, label %204, label %214

204:                                              ; preds = %201
  %205 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %206 unwind label %177

206:                                              ; preds = %204
  store ptr %205, ptr %7, align 8, !tbaa !5
  %207 = load ptr, ptr %7, align 8, !tbaa !5
  %208 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.243, ptr noundef %207)
          to label %209 unwind label %177

209:                                              ; preds = %206
  %210 = load ptr, ptr @stdout, align 8, !tbaa !5
  %211 = invoke i32 @fflush(ptr noundef %210)
          to label %212 unwind label %177

212:                                              ; preds = %209
  %213 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %213) #8
  store i32 1, ptr @THREADOUTPUT, align 4, !tbaa !9
  br label %214

214:                                              ; preds = %212, %201
  br label %215

215:                                              ; preds = %214, %199
  call void @llvm.lifetime.start.p0(i64 48, ptr %36) #8
  %216 = load ptr, ptr @secp, align 8, !tbaa !5
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind writable sret(%class.Point) align 8 %36, ptr noundef nonnull align 8 dereferenceable(393296) %216, ptr noundef %9)
          to label %217 unwind label %280

217:                                              ; preds = %215
  %218 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %14, ptr noundef nonnull align 8 dereferenceable(48) %36)
          to label %219 unwind label %284

219:                                              ; preds = %217
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %36) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %36) #8
  invoke void @_ZN3Int3SetEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef %9)
          to label %220 unwind label %177

220:                                              ; preds = %219
  invoke void @_ZN3Int3NegEv(ptr noundef nonnull align 8 dereferenceable(16) %32)
          to label %221 unwind label %177

221:                                              ; preds = %220
  %222 = load ptr, ptr @secp, align 8, !tbaa !5
  %223 = getelementptr inbounds %class.Secp256K1, ptr %222, i32 0, i32 2
  invoke void @_ZN3Int3AddEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef %223)
          to label %224 unwind label %177

224:                                              ; preds = %221
  invoke void @_ZN3Int3SubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef %33)
          to label %225 unwind label %177

225:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 48, ptr %37) #8
  %226 = load ptr, ptr @secp, align 8, !tbaa !5
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind writable sret(%class.Point) align 8 %37, ptr noundef nonnull align 8 dereferenceable(393296) %226, ptr noundef %32)
          to label %227 unwind label %289

227:                                              ; preds = %225
  %228 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %15, ptr noundef nonnull align 8 dereferenceable(48) %37)
          to label %229 unwind label %293

229:                                              ; preds = %227
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %37) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %37) #8
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %230

230:                                              ; preds = %591, %229
  %231 = load i32, ptr %17, align 4, !tbaa !9
  %232 = load i32, ptr @bsgs_point_number, align 4, !tbaa !9
  %233 = icmp ult i32 %231, %232
  br i1 %233, label %234, label %594

234:                                              ; preds = %230
  %235 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %236 = load i32, ptr %17, align 4, !tbaa !9
  %237 = zext i32 %236 to i64
  %238 = getelementptr inbounds i32, ptr %235, i64 %237
  %239 = load i32, ptr %238, align 4, !tbaa !9
  %240 = icmp eq i32 %239, 0
  br i1 %240, label %241, label %590

241:                                              ; preds = %234
  call void @llvm.lifetime.start.p0(i64 48, ptr %38) #8
  %242 = load ptr, ptr @secp, align 8, !tbaa !5
  %243 = load i32, ptr %17, align 4, !tbaa !9
  %244 = zext i32 %243 to i64
  %245 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @OriginalPointsBSGS, i64 noundef %244) #8
  invoke void @_ZN9Secp256K19AddDirectER5PointS1_(ptr dead_on_unwind writable sret(%class.Point) align 8 %38, ptr noundef nonnull align 8 dereferenceable(393296) %242, ptr noundef nonnull align 8 dereferenceable(48) %245, ptr noundef nonnull align 8 dereferenceable(48) %15)
          to label %246 unwind label %298

246:                                              ; preds = %241
  %247 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %24, ptr noundef nonnull align 8 dereferenceable(48) %38)
          to label %248 unwind label %302

248:                                              ; preds = %246
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %38) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %38) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  store i32 0, ptr %39, align 4, !tbaa !9
  br label %249

249:                                              ; preds = %585, %248
  %250 = load i32, ptr %39, align 4, !tbaa !9
  %251 = load i32, ptr %22, align 4, !tbaa !9
  %252 = icmp ult i32 %250, %251
  br i1 %252, label %253, label %260

253:                                              ; preds = %249
  %254 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %255 = load i32, ptr %17, align 4, !tbaa !9
  %256 = zext i32 %255 to i64
  %257 = getelementptr inbounds i32, ptr %254, i64 %256
  %258 = load i32, ptr %257, align 4, !tbaa !9
  %259 = icmp eq i32 %258, 0
  br label %260

260:                                              ; preds = %253, %249
  %261 = phi i1 [ false, %249 ], [ %259, %253 ]
  br i1 %261, label %262, label %589

262:                                              ; preds = %260
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #8
  store i32 0, ptr %40, align 4, !tbaa !9
  br label %263

263:                                              ; preds = %277, %262
  %264 = load i32, ptr %40, align 4, !tbaa !9
  %265 = load i32, ptr %25, align 4, !tbaa !9
  %266 = icmp slt i32 %264, %265
  br i1 %266, label %267, label %311

267:                                              ; preds = %263
  %268 = load i32, ptr %40, align 4, !tbaa !9
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %269
  %271 = load i32, ptr %40, align 4, !tbaa !9
  %272 = sext i32 %271 to i64
  %273 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %272) #8
  %274 = getelementptr inbounds %class.Point, ptr %273, i32 0, i32 0
  %275 = getelementptr inbounds %class.Point, ptr %24, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %270, ptr noundef %274, ptr noundef %275)
          to label %276 unwind label %307

276:                                              ; preds = %267
  br label %277

277:                                              ; preds = %276
  %278 = load i32, ptr %40, align 4, !tbaa !9
  %279 = add nsw i32 %278, 1
  store i32 %279, ptr %40, align 4, !tbaa !9
  br label %263, !llvm.loop !15

280:                                              ; preds = %215
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %11, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %12, align 4
  br label %288

284:                                              ; preds = %217
  %285 = landingpad { ptr, i32 }
          cleanup
  %286 = extractvalue { ptr, i32 } %285, 0
  store ptr %286, ptr %11, align 8
  %287 = extractvalue { ptr, i32 } %285, 1
  store i32 %287, ptr %12, align 4
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %36) #8
  br label %288

288:                                              ; preds = %284, %280
  call void @llvm.lifetime.end.p0(i64 48, ptr %36) #8
  br label %609

289:                                              ; preds = %225
  %290 = landingpad { ptr, i32 }
          cleanup
  %291 = extractvalue { ptr, i32 } %290, 0
  store ptr %291, ptr %11, align 8
  %292 = extractvalue { ptr, i32 } %290, 1
  store i32 %292, ptr %12, align 4
  br label %297

293:                                              ; preds = %227
  %294 = landingpad { ptr, i32 }
          cleanup
  %295 = extractvalue { ptr, i32 } %294, 0
  store ptr %295, ptr %11, align 8
  %296 = extractvalue { ptr, i32 } %294, 1
  store i32 %296, ptr %12, align 4
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %37) #8
  br label %297

297:                                              ; preds = %293, %289
  call void @llvm.lifetime.end.p0(i64 48, ptr %37) #8
  br label %609

298:                                              ; preds = %241
  %299 = landingpad { ptr, i32 }
          cleanup
  %300 = extractvalue { ptr, i32 } %299, 0
  store ptr %300, ptr %11, align 8
  %301 = extractvalue { ptr, i32 } %299, 1
  store i32 %301, ptr %12, align 4
  br label %306

302:                                              ; preds = %246
  %303 = landingpad { ptr, i32 }
          cleanup
  %304 = extractvalue { ptr, i32 } %303, 0
  store ptr %304, ptr %11, align 8
  %305 = extractvalue { ptr, i32 } %303, 1
  store i32 %305, ptr %12, align 4
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %38) #8
  br label %306

306:                                              ; preds = %302, %298
  call void @llvm.lifetime.end.p0(i64 48, ptr %38) #8
  br label %609

307:                                              ; preds = %583, %581, %579, %576, %574, %572, %570, %569, %564, %562, %560, %427, %421, %419, %417, %416, %412, %410, %409, %404, %402, %391, %384, %378, %376, %374, %373, %369, %367, %366, %361, %355, %353, %351, %350, %346, %340, %338, %336, %328, %326, %320, %311, %267
  %308 = landingpad { ptr, i32 }
          cleanup
  %309 = extractvalue { ptr, i32 } %308, 0
  store ptr %309, ptr %11, align 8
  %310 = extractvalue { ptr, i32 } %308, 1
  store i32 %310, ptr %12, align 4
  br label %588

311:                                              ; preds = %263
  %312 = load i32, ptr %40, align 4, !tbaa !9
  %313 = sext i32 %312 to i64
  %314 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %313
  %315 = load i32, ptr %40, align 4, !tbaa !9
  %316 = sext i32 %315 to i64
  %317 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %316) #8
  %318 = getelementptr inbounds %class.Point, ptr %317, i32 0, i32 0
  %319 = getelementptr inbounds %class.Point, ptr %24, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %314, ptr noundef %318, ptr noundef %319)
          to label %320 unwind label %307

320:                                              ; preds = %311
  %321 = load i32, ptr %40, align 4, !tbaa !9
  %322 = add nsw i32 %321, 1
  %323 = sext i32 %322 to i64
  %324 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %323
  %325 = getelementptr inbounds %class.Point, ptr %24, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %324, ptr noundef @_2GSn, ptr noundef %325)
          to label %326 unwind label %307

326:                                              ; preds = %320
  %327 = load ptr, ptr %23, align 8, !tbaa !5
  invoke void @_ZN8IntGroup6ModInvEv(ptr noundef nonnull align 8 dereferenceable(20) %327)
          to label %328 unwind label %307

328:                                              ; preds = %326
  %329 = getelementptr inbounds [1024 x %class.Point], ptr %27, i64 0, i64 512
  %330 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %329, ptr noundef nonnull align 8 dereferenceable(48) %24)
          to label %331 unwind label %307

331:                                              ; preds = %328
  store i32 0, ptr %40, align 4, !tbaa !9
  br label %332

332:                                              ; preds = %399, %331
  %333 = load i32, ptr %40, align 4, !tbaa !9
  %334 = load i32, ptr %25, align 4, !tbaa !9
  %335 = icmp slt i32 %333, %334
  br i1 %335, label %336, label %402

336:                                              ; preds = %332
  %337 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %34, ptr noundef nonnull align 8 dereferenceable(48) %24)
          to label %338 unwind label %307

338:                                              ; preds = %336
  %339 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %35, ptr noundef nonnull align 8 dereferenceable(48) %24)
          to label %340 unwind label %307

340:                                              ; preds = %338
  %341 = load i32, ptr %40, align 4, !tbaa !9
  %342 = sext i32 %341 to i64
  %343 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %342) #8
  %344 = getelementptr inbounds %class.Point, ptr %343, i32 0, i32 1
  %345 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef %344, ptr noundef %345)
          to label %346 unwind label %307

346:                                              ; preds = %340
  %347 = load i32, ptr %40, align 4, !tbaa !9
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %348
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef %28, ptr noundef %349)
          to label %350 unwind label %307

350:                                              ; preds = %346
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef %30)
          to label %351 unwind label %307

351:                                              ; preds = %350
  %352 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(16) %352)
          to label %353 unwind label %307

353:                                              ; preds = %351
  %354 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(16) %354, ptr noundef %31)
          to label %355 unwind label %307

355:                                              ; preds = %353
  %356 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  %357 = load i32, ptr %40, align 4, !tbaa !9
  %358 = sext i32 %357 to i64
  %359 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %358) #8
  %360 = getelementptr inbounds %class.Point, ptr %359, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %356, ptr noundef %360)
          to label %361 unwind label %307

361:                                              ; preds = %355
  %362 = load i32, ptr %40, align 4, !tbaa !9
  %363 = sext i32 %362 to i64
  %364 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %363) #8
  %365 = getelementptr inbounds %class.Point, ptr %364, i32 0, i32 1
  invoke void @_ZN3Int3SetEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef %365)
          to label %366 unwind label %307

366:                                              ; preds = %361
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(16) %29)
          to label %367 unwind label %307

367:                                              ; preds = %366
  %368 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef %368)
          to label %369 unwind label %307

369:                                              ; preds = %367
  %370 = load i32, ptr %40, align 4, !tbaa !9
  %371 = sext i32 %370 to i64
  %372 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %371
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef %29, ptr noundef %372)
          to label %373 unwind label %307

373:                                              ; preds = %369
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef %30)
          to label %374 unwind label %307

374:                                              ; preds = %373
  %375 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(16) %375)
          to label %376 unwind label %307

376:                                              ; preds = %374
  %377 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(16) %377, ptr noundef %31)
          to label %378 unwind label %307

378:                                              ; preds = %376
  %379 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 0
  %380 = load i32, ptr %40, align 4, !tbaa !9
  %381 = sext i32 %380 to i64
  %382 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %381) #8
  %383 = getelementptr inbounds %class.Point, ptr %382, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %379, ptr noundef %383)
          to label %384 unwind label %307

384:                                              ; preds = %378
  %385 = load i32, ptr %40, align 4, !tbaa !9
  %386 = add nsw i32 %385, 1
  %387 = add nsw i32 512, %386
  %388 = sext i32 %387 to i64
  %389 = getelementptr inbounds [1024 x %class.Point], ptr %27, i64 0, i64 %388
  %390 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %389, ptr noundef nonnull align 8 dereferenceable(48) %34)
          to label %391 unwind label %307

391:                                              ; preds = %384
  %392 = load i32, ptr %40, align 4, !tbaa !9
  %393 = add nsw i32 %392, 1
  %394 = sub nsw i32 512, %393
  %395 = sext i32 %394 to i64
  %396 = getelementptr inbounds [1024 x %class.Point], ptr %27, i64 0, i64 %395
  %397 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %396, ptr noundef nonnull align 8 dereferenceable(48) %35)
          to label %398 unwind label %307

398:                                              ; preds = %391
  br label %399

399:                                              ; preds = %398
  %400 = load i32, ptr %40, align 4, !tbaa !9
  %401 = add nsw i32 %400, 1
  store i32 %401, ptr %40, align 4, !tbaa !9
  br label %332, !llvm.loop !17

402:                                              ; preds = %332
  %403 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %35, ptr noundef nonnull align 8 dereferenceable(48) %24)
          to label %404 unwind label %307

404:                                              ; preds = %402
  %405 = load i32, ptr %40, align 4, !tbaa !9
  %406 = sext i32 %405 to i64
  %407 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %406) #8
  %408 = getelementptr inbounds %class.Point, ptr %407, i32 0, i32 1
  invoke void @_ZN3Int3SetEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef %408)
          to label %409 unwind label %307

409:                                              ; preds = %404
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(16) %29)
          to label %410 unwind label %307

410:                                              ; preds = %409
  %411 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef %411)
          to label %412 unwind label %307

412:                                              ; preds = %410
  %413 = load i32, ptr %40, align 4, !tbaa !9
  %414 = sext i32 %413 to i64
  %415 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %414
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef %29, ptr noundef %415)
          to label %416 unwind label %307

416:                                              ; preds = %412
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef %30)
          to label %417 unwind label %307

417:                                              ; preds = %416
  %418 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(16) %418)
          to label %419 unwind label %307

419:                                              ; preds = %417
  %420 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(16) %420, ptr noundef %31)
          to label %421 unwind label %307

421:                                              ; preds = %419
  %422 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 0
  %423 = load i32, ptr %40, align 4, !tbaa !9
  %424 = sext i32 %423 to i64
  %425 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %424) #8
  %426 = getelementptr inbounds %class.Point, ptr %425, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %422, ptr noundef %426)
          to label %427 unwind label %307

427:                                              ; preds = %421
  %428 = getelementptr inbounds [1024 x %class.Point], ptr %27, i64 0, i64 0
  %429 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %428, ptr noundef nonnull align 8 dereferenceable(48) %35)
          to label %430 unwind label %307

430:                                              ; preds = %427
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #8
  store i32 0, ptr %41, align 4, !tbaa !9
  br label %431

431:                                              ; preds = %556, %430
  %432 = load i32, ptr %41, align 4, !tbaa !9
  %433 = icmp slt i32 %432, 1024
  br i1 %433, label %434, label %441

434:                                              ; preds = %431
  %435 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %436 = load i32, ptr %17, align 4, !tbaa !9
  %437 = zext i32 %436 to i64
  %438 = getelementptr inbounds i32, ptr %435, i64 %437
  %439 = load i32, ptr %438, align 4, !tbaa !9
  %440 = icmp eq i32 %439, 0
  br label %441

441:                                              ; preds = %434, %431
  %442 = phi i1 [ false, %431 ], [ %440, %434 ]
  br i1 %442, label %444, label %443

443:                                              ; preds = %441
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  br label %560

444:                                              ; preds = %441
  %445 = load i32, ptr %41, align 4, !tbaa !9
  %446 = sext i32 %445 to i64
  %447 = getelementptr inbounds [1024 x %class.Point], ptr %27, i64 0, i64 %446
  %448 = getelementptr inbounds %class.Point, ptr %447, i32 0, i32 0
  %449 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  invoke void @_ZN3Int10Get32BytesEPh(ptr noundef nonnull align 8 dereferenceable(16) %448, ptr noundef %449)
          to label %450 unwind label %506

450:                                              ; preds = %444
  %451 = load ptr, ptr @bloom_bP, align 8, !tbaa !5
  %452 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  %453 = load i8, ptr %452, align 16, !tbaa !18
  %454 = zext i8 %453 to i64
  %455 = getelementptr inbounds %struct.bloom, ptr %451, i64 %454
  %456 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  %457 = invoke i32 @bloom_check(ptr noundef %455, ptr noundef %456, i32 noundef 32)
          to label %458 unwind label %506

458:                                              ; preds = %450
  store i32 %457, ptr %19, align 4, !tbaa !9
  %459 = load i32, ptr %19, align 4, !tbaa !9
  %460 = icmp ne i32 %459, 0
  br i1 %460, label %461, label %555

461:                                              ; preds = %458
  %462 = load i32, ptr %39, align 4, !tbaa !9
  %463 = mul i32 %462, 1024
  %464 = load i32, ptr %41, align 4, !tbaa !9
  %465 = add i32 %463, %464
  %466 = load i32, ptr %17, align 4, !tbaa !9
  %467 = invoke noundef i32 @_Z16bsgs_secondcheckP3IntjjS0_(ptr noundef %9, i32 noundef %465, i32 noundef %466, ptr noundef %10)
          to label %468 unwind label %506

468:                                              ; preds = %461
  store i32 %467, ptr %19, align 4, !tbaa !9
  %469 = load i32, ptr %19, align 4, !tbaa !9
  %470 = icmp ne i32 %469, 0
  br i1 %470, label %471, label %554

471:                                              ; preds = %468
  %472 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %473 unwind label %506

473:                                              ; preds = %471
  store ptr %472, ptr %8, align 8, !tbaa !5
  %474 = load ptr, ptr %8, align 8, !tbaa !5
  %475 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.244, ptr noundef %474)
          to label %476 unwind label %506

476:                                              ; preds = %473
  call void @llvm.lifetime.start.p0(i64 48, ptr %42) #8
  %477 = load ptr, ptr @secp, align 8, !tbaa !5
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind writable sret(%class.Point) align 8 %42, ptr noundef nonnull align 8 dereferenceable(393296) %477, ptr noundef %10)
          to label %478 unwind label %510

478:                                              ; preds = %476
  %479 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %16, ptr noundef nonnull align 8 dereferenceable(48) %42)
          to label %480 unwind label %514

480:                                              ; preds = %478
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %42) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %42) #8
  %481 = load ptr, ptr @secp, align 8, !tbaa !5
  %482 = load ptr, ptr @OriginalPointsBSGScompressed, align 8, !tbaa !5
  %483 = load i32, ptr %17, align 4, !tbaa !9
  %484 = zext i32 %483 to i64
  %485 = getelementptr inbounds i8, ptr %482, i64 %484
  %486 = load i8, ptr %485, align 1, !tbaa !19, !range !21, !noundef !22
  %487 = trunc i8 %486 to i1
  %488 = invoke noundef ptr @_ZN9Secp256K115GetPublicKeyHexEbR5Point(ptr noundef nonnull align 8 dereferenceable(393296) %481, i1 noundef zeroext %487, ptr noundef nonnull align 8 dereferenceable(48) %16)
          to label %489 unwind label %506

489:                                              ; preds = %480
  store ptr %488, ptr %7, align 8, !tbaa !5
  %490 = load ptr, ptr %7, align 8, !tbaa !5
  %491 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.238, ptr noundef %490)
          to label %492 unwind label %506

492:                                              ; preds = %489
  %493 = call i32 @pthread_mutex_lock(ptr noundef @write_keys) #8
  %494 = invoke noalias ptr @fopen(ptr noundef @.str.228, ptr noundef @.str.239)
          to label %495 unwind label %506

495:                                              ; preds = %492
  store ptr %494, ptr %4, align 8, !tbaa !5
  %496 = load ptr, ptr %4, align 8, !tbaa !5
  %497 = icmp ne ptr %496, null
  br i1 %497, label %498, label %519

498:                                              ; preds = %495
  %499 = load ptr, ptr %4, align 8, !tbaa !5
  %500 = load ptr, ptr %8, align 8, !tbaa !5
  %501 = load ptr, ptr %7, align 8, !tbaa !5
  %502 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %499, ptr noundef @.str.240, ptr noundef %500, ptr noundef %501) #8
  %503 = load ptr, ptr %4, align 8, !tbaa !5
  %504 = invoke i32 @fclose(ptr noundef %503)
          to label %505 unwind label %506

505:                                              ; preds = %498
  br label %519

506:                                              ; preds = %550, %498, %492, %489, %480, %473, %471, %461, %450, %444
  %507 = landingpad { ptr, i32 }
          cleanup
  %508 = extractvalue { ptr, i32 } %507, 0
  store ptr %508, ptr %11, align 8
  %509 = extractvalue { ptr, i32 } %507, 1
  store i32 %509, ptr %12, align 4
  br label %559

510:                                              ; preds = %476
  %511 = landingpad { ptr, i32 }
          cleanup
  %512 = extractvalue { ptr, i32 } %511, 0
  store ptr %512, ptr %11, align 8
  %513 = extractvalue { ptr, i32 } %511, 1
  store i32 %513, ptr %12, align 4
  br label %518

514:                                              ; preds = %478
  %515 = landingpad { ptr, i32 }
          cleanup
  %516 = extractvalue { ptr, i32 } %515, 0
  store ptr %516, ptr %11, align 8
  %517 = extractvalue { ptr, i32 } %515, 1
  store i32 %517, ptr %12, align 4
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %42) #8
  br label %518

518:                                              ; preds = %514, %510
  call void @llvm.lifetime.end.p0(i64 48, ptr %42) #8
  br label %559

519:                                              ; preds = %505, %495
  %520 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %520) #8
  %521 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %521) #8
  %522 = call i32 @pthread_mutex_unlock(ptr noundef @write_keys) #8
  %523 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %524 = load i32, ptr %17, align 4, !tbaa !9
  %525 = zext i32 %524 to i64
  %526 = getelementptr inbounds i32, ptr %523, i64 %525
  store i32 1, ptr %526, align 4, !tbaa !9
  store i32 1, ptr %20, align 4, !tbaa !9
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %527

527:                                              ; preds = %544, %519
  %528 = load i32, ptr %18, align 4, !tbaa !9
  %529 = load i32, ptr @bsgs_point_number, align 4, !tbaa !9
  %530 = icmp ult i32 %528, %529
  br i1 %530, label %531, label %534

531:                                              ; preds = %527
  %532 = load i32, ptr %20, align 4, !tbaa !9
  %533 = icmp ne i32 %532, 0
  br label %534

534:                                              ; preds = %531, %527
  %535 = phi i1 [ false, %527 ], [ %533, %531 ]
  br i1 %535, label %536, label %547

536:                                              ; preds = %534
  %537 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %538 = load i32, ptr %18, align 4, !tbaa !9
  %539 = zext i32 %538 to i64
  %540 = getelementptr inbounds i32, ptr %537, i64 %539
  %541 = load i32, ptr %540, align 4, !tbaa !9
  %542 = load i32, ptr %20, align 4, !tbaa !9
  %543 = and i32 %542, %541
  store i32 %543, ptr %20, align 4, !tbaa !9
  br label %544

544:                                              ; preds = %536
  %545 = load i32, ptr %18, align 4, !tbaa !9
  %546 = add i32 %545, 1
  store i32 %546, ptr %18, align 4, !tbaa !9
  br label %527, !llvm.loop !23

547:                                              ; preds = %534
  %548 = load i32, ptr %20, align 4, !tbaa !9
  %549 = icmp ne i32 %548, 0
  br i1 %549, label %550, label %553

550:                                              ; preds = %547
  %551 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.241)
          to label %552 unwind label %506

552:                                              ; preds = %550
  call void @exit(i32 noundef 1) #11
  unreachable

553:                                              ; preds = %547
  br label %554

554:                                              ; preds = %553, %468
  br label %555

555:                                              ; preds = %554, %458
  br label %556

556:                                              ; preds = %555
  %557 = load i32, ptr %41, align 4, !tbaa !9
  %558 = add nsw i32 %557, 1
  store i32 %558, ptr %41, align 4, !tbaa !9
  br label %431, !llvm.loop !24

559:                                              ; preds = %518, %506
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  br label %588

560:                                              ; preds = %443
  %561 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %34, ptr noundef nonnull align 8 dereferenceable(48) %24)
          to label %562 unwind label %307

562:                                              ; preds = %560
  %563 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef getelementptr inbounds (%class.Point, ptr @_2GSn, i32 0, i32 1), ptr noundef %563)
          to label %564 unwind label %307

564:                                              ; preds = %562
  %565 = load i32, ptr %40, align 4, !tbaa !9
  %566 = add nsw i32 %565, 1
  %567 = sext i32 %566 to i64
  %568 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %567
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef %28, ptr noundef %568)
          to label %569 unwind label %307

569:                                              ; preds = %564
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef %30)
          to label %570 unwind label %307

570:                                              ; preds = %569
  %571 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(16) %571)
          to label %572 unwind label %307

572:                                              ; preds = %570
  %573 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(16) %573, ptr noundef %31)
          to label %574 unwind label %307

574:                                              ; preds = %572
  %575 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %575, ptr noundef @_2GSn)
          to label %576 unwind label %307

576:                                              ; preds = %574
  %577 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 1
  %578 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %577, ptr noundef @_2GSn, ptr noundef %578)
          to label %579 unwind label %307

579:                                              ; preds = %576
  %580 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 1
  invoke void @_ZN3Int8ModMulK1EPS_(ptr noundef nonnull align 8 dereferenceable(16) %580, ptr noundef %30)
          to label %581 unwind label %307

581:                                              ; preds = %579
  %582 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %582, ptr noundef getelementptr inbounds (%class.Point, ptr @_2GSn, i32 0, i32 1))
          to label %583 unwind label %307

583:                                              ; preds = %581
  %584 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %24, ptr noundef nonnull align 8 dereferenceable(48) %34)
          to label %585 unwind label %307

585:                                              ; preds = %583
  %586 = load i32, ptr %39, align 4, !tbaa !9
  %587 = add i32 %586, 1
  store i32 %587, ptr %39, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  br label %249, !llvm.loop !25

588:                                              ; preds = %559, %307
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  br label %609

589:                                              ; preds = %260
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  br label %590

590:                                              ; preds = %589, %234
  br label %591

591:                                              ; preds = %590
  %592 = load i32, ptr %17, align 4, !tbaa !9
  %593 = add i32 %592, 1
  store i32 %593, ptr %17, align 4, !tbaa !9
  br label %230, !llvm.loop !26

594:                                              ; preds = %230
  %595 = load ptr, ptr @steps, align 8, !tbaa !5
  %596 = load i32, ptr %21, align 4, !tbaa !9
  %597 = zext i32 %596 to i64
  %598 = getelementptr inbounds i64, ptr %595, i64 %597
  %599 = load i64, ptr %598, align 8, !tbaa !13
  %600 = add i64 %599, 2
  store i64 %600, ptr %598, align 8, !tbaa !13
  br label %601

601:                                              ; preds = %594
  br i1 true, label %185, label %602, !llvm.loop !27

602:                                              ; preds = %601
  %603 = load ptr, ptr @ends, align 8, !tbaa !5
  %604 = load i32, ptr %21, align 4, !tbaa !9
  %605 = zext i32 %604 to i64
  %606 = getelementptr inbounds i32, ptr %603, i64 %605
  store i32 1, ptr %606, align 4, !tbaa !9
  store ptr null, ptr %2, align 8
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %35) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %35) #8
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %34) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %34) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %33) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %30) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #8
  %607 = getelementptr inbounds [1024 x %class.Point], ptr %27, i32 0, i32 0
  %608 = getelementptr inbounds %class.Point, ptr %607, i64 1024
  br label %620

609:                                              ; preds = %588, %306, %297, %288, %177
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %35) #8
  br label %610

610:                                              ; preds = %609, %173
  call void @llvm.lifetime.end.p0(i64 48, ptr %35) #8
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %34) #8
  br label %611

611:                                              ; preds = %610, %169
  call void @llvm.lifetime.end.p0(i64 48, ptr %34) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %33) #8
  br label %612

612:                                              ; preds = %611, %165
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #8
  br label %613

613:                                              ; preds = %612, %161
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #8
  br label %614

614:                                              ; preds = %613, %157
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %30) #8
  br label %615

615:                                              ; preds = %614, %153
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #8
  br label %616

616:                                              ; preds = %615, %149
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #8
  br label %617

617:                                              ; preds = %616, %145
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #8
  %618 = getelementptr inbounds [1024 x %class.Point], ptr %27, i32 0, i32 0
  %619 = getelementptr inbounds %class.Point, ptr %618, i64 1024
  br label %627

620:                                              ; preds = %620, %602
  %621 = phi ptr [ %608, %602 ], [ %622, %620 ]
  %622 = getelementptr inbounds %class.Point, ptr %621, i64 -1
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %622) #8
  %623 = icmp eq ptr %622, %607
  br i1 %623, label %624, label %620

624:                                              ; preds = %620
  call void @llvm.lifetime.end.p0(i64 49152, ptr %27) #8
  %625 = getelementptr inbounds [513 x %class.Int], ptr %26, i32 0, i32 0
  %626 = getelementptr inbounds %class.Int, ptr %625, i64 513
  br label %635

627:                                              ; preds = %627, %617
  %628 = phi ptr [ %619, %617 ], [ %629, %627 ]
  %629 = getelementptr inbounds %class.Point, ptr %628, i64 -1
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %629) #8
  %630 = icmp eq ptr %629, %618
  br i1 %630, label %631, label %627

631:                                              ; preds = %627
  br label %632

632:                                              ; preds = %631, %144
  call void @llvm.lifetime.end.p0(i64 49152, ptr %27) #8
  %633 = getelementptr inbounds [513 x %class.Int], ptr %26, i32 0, i32 0
  %634 = getelementptr inbounds %class.Int, ptr %633, i64 513
  br label %641

635:                                              ; preds = %635, %624
  %636 = phi ptr [ %626, %624 ], [ %637, %635 ]
  %637 = getelementptr inbounds %class.Int, ptr %636, i64 -1
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %637) #8
  %638 = icmp eq ptr %637, %625
  br i1 %638, label %639, label %635

639:                                              ; preds = %635
  call void @llvm.lifetime.end.p0(i64 8208, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %24) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %16) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %16) #8
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #8
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  %640 = load ptr, ptr %2, align 8
  ret ptr %640

641:                                              ; preds = %641, %632
  %642 = phi ptr [ %634, %632 ], [ %643, %641 ]
  %643 = getelementptr inbounds %class.Int, ptr %642, i64 -1
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %643) #8
  %644 = icmp eq ptr %643, %633
  br i1 %644, label %645, label %641

645:                                              ; preds = %641
  br label %646

646:                                              ; preds = %645, %134
  call void @llvm.lifetime.end.p0(i64 8208, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %24) #8
  br label %647

647:                                              ; preds = %646, %121
  call void @llvm.lifetime.end.p0(i64 48, ptr %24) #8
  br label %648

648:                                              ; preds = %647, %117, %113
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %16) #8
  br label %649

649:                                              ; preds = %648, %109
  call void @llvm.lifetime.end.p0(i64 48, ptr %16) #8
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #8
  br label %650

650:                                              ; preds = %649, %105
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #8
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #8
  br label %651

651:                                              ; preds = %650, %101
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #8
  br label %652

652:                                              ; preds = %651, %97
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #8
  br label %653

653:                                              ; preds = %652, %93
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  br label %654

654:                                              ; preds = %653
  %655 = load ptr, ptr %11, align 8
  %656 = load i32, ptr %12, align 4
  %657 = insertvalue { ptr, i32 } poison, ptr %655, 0
  %658 = insertvalue { ptr, i32 } %657, i32 %656, 1
  resume { ptr, i32 } %658
}

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

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

declare void @_ZN8IntGroupC1Ei(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) unnamed_addr #0

declare void @_ZN8IntGroup3SetEP3Int(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef) #0

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

declare void @_ZN8IntGroup6ModInvEv(ptr noundef nonnull align 8 dereferenceable(20)) #0

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z16bsgs_secondcheckP3IntjjS0_(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #7

declare noundef ptr @_ZN9Secp256K115GetPublicKeyHexEbR5Point(ptr noundef nonnull align 8 dereferenceable(393296), i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(48)) #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 = { nobuiltin allocsize(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 = { nobuiltin 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 #5 = { noreturn 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 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin nounwind }
attributes #11 = { noreturn 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, !10, i64 0}
!12 = !{!"_ZTS8tothread", !10, i64 0, !6, i64 8, !6, i64 16}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!7, !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16}
!25 = distinct !{!25, !16}
!26 = distinct !{!26, !16}
!27 = distinct !{!27, !16}


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl" }
%"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl" = type { %"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Point = type { %class.Int, %class.Int, %class.Int }
%class.Int = type { [1 x %struct.__mpz_struct] }
%struct.__mpz_struct = type { i32, i32, ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%struct.bloom = type { i64, i64, i64, i8, x86_fp80, i8, i8, i8, double, ptr }

@GSn = external dso_local global %"class.std::vector", align 8
@_2GSn = external dso_local global %class.Point, align 8
@THREADOUTPUT = external dso_local local_unnamed_addr global i32, align 4
@write_keys = external dso_local global %union.pthread_mutex_t, align 8
@bsgs_thread = external dso_local global %union.pthread_mutex_t, align 8
@steps = external dso_local local_unnamed_addr global ptr, align 8
@FLAGQUIET = external dso_local local_unnamed_addr global i32, align 4
@FLAGMATRIX = external dso_local local_unnamed_addr global i32, align 4
@bsgs_found = external dso_local local_unnamed_addr global ptr, align 8
@OriginalPointsBSGS = external dso_local global %"class.std::vector", align 8
@OriginalPointsBSGScompressed = external dso_local local_unnamed_addr global ptr, align 8
@bloom_bP = external dso_local local_unnamed_addr global ptr, align 8
@bsgs_aux = external dso_local local_unnamed_addr global i64, align 8
@bsgs_point_number = external dso_local local_unnamed_addr global i32, align 4
@BSGS_M = external dso_local global %class.Int, align 8
@BSGS_M_double = external dso_local global %class.Int, align 8
@n_range_start = external dso_local global %class.Int, align 8
@n_range_end = external dso_local global %class.Int, align 8
@secp = external dso_local local_unnamed_addr global ptr, align 8
@stdout = external local_unnamed_addr global ptr, align 8
@.str.228 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.238 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.239 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.240 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.241 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.242 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.243 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.244 = external hidden unnamed_addr constant [37 x i8], align 1

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #4

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

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

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

declare noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #7

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

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #5

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

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #5

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

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #5

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

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #0

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

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

; Function Attrs: nounwind
declare i32 @pthread_mutex_lock(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare i32 @pthread_mutex_unlock(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress noreturn uwtable
define dso_local noalias noundef nonnull ptr @_Z26thread_process_bsgs_randomPv(ptr nocapture noundef %0) local_unnamed_addr #9 personality ptr @__gxx_personality_v0 {
  %2 = alloca [32 x i8], align 16
  %3 = alloca %class.Int, align 8
  %4 = alloca %class.Int, align 8
  %5 = alloca %class.Int, align 8
  %6 = alloca %class.Point, align 8
  %7 = alloca %class.Point, align 8
  %8 = alloca %class.Point, align 8
  %9 = alloca %class.Point, align 8
  %10 = alloca [513 x %class.Int], align 16
  %11 = alloca [1024 x %class.Point], align 16
  %12 = alloca %class.Int, align 8
  %13 = alloca %class.Int, align 8
  %14 = alloca %class.Int, align 8
  %15 = alloca %class.Int, align 8
  %16 = alloca %class.Int, align 8
  %17 = alloca %class.Int, align 8
  %18 = alloca %class.Point, align 8
  %19 = alloca %class.Point, align 8
  %20 = alloca %class.Point, align 8
  %21 = alloca %class.Point, align 8
  %22 = alloca %class.Point, align 8
  %23 = alloca %class.Point, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #11
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %3)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #11
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %24 unwind label %58

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

25:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #11
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %26 unwind label %62

26:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #11
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %27 unwind label %64

27:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #11
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %28 unwind label %66

28:                                               ; preds = %27
  %29 = invoke noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #12
          to label %30 unwind label %68

30:                                               ; preds = %28
  invoke void @_ZN8IntGroupC1Ei(ptr noundef nonnull align 8 dereferenceable(20) %29, i32 noundef 513)
          to label %31 unwind label %70

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

32:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8208, ptr nonnull %10) #11
  %33 = getelementptr inbounds i8, ptr %10, i64 8208
  br label %34

34:                                               ; preds = %35, %32
  %.idx = phi i64 [ 0, %32 ], [ %.add, %35 ]
  %.ptr = getelementptr inbounds i8, ptr %10, i64 %.idx
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %.ptr)
          to label %35 unwind label %74

35:                                               ; preds = %34
  %.add = add nuw nsw i64 %.idx, 16
  %36 = icmp eq i64 %.add, 8208
  br i1 %36, label %37, label %34

37:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 49152, ptr nonnull %11) #11
  %38 = getelementptr inbounds i8, ptr %11, i64 49152
  br label %39

39:                                               ; preds = %40, %37
  %.idx111 = phi i64 [ 0, %37 ], [ %.add112, %40 ]
  %.ptr113 = getelementptr inbounds i8, ptr %11, i64 %.idx111
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %.ptr113)
          to label %40 unwind label %80

40:                                               ; preds = %39
  %.add112 = add nuw nsw i64 %.idx111, 48
  %41 = icmp eq i64 %.add112, 49152
  br i1 %41, label %42, label %39

42:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #11
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %43 unwind label %86

43:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #11
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %44 unwind label %88

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

45:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #11
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %46 unwind label %92

46:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #11
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %47 unwind label %94

47:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #11
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %48 unwind label %96

48:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %18) #11
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %18)
          to label %49 unwind label %98

49:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %19) #11
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %19)
          to label %50 unwind label %100

50:                                               ; preds = %49
  invoke void @_ZN8IntGroup3SetEP3Int(ptr noundef nonnull align 8 dereferenceable(20) %29, ptr noundef nonnull %10)
          to label %51 unwind label %.loopexit.split-lp157

51:                                               ; preds = %50
  %52 = load i32, ptr %0, align 8, !tbaa !5
  call void @free(ptr noundef %0) #11
  %53 = load i64, ptr @bsgs_aux, align 8, !tbaa !11
  %54 = lshr i64 %53, 10
  %55 = trunc i64 %54 to i32
  %56 = and i64 %53, 1023
  %.not = icmp ne i64 %56, 0
  %57 = zext i1 %.not to i32
  %spec.select = add i32 %57, %55
  %spec.select.fr = freeze i32 %spec.select
  invoke void @_ZN3Int3SetEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull @BSGS_M_double)
          to label %102 unwind label %.loopexit.split-lp157

58:                                               ; preds = %1
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %350

60:                                               ; preds = %24
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %349

62:                                               ; preds = %25
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %348

64:                                               ; preds = %26
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %347

66:                                               ; preds = %27
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %346

68:                                               ; preds = %28
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %345

70:                                               ; preds = %30
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %29, i64 noundef 24) #13
  br label %345

72:                                               ; preds = %31
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %344

74:                                               ; preds = %34
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = icmp eq i64 %.idx, 0
  br i1 %76, label %.loopexit, label %.preheader162

.preheader162:                                    ; preds = %74, %.preheader162
  %77 = phi ptr [ %78, %.preheader162 ], [ %.ptr, %74 ]
  %78 = getelementptr inbounds i8, ptr %77, i64 -16
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %78) #11
  %79 = icmp eq ptr %78, %10
  br i1 %79, label %.loopexit, label %.preheader162

80:                                               ; preds = %39
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = icmp eq i64 %.idx111, 0
  br i1 %82, label %.loopexit148, label %.preheader160

.preheader160:                                    ; preds = %80, %.preheader160
  %83 = phi ptr [ %84, %.preheader160 ], [ %.ptr113, %80 ]
  %84 = getelementptr inbounds i8, ptr %83, i64 -48
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %84) #11
  %85 = icmp eq ptr %84, %11
  br i1 %85, label %.loopexit148, label %.preheader160

86:                                               ; preds = %42
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %335

88:                                               ; preds = %43
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %334

90:                                               ; preds = %44
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %333

92:                                               ; preds = %45
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %332

94:                                               ; preds = %46
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %331

96:                                               ; preds = %47
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %330

98:                                               ; preds = %48
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %329

100:                                              ; preds = %49
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %328

.loopexit156:                                     ; preds = %110, %115, %124, %134, %135, %136, %139
  %lpad.loopexit158 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp157:                            ; preds = %50, %51, %102, %103
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

102:                                              ; preds = %51
  invoke void @_ZN3Int4MultEm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef 512)
          to label %103 unwind label %.loopexit.split-lp157

103:                                              ; preds = %102
  invoke void @_ZN3Int3AddEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull @BSGS_M)
          to label %.preheader155 unwind label %.loopexit.split-lp157

.preheader155:                                    ; preds = %103
  %.not200 = icmp eq i32 %spec.select.fr, 0
  %104 = getelementptr inbounds i8, ptr %11, i64 24576
  %105 = getelementptr inbounds i8, ptr %18, i64 16
  %106 = getelementptr inbounds i8, ptr %19, i64 16
  %107 = zext i32 %52 to i64
  %wide.trip.count = zext i32 %spec.select.fr to i64
  %108 = getelementptr inbounds i8, ptr %10, i64 8176
  %109 = getelementptr inbounds i8, ptr %10, i64 8192
  br label %110

110:                                              ; preds = %.preheader155, %._crit_edge181
  %111 = call i32 @pthread_mutex_lock(ptr noundef nonnull @bsgs_thread) #11
  invoke void @_ZN3Int4RandEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull @n_range_start, ptr noundef nonnull @n_range_end)
          to label %112 unwind label %.loopexit156

112:                                              ; preds = %110
  %113 = call i32 @pthread_mutex_unlock(ptr noundef nonnull @bsgs_thread) #11
  %114 = load i32, ptr @FLAGMATRIX, align 4, !tbaa !13
  %.not115 = icmp eq i32 %114, 0
  br i1 %.not115, label %121, label %115

115:                                              ; preds = %112
  %116 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %117 unwind label %.loopexit156

117:                                              ; preds = %115
  %118 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.242, ptr noundef %116)
  %119 = load ptr, ptr @stdout, align 8, !tbaa !14
  %120 = call i32 @fflush(ptr noundef %119)
  call void @free(ptr noundef %116) #11
  br label %130

121:                                              ; preds = %112
  %122 = load i32, ptr @FLAGQUIET, align 4, !tbaa !13
  %123 = icmp eq i32 %122, 0
  br i1 %123, label %124, label %130

124:                                              ; preds = %121
  %125 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %126 unwind label %.loopexit156

126:                                              ; preds = %124
  %127 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.243, ptr noundef %125)
  %128 = load ptr, ptr @stdout, align 8, !tbaa !14
  %129 = call i32 @fflush(ptr noundef %128)
  call void @free(ptr noundef %125) #11
  store i32 1, ptr @THREADOUTPUT, align 4, !tbaa !13
  br label %130

130:                                              ; preds = %121, %126, %117
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %20) #11
  %131 = load ptr, ptr @secp, align 8, !tbaa !14
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %20, ptr noundef nonnull align 8 dereferenceable(393296) %131, ptr noundef nonnull %3)
          to label %132 unwind label %304

132:                                              ; preds = %130
  %133 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(48) %20)
          to label %134 unwind label %306

134:                                              ; preds = %132
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #11
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %20) #11
  invoke void @_ZN3Int3SetEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull %3)
          to label %135 unwind label %.loopexit156

135:                                              ; preds = %134
  invoke void @_ZN3Int3NegEv(ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %136 unwind label %.loopexit156

136:                                              ; preds = %135
  %137 = load ptr, ptr @secp, align 8, !tbaa !14
  %138 = getelementptr inbounds i8, ptr %137, i64 64
  invoke void @_ZN3Int3AddEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull %138)
          to label %139 unwind label %.loopexit156

139:                                              ; preds = %136
  invoke void @_ZN3Int3SubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull %17)
          to label %140 unwind label %.loopexit156

140:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %21) #11
  %141 = load ptr, ptr @secp, align 8, !tbaa !14
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %21, ptr noundef nonnull align 8 dereferenceable(393296) %141, ptr noundef nonnull %16)
          to label %142 unwind label %309

142:                                              ; preds = %140
  %143 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(48) %21)
          to label %144 unwind label %311

144:                                              ; preds = %142
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #11
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %21) #11
  %145 = load i32, ptr @bsgs_point_number, align 4, !tbaa !13
  %.not201 = icmp eq i32 %145, 0
  br i1 %.not201, label %._crit_edge181, label %.lr.ph180

.lr.ph180:                                        ; preds = %144
  br i1 %.not200, label %.lr.ph180.split.preheader, label %.lr.ph180.split.us

.lr.ph180.split.preheader:                        ; preds = %.lr.ph180
  %.pre236 = load ptr, ptr @bsgs_found, align 8, !tbaa !14
  br label %.lr.ph180.split

.lr.ph180.split.us:                               ; preds = %.lr.ph180, %.critedge.us
  %146 = phi i32 [ %162, %.critedge.us ], [ %145, %.lr.ph180 ]
  %indvars.iv229 = phi i64 [ %indvars.iv.next230, %.critedge.us ], [ 0, %.lr.ph180 ]
  %147 = load ptr, ptr @bsgs_found, align 8, !tbaa !14
  %148 = getelementptr inbounds i32, ptr %147, i64 %indvars.iv229
  %149 = load i32, ptr %148, align 4, !tbaa !13
  %150 = icmp eq i32 %149, 0
  br i1 %150, label %151, label %.critedge.us

151:                                              ; preds = %.lr.ph180.split.us
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %22) #11
  %152 = load ptr, ptr @secp, align 8, !tbaa !14
  %153 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @OriginalPointsBSGS, i64 noundef %indvars.iv229) #11
  invoke void @_ZN9Secp256K19AddDirectER5PointS1_(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %22, ptr noundef nonnull align 8 dereferenceable(393296) %152, ptr noundef nonnull align 8 dereferenceable(48) %153, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %154 unwind label %.split.us

154:                                              ; preds = %151
  %155 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 8 dereferenceable(48) %22)
          to label %.lr.ph175.us unwind label %.split183.us

.lr.ph175.us:                                     ; preds = %154
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %22) #11
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %22) #11
  %156 = trunc nuw i64 %indvars.iv229 to i32
  br label %157

157:                                              ; preds = %.lr.ph175.us, %203
  %indvars.iv225 = phi i64 [ 0, %.lr.ph175.us ], [ %indvars.iv.next226, %203 ]
  %158 = load ptr, ptr @bsgs_found, align 8, !tbaa !14
  %159 = getelementptr inbounds i32, ptr %158, i64 %indvars.iv229
  %160 = load i32, ptr %159, align 4, !tbaa !13
  %161 = icmp eq i32 %160, 0
  br i1 %161, label %.preheader151.us, label %.critedge.us.loopexit

.critedge.us.loopexit:                            ; preds = %203, %157
  %.pre = load i32, ptr @bsgs_point_number, align 4, !tbaa !13
  br label %.critedge.us

.critedge.us:                                     ; preds = %.critedge.us.loopexit, %.lr.ph180.split.us
  %162 = phi i32 [ %.pre, %.critedge.us.loopexit ], [ %146, %.lr.ph180.split.us ]
  %indvars.iv.next230 = add nuw nsw i64 %indvars.iv229, 1
  %163 = zext i32 %162 to i64
  %164 = icmp ult i64 %indvars.iv.next230, %163
  br i1 %164, label %.lr.ph180.split.us, label %._crit_edge181, !llvm.loop !15

165:                                              ; preds = %287
  %166 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef 511) #11
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %108, ptr noundef nonnull %166, ptr noundef nonnull %9)
          to label %167 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

167:                                              ; preds = %165
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %109, ptr noundef nonnull @_2GSn, ptr noundef nonnull %9)
          to label %168 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

168:                                              ; preds = %167
  invoke void @_ZN8IntGroup6ModInvEv(ptr noundef nonnull align 8 dereferenceable(20) %29)
          to label %169 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

169:                                              ; preds = %168
  %170 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %104, ptr noundef nonnull align 8 dereferenceable(48) %9)
          to label %.preheader149.us unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

.preheader149.us:                                 ; preds = %169, %281
  %indvars.iv214 = phi i64 [ %indvars.iv.next215, %281 ], [ 0, %169 ]
  %exitcond217.not = icmp eq i64 %indvars.iv214, 511
  br i1 %exitcond217.not, label %171, label %252

171:                                              ; preds = %.preheader149.us
  %172 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %19, ptr noundef nonnull align 8 dereferenceable(48) %9)
          to label %173 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

173:                                              ; preds = %171
  %174 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef 511) #11
  %175 = getelementptr inbounds i8, ptr %174, i64 16
  invoke void @_ZN3Int3SetEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull %175)
          to label %176 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

176:                                              ; preds = %173
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %177 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

177:                                              ; preds = %176
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull %106)
          to label %178 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

178:                                              ; preds = %177
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull %13, ptr noundef nonnull %108)
          to label %179 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

179:                                              ; preds = %178
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull %14)
          to label %180 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

180:                                              ; preds = %179
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %181 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

181:                                              ; preds = %180
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull %15)
          to label %182 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

182:                                              ; preds = %181
  %183 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef 511) #11
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull %183)
          to label %184 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

184:                                              ; preds = %182
  %185 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 8 dereferenceable(48) %19)
          to label %.preheader.us unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

186:                                              ; preds = %.preheader.us, %251
  %indvars.iv221 = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next222, %251 ]
  %187 = load ptr, ptr @bsgs_found, align 8, !tbaa !14
  %188 = getelementptr inbounds i32, ptr %187, i64 %indvars.iv229
  %189 = load i32, ptr %188, align 4, !tbaa !13
  %190 = icmp eq i32 %189, 0
  br i1 %190, label %204, label %.critedge2.us

.critedge2.us:                                    ; preds = %251, %186
  %191 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %18, ptr noundef nonnull align 8 dereferenceable(48) %9)
          to label %192 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

192:                                              ; preds = %.critedge2.us
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull getelementptr inbounds (i8, ptr @_2GSn, i64 16), ptr noundef nonnull %105)
          to label %193 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

193:                                              ; preds = %192
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull %12, ptr noundef nonnull %109)
          to label %194 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

194:                                              ; preds = %193
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull %14)
          to label %195 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

195:                                              ; preds = %194
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %196 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

196:                                              ; preds = %195
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull %15)
          to label %197 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

197:                                              ; preds = %196
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull @_2GSn)
          to label %198 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

198:                                              ; preds = %197
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %105, ptr noundef nonnull @_2GSn, ptr noundef nonnull %18)
          to label %199 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

199:                                              ; preds = %198
  invoke void @_ZN3Int8ModMulK1EPS_(ptr noundef nonnull align 8 dereferenceable(16) %105, ptr noundef nonnull %14)
          to label %200 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

200:                                              ; preds = %199
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %105, ptr noundef nonnull getelementptr inbounds (i8, ptr @_2GSn, i64 16))
          to label %201 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

201:                                              ; preds = %200
  %202 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 8 dereferenceable(48) %18)
          to label %203 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

203:                                              ; preds = %201
  %indvars.iv.next226 = add nuw nsw i64 %indvars.iv225, 1
  %exitcond228.not = icmp eq i64 %indvars.iv.next226, %wide.trip.count
  br i1 %exitcond228.not, label %.critedge.us.loopexit, label %157, !llvm.loop !17

204:                                              ; preds = %186
  %205 = getelementptr inbounds [1024 x %class.Point], ptr %11, i64 0, i64 %indvars.iv221
  invoke void @_ZN3Int10Get32BytesEPh(ptr noundef nonnull align 8 dereferenceable(16) %205, ptr noundef nonnull %2)
          to label %206 unwind label %.split187.us

206:                                              ; preds = %204
  %207 = load ptr, ptr @bloom_bP, align 8, !tbaa !14
  %208 = load i8, ptr %2, align 16, !tbaa !18
  %209 = zext i8 %208 to i64
  %210 = getelementptr inbounds %struct.bloom, ptr %207, i64 %209
  %211 = invoke i32 @bloom_check(ptr noundef %210, ptr noundef nonnull %2, i32 noundef 32)
          to label %212 unwind label %.split187.us

212:                                              ; preds = %206
  %.not121.us = icmp eq i32 %211, 0
  br i1 %.not121.us, label %251, label %213

213:                                              ; preds = %212
  %214 = add i64 %indvars.iv221, %288
  %215 = trunc i64 %214 to i32
  %216 = invoke noundef i32 @_Z16bsgs_secondcheckP3IntjjS0_(ptr noundef nonnull %3, i32 noundef %215, i32 noundef %156, ptr noundef nonnull %4)
          to label %217 unwind label %.split187.us

217:                                              ; preds = %213
  %.not122.us = icmp eq i32 %216, 0
  br i1 %.not122.us, label %251, label %218

218:                                              ; preds = %217
  %219 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %220 unwind label %.split187.us

220:                                              ; preds = %218
  %221 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.244, ptr noundef %219)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %23) #11
  %222 = load ptr, ptr @secp, align 8, !tbaa !14
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %23, ptr noundef nonnull align 8 dereferenceable(393296) %222, ptr noundef nonnull %4)
          to label %223 unwind label %.split190.us

223:                                              ; preds = %220
  %224 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 8 dereferenceable(48) %23)
          to label %225 unwind label %.split193.us

225:                                              ; preds = %223
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #11
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %23) #11
  %226 = load ptr, ptr @secp, align 8, !tbaa !14
  %227 = load ptr, ptr @OriginalPointsBSGScompressed, align 8, !tbaa !14
  %228 = getelementptr inbounds i8, ptr %227, i64 %indvars.iv229
  %229 = load i8, ptr %228, align 1, !tbaa !19, !range !21, !noundef !22
  %230 = trunc nuw i8 %229 to i1
  %231 = invoke noundef ptr @_ZN9Secp256K115GetPublicKeyHexEbR5Point(ptr noundef nonnull align 8 dereferenceable(393296) %226, i1 noundef zeroext %230, ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %232 unwind label %.split187.us

232:                                              ; preds = %225
  %233 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.238, ptr noundef %231)
  %234 = call i32 @pthread_mutex_lock(ptr noundef nonnull @write_keys) #11
  %235 = call noalias ptr @fopen(ptr noundef nonnull @.str.228, ptr noundef nonnull @.str.239)
  %.not127.us = icmp eq ptr %235, null
  br i1 %.not127.us, label %239, label %236

236:                                              ; preds = %232
  %237 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %235, ptr noundef nonnull @.str.240, ptr noundef %219, ptr noundef %231) #11
  %238 = call i32 @fclose(ptr noundef nonnull %235)
  br label %239

239:                                              ; preds = %236, %232
  call void @free(ptr noundef %219) #11
  call void @free(ptr noundef %231) #11
  %240 = call i32 @pthread_mutex_unlock(ptr noundef nonnull @write_keys) #11
  %241 = load ptr, ptr @bsgs_found, align 8, !tbaa !14
  %242 = getelementptr inbounds i32, ptr %241, i64 %indvars.iv229
  store i32 1, ptr %242, align 4, !tbaa !13
  %243 = load i32, ptr @bsgs_point_number, align 4, !tbaa !13
  %.not202 = icmp eq i32 %243, 0
  br i1 %.not202, label %.split196.us, label %.lr.ph.us.preheader

.lr.ph.us.preheader:                              ; preds = %239
  %244 = zext i32 %243 to i64
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %.lr.ph.us
  %indvars.iv218 = phi i64 [ 0, %.lr.ph.us.preheader ], [ %indvars.iv.next219, %.lr.ph.us ]
  %245 = getelementptr inbounds i32, ptr %241, i64 %indvars.iv218
  %246 = load i32, ptr %245, align 4, !tbaa !13
  %247 = and i32 %246, 1
  %indvars.iv.next219 = add nuw nsw i64 %indvars.iv218, 1
  %248 = icmp ult i64 %indvars.iv.next219, %244
  %249 = icmp ne i32 %247, 0
  %250 = select i1 %248, i1 %249, i1 false
  br i1 %250, label %.lr.ph.us, label %._crit_edge.us, !llvm.loop !23

251:                                              ; preds = %._crit_edge.us, %217, %212
  %indvars.iv.next222 = add nuw nsw i64 %indvars.iv221, 1
  %exitcond224.not = icmp eq i64 %indvars.iv.next222, 1024
  br i1 %exitcond224.not, label %.critedge2.us, label %186, !llvm.loop !24

252:                                              ; preds = %.preheader149.us
  %253 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %18, ptr noundef nonnull align 8 dereferenceable(48) %9)
          to label %254 unwind label %.loopexit150.split.us

254:                                              ; preds = %252
  %255 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %19, ptr noundef nonnull align 8 dereferenceable(48) %9)
          to label %256 unwind label %.loopexit150.split.us

256:                                              ; preds = %254
  %257 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv214) #11
  %258 = getelementptr inbounds i8, ptr %257, i64 16
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull %258, ptr noundef nonnull %105)
          to label %259 unwind label %.loopexit150.split.us

259:                                              ; preds = %256
  %260 = getelementptr inbounds [513 x %class.Int], ptr %10, i64 0, i64 %indvars.iv214
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull %12, ptr noundef nonnull %260)
          to label %261 unwind label %.loopexit150.split.us

261:                                              ; preds = %259
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull %14)
          to label %262 unwind label %.loopexit150.split.us

262:                                              ; preds = %261
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %263 unwind label %.loopexit150.split.us

263:                                              ; preds = %262
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull %15)
          to label %264 unwind label %.loopexit150.split.us

264:                                              ; preds = %263
  %265 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv214) #11
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull %265)
          to label %266 unwind label %.loopexit150.split.us

266:                                              ; preds = %264
  %267 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv214) #11
  %268 = getelementptr inbounds i8, ptr %267, i64 16
  invoke void @_ZN3Int3SetEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull %268)
          to label %269 unwind label %.loopexit150.split.us

269:                                              ; preds = %266
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %270 unwind label %.loopexit150.split.us

270:                                              ; preds = %269
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull %106)
          to label %271 unwind label %.loopexit150.split.us

271:                                              ; preds = %270
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull %13, ptr noundef nonnull %260)
          to label %272 unwind label %.loopexit150.split.us

272:                                              ; preds = %271
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull %14)
          to label %273 unwind label %.loopexit150.split.us

273:                                              ; preds = %272
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(16) %19)
          to label %274 unwind label %.loopexit150.split.us

274:                                              ; preds = %273
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull %15)
          to label %275 unwind label %.loopexit150.split.us

275:                                              ; preds = %274
  %276 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv214) #11
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull %276)
          to label %277 unwind label %.loopexit150.split.us

277:                                              ; preds = %275
  %278 = add nuw nsw i64 %indvars.iv214, 513
  %279 = getelementptr inbounds [1024 x %class.Point], ptr %11, i64 0, i64 %278
  %280 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %279, ptr noundef nonnull align 8 dereferenceable(48) %18)
          to label %281 unwind label %.loopexit150.split.us

281:                                              ; preds = %277
  %indvars.iv.next215 = add nuw nsw i64 %indvars.iv214, 1
  %282 = sub nuw nsw i64 511, %indvars.iv214
  %283 = getelementptr inbounds [1024 x %class.Point], ptr %11, i64 0, i64 %282
  %284 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %283, ptr noundef nonnull align 8 dereferenceable(48) %19)
          to label %.preheader149.us unwind label %.loopexit150.split.us, !llvm.loop !25

.preheader151.us:                                 ; preds = %157, %287
  %indvars.iv = phi i64 [ %indvars.iv.next, %287 ], [ 0, %157 ]
  %285 = getelementptr inbounds [513 x %class.Int], ptr %10, i64 0, i64 %indvars.iv
  %286 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv) #11
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %285, ptr noundef nonnull %286, ptr noundef nonnull %9)
          to label %287 unwind label %.loopexit.split-lp.loopexit.split.us

287:                                              ; preds = %.preheader151.us
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 511
  br i1 %exitcond.not, label %165, label %.preheader151.us, !llvm.loop !26

.preheader.us:                                    ; preds = %184
  %288 = shl i64 %indvars.iv225, 10
  br label %186

._crit_edge.us:                                   ; preds = %.lr.ph.us
  br i1 %249, label %.split196.us, label %251

.split.us:                                        ; preds = %151
  %289 = landingpad { ptr, i32 }
          cleanup
  br label %317

.split183.us:                                     ; preds = %154
  %290 = landingpad { ptr, i32 }
          cleanup
  br label %316

.loopexit.split-lp.loopexit.split-lp.split.us:    ; preds = %201, %200, %199, %198, %197, %196, %195, %194, %193, %192, %.critedge2.us, %184, %182, %181, %180, %179, %178, %177, %176, %173, %171, %169, %168, %167, %165
  %lpad.loopexit.split-lp153.us = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.split187.us:                                     ; preds = %225, %218, %213, %206, %204
  %291 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.split190.us:                                     ; preds = %220
  %292 = landingpad { ptr, i32 }
          cleanup
  br label %318

.split193.us:                                     ; preds = %223
  %293 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %23) #11
  br label %318

.loopexit150.split.us:                            ; preds = %281, %277, %275, %274, %273, %272, %271, %270, %269, %266, %264, %263, %262, %261, %259, %256, %254, %252
  %lpad.loopexit.us = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split.us:             ; preds = %.preheader151.us
  %lpad.loopexit152.us = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.lr.ph180.split:                                  ; preds = %.lr.ph180.split.preheader, %.critedge
  %294 = phi i32 [ %145, %.lr.ph180.split.preheader ], [ %320, %.critedge ]
  %295 = phi ptr [ %.pre236, %.lr.ph180.split.preheader ], [ %321, %.critedge ]
  %indvars.iv232 = phi i64 [ 0, %.lr.ph180.split.preheader ], [ %indvars.iv.next233, %.critedge ]
  %296 = getelementptr inbounds i32, ptr %295, i64 %indvars.iv232
  %297 = load i32, ptr %296, align 4, !tbaa !13
  %298 = icmp eq i32 %297, 0
  br i1 %298, label %299, label %.critedge

299:                                              ; preds = %.lr.ph180.split
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %22) #11
  %300 = load ptr, ptr @secp, align 8, !tbaa !14
  %301 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @OriginalPointsBSGS, i64 noundef %indvars.iv232) #11
  invoke void @_ZN9Secp256K19AddDirectER5PointS1_(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %22, ptr noundef nonnull align 8 dereferenceable(393296) %300, ptr noundef nonnull align 8 dereferenceable(48) %301, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %302 unwind label %.split

302:                                              ; preds = %299
  %303 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 8 dereferenceable(48) %22)
          to label %.critedge.loopexit unwind label %.split183

.critedge.loopexit:                               ; preds = %302
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %22) #11
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %22) #11
  %.pre235 = load ptr, ptr @bsgs_found, align 8, !tbaa !14
  %.pre237 = load i32, ptr @bsgs_point_number, align 4, !tbaa !13
  br label %.critedge

304:                                              ; preds = %130
  %305 = landingpad { ptr, i32 }
          cleanup
  br label %308

306:                                              ; preds = %132
  %307 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #11
  br label %308

308:                                              ; preds = %306, %304
  %.pn = phi { ptr, i32 } [ %307, %306 ], [ %305, %304 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %20) #11
  br label %.loopexit.split-lp

309:                                              ; preds = %140
  %310 = landingpad { ptr, i32 }
          cleanup
  br label %313

311:                                              ; preds = %142
  %312 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #11
  br label %313

313:                                              ; preds = %311, %309
  %.pn117 = phi { ptr, i32 } [ %312, %311 ], [ %310, %309 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %21) #11
  br label %.loopexit.split-lp

.split:                                           ; preds = %299
  %314 = landingpad { ptr, i32 }
          cleanup
  br label %317

.split183:                                        ; preds = %302
  %315 = landingpad { ptr, i32 }
          cleanup
  br label %316

316:                                              ; preds = %.split183.us, %.split183
  %.us-phi184 = phi { ptr, i32 } [ %315, %.split183 ], [ %290, %.split183.us ]
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %22) #11
  br label %317

317:                                              ; preds = %.split, %.split.us, %316
  %.pn119 = phi { ptr, i32 } [ %.us-phi184, %316 ], [ %314, %.split ], [ %289, %.split.us ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %22) #11
  br label %.loopexit.split-lp

318:                                              ; preds = %.split193.us, %.split190.us
  %.pn123 = phi { ptr, i32 } [ %293, %.split193.us ], [ %292, %.split190.us ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %23) #11
  br label %.loopexit.split-lp

.split196.us:                                     ; preds = %._crit_edge.us, %239
  %319 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.241)
  call void @exit(i32 noundef 1) #14
  unreachable

.critedge:                                        ; preds = %.critedge.loopexit, %.lr.ph180.split
  %320 = phi i32 [ %.pre237, %.critedge.loopexit ], [ %294, %.lr.ph180.split ]
  %321 = phi ptr [ %.pre235, %.critedge.loopexit ], [ %295, %.lr.ph180.split ]
  %indvars.iv.next233 = add nuw nsw i64 %indvars.iv232, 1
  %322 = zext i32 %320 to i64
  %323 = icmp ult i64 %indvars.iv.next233, %322
  br i1 %323, label %.lr.ph180.split, label %._crit_edge181, !llvm.loop !15

._crit_edge181:                                   ; preds = %.critedge.us, %.critedge, %144
  %324 = load ptr, ptr @steps, align 8, !tbaa !14
  %325 = getelementptr inbounds i64, ptr %324, i64 %107
  %326 = load i64, ptr %325, align 8, !tbaa !11
  %327 = add i64 %326, 2
  store i64 %327, ptr %325, align 8, !tbaa !11
  br label %110, !llvm.loop !27

.loopexit.split-lp:                               ; preds = %.loopexit150.split.us, %.loopexit.split-lp.loopexit.split-lp.split.us, %.loopexit.split-lp.loopexit.split.us, %.loopexit156, %.loopexit.split-lp157, %318, %.split187.us, %317, %313, %308
  %.pn128.pn = phi { ptr, i32 } [ %.pn119, %317 ], [ %.pn117, %313 ], [ %.pn, %308 ], [ %291, %.split187.us ], [ %.pn123, %318 ], [ %lpad.loopexit158, %.loopexit156 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp157 ], [ %lpad.loopexit.us, %.loopexit150.split.us ], [ %lpad.loopexit152.us, %.loopexit.split-lp.loopexit.split.us ], [ %lpad.loopexit.split-lp153.us, %.loopexit.split-lp.loopexit.split-lp.split.us ]
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #11
  br label %328

328:                                              ; preds = %.loopexit.split-lp, %100
  %.pn128.pn.pn = phi { ptr, i32 } [ %.pn128.pn, %.loopexit.split-lp ], [ %101, %100 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %19) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #11
  br label %329

329:                                              ; preds = %328, %98
  %.pn128.pn.pn.pn = phi { ptr, i32 } [ %.pn128.pn.pn, %328 ], [ %99, %98 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %18) #11
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #11
  br label %330

330:                                              ; preds = %329, %96
  %.pn128.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn128.pn.pn.pn, %329 ], [ %97, %96 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #11
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #11
  br label %331

331:                                              ; preds = %330, %94
  %.pn128.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn128.pn.pn.pn.pn, %330 ], [ %95, %94 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #11
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #11
  br label %332

332:                                              ; preds = %331, %92
  %.pn128.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn128.pn.pn.pn.pn.pn, %331 ], [ %93, %92 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #11
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #11
  br label %333

333:                                              ; preds = %332, %90
  %.pn128.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn128.pn.pn.pn.pn.pn.pn, %332 ], [ %91, %90 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #11
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #11
  br label %334

334:                                              ; preds = %333, %88
  %.pn128.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn128.pn.pn.pn.pn.pn.pn.pn, %333 ], [ %89, %88 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #11
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #11
  br label %335

335:                                              ; preds = %334, %86
  %.pn128.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn128.pn.pn.pn.pn.pn.pn.pn.pn, %334 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #11
  br label %336

336:                                              ; preds = %336, %335
  %337 = phi ptr [ %38, %335 ], [ %338, %336 ]
  %338 = getelementptr inbounds i8, ptr %337, i64 -48
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %338) #11
  %339 = icmp eq ptr %338, %11
  br i1 %339, label %.loopexit148, label %336

.loopexit148:                                     ; preds = %.preheader160, %336, %80
  %.pn128.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %81, %80 ], [ %.pn128.pn.pn.pn.pn.pn.pn.pn.pn.pn, %336 ], [ %81, %.preheader160 ]
  call void @llvm.lifetime.end.p0(i64 49152, ptr nonnull %11) #11
  br label %340

340:                                              ; preds = %340, %.loopexit148
  %341 = phi ptr [ %33, %.loopexit148 ], [ %342, %340 ]
  %342 = getelementptr inbounds i8, ptr %341, i64 -16
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %342) #11
  %343 = icmp eq ptr %342, %10
  br i1 %343, label %.loopexit, label %340

.loopexit:                                        ; preds = %.preheader162, %340, %74
  %.pn128.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %75, %74 ], [ %.pn128.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %340 ], [ %75, %.preheader162 ]
  call void @llvm.lifetime.end.p0(i64 8208, ptr nonnull %10) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #11
  br label %344

344:                                              ; preds = %.loopexit, %72
  %.pn128.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn128.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %.loopexit ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #11
  br label %345

345:                                              ; preds = %344, %70, %68
  %.pn128.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn128.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %344 ], [ %71, %70 ], [ %69, %68 ]
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #11
  br label %346

346:                                              ; preds = %345, %66
  %.pn128.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn128.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %345 ], [ %67, %66 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #11
  br label %347

347:                                              ; preds = %346, %64
  %.pn128.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn128.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %346 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #11
  br label %348

348:                                              ; preds = %347, %62
  %.pn128.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn128.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %347 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #11
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #11
  br label %349

349:                                              ; preds = %348, %60
  %.pn128.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn128.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %348 ], [ %61, %60 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #11
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #11
  br label %350

350:                                              ; preds = %349, %58
  %.pn128.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn128.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %349 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #11
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #11
  resume { ptr, i32 } %.pn128.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

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

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

declare void @_ZN8IntGroupC1Ei(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) unnamed_addr #0

declare void @_ZN8IntGroup3SetEP3Int(ptr noundef nonnull align 8 dereferenceable(20), 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

declare void @_ZN8IntGroup6ModInvEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #0

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

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

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

declare void @_ZN3Int6ModAddEPS_(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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z16bsgs_secondcheckP3IntjjS0_(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #10

declare noundef ptr @_ZN9Secp256K115GetPublicKeyHexEbR5Point(ptr noundef nonnull align 8 dereferenceable(393296), i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(48)) 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 = { nobuiltin allocsize(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 = { nobuiltin 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 #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 = { noreturn 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 #7 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #8 = { 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 #9 = { mustprogress noreturn 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 #10 = { 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 #11 = { nounwind }
attributes #12 = { builtin allocsize(0) }
attributes #13 = { builtin nounwind }
attributes #14 = { noreturn 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, !7, i64 0}
!6 = !{!"_ZTS8tothread", !7, i64 0, !10, i64 8, !10, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!10, !10, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!8, !8, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"bool", !8, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16}
!25 = distinct !{!25, !16}
!26 = distinct !{!26, !16}
!27 = distinct !{!27, !16}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass