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

; 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_N_double = external dso_local global %class.Int, align 8
@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.234 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.235 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.237 = external hidden unnamed_addr constant [36 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

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

declare noundef zeroext i1 @_ZN3Int9IsGreaterEPS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #0

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

declare noundef zeroext i1 @_ZN3Int7IsLowerEPS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #0

; 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 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 @_Z28thread_process_bsgs_backwardPv(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.Point, align 8
  %14 = alloca %class.Point, align 8
  %15 = alloca %class.Point, align 8
  %16 = alloca i32, align 4
  %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 %92

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

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 %100

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 %104

46:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  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
  %47 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #9
          to label %48 unwind label %108

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

49:                                               ; preds = %48
  store ptr %47, 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 %50 unwind label %116

50:                                               ; preds = %49
  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
  %51 = getelementptr inbounds [513 x %class.Int], ptr %26, i32 0, i32 0
  %52 = getelementptr inbounds %class.Int, ptr %51, i64 513
  br label %53

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

89:                                               ; preds = %77
  %90 = load i32, ptr %22, align 4, !tbaa !9
  %91 = add i32 %90, 1
  store i32 %91, ptr %22, align 4, !tbaa !9
  br label %176

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

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

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

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

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

112:                                              ; preds = %48
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %11, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %12, align 4
  call void @_ZdlPvm(ptr noundef %47, i64 noundef 24) #10
  br label %659

116:                                              ; preds = %49
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %11, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %12, align 4
  br label %658

120:                                              ; preds = %53
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %11, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %12, align 4
  %124 = icmp eq ptr %51, %54
  br i1 %124, label %129, label %125

125:                                              ; preds = %125, %120
  %126 = phi ptr [ %54, %120 ], [ %127, %125 ]
  %127 = getelementptr inbounds %class.Int, ptr %126, i64 -1
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %127) #8
  %128 = icmp eq ptr %127, %51
  br i1 %128, label %129, label %125

129:                                              ; preds = %125, %120
  br label %657

130:                                              ; preds = %61
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %11, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %12, align 4
  %134 = icmp eq ptr %59, %62
  br i1 %134, label %139, label %135

135:                                              ; preds = %135, %130
  %136 = phi ptr [ %62, %130 ], [ %137, %135 ]
  %137 = getelementptr inbounds %class.Point, ptr %136, i64 -1
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %137) #8
  %138 = icmp eq ptr %137, %59
  br i1 %138, label %139, label %135

139:                                              ; preds = %135, %130
  br label %643

140:                                              ; preds = %66
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %11, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %12, align 4
  br label %628

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

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

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

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

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

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

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

172:                                              ; preds = %235, %232, %231, %230, %220, %217, %215, %207, %204, %202, %190, %188, %185, %184, %180, %178, %177, %176, %74
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %11, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %12, align 4
  br label %620

176:                                              ; preds = %89, %77
  invoke void @_ZN3Int3SetEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef @BSGS_M_double)
          to label %177 unwind label %172

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

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

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

180:                                              ; preds = %612, %179
  %181 = call i32 @pthread_mutex_lock(ptr noundef @bsgs_thread) #8
  %182 = invoke noundef zeroext i1 @_ZN3Int9IsGreaterEPS_(ptr noundef nonnull align 8 dereferenceable(16) @n_range_end, ptr noundef @n_range_start)
          to label %183 unwind label %172

183:                                              ; preds = %180
  br i1 %182, label %184, label %193

184:                                              ; preds = %183
  invoke void @_ZN3Int3SubEPS_(ptr noundef nonnull align 8 dereferenceable(16) @n_range_end, ptr noundef @BSGS_N_double)
          to label %185 unwind label %172

185:                                              ; preds = %184
  %186 = invoke noundef zeroext i1 @_ZN3Int7IsLowerEPS_(ptr noundef nonnull align 8 dereferenceable(16) @n_range_end, ptr noundef @n_range_start)
          to label %187 unwind label %172

187:                                              ; preds = %185
  br i1 %186, label %188, label %190

188:                                              ; preds = %187
  invoke void @_ZN3Int3SetEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef @n_range_start)
          to label %189 unwind label %172

189:                                              ; preds = %188
  br label %192

190:                                              ; preds = %187
  invoke void @_ZN3Int3SetEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef @n_range_end)
          to label %191 unwind label %172

191:                                              ; preds = %190
  br label %192

192:                                              ; preds = %191, %189
  br label %194

193:                                              ; preds = %183
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %194

194:                                              ; preds = %193, %192
  %195 = call i32 @pthread_mutex_unlock(ptr noundef @bsgs_thread) #8
  %196 = load i32, ptr %21, align 4, !tbaa !9
  %197 = icmp eq i32 %196, 0
  br i1 %197, label %198, label %199

198:                                              ; preds = %194
  br label %613

199:                                              ; preds = %194
  %200 = load i32, ptr @FLAGMATRIX, align 4, !tbaa !9
  %201 = icmp ne i32 %200, 0
  br i1 %201, label %202, label %212

202:                                              ; preds = %199
  %203 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %204 unwind label %172

204:                                              ; preds = %202
  store ptr %203, ptr %7, align 8, !tbaa !5
  %205 = load ptr, ptr %7, align 8, !tbaa !5
  %206 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.234, ptr noundef %205)
          to label %207 unwind label %172

207:                                              ; preds = %204
  %208 = load ptr, ptr @stdout, align 8, !tbaa !5
  %209 = invoke i32 @fflush(ptr noundef %208)
          to label %210 unwind label %172

210:                                              ; preds = %207
  %211 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %211) #8
  br label %226

212:                                              ; preds = %199
  %213 = load i32, ptr @FLAGQUIET, align 4, !tbaa !9
  %214 = icmp eq i32 %213, 0
  br i1 %214, label %215, label %225

215:                                              ; preds = %212
  %216 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %217 unwind label %172

217:                                              ; preds = %215
  store ptr %216, ptr %7, align 8, !tbaa !5
  %218 = load ptr, ptr %7, align 8, !tbaa !5
  %219 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.235, ptr noundef %218)
          to label %220 unwind label %172

220:                                              ; preds = %217
  %221 = load ptr, ptr @stdout, align 8, !tbaa !5
  %222 = invoke i32 @fflush(ptr noundef %221)
          to label %223 unwind label %172

223:                                              ; preds = %220
  %224 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %224) #8
  store i32 1, ptr @THREADOUTPUT, align 4, !tbaa !9
  br label %225

225:                                              ; preds = %223, %212
  br label %226

226:                                              ; preds = %225, %210
  call void @llvm.lifetime.start.p0(i64 48, ptr %36) #8
  %227 = 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) %227, ptr noundef %9)
          to label %228 unwind label %291

228:                                              ; preds = %226
  %229 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %13, ptr noundef nonnull align 8 dereferenceable(48) %36)
          to label %230 unwind label %295

230:                                              ; preds = %228
  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 %231 unwind label %172

231:                                              ; preds = %230
  invoke void @_ZN3Int3NegEv(ptr noundef nonnull align 8 dereferenceable(16) %32)
          to label %232 unwind label %172

232:                                              ; preds = %231
  %233 = load ptr, ptr @secp, align 8, !tbaa !5
  %234 = getelementptr inbounds %class.Secp256K1, ptr %233, i32 0, i32 2
  invoke void @_ZN3Int3AddEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef %234)
          to label %235 unwind label %172

235:                                              ; preds = %232
  invoke void @_ZN3Int3SubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef %33)
          to label %236 unwind label %172

236:                                              ; preds = %235
  call void @llvm.lifetime.start.p0(i64 48, ptr %37) #8
  %237 = 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) %237, ptr noundef %32)
          to label %238 unwind label %300

238:                                              ; preds = %236
  %239 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %14, ptr noundef nonnull align 8 dereferenceable(48) %37)
          to label %240 unwind label %304

240:                                              ; preds = %238
  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 %16, align 4, !tbaa !9
  br label %241

241:                                              ; preds = %602, %240
  %242 = load i32, ptr %16, align 4, !tbaa !9
  %243 = load i32, ptr @bsgs_point_number, align 4, !tbaa !9
  %244 = icmp ult i32 %242, %243
  br i1 %244, label %245, label %605

245:                                              ; preds = %241
  %246 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %247 = load i32, ptr %16, align 4, !tbaa !9
  %248 = zext i32 %247 to i64
  %249 = getelementptr inbounds i32, ptr %246, i64 %248
  %250 = load i32, ptr %249, align 4, !tbaa !9
  %251 = icmp eq i32 %250, 0
  br i1 %251, label %252, label %601

252:                                              ; preds = %245
  call void @llvm.lifetime.start.p0(i64 48, ptr %38) #8
  %253 = load ptr, ptr @secp, align 8, !tbaa !5
  %254 = load i32, ptr %16, align 4, !tbaa !9
  %255 = zext i32 %254 to i64
  %256 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @OriginalPointsBSGS, i64 noundef %255) #8
  invoke void @_ZN9Secp256K19AddDirectER5PointS1_(ptr dead_on_unwind writable sret(%class.Point) align 8 %38, ptr noundef nonnull align 8 dereferenceable(393296) %253, ptr noundef nonnull align 8 dereferenceable(48) %256, ptr noundef nonnull align 8 dereferenceable(48) %14)
          to label %257 unwind label %309

257:                                              ; preds = %252
  %258 = 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 %259 unwind label %313

259:                                              ; preds = %257
  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 %260

260:                                              ; preds = %596, %259
  %261 = load i32, ptr %39, align 4, !tbaa !9
  %262 = load i32, ptr %22, align 4, !tbaa !9
  %263 = icmp ult i32 %261, %262
  br i1 %263, label %264, label %271

264:                                              ; preds = %260
  %265 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %266 = load i32, ptr %16, align 4, !tbaa !9
  %267 = zext i32 %266 to i64
  %268 = getelementptr inbounds i32, ptr %265, i64 %267
  %269 = load i32, ptr %268, align 4, !tbaa !9
  %270 = icmp eq i32 %269, 0
  br label %271

271:                                              ; preds = %264, %260
  %272 = phi i1 [ false, %260 ], [ %270, %264 ]
  br i1 %272, label %273, label %600

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

274:                                              ; preds = %288, %273
  %275 = load i32, ptr %40, align 4, !tbaa !9
  %276 = load i32, ptr %25, align 4, !tbaa !9
  %277 = icmp slt i32 %275, %276
  br i1 %277, label %278, label %322

278:                                              ; preds = %274
  %279 = load i32, ptr %40, align 4, !tbaa !9
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %280
  %282 = load i32, ptr %40, align 4, !tbaa !9
  %283 = sext i32 %282 to i64
  %284 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %283) #8
  %285 = getelementptr inbounds %class.Point, ptr %284, i32 0, i32 0
  %286 = getelementptr inbounds %class.Point, ptr %24, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %281, ptr noundef %285, ptr noundef %286)
          to label %287 unwind label %318

287:                                              ; preds = %278
  br label %288

288:                                              ; preds = %287
  %289 = load i32, ptr %40, align 4, !tbaa !9
  %290 = add nsw i32 %289, 1
  store i32 %290, ptr %40, align 4, !tbaa !9
  br label %274, !llvm.loop !15

291:                                              ; preds = %226
  %292 = landingpad { ptr, i32 }
          cleanup
  %293 = extractvalue { ptr, i32 } %292, 0
  store ptr %293, ptr %11, align 8
  %294 = extractvalue { ptr, i32 } %292, 1
  store i32 %294, ptr %12, align 4
  br label %299

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

299:                                              ; preds = %295, %291
  call void @llvm.lifetime.end.p0(i64 48, ptr %36) #8
  br label %620

300:                                              ; preds = %236
  %301 = landingpad { ptr, i32 }
          cleanup
  %302 = extractvalue { ptr, i32 } %301, 0
  store ptr %302, ptr %11, align 8
  %303 = extractvalue { ptr, i32 } %301, 1
  store i32 %303, ptr %12, align 4
  br label %308

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

308:                                              ; preds = %304, %300
  call void @llvm.lifetime.end.p0(i64 48, ptr %37) #8
  br label %620

309:                                              ; preds = %252
  %310 = landingpad { ptr, i32 }
          cleanup
  %311 = extractvalue { ptr, i32 } %310, 0
  store ptr %311, ptr %11, align 8
  %312 = extractvalue { ptr, i32 } %310, 1
  store i32 %312, ptr %12, align 4
  br label %317

313:                                              ; preds = %257
  %314 = landingpad { ptr, i32 }
          cleanup
  %315 = extractvalue { ptr, i32 } %314, 0
  store ptr %315, ptr %11, align 8
  %316 = extractvalue { ptr, i32 } %314, 1
  store i32 %316, ptr %12, align 4
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %38) #8
  br label %317

317:                                              ; preds = %313, %309
  call void @llvm.lifetime.end.p0(i64 48, ptr %38) #8
  br label %620

318:                                              ; preds = %594, %592, %590, %587, %585, %583, %581, %580, %575, %573, %571, %438, %432, %430, %428, %427, %423, %421, %420, %415, %413, %402, %395, %389, %387, %385, %384, %380, %378, %377, %372, %366, %364, %362, %361, %357, %351, %349, %347, %339, %337, %331, %322, %278
  %319 = landingpad { ptr, i32 }
          cleanup
  %320 = extractvalue { ptr, i32 } %319, 0
  store ptr %320, ptr %11, align 8
  %321 = extractvalue { ptr, i32 } %319, 1
  store i32 %321, ptr %12, align 4
  br label %599

322:                                              ; preds = %274
  %323 = load i32, ptr %40, align 4, !tbaa !9
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %324
  %326 = load i32, ptr %40, align 4, !tbaa !9
  %327 = sext i32 %326 to i64
  %328 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %327) #8
  %329 = getelementptr inbounds %class.Point, ptr %328, i32 0, i32 0
  %330 = getelementptr inbounds %class.Point, ptr %24, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %325, ptr noundef %329, ptr noundef %330)
          to label %331 unwind label %318

331:                                              ; preds = %322
  %332 = load i32, ptr %40, align 4, !tbaa !9
  %333 = add nsw i32 %332, 1
  %334 = sext i32 %333 to i64
  %335 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %334
  %336 = getelementptr inbounds %class.Point, ptr %24, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %335, ptr noundef @_2GSn, ptr noundef %336)
          to label %337 unwind label %318

337:                                              ; preds = %331
  %338 = load ptr, ptr %23, align 8, !tbaa !5
  invoke void @_ZN8IntGroup6ModInvEv(ptr noundef nonnull align 8 dereferenceable(20) %338)
          to label %339 unwind label %318

339:                                              ; preds = %337
  %340 = getelementptr inbounds [1024 x %class.Point], ptr %27, i64 0, i64 512
  %341 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %340, ptr noundef nonnull align 8 dereferenceable(48) %24)
          to label %342 unwind label %318

342:                                              ; preds = %339
  store i32 0, ptr %40, align 4, !tbaa !9
  br label %343

343:                                              ; preds = %410, %342
  %344 = load i32, ptr %40, align 4, !tbaa !9
  %345 = load i32, ptr %25, align 4, !tbaa !9
  %346 = icmp slt i32 %344, %345
  br i1 %346, label %347, label %413

347:                                              ; preds = %343
  %348 = 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 %349 unwind label %318

349:                                              ; preds = %347
  %350 = 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 %351 unwind label %318

351:                                              ; preds = %349
  %352 = load i32, ptr %40, align 4, !tbaa !9
  %353 = sext i32 %352 to i64
  %354 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %353) #8
  %355 = getelementptr inbounds %class.Point, ptr %354, i32 0, i32 1
  %356 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef %355, ptr noundef %356)
          to label %357 unwind label %318

357:                                              ; preds = %351
  %358 = load i32, ptr %40, align 4, !tbaa !9
  %359 = sext i32 %358 to i64
  %360 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %359
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef %28, ptr noundef %360)
          to label %361 unwind label %318

361:                                              ; preds = %357
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef %30)
          to label %362 unwind label %318

362:                                              ; preds = %361
  %363 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(16) %363)
          to label %364 unwind label %318

364:                                              ; preds = %362
  %365 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(16) %365, ptr noundef %31)
          to label %366 unwind label %318

366:                                              ; preds = %364
  %367 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  %368 = load i32, ptr %40, align 4, !tbaa !9
  %369 = sext i32 %368 to i64
  %370 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %369) #8
  %371 = getelementptr inbounds %class.Point, ptr %370, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %367, ptr noundef %371)
          to label %372 unwind label %318

372:                                              ; preds = %366
  %373 = load i32, ptr %40, align 4, !tbaa !9
  %374 = sext i32 %373 to i64
  %375 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %374) #8
  %376 = getelementptr inbounds %class.Point, ptr %375, i32 0, i32 1
  invoke void @_ZN3Int3SetEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef %376)
          to label %377 unwind label %318

377:                                              ; preds = %372
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(16) %29)
          to label %378 unwind label %318

378:                                              ; preds = %377
  %379 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef %379)
          to label %380 unwind label %318

380:                                              ; preds = %378
  %381 = load i32, ptr %40, align 4, !tbaa !9
  %382 = sext i32 %381 to i64
  %383 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %382
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef %29, ptr noundef %383)
          to label %384 unwind label %318

384:                                              ; preds = %380
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef %30)
          to label %385 unwind label %318

385:                                              ; preds = %384
  %386 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(16) %386)
          to label %387 unwind label %318

387:                                              ; preds = %385
  %388 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(16) %388, ptr noundef %31)
          to label %389 unwind label %318

389:                                              ; preds = %387
  %390 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 0
  %391 = load i32, ptr %40, align 4, !tbaa !9
  %392 = sext i32 %391 to i64
  %393 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %392) #8
  %394 = getelementptr inbounds %class.Point, ptr %393, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %390, ptr noundef %394)
          to label %395 unwind label %318

395:                                              ; preds = %389
  %396 = load i32, ptr %40, align 4, !tbaa !9
  %397 = add nsw i32 %396, 1
  %398 = add nsw i32 512, %397
  %399 = sext i32 %398 to i64
  %400 = getelementptr inbounds [1024 x %class.Point], ptr %27, i64 0, i64 %399
  %401 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %400, ptr noundef nonnull align 8 dereferenceable(48) %34)
          to label %402 unwind label %318

402:                                              ; preds = %395
  %403 = load i32, ptr %40, align 4, !tbaa !9
  %404 = add nsw i32 %403, 1
  %405 = sub nsw i32 512, %404
  %406 = sext i32 %405 to i64
  %407 = getelementptr inbounds [1024 x %class.Point], ptr %27, i64 0, i64 %406
  %408 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %407, ptr noundef nonnull align 8 dereferenceable(48) %35)
          to label %409 unwind label %318

409:                                              ; preds = %402
  br label %410

410:                                              ; preds = %409
  %411 = load i32, ptr %40, align 4, !tbaa !9
  %412 = add nsw i32 %411, 1
  store i32 %412, ptr %40, align 4, !tbaa !9
  br label %343, !llvm.loop !17

413:                                              ; preds = %343
  %414 = 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 %415 unwind label %318

415:                                              ; preds = %413
  %416 = load i32, ptr %40, align 4, !tbaa !9
  %417 = sext i32 %416 to i64
  %418 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %417) #8
  %419 = getelementptr inbounds %class.Point, ptr %418, i32 0, i32 1
  invoke void @_ZN3Int3SetEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef %419)
          to label %420 unwind label %318

420:                                              ; preds = %415
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(16) %29)
          to label %421 unwind label %318

421:                                              ; preds = %420
  %422 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef %422)
          to label %423 unwind label %318

423:                                              ; preds = %421
  %424 = load i32, ptr %40, align 4, !tbaa !9
  %425 = sext i32 %424 to i64
  %426 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %425
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef %29, ptr noundef %426)
          to label %427 unwind label %318

427:                                              ; preds = %423
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef %30)
          to label %428 unwind label %318

428:                                              ; preds = %427
  %429 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(16) %429)
          to label %430 unwind label %318

430:                                              ; preds = %428
  %431 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(16) %431, ptr noundef %31)
          to label %432 unwind label %318

432:                                              ; preds = %430
  %433 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 0
  %434 = load i32, ptr %40, align 4, !tbaa !9
  %435 = sext i32 %434 to i64
  %436 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %435) #8
  %437 = getelementptr inbounds %class.Point, ptr %436, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %433, ptr noundef %437)
          to label %438 unwind label %318

438:                                              ; preds = %432
  %439 = getelementptr inbounds [1024 x %class.Point], ptr %27, i64 0, i64 0
  %440 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %439, ptr noundef nonnull align 8 dereferenceable(48) %35)
          to label %441 unwind label %318

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

442:                                              ; preds = %567, %441
  %443 = load i32, ptr %41, align 4, !tbaa !9
  %444 = icmp slt i32 %443, 1024
  br i1 %444, label %445, label %452

445:                                              ; preds = %442
  %446 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %447 = load i32, ptr %16, align 4, !tbaa !9
  %448 = zext i32 %447 to i64
  %449 = getelementptr inbounds i32, ptr %446, i64 %448
  %450 = load i32, ptr %449, align 4, !tbaa !9
  %451 = icmp eq i32 %450, 0
  br label %452

452:                                              ; preds = %445, %442
  %453 = phi i1 [ false, %442 ], [ %451, %445 ]
  br i1 %453, label %455, label %454

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

455:                                              ; preds = %452
  %456 = load i32, ptr %41, align 4, !tbaa !9
  %457 = sext i32 %456 to i64
  %458 = getelementptr inbounds [1024 x %class.Point], ptr %27, i64 0, i64 %457
  %459 = getelementptr inbounds %class.Point, ptr %458, i32 0, i32 0
  %460 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  invoke void @_ZN3Int10Get32BytesEPh(ptr noundef nonnull align 8 dereferenceable(16) %459, ptr noundef %460)
          to label %461 unwind label %517

461:                                              ; preds = %455
  %462 = load ptr, ptr @bloom_bP, align 8, !tbaa !5
  %463 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  %464 = load i8, ptr %463, align 16, !tbaa !18
  %465 = zext i8 %464 to i64
  %466 = getelementptr inbounds %struct.bloom, ptr %462, i64 %465
  %467 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  %468 = invoke i32 @bloom_check(ptr noundef %466, ptr noundef %467, i32 noundef 32)
          to label %469 unwind label %517

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

472:                                              ; preds = %469
  %473 = load i32, ptr %39, align 4, !tbaa !9
  %474 = mul i32 %473, 1024
  %475 = load i32, ptr %41, align 4, !tbaa !9
  %476 = add i32 %474, %475
  %477 = load i32, ptr %16, align 4, !tbaa !9
  %478 = invoke noundef i32 @_Z16bsgs_secondcheckP3IntjjS0_(ptr noundef %9, i32 noundef %476, i32 noundef %477, ptr noundef %10)
          to label %479 unwind label %517

479:                                              ; preds = %472
  store i32 %478, ptr %18, align 4, !tbaa !9
  %480 = load i32, ptr %18, align 4, !tbaa !9
  %481 = icmp ne i32 %480, 0
  br i1 %481, label %482, label %565

482:                                              ; preds = %479
  %483 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %484 unwind label %517

484:                                              ; preds = %482
  store ptr %483, ptr %8, align 8, !tbaa !5
  %485 = load ptr, ptr %8, align 8, !tbaa !5
  %486 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.237, ptr noundef %485)
          to label %487 unwind label %517

487:                                              ; preds = %484
  call void @llvm.lifetime.start.p0(i64 48, ptr %42) #8
  %488 = 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) %488, ptr noundef %10)
          to label %489 unwind label %521

489:                                              ; preds = %487
  %490 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %15, ptr noundef nonnull align 8 dereferenceable(48) %42)
          to label %491 unwind label %525

491:                                              ; preds = %489
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %42) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %42) #8
  %492 = load ptr, ptr @secp, align 8, !tbaa !5
  %493 = load ptr, ptr @OriginalPointsBSGScompressed, align 8, !tbaa !5
  %494 = load i32, ptr %16, align 4, !tbaa !9
  %495 = zext i32 %494 to i64
  %496 = getelementptr inbounds i8, ptr %493, i64 %495
  %497 = load i8, ptr %496, align 1, !tbaa !19, !range !21, !noundef !22
  %498 = trunc i8 %497 to i1
  %499 = invoke noundef ptr @_ZN9Secp256K115GetPublicKeyHexEbR5Point(ptr noundef nonnull align 8 dereferenceable(393296) %492, i1 noundef zeroext %498, ptr noundef nonnull align 8 dereferenceable(48) %15)
          to label %500 unwind label %517

500:                                              ; preds = %491
  store ptr %499, ptr %7, align 8, !tbaa !5
  %501 = load ptr, ptr %7, align 8, !tbaa !5
  %502 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.238, ptr noundef %501)
          to label %503 unwind label %517

503:                                              ; preds = %500
  %504 = call i32 @pthread_mutex_lock(ptr noundef @write_keys) #8
  %505 = invoke noalias ptr @fopen(ptr noundef @.str.228, ptr noundef @.str.239)
          to label %506 unwind label %517

506:                                              ; preds = %503
  store ptr %505, ptr %4, align 8, !tbaa !5
  %507 = load ptr, ptr %4, align 8, !tbaa !5
  %508 = icmp ne ptr %507, null
  br i1 %508, label %509, label %530

509:                                              ; preds = %506
  %510 = load ptr, ptr %4, align 8, !tbaa !5
  %511 = load ptr, ptr %8, align 8, !tbaa !5
  %512 = load ptr, ptr %7, align 8, !tbaa !5
  %513 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %510, ptr noundef @.str.240, ptr noundef %511, ptr noundef %512) #8
  %514 = load ptr, ptr %4, align 8, !tbaa !5
  %515 = invoke i32 @fclose(ptr noundef %514)
          to label %516 unwind label %517

516:                                              ; preds = %509
  br label %530

517:                                              ; preds = %561, %509, %503, %500, %491, %484, %482, %472, %461, %455
  %518 = landingpad { ptr, i32 }
          cleanup
  %519 = extractvalue { ptr, i32 } %518, 0
  store ptr %519, ptr %11, align 8
  %520 = extractvalue { ptr, i32 } %518, 1
  store i32 %520, ptr %12, align 4
  br label %570

521:                                              ; preds = %487
  %522 = landingpad { ptr, i32 }
          cleanup
  %523 = extractvalue { ptr, i32 } %522, 0
  store ptr %523, ptr %11, align 8
  %524 = extractvalue { ptr, i32 } %522, 1
  store i32 %524, ptr %12, align 4
  br label %529

525:                                              ; preds = %489
  %526 = landingpad { ptr, i32 }
          cleanup
  %527 = extractvalue { ptr, i32 } %526, 0
  store ptr %527, ptr %11, align 8
  %528 = extractvalue { ptr, i32 } %526, 1
  store i32 %528, ptr %12, align 4
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %42) #8
  br label %529

529:                                              ; preds = %525, %521
  call void @llvm.lifetime.end.p0(i64 48, ptr %42) #8
  br label %570

530:                                              ; preds = %516, %506
  %531 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %531) #8
  %532 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %532) #8
  %533 = call i32 @pthread_mutex_unlock(ptr noundef @write_keys) #8
  %534 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %535 = load i32, ptr %16, align 4, !tbaa !9
  %536 = zext i32 %535 to i64
  %537 = getelementptr inbounds i32, ptr %534, i64 %536
  store i32 1, ptr %537, align 4, !tbaa !9
  store i32 1, ptr %19, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %538

538:                                              ; preds = %555, %530
  %539 = load i32, ptr %17, align 4, !tbaa !9
  %540 = load i32, ptr @bsgs_point_number, align 4, !tbaa !9
  %541 = icmp ult i32 %539, %540
  br i1 %541, label %542, label %545

542:                                              ; preds = %538
  %543 = load i32, ptr %19, align 4, !tbaa !9
  %544 = icmp ne i32 %543, 0
  br label %545

545:                                              ; preds = %542, %538
  %546 = phi i1 [ false, %538 ], [ %544, %542 ]
  br i1 %546, label %547, label %558

547:                                              ; preds = %545
  %548 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %549 = load i32, ptr %17, align 4, !tbaa !9
  %550 = zext i32 %549 to i64
  %551 = getelementptr inbounds i32, ptr %548, i64 %550
  %552 = load i32, ptr %551, align 4, !tbaa !9
  %553 = load i32, ptr %19, align 4, !tbaa !9
  %554 = and i32 %553, %552
  store i32 %554, ptr %19, align 4, !tbaa !9
  br label %555

555:                                              ; preds = %547
  %556 = load i32, ptr %17, align 4, !tbaa !9
  %557 = add i32 %556, 1
  store i32 %557, ptr %17, align 4, !tbaa !9
  br label %538, !llvm.loop !23

558:                                              ; preds = %545
  %559 = load i32, ptr %19, align 4, !tbaa !9
  %560 = icmp ne i32 %559, 0
  br i1 %560, label %561, label %564

561:                                              ; preds = %558
  %562 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.241)
          to label %563 unwind label %517

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

564:                                              ; preds = %558
  br label %565

565:                                              ; preds = %564, %479
  br label %566

566:                                              ; preds = %565, %469
  br label %567

567:                                              ; preds = %566
  %568 = load i32, ptr %41, align 4, !tbaa !9
  %569 = add nsw i32 %568, 1
  store i32 %569, ptr %41, align 4, !tbaa !9
  br label %442, !llvm.loop !24

570:                                              ; preds = %529, %517
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  br label %599

571:                                              ; preds = %454
  %572 = 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 %573 unwind label %318

573:                                              ; preds = %571
  %574 = 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 %574)
          to label %575 unwind label %318

575:                                              ; preds = %573
  %576 = load i32, ptr %40, align 4, !tbaa !9
  %577 = add nsw i32 %576, 1
  %578 = sext i32 %577 to i64
  %579 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %578
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef %28, ptr noundef %579)
          to label %580 unwind label %318

580:                                              ; preds = %575
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef %30)
          to label %581 unwind label %318

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

583:                                              ; preds = %581
  %584 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(16) %584, ptr noundef %31)
          to label %585 unwind label %318

585:                                              ; preds = %583
  %586 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %586, ptr noundef @_2GSn)
          to label %587 unwind label %318

587:                                              ; preds = %585
  %588 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 1
  %589 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %588, ptr noundef @_2GSn, ptr noundef %589)
          to label %590 unwind label %318

590:                                              ; preds = %587
  %591 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 1
  invoke void @_ZN3Int8ModMulK1EPS_(ptr noundef nonnull align 8 dereferenceable(16) %591, ptr noundef %30)
          to label %592 unwind label %318

592:                                              ; preds = %590
  %593 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %593, ptr noundef getelementptr inbounds (%class.Point, ptr @_2GSn, i32 0, i32 1))
          to label %594 unwind label %318

594:                                              ; preds = %592
  %595 = 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 %596 unwind label %318

596:                                              ; preds = %594
  %597 = load i32, ptr %39, align 4, !tbaa !9
  %598 = add i32 %597, 1
  store i32 %598, ptr %39, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  br label %260, !llvm.loop !25

599:                                              ; preds = %570, %318
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  br label %620

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

601:                                              ; preds = %600, %245
  br label %602

602:                                              ; preds = %601
  %603 = load i32, ptr %16, align 4, !tbaa !9
  %604 = add i32 %603, 1
  store i32 %604, ptr %16, align 4, !tbaa !9
  br label %241, !llvm.loop !26

605:                                              ; preds = %241
  %606 = load ptr, ptr @steps, align 8, !tbaa !5
  %607 = load i32, ptr %20, align 4, !tbaa !9
  %608 = zext i32 %607 to i64
  %609 = getelementptr inbounds i64, ptr %606, i64 %608
  %610 = load i64, ptr %609, align 8, !tbaa !13
  %611 = add i64 %610, 2
  store i64 %611, ptr %609, align 8, !tbaa !13
  br label %612

612:                                              ; preds = %605
  br i1 true, label %180, label %613, !llvm.loop !27

613:                                              ; preds = %612, %198
  %614 = load ptr, ptr @ends, align 8, !tbaa !5
  %615 = load i32, ptr %20, align 4, !tbaa !9
  %616 = zext i32 %615 to i64
  %617 = getelementptr inbounds i32, ptr %614, i64 %616
  store i32 1, ptr %617, 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
  %618 = getelementptr inbounds [1024 x %class.Point], ptr %27, i32 0, i32 0
  %619 = getelementptr inbounds %class.Point, ptr %618, i64 1024
  br label %631

620:                                              ; preds = %599, %317, %308, %299, %172
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %35) #8
  br label %621

621:                                              ; preds = %620, %168
  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 %622

622:                                              ; preds = %621, %164
  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 %623

623:                                              ; preds = %622, %160
  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 %624

624:                                              ; preds = %623, %156
  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 %625

625:                                              ; preds = %624, %152
  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 %626

626:                                              ; preds = %625, %148
  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 %627

627:                                              ; preds = %626, %144
  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 %628

628:                                              ; preds = %627, %140
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #8
  %629 = getelementptr inbounds [1024 x %class.Point], ptr %27, i32 0, i32 0
  %630 = getelementptr inbounds %class.Point, ptr %629, i64 1024
  br label %638

631:                                              ; preds = %631, %613
  %632 = phi ptr [ %619, %613 ], [ %633, %631 ]
  %633 = getelementptr inbounds %class.Point, ptr %632, i64 -1
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %633) #8
  %634 = icmp eq ptr %633, %618
  br i1 %634, label %635, label %631

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

638:                                              ; preds = %638, %628
  %639 = phi ptr [ %630, %628 ], [ %640, %638 ]
  %640 = getelementptr inbounds %class.Point, ptr %639, i64 -1
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %640) #8
  %641 = icmp eq ptr %640, %629
  br i1 %641, label %642, label %638

642:                                              ; preds = %638
  br label %643

643:                                              ; preds = %642, %139
  call void @llvm.lifetime.end.p0(i64 49152, ptr %27) #8
  %644 = getelementptr inbounds [513 x %class.Int], ptr %26, i32 0, i32 0
  %645 = getelementptr inbounds %class.Int, ptr %644, i64 513
  br label %652

646:                                              ; preds = %646, %635
  %647 = phi ptr [ %637, %635 ], [ %648, %646 ]
  %648 = getelementptr inbounds %class.Int, ptr %647, i64 -1
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %648) #8
  %649 = icmp eq ptr %648, %636
  br i1 %649, label %650, label %646

650:                                              ; preds = %646
  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 @llvm.lifetime.end.p0(i64 4, 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 @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #8
  call void @llvm.lifetime.end.p0(i64 48, 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
  %651 = load ptr, ptr %2, align 8
  ret ptr %651

652:                                              ; preds = %652, %643
  %653 = phi ptr [ %645, %643 ], [ %654, %652 ]
  %654 = getelementptr inbounds %class.Int, ptr %653, i64 -1
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %654) #8
  %655 = icmp eq ptr %654, %644
  br i1 %655, label %656, label %652

656:                                              ; preds = %652
  br label %657

657:                                              ; preds = %656, %129
  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 %658

658:                                              ; preds = %657, %116
  call void @llvm.lifetime.end.p0(i64 48, ptr %24) #8
  br label %659

659:                                              ; preds = %658, %112, %108
  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 @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #8
  br label %660

660:                                              ; preds = %659, %104
  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 %661

661:                                              ; preds = %660, %100
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #8
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #8
  br label %662

662:                                              ; preds = %661, %96
  call void @llvm.lifetime.end.p0(i64 48, ptr %13) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #8
  br label %663

663:                                              ; preds = %662, %92
  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 %664

664:                                              ; preds = %663
  %665 = load ptr, ptr %11, align 8
  %666 = load i32, ptr %12, align 4
  %667 = insertvalue { ptr, i32 } poison, ptr %665, 0
  %668 = insertvalue { ptr, i32 } %667, i32 %666, 1
  resume { ptr, i32 } %668
}

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
@ends = 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_N_double = external dso_local global %class.Int, align 8
@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.234 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.235 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.237 = external hidden unnamed_addr constant [36 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

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

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

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

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

; 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

; 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 uwtable
define dso_local noalias noundef ptr @_Z28thread_process_bsgs_backwardPv(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.Point, align 8
  %6 = alloca %class.Point, align 8
  %7 = alloca %class.Point, align 8
  %8 = alloca %class.Point, align 8
  %9 = alloca [513 x %class.Int], align 16
  %10 = alloca [1024 x %class.Point], align 16
  %11 = alloca %class.Int, align 8
  %12 = alloca %class.Int, align 8
  %13 = alloca %class.Int, align 8
  %14 = alloca %class.Int, align 8
  %15 = alloca %class.Int, align 8
  %16 = alloca %class.Int, align 8
  %17 = alloca %class.Point, 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
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #10
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %3)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #10
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %23 unwind label %56

23:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #10
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %24 unwind label %58

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

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

26:                                               ; preds = %25
  %27 = invoke noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #11
          to label %28 unwind label %64

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

29:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #10
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %30 unwind label %68

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

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

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

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

37:                                               ; preds = %38, %35
  %.idx117 = phi i64 [ 0, %35 ], [ %.add118, %38 ]
  %.ptr119 = getelementptr inbounds i8, ptr %10, i64 %.idx117
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(48) %.ptr119)
          to label %38 unwind label %76

38:                                               ; preds = %37
  %.add118 = add nuw nsw i64 %.idx117, 48
  %39 = icmp eq i64 %.add118, 49152
  br i1 %39, label %40, label %37

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

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

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

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

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

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

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

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

48:                                               ; preds = %47
  invoke void @_ZN8IntGroup3SetEP3Int(ptr noundef nonnull align 8 dereferenceable(20) %27, ptr noundef nonnull %9)
          to label %49 unwind label %.loopexit.split-lp164

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

56:                                               ; preds = %1
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %364

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

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

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

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

66:                                               ; preds = %28
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %27, i64 noundef 24) #12
  br label %360

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

70:                                               ; preds = %32
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = icmp eq i64 %.idx, 0
  br i1 %72, label %.loopexit, label %.preheader169

.preheader169:                                    ; preds = %70, %.preheader169
  %73 = phi ptr [ %74, %.preheader169 ], [ %.ptr, %70 ]
  %74 = getelementptr inbounds i8, ptr %73, i64 -16
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %74) #10
  %75 = icmp eq ptr %74, %9
  br i1 %75, label %.loopexit, label %.preheader169

76:                                               ; preds = %37
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = icmp eq i64 %.idx117, 0
  br i1 %78, label %.loopexit155, label %.preheader167

.preheader167:                                    ; preds = %76, %.preheader167
  %79 = phi ptr [ %80, %.preheader167 ], [ %.ptr119, %76 ]
  %80 = getelementptr inbounds i8, ptr %79, i64 -48
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %80) #10
  %81 = icmp eq ptr %80, %10
  br i1 %81, label %.loopexit155, label %.preheader167

82:                                               ; preds = %40
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %340

84:                                               ; preds = %41
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %339

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

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

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

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

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

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

.loopexit163:                                     ; preds = %.invoke, %106, %110, %111, %116, %125, %135, %136, %137, %140
  %lpad.loopexit165 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp164:                            ; preds = %48, %49, %98, %99
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

98:                                               ; preds = %49
  invoke void @_ZN3Int4MultEm(ptr noundef nonnull align 8 dereferenceable(16) %16, i64 noundef 512)
          to label %99 unwind label %.loopexit.split-lp164

99:                                               ; preds = %98
  invoke void @_ZN3Int3AddEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull @BSGS_M)
          to label %.preheader162 unwind label %.loopexit.split-lp164

.preheader162:                                    ; preds = %99
  %.not207 = icmp eq i32 %spec.select.fr, 0
  %100 = getelementptr inbounds i8, ptr %10, i64 24576
  %101 = getelementptr inbounds i8, ptr %17, i64 16
  %102 = getelementptr inbounds i8, ptr %18, i64 16
  %103 = zext i32 %50 to i64
  %wide.trip.count = zext i32 %spec.select.fr to i64
  %104 = getelementptr inbounds i8, ptr %9, i64 8176
  %105 = getelementptr inbounds i8, ptr %9, i64 8192
  br label %106

106:                                              ; preds = %.preheader162, %._crit_edge188
  %107 = call i32 @pthread_mutex_lock(ptr noundef nonnull @bsgs_thread) #10
  %108 = invoke noundef zeroext i1 @_ZN3Int9IsGreaterEPS_(ptr noundef nonnull align 8 dereferenceable(16) @n_range_end, ptr noundef nonnull @n_range_start)
          to label %109 unwind label %.loopexit163

109:                                              ; preds = %106
  br i1 %108, label %110, label %329

110:                                              ; preds = %109
  invoke void @_ZN3Int3SubEPS_(ptr noundef nonnull align 8 dereferenceable(16) @n_range_end, ptr noundef nonnull @BSGS_N_double)
          to label %111 unwind label %.loopexit163

111:                                              ; preds = %110
  %112 = invoke noundef zeroext i1 @_ZN3Int7IsLowerEPS_(ptr noundef nonnull align 8 dereferenceable(16) @n_range_end, ptr noundef nonnull @n_range_start)
          to label %.invoke unwind label %.loopexit163

.invoke:                                          ; preds = %111
  %n_range_start.n_range_end = select i1 %112, ptr @n_range_start, ptr @n_range_end
  invoke void @_ZN3Int3SetEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull %n_range_start.n_range_end)
          to label %113 unwind label %.loopexit163

113:                                              ; preds = %.invoke
  %114 = call i32 @pthread_mutex_unlock(ptr noundef nonnull @bsgs_thread) #10
  %115 = load i32, ptr @FLAGMATRIX, align 4, !tbaa !13
  %.not121 = icmp eq i32 %115, 0
  br i1 %.not121, label %122, label %116

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

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

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

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

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

131:                                              ; preds = %122, %127, %118
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %19) #10
  %132 = load ptr, ptr @secp, align 8, !tbaa !14
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %19, ptr noundef nonnull align 8 dereferenceable(393296) %132, ptr noundef nonnull %3)
          to label %133 unwind label %305

133:                                              ; preds = %131
  %134 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(48) %19)
          to label %135 unwind label %307

135:                                              ; preds = %133
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %19) #10
  invoke void @_ZN3Int3SetEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull %3)
          to label %136 unwind label %.loopexit163

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

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

140:                                              ; preds = %137
  invoke void @_ZN3Int3SubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull %16)
          to label %141 unwind label %.loopexit163

141:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %20) #10
  %142 = 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) %142, ptr noundef nonnull %15)
          to label %143 unwind label %310

143:                                              ; preds = %141
  %144 = 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 %145 unwind label %312

145:                                              ; preds = %143
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %20) #10
  %146 = load i32, ptr @bsgs_point_number, align 4, !tbaa !13
  %.not208 = icmp eq i32 %146, 0
  br i1 %.not208, label %._crit_edge188, label %.lr.ph187

.lr.ph187:                                        ; preds = %145
  br i1 %.not207, label %.lr.ph187.split.preheader, label %.lr.ph187.split.us

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

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

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

155:                                              ; preds = %152
  %156 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 8 dereferenceable(48) %21)
          to label %.lr.ph182.us unwind label %.split190.us

.lr.ph182.us:                                     ; preds = %155
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %21) #10
  %157 = trunc nuw i64 %indvars.iv236 to i32
  br label %158

158:                                              ; preds = %.lr.ph182.us, %204
  %indvars.iv232 = phi i64 [ 0, %.lr.ph182.us ], [ %indvars.iv.next233, %204 ]
  %159 = load ptr, ptr @bsgs_found, align 8, !tbaa !14
  %160 = getelementptr inbounds i32, ptr %159, i64 %indvars.iv236
  %161 = load i32, ptr %160, align 4, !tbaa !13
  %162 = icmp eq i32 %161, 0
  br i1 %162, label %.preheader158.us, label %.critedge.us.loopexit

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

.critedge.us:                                     ; preds = %.critedge.us.loopexit, %.lr.ph187.split.us
  %163 = phi i32 [ %.pre, %.critedge.us.loopexit ], [ %147, %.lr.ph187.split.us ]
  %indvars.iv.next237 = add nuw nsw i64 %indvars.iv236, 1
  %164 = zext i32 %163 to i64
  %165 = icmp ult i64 %indvars.iv.next237, %164
  br i1 %165, label %.lr.ph187.split.us, label %._crit_edge188, !llvm.loop !15

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

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

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

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

.preheader156.us:                                 ; preds = %170, %282
  %indvars.iv221 = phi i64 [ %indvars.iv.next222, %282 ], [ 0, %170 ]
  %exitcond224.not = icmp eq i64 %indvars.iv221, 511
  br i1 %exitcond224.not, label %172, label %253

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

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

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

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

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

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

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

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

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

185:                                              ; preds = %183
  %186 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(48) %18)
          to label %.preheader.us unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

187:                                              ; preds = %.preheader.us, %252
  %indvars.iv228 = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next229, %252 ]
  %188 = load ptr, ptr @bsgs_found, align 8, !tbaa !14
  %189 = getelementptr inbounds i32, ptr %188, i64 %indvars.iv236
  %190 = load i32, ptr %189, align 4, !tbaa !13
  %191 = icmp eq i32 %190, 0
  br i1 %191, label %205, label %.critedge2.us

.critedge2.us:                                    ; preds = %252, %187
  %192 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %17, ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %193 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

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

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

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

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

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

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

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

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

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

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

204:                                              ; preds = %202
  %indvars.iv.next233 = add nuw nsw i64 %indvars.iv232, 1
  %exitcond235.not = icmp eq i64 %indvars.iv.next233, %wide.trip.count
  br i1 %exitcond235.not, label %.critedge.us.loopexit, label %158, !llvm.loop !17

205:                                              ; preds = %187
  %206 = getelementptr inbounds [1024 x %class.Point], ptr %10, i64 0, i64 %indvars.iv228
  invoke void @_ZN3Int10Get32BytesEPh(ptr noundef nonnull align 8 dereferenceable(16) %206, ptr noundef nonnull %2)
          to label %207 unwind label %.split194.us

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

213:                                              ; preds = %207
  %.not127.us = icmp eq i32 %212, 0
  br i1 %.not127.us, label %252, label %214

214:                                              ; preds = %213
  %215 = add i64 %indvars.iv228, %289
  %216 = trunc i64 %215 to i32
  %217 = invoke noundef i32 @_Z16bsgs_secondcheckP3IntjjS0_(ptr noundef nonnull %3, i32 noundef %216, i32 noundef %157, ptr noundef nonnull %4)
          to label %218 unwind label %.split194.us

218:                                              ; preds = %214
  %.not128.us = icmp eq i32 %217, 0
  br i1 %.not128.us, label %252, label %219

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

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

224:                                              ; preds = %221
  %225 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(48) %22)
          to label %226 unwind label %.split200.us

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

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

237:                                              ; preds = %233
  %238 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %236, ptr noundef nonnull @.str.240, ptr noundef %220, ptr noundef %232) #10
  %239 = call i32 @fclose(ptr noundef nonnull %236)
  br label %240

240:                                              ; preds = %237, %233
  call void @free(ptr noundef %220) #10
  call void @free(ptr noundef %232) #10
  %241 = call i32 @pthread_mutex_unlock(ptr noundef nonnull @write_keys) #10
  %242 = load ptr, ptr @bsgs_found, align 8, !tbaa !14
  %243 = getelementptr inbounds i32, ptr %242, i64 %indvars.iv236
  store i32 1, ptr %243, align 4, !tbaa !13
  %244 = load i32, ptr @bsgs_point_number, align 4, !tbaa !13
  %.not209 = icmp eq i32 %244, 0
  br i1 %.not209, label %.split203.us, label %.lr.ph.us.preheader

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

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

252:                                              ; preds = %._crit_edge.us, %218, %213
  %indvars.iv.next229 = add nuw nsw i64 %indvars.iv228, 1
  %exitcond231.not = icmp eq i64 %indvars.iv.next229, 1024
  br i1 %exitcond231.not, label %.critedge2.us, label %187, !llvm.loop !24

253:                                              ; preds = %.preheader156.us
  %254 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %17, ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %255 unwind label %.loopexit157.split.us

255:                                              ; preds = %253
  %256 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %18, ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %257 unwind label %.loopexit157.split.us

257:                                              ; preds = %255
  %258 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv221) #10
  %259 = getelementptr inbounds i8, ptr %258, i64 16
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull %259, ptr noundef nonnull %101)
          to label %260 unwind label %.loopexit157.split.us

260:                                              ; preds = %257
  %261 = getelementptr inbounds [513 x %class.Int], ptr %9, i64 0, i64 %indvars.iv221
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull %11, ptr noundef nonnull %261)
          to label %262 unwind label %.loopexit157.split.us

262:                                              ; preds = %260
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull %13)
          to label %263 unwind label %.loopexit157.split.us

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

264:                                              ; preds = %263
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull %14)
          to label %265 unwind label %.loopexit157.split.us

265:                                              ; preds = %264
  %266 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv221) #10
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull %266)
          to label %267 unwind label %.loopexit157.split.us

267:                                              ; preds = %265
  %268 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv221) #10
  %269 = getelementptr inbounds i8, ptr %268, i64 16
  invoke void @_ZN3Int3SetEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull %269)
          to label %270 unwind label %.loopexit157.split.us

270:                                              ; preds = %267
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %271 unwind label %.loopexit157.split.us

271:                                              ; preds = %270
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull %102)
          to label %272 unwind label %.loopexit157.split.us

272:                                              ; preds = %271
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull %12, ptr noundef nonnull %261)
          to label %273 unwind label %.loopexit157.split.us

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

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

275:                                              ; preds = %274
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull %14)
          to label %276 unwind label %.loopexit157.split.us

276:                                              ; preds = %275
  %277 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv221) #10
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull %277)
          to label %278 unwind label %.loopexit157.split.us

278:                                              ; preds = %276
  %279 = add nuw nsw i64 %indvars.iv221, 513
  %280 = getelementptr inbounds [1024 x %class.Point], ptr %10, i64 0, i64 %279
  %281 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %280, ptr noundef nonnull align 8 dereferenceable(48) %17)
          to label %282 unwind label %.loopexit157.split.us

282:                                              ; preds = %278
  %indvars.iv.next222 = add nuw nsw i64 %indvars.iv221, 1
  %283 = sub nuw nsw i64 511, %indvars.iv221
  %284 = getelementptr inbounds [1024 x %class.Point], ptr %10, i64 0, i64 %283
  %285 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %284, ptr noundef nonnull align 8 dereferenceable(48) %18)
          to label %.preheader156.us unwind label %.loopexit157.split.us, !llvm.loop !25

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

288:                                              ; preds = %.preheader158.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 %166, label %.preheader158.us, !llvm.loop !26

.preheader.us:                                    ; preds = %185
  %289 = shl i64 %indvars.iv232, 10
  br label %187

._crit_edge.us:                                   ; preds = %.lr.ph.us
  br i1 %250, label %.split203.us, label %252

.split.us:                                        ; preds = %152
  %290 = landingpad { ptr, i32 }
          cleanup
  br label %318

.split190.us:                                     ; preds = %155
  %291 = landingpad { ptr, i32 }
          cleanup
  br label %317

.loopexit.split-lp.loopexit.split-lp.split.us:    ; preds = %202, %201, %200, %199, %198, %197, %196, %195, %194, %193, %.critedge2.us, %185, %183, %182, %181, %180, %179, %178, %177, %174, %172, %170, %169, %168, %166
  %lpad.loopexit.split-lp160.us = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.split194.us:                                     ; preds = %226, %219, %214, %207, %205
  %292 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.split197.us:                                     ; preds = %221
  %293 = landingpad { ptr, i32 }
          cleanup
  br label %319

.split200.us:                                     ; preds = %224
  %294 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %22) #10
  br label %319

.loopexit157.split.us:                            ; preds = %282, %278, %276, %275, %274, %273, %272, %271, %270, %267, %265, %264, %263, %262, %260, %257, %255, %253
  %lpad.loopexit.us = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

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

.lr.ph187.split:                                  ; preds = %.lr.ph187.split.preheader, %.critedge
  %295 = phi i32 [ %146, %.lr.ph187.split.preheader ], [ %321, %.critedge ]
  %296 = phi ptr [ %.pre243, %.lr.ph187.split.preheader ], [ %322, %.critedge ]
  %indvars.iv239 = phi i64 [ 0, %.lr.ph187.split.preheader ], [ %indvars.iv.next240, %.critedge ]
  %297 = getelementptr inbounds i32, ptr %296, i64 %indvars.iv239
  %298 = load i32, ptr %297, align 4, !tbaa !13
  %299 = icmp eq i32 %298, 0
  br i1 %299, label %300, label %.critedge

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

303:                                              ; preds = %300
  %304 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 8 dereferenceable(48) %21)
          to label %.critedge.loopexit unwind label %.split190

.critedge.loopexit:                               ; preds = %303
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %21) #10
  %.pre242 = load ptr, ptr @bsgs_found, align 8, !tbaa !14
  %.pre244 = load i32, ptr @bsgs_point_number, align 4, !tbaa !13
  br label %.critedge

305:                                              ; preds = %131
  %306 = landingpad { ptr, i32 }
          cleanup
  br label %309

307:                                              ; preds = %133
  %308 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #10
  br label %309

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

310:                                              ; preds = %141
  %311 = landingpad { ptr, i32 }
          cleanup
  br label %314

312:                                              ; preds = %143
  %313 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #10
  br label %314

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

.split:                                           ; preds = %300
  %315 = landingpad { ptr, i32 }
          cleanup
  br label %318

.split190:                                        ; preds = %303
  %316 = landingpad { ptr, i32 }
          cleanup
  br label %317

317:                                              ; preds = %.split190.us, %.split190
  %.us-phi191 = phi { ptr, i32 } [ %316, %.split190 ], [ %291, %.split190.us ]
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #10
  br label %318

318:                                              ; preds = %.split, %.split.us, %317
  %.pn125 = phi { ptr, i32 } [ %.us-phi191, %317 ], [ %315, %.split ], [ %290, %.split.us ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %21) #10
  br label %.loopexit.split-lp

319:                                              ; preds = %.split200.us, %.split197.us
  %.pn129 = phi { ptr, i32 } [ %294, %.split200.us ], [ %293, %.split197.us ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %22) #10
  br label %.loopexit.split-lp

.split203.us:                                     ; preds = %._crit_edge.us, %240
  %320 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.241)
  call void @exit(i32 noundef 1) #13
  unreachable

.critedge:                                        ; preds = %.critedge.loopexit, %.lr.ph187.split
  %321 = phi i32 [ %.pre244, %.critedge.loopexit ], [ %295, %.lr.ph187.split ]
  %322 = phi ptr [ %.pre242, %.critedge.loopexit ], [ %296, %.lr.ph187.split ]
  %indvars.iv.next240 = add nuw nsw i64 %indvars.iv239, 1
  %323 = zext i32 %321 to i64
  %324 = icmp ult i64 %indvars.iv.next240, %323
  br i1 %324, label %.lr.ph187.split, label %._crit_edge188, !llvm.loop !15

._crit_edge188:                                   ; preds = %.critedge.us, %.critedge, %145
  %325 = load ptr, ptr @steps, align 8, !tbaa !14
  %326 = getelementptr inbounds i64, ptr %325, i64 %103
  %327 = load i64, ptr %326, align 8, !tbaa !11
  %328 = add i64 %327, 2
  store i64 %328, ptr %326, align 8, !tbaa !11
  br label %106, !llvm.loop !27

329:                                              ; preds = %109
  %330 = call i32 @pthread_mutex_unlock(ptr noundef nonnull @bsgs_thread) #10
  %331 = load ptr, ptr @ends, align 8, !tbaa !14
  %332 = getelementptr inbounds i32, ptr %331, i64 %103
  store i32 1, ptr %332, align 4, !tbaa !13
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %18) #10
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %17) #10
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #10
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #10
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #10
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #10
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #10
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #10
  br label %341

.loopexit.split-lp:                               ; preds = %.loopexit157.split.us, %.loopexit.split-lp.loopexit.split-lp.split.us, %.loopexit.split-lp.loopexit.split.us, %.loopexit163, %.loopexit.split-lp164, %319, %.split194.us, %318, %314, %309
  %.pn134.pn = phi { ptr, i32 } [ %.pn125, %318 ], [ %.pn123, %314 ], [ %.pn, %309 ], [ %292, %.split194.us ], [ %.pn129, %319 ], [ %lpad.loopexit165, %.loopexit163 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp164 ], [ %lpad.loopexit.us, %.loopexit157.split.us ], [ %lpad.loopexit159.us, %.loopexit.split-lp.loopexit.split.us ], [ %lpad.loopexit.split-lp160.us, %.loopexit.split-lp.loopexit.split-lp.split.us ]
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #10
  br label %333

333:                                              ; preds = %.loopexit.split-lp, %96
  %.pn134.pn.pn = phi { ptr, i32 } [ %.pn134.pn, %.loopexit.split-lp ], [ %97, %96 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %18) #10
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #10
  br label %334

334:                                              ; preds = %333, %94
  %.pn134.pn.pn.pn = phi { ptr, i32 } [ %.pn134.pn.pn, %333 ], [ %95, %94 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %17) #10
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #10
  br label %335

335:                                              ; preds = %334, %92
  %.pn134.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn134.pn.pn.pn, %334 ], [ %93, %92 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #10
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #10
  br label %336

336:                                              ; preds = %335, %90
  %.pn134.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn134.pn.pn.pn.pn, %335 ], [ %91, %90 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #10
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #10
  br label %337

337:                                              ; preds = %336, %88
  %.pn134.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn134.pn.pn.pn.pn.pn, %336 ], [ %89, %88 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #10
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #10
  br label %338

338:                                              ; preds = %337, %86
  %.pn134.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn134.pn.pn.pn.pn.pn.pn, %337 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #10
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #10
  br label %339

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

340:                                              ; preds = %339, %82
  %.pn134.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn134.pn.pn.pn.pn.pn.pn.pn.pn, %339 ], [ %83, %82 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #10
  br label %346

341:                                              ; preds = %341, %329
  %342 = phi ptr [ %36, %329 ], [ %343, %341 ]
  %343 = getelementptr inbounds i8, ptr %342, i64 -48
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %343) #10
  %344 = icmp eq ptr %343, %10
  br i1 %344, label %345, label %341

345:                                              ; preds = %341
  call void @llvm.lifetime.end.p0(i64 49152, ptr nonnull %10) #10
  br label %350

346:                                              ; preds = %346, %340
  %347 = phi ptr [ %36, %340 ], [ %348, %346 ]
  %348 = getelementptr inbounds i8, ptr %347, i64 -48
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %348) #10
  %349 = icmp eq ptr %348, %10
  br i1 %349, label %.loopexit155, label %346

.loopexit155:                                     ; preds = %.preheader167, %346, %76
  %.pn134.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %77, %76 ], [ %.pn134.pn.pn.pn.pn.pn.pn.pn.pn.pn, %346 ], [ %77, %.preheader167 ]
  call void @llvm.lifetime.end.p0(i64 49152, ptr nonnull %10) #10
  br label %355

350:                                              ; preds = %350, %345
  %351 = phi ptr [ %31, %345 ], [ %352, %350 ]
  %352 = getelementptr inbounds i8, ptr %351, i64 -16
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %352) #10
  %353 = icmp eq ptr %352, %9
  br i1 %353, label %354, label %350

354:                                              ; preds = %350
  call void @llvm.lifetime.end.p0(i64 8208, ptr nonnull %9) #10
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #10
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #10
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #10
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #10
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #10
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #10
  ret ptr null

355:                                              ; preds = %355, %.loopexit155
  %356 = phi ptr [ %31, %.loopexit155 ], [ %357, %355 ]
  %357 = getelementptr inbounds i8, ptr %356, i64 -16
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %357) #10
  %358 = icmp eq ptr %357, %9
  br i1 %358, label %.loopexit, label %355

.loopexit:                                        ; preds = %.preheader169, %355, %70
  %.pn134.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %71, %70 ], [ %.pn134.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %355 ], [ %71, %.preheader169 ]
  call void @llvm.lifetime.end.p0(i64 8208, ptr nonnull %9) #10
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #10
  br label %359

359:                                              ; preds = %.loopexit, %68
  %.pn134.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn134.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %.loopexit ], [ %69, %68 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #10
  br label %360

360:                                              ; preds = %359, %66, %64
  %.pn134.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn134.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %359 ], [ %67, %66 ], [ %65, %64 ]
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #10
  br label %361

361:                                              ; preds = %360, %62
  %.pn134.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn134.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %360 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #10
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #10
  br label %362

362:                                              ; preds = %361, %60
  %.pn134.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn134.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %361 ], [ %61, %60 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #10
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #10
  br label %363

363:                                              ; preds = %362, %58
  %.pn134.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn134.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %362 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #10
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #10
  br label %364

364:                                              ; preds = %363, %56
  %.pn134.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn134.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %363 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #10
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #10
  resume { ptr, i32 } %.pn134.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 #9

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 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 = { nounwind }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { builtin nounwind }
attributes #13 = { 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