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

; 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 { %union.anon }
%union.anon = type { [5 x i64] }
%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_CURRENT = external dso_local global %class.Int, align 8
@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_end = external dso_local global %class.Int, align 8
@secp = external dso_local global ptr, align 8
@stdout = external global ptr, align 8
@.str.229 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.235 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.236 = 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(120)) unnamed_addr #0

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

declare void @_ZN3Int4MultEm(ptr noundef nonnull align 8 dereferenceable(40), 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(120) 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(983240), ptr noundef) #0

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

; 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(983240), ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(120)) #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 @_Z19thread_process_bsgsPv(ptr noundef %0) #8 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 ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca [513 x %class.Int], align 16
  %15 = alloca %class.Int, align 8
  %16 = alloca %class.Int, align 8
  %17 = alloca %class.Int, align 8
  %18 = alloca %class.Int, align 8
  %19 = alloca %class.Int, align 8
  %20 = alloca %class.Int, align 8
  %21 = alloca %class.Point, align 8
  %22 = alloca %class.Point, align 8
  %23 = alloca %class.Point, align 8
  %24 = alloca %class.Point, align 8
  %25 = alloca %class.Point, align 8
  %26 = alloca %class.Point, align 8
  %27 = alloca [1024 x %class.Point], align 16
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca %class.Point, align 8
  %36 = alloca %class.Point, align 8
  %37 = alloca %class.Point, align 8
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca %class.Point, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #9
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %9)
  call void @llvm.lifetime.start.p0(i64 40, ptr %10) #9
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %10)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %42 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #10
  invoke void @_ZN8IntGroupC1Ei(ptr noundef nonnull align 8 dereferenceable(20) %42, i32 noundef 513)
          to label %43 unwind label %81

43:                                               ; preds = %1
  store ptr %42, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 20520, ptr %14) #9
  %44 = getelementptr inbounds [513 x %class.Int], ptr %14, i32 0, i32 0
  %45 = getelementptr inbounds %class.Int, ptr %44, i64 513
  br label %46

46:                                               ; preds = %46, %43
  %47 = phi ptr [ %44, %43 ], [ %48, %46 ]
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %47)
  %48 = getelementptr inbounds %class.Int, ptr %47, i64 1
  %49 = icmp eq ptr %48, %45
  br i1 %49, label %50, label %46

50:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 40, ptr %15) #9
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %15)
  call void @llvm.lifetime.start.p0(i64 40, ptr %16) #9
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %16)
  call void @llvm.lifetime.start.p0(i64 40, ptr %17) #9
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %17)
  call void @llvm.lifetime.start.p0(i64 40, ptr %18) #9
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %18)
  call void @llvm.lifetime.start.p0(i64 40, ptr %19) #9
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %19)
  call void @llvm.lifetime.start.p0(i64 40, ptr %20) #9
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %20)
  call void @llvm.lifetime.start.p0(i64 120, ptr %21) #9
  call void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %21)
  call void @llvm.lifetime.start.p0(i64 120, ptr %22) #9
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %22)
          to label %51 unwind label %85

51:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 120, ptr %23) #9
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %23)
          to label %52 unwind label %89

52:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 120, ptr %24) #9
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %24)
          to label %53 unwind label %93

53:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 120, ptr %25) #9
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %25)
          to label %54 unwind label %97

54:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 120, ptr %26) #9
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %26)
          to label %55 unwind label %101

55:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 122880, ptr %27) #9
  %56 = getelementptr inbounds [1024 x %class.Point], ptr %27, i32 0, i32 0
  %57 = getelementptr inbounds %class.Point, ptr %56, i64 1024
  br label %58

58:                                               ; preds = %60, %55
  %59 = phi ptr [ %56, %55 ], [ %61, %60 ]
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %59)
          to label %60 unwind label %105

60:                                               ; preds = %58
  %61 = getelementptr inbounds %class.Point, ptr %59, i64 1
  %62 = icmp eq ptr %61, %57
  br i1 %62, label %63, label %58

63:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #9
  store i32 511, ptr %34, align 4, !tbaa !9
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = getelementptr inbounds [513 x %class.Int], ptr %14, i64 0, i64 0
  invoke void @_ZN8IntGroup3SetEP3Int(ptr noundef nonnull align 8 dereferenceable(20) %64, ptr noundef %65)
          to label %66 unwind label %115

66:                                               ; preds = %63
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %67, ptr %5, align 8, !tbaa !5
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.tothread, ptr %68, i32 0, i32 0
  %70 = load i32, ptr %69, align 8, !tbaa !11
  store i32 %70, ptr %32, align 4, !tbaa !9
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  call void @free(ptr noundef %71) #9
  %72 = load i64, ptr @bsgs_aux, align 8, !tbaa !13
  %73 = udiv i64 %72, 1024
  %74 = trunc i64 %73 to i32
  store i32 %74, ptr %33, align 4, !tbaa !9
  %75 = load i64, ptr @bsgs_aux, align 8, !tbaa !13
  %76 = urem i64 %75, 1024
  %77 = icmp ne i64 %76, 0
  br i1 %77, label %78, label %119

78:                                               ; preds = %66
  %79 = load i32, ptr %33, align 4, !tbaa !9
  %80 = add i32 %79, 1
  store i32 %80, ptr %33, align 4, !tbaa !9
  br label %119

81:                                               ; preds = %1
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %12, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %13, align 4
  call void @_ZdlPvm(ptr noundef %42, i64 noundef 24) #11
  br label %526

85:                                               ; preds = %50
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %12, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %13, align 4
  br label %525

89:                                               ; preds = %51
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %12, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %13, align 4
  br label %524

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

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

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

105:                                              ; preds = %58
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %12, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %13, align 4
  %109 = icmp eq ptr %56, %59
  br i1 %109, label %114, label %110

110:                                              ; preds = %110, %105
  %111 = phi ptr [ %59, %105 ], [ %112, %110 ]
  %112 = getelementptr inbounds %class.Point, ptr %111, i64 -1
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %112) #9
  %113 = icmp eq ptr %112, %56
  br i1 %113, label %114, label %110

114:                                              ; preds = %110, %105
  br label %520

115:                                              ; preds = %165, %162, %161, %160, %152, %149, %147, %139, %136, %134, %126, %125, %123, %121, %120, %119, %63
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %12, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %13, align 4
  br label %506

119:                                              ; preds = %78, %66
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %20, ptr noundef @BSGS_M_double)
          to label %120 unwind label %115

120:                                              ; preds = %119
  invoke void @_ZN3Int4MultEm(ptr noundef nonnull align 8 dereferenceable(40) %20, i64 noundef 512)
          to label %121 unwind label %115

121:                                              ; preds = %120
  invoke void @_ZN3Int3AddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %20, ptr noundef @BSGS_M)
          to label %122 unwind label %115

122:                                              ; preds = %121
  br label %123

123:                                              ; preds = %498, %122
  %124 = call i32 @pthread_mutex_lock(ptr noundef @bsgs_thread) #9
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef @BSGS_CURRENT)
          to label %125 unwind label %115

125:                                              ; preds = %123
  invoke void @_ZN3Int3AddEPS_(ptr noundef nonnull align 8 dereferenceable(40) @BSGS_CURRENT, ptr noundef @BSGS_N_double)
          to label %126 unwind label %115

126:                                              ; preds = %125
  %127 = call i32 @pthread_mutex_unlock(ptr noundef @bsgs_thread) #9
  %128 = invoke noundef zeroext i1 @_ZN3Int16IsGreaterOrEqualEPS_(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef @n_range_end)
          to label %129 unwind label %115

129:                                              ; preds = %126
  br i1 %128, label %130, label %131

130:                                              ; preds = %129
  br label %499

131:                                              ; preds = %129
  %132 = load i32, ptr @FLAGMATRIX, align 4, !tbaa !9
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %134, label %144

134:                                              ; preds = %131
  %135 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %9)
          to label %136 unwind label %115

136:                                              ; preds = %134
  store ptr %135, ptr %7, align 8, !tbaa !5
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  %138 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.235, ptr noundef %137)
          to label %139 unwind label %115

139:                                              ; preds = %136
  %140 = load ptr, ptr @stdout, align 8, !tbaa !5
  %141 = invoke i32 @fflush(ptr noundef %140)
          to label %142 unwind label %115

142:                                              ; preds = %139
  %143 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %143) #9
  br label %158

144:                                              ; preds = %131
  %145 = load i32, ptr @FLAGQUIET, align 4, !tbaa !9
  %146 = icmp eq i32 %145, 0
  br i1 %146, label %147, label %157

147:                                              ; preds = %144
  %148 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %9)
          to label %149 unwind label %115

149:                                              ; preds = %147
  store ptr %148, ptr %7, align 8, !tbaa !5
  %150 = load ptr, ptr %7, align 8, !tbaa !5
  %151 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.236, ptr noundef %150)
          to label %152 unwind label %115

152:                                              ; preds = %149
  %153 = load ptr, ptr @stdout, align 8, !tbaa !5
  %154 = invoke i32 @fflush(ptr noundef %153)
          to label %155 unwind label %115

155:                                              ; preds = %152
  %156 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %156) #9
  store i32 1, ptr @THREADOUTPUT, align 4, !tbaa !9
  br label %157

157:                                              ; preds = %155, %144
  br label %158

158:                                              ; preds = %157, %142
  call void @llvm.lifetime.start.p0(i64 120, ptr %35) #9
  %159 = load ptr, ptr @secp, align 8, !tbaa !5
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind writable sret(%class.Point) align 8 %35, ptr noundef nonnull align 8 dereferenceable(983240) %159, ptr noundef %9)
          to label %160 unwind label %217

160:                                              ; preds = %158
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %35, i64 120, i1 false), !tbaa.struct !15
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %35) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %35) #9
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %19, ptr noundef %9)
          to label %161 unwind label %115

161:                                              ; preds = %160
  invoke void @_ZN3Int3NegEv(ptr noundef nonnull align 8 dereferenceable(40) %19)
          to label %162 unwind label %115

162:                                              ; preds = %161
  %163 = load ptr, ptr @secp, align 8, !tbaa !5
  %164 = getelementptr inbounds %class.Secp256K1, ptr %163, i32 0, i32 2
  invoke void @_ZN3Int3AddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %19, ptr noundef %164)
          to label %165 unwind label %115

165:                                              ; preds = %162
  invoke void @_ZN3Int3SubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %19, ptr noundef %20)
          to label %166 unwind label %115

166:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 120, ptr %36) #9
  %167 = 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(983240) %167, ptr noundef %19)
          to label %168 unwind label %221

168:                                              ; preds = %166
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %36, i64 120, i1 false), !tbaa.struct !15
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %36) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %36) #9
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %169

169:                                              ; preds = %488, %168
  %170 = load i32, ptr %28, align 4, !tbaa !9
  %171 = load i32, ptr @bsgs_point_number, align 4, !tbaa !9
  %172 = icmp ult i32 %170, %171
  br i1 %172, label %173, label %491

173:                                              ; preds = %169
  %174 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %175 = load i32, ptr %28, align 4, !tbaa !9
  %176 = zext i32 %175 to i64
  %177 = getelementptr inbounds i32, ptr %174, i64 %176
  %178 = load i32, ptr %177, align 4, !tbaa !9
  %179 = icmp eq i32 %178, 0
  br i1 %179, label %180, label %487

180:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 120, ptr %37) #9
  %181 = load ptr, ptr @secp, align 8, !tbaa !5
  %182 = load i32, ptr %28, align 4, !tbaa !9
  %183 = zext i32 %182 to i64
  %184 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @OriginalPointsBSGS, i64 noundef %183) #9
  invoke void @_ZN9Secp256K19AddDirectER5PointS1_(ptr dead_on_unwind writable sret(%class.Point) align 8 %37, ptr noundef nonnull align 8 dereferenceable(983240) %181, ptr noundef nonnull align 8 dereferenceable(120) %184, ptr noundef nonnull align 8 dereferenceable(120) %22)
          to label %185 unwind label %225

185:                                              ; preds = %180
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %37, i64 120, i1 false), !tbaa.struct !15
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %37) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %37) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #9
  store i32 0, ptr %38, align 4, !tbaa !9
  br label %186

186:                                              ; preds = %482, %185
  %187 = load i32, ptr %38, align 4, !tbaa !9
  %188 = load i32, ptr %33, align 4, !tbaa !9
  %189 = icmp ult i32 %187, %188
  br i1 %189, label %190, label %197

190:                                              ; preds = %186
  %191 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %192 = load i32, ptr %28, align 4, !tbaa !9
  %193 = zext i32 %192 to i64
  %194 = getelementptr inbounds i32, ptr %191, i64 %193
  %195 = load i32, ptr %194, align 4, !tbaa !9
  %196 = icmp eq i32 %195, 0
  br label %197

197:                                              ; preds = %190, %186
  %198 = phi i1 [ false, %186 ], [ %196, %190 ]
  br i1 %198, label %199, label %486

199:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #9
  store i32 0, ptr %39, align 4, !tbaa !9
  br label %200

200:                                              ; preds = %214, %199
  %201 = load i32, ptr %39, align 4, !tbaa !9
  %202 = load i32, ptr %34, align 4, !tbaa !9
  %203 = icmp slt i32 %201, %202
  br i1 %203, label %204, label %233

204:                                              ; preds = %200
  %205 = load i32, ptr %39, align 4, !tbaa !9
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [513 x %class.Int], ptr %14, i64 0, i64 %206
  %208 = load i32, ptr %39, align 4, !tbaa !9
  %209 = sext i32 %208 to i64
  %210 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %209) #9
  %211 = getelementptr inbounds %class.Point, ptr %210, i32 0, i32 0
  %212 = getelementptr inbounds %class.Point, ptr %24, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %207, ptr noundef %211, ptr noundef %212)
          to label %213 unwind label %229

213:                                              ; preds = %204
  br label %214

214:                                              ; preds = %213
  %215 = load i32, ptr %39, align 4, !tbaa !9
  %216 = add nsw i32 %215, 1
  store i32 %216, ptr %39, align 4, !tbaa !9
  br label %200, !llvm.loop !17

217:                                              ; preds = %158
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %12, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %35) #9
  br label %506

221:                                              ; preds = %166
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %12, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %36) #9
  br label %506

225:                                              ; preds = %180
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %12, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %37) #9
  br label %506

229:                                              ; preds = %480, %478, %475, %473, %471, %469, %468, %463, %461, %331, %329, %327, %326, %322, %320, %319, %314, %294, %292, %290, %289, %285, %283, %282, %277, %271, %269, %267, %266, %262, %256, %248, %242, %233, %204
  %230 = landingpad { ptr, i32 }
          cleanup
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %12, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %13, align 4
  br label %485

233:                                              ; preds = %200
  %234 = load i32, ptr %39, align 4, !tbaa !9
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [513 x %class.Int], ptr %14, i64 0, i64 %235
  %237 = load i32, ptr %39, align 4, !tbaa !9
  %238 = sext i32 %237 to i64
  %239 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %238) #9
  %240 = getelementptr inbounds %class.Point, ptr %239, i32 0, i32 0
  %241 = getelementptr inbounds %class.Point, ptr %24, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %236, ptr noundef %240, ptr noundef %241)
          to label %242 unwind label %229

242:                                              ; preds = %233
  %243 = load i32, ptr %39, align 4, !tbaa !9
  %244 = add nsw i32 %243, 1
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [513 x %class.Int], ptr %14, i64 0, i64 %245
  %247 = getelementptr inbounds %class.Point, ptr %24, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %246, ptr noundef @_2GSn, ptr noundef %247)
          to label %248 unwind label %229

248:                                              ; preds = %242
  %249 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZN8IntGroup6ModInvEv(ptr noundef nonnull align 8 dereferenceable(20) %249)
          to label %250 unwind label %229

250:                                              ; preds = %248
  %251 = getelementptr inbounds [1024 x %class.Point], ptr %27, i64 0, i64 512
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %251, ptr align 8 %24, i64 120, i1 false), !tbaa.struct !15
  store i32 0, ptr %39, align 4, !tbaa !9
  br label %252

252:                                              ; preds = %311, %250
  %253 = load i32, ptr %39, align 4, !tbaa !9
  %254 = load i32, ptr %34, align 4, !tbaa !9
  %255 = icmp slt i32 %253, %254
  br i1 %255, label %256, label %314

256:                                              ; preds = %252
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %24, i64 120, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %24, i64 120, i1 false), !tbaa.struct !15
  %257 = load i32, ptr %39, align 4, !tbaa !9
  %258 = sext i32 %257 to i64
  %259 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %258) #9
  %260 = getelementptr inbounds %class.Point, ptr %259, i32 0, i32 1
  %261 = getelementptr inbounds %class.Point, ptr %25, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef %260, ptr noundef %261)
          to label %262 unwind label %229

262:                                              ; preds = %256
  %263 = load i32, ptr %39, align 4, !tbaa !9
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [513 x %class.Int], ptr %14, i64 0, i64 %264
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef %15, ptr noundef %265)
          to label %266 unwind label %229

266:                                              ; preds = %262
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %18, ptr noundef %17)
          to label %267 unwind label %229

267:                                              ; preds = %266
  %268 = getelementptr inbounds %class.Point, ptr %25, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %268)
          to label %269 unwind label %229

269:                                              ; preds = %267
  %270 = getelementptr inbounds %class.Point, ptr %25, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %270, ptr noundef %18)
          to label %271 unwind label %229

271:                                              ; preds = %269
  %272 = getelementptr inbounds %class.Point, ptr %25, i32 0, i32 0
  %273 = load i32, ptr %39, align 4, !tbaa !9
  %274 = sext i32 %273 to i64
  %275 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %274) #9
  %276 = getelementptr inbounds %class.Point, ptr %275, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %272, ptr noundef %276)
          to label %277 unwind label %229

277:                                              ; preds = %271
  %278 = load i32, ptr %39, align 4, !tbaa !9
  %279 = sext i32 %278 to i64
  %280 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %279) #9
  %281 = getelementptr inbounds %class.Point, ptr %280, i32 0, i32 1
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef %281)
          to label %282 unwind label %229

282:                                              ; preds = %277
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %16)
          to label %283 unwind label %229

283:                                              ; preds = %282
  %284 = getelementptr inbounds %class.Point, ptr %26, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef %284)
          to label %285 unwind label %229

285:                                              ; preds = %283
  %286 = load i32, ptr %39, align 4, !tbaa !9
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds [513 x %class.Int], ptr %14, i64 0, i64 %287
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef %16, ptr noundef %288)
          to label %289 unwind label %229

289:                                              ; preds = %285
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %18, ptr noundef %17)
          to label %290 unwind label %229

290:                                              ; preds = %289
  %291 = getelementptr inbounds %class.Point, ptr %26, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %291)
          to label %292 unwind label %229

292:                                              ; preds = %290
  %293 = getelementptr inbounds %class.Point, ptr %26, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %293, ptr noundef %18)
          to label %294 unwind label %229

294:                                              ; preds = %292
  %295 = getelementptr inbounds %class.Point, ptr %26, i32 0, i32 0
  %296 = load i32, ptr %39, align 4, !tbaa !9
  %297 = sext i32 %296 to i64
  %298 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %297) #9
  %299 = getelementptr inbounds %class.Point, ptr %298, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %295, ptr noundef %299)
          to label %300 unwind label %229

300:                                              ; preds = %294
  %301 = load i32, ptr %39, align 4, !tbaa !9
  %302 = add nsw i32 %301, 1
  %303 = add nsw i32 512, %302
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds [1024 x %class.Point], ptr %27, i64 0, i64 %304
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %305, ptr align 8 %25, i64 120, i1 false), !tbaa.struct !15
  %306 = load i32, ptr %39, align 4, !tbaa !9
  %307 = add nsw i32 %306, 1
  %308 = sub nsw i32 512, %307
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds [1024 x %class.Point], ptr %27, i64 0, i64 %309
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %310, ptr align 8 %26, i64 120, i1 false), !tbaa.struct !15
  br label %311

311:                                              ; preds = %300
  %312 = load i32, ptr %39, align 4, !tbaa !9
  %313 = add nsw i32 %312, 1
  store i32 %313, ptr %39, align 4, !tbaa !9
  br label %252, !llvm.loop !19

314:                                              ; preds = %252
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %24, i64 120, i1 false), !tbaa.struct !15
  %315 = load i32, ptr %39, align 4, !tbaa !9
  %316 = sext i32 %315 to i64
  %317 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %316) #9
  %318 = getelementptr inbounds %class.Point, ptr %317, i32 0, i32 1
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef %318)
          to label %319 unwind label %229

319:                                              ; preds = %314
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %16)
          to label %320 unwind label %229

320:                                              ; preds = %319
  %321 = getelementptr inbounds %class.Point, ptr %26, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef %321)
          to label %322 unwind label %229

322:                                              ; preds = %320
  %323 = load i32, ptr %39, align 4, !tbaa !9
  %324 = sext i32 %323 to i64
  %325 = getelementptr inbounds [513 x %class.Int], ptr %14, i64 0, i64 %324
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef %16, ptr noundef %325)
          to label %326 unwind label %229

326:                                              ; preds = %322
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %18, ptr noundef %17)
          to label %327 unwind label %229

327:                                              ; preds = %326
  %328 = getelementptr inbounds %class.Point, ptr %26, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %328)
          to label %329 unwind label %229

329:                                              ; preds = %327
  %330 = getelementptr inbounds %class.Point, ptr %26, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %330, ptr noundef %18)
          to label %331 unwind label %229

331:                                              ; preds = %329
  %332 = getelementptr inbounds %class.Point, ptr %26, i32 0, i32 0
  %333 = load i32, ptr %39, align 4, !tbaa !9
  %334 = sext i32 %333 to i64
  %335 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %334) #9
  %336 = getelementptr inbounds %class.Point, ptr %335, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %332, ptr noundef %336)
          to label %337 unwind label %229

337:                                              ; preds = %331
  %338 = getelementptr inbounds [1024 x %class.Point], ptr %27, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %338, ptr align 8 %26, i64 120, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #9
  store i32 0, ptr %40, align 4, !tbaa !9
  br label %339

339:                                              ; preds = %457, %337
  %340 = load i32, ptr %40, align 4, !tbaa !9
  %341 = icmp slt i32 %340, 1024
  br i1 %341, label %342, label %349

342:                                              ; preds = %339
  %343 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %344 = load i32, ptr %28, align 4, !tbaa !9
  %345 = zext i32 %344 to i64
  %346 = getelementptr inbounds i32, ptr %343, i64 %345
  %347 = load i32, ptr %346, align 4, !tbaa !9
  %348 = icmp eq i32 %347, 0
  br label %349

349:                                              ; preds = %342, %339
  %350 = phi i1 [ false, %339 ], [ %348, %342 ]
  br i1 %350, label %352, label %351

351:                                              ; preds = %349
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #9
  br label %461

352:                                              ; preds = %349
  %353 = load i32, ptr %40, align 4, !tbaa !9
  %354 = sext i32 %353 to i64
  %355 = getelementptr inbounds [1024 x %class.Point], ptr %27, i64 0, i64 %354
  %356 = getelementptr inbounds %class.Point, ptr %355, i32 0, i32 0
  %357 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  invoke void @_ZN3Int10Get32BytesEPh(ptr noundef nonnull align 8 dereferenceable(40) %356, ptr noundef %357)
          to label %358 unwind label %412

358:                                              ; preds = %352
  %359 = load ptr, ptr @bloom_bP, align 8, !tbaa !5
  %360 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  %361 = load i8, ptr %360, align 16, !tbaa !16
  %362 = zext i8 %361 to i64
  %363 = getelementptr inbounds %struct.bloom, ptr %359, i64 %362
  %364 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  %365 = invoke i32 @bloom_check(ptr noundef %363, ptr noundef %364, i32 noundef 32)
          to label %366 unwind label %412

366:                                              ; preds = %358
  store i32 %365, ptr %30, align 4, !tbaa !9
  %367 = load i32, ptr %30, align 4, !tbaa !9
  %368 = icmp ne i32 %367, 0
  br i1 %368, label %369, label %456

369:                                              ; preds = %366
  %370 = load i32, ptr %38, align 4, !tbaa !9
  %371 = mul i32 %370, 1024
  %372 = load i32, ptr %40, align 4, !tbaa !9
  %373 = add i32 %371, %372
  %374 = load i32, ptr %28, align 4, !tbaa !9
  %375 = invoke noundef i32 @_Z16bsgs_secondcheckP3IntjjS0_(ptr noundef %9, i32 noundef %373, i32 noundef %374, ptr noundef %10)
          to label %376 unwind label %412

376:                                              ; preds = %369
  store i32 %375, ptr %30, align 4, !tbaa !9
  %377 = load i32, ptr %30, align 4, !tbaa !9
  %378 = icmp ne i32 %377, 0
  br i1 %378, label %379, label %455

379:                                              ; preds = %376
  %380 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %10)
          to label %381 unwind label %412

381:                                              ; preds = %379
  store ptr %380, ptr %8, align 8, !tbaa !5
  %382 = load ptr, ptr %8, align 8, !tbaa !5
  %383 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.237, ptr noundef %382)
          to label %384 unwind label %412

384:                                              ; preds = %381
  call void @llvm.lifetime.start.p0(i64 120, ptr %41) #9
  %385 = load ptr, ptr @secp, align 8, !tbaa !5
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind writable sret(%class.Point) align 8 %41, ptr noundef nonnull align 8 dereferenceable(983240) %385, ptr noundef %10)
          to label %386 unwind label %416

386:                                              ; preds = %384
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %41, i64 120, i1 false), !tbaa.struct !15
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %41) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %41) #9
  %387 = load ptr, ptr @secp, align 8, !tbaa !5
  %388 = load ptr, ptr @OriginalPointsBSGScompressed, align 8, !tbaa !5
  %389 = load i32, ptr %28, align 4, !tbaa !9
  %390 = zext i32 %389 to i64
  %391 = getelementptr inbounds i8, ptr %388, i64 %390
  %392 = load i8, ptr %391, align 1, !tbaa !20, !range !22, !noundef !23
  %393 = trunc i8 %392 to i1
  %394 = invoke noundef ptr @_ZN9Secp256K115GetPublicKeyHexEbR5Point(ptr noundef nonnull align 8 dereferenceable(983240) %387, i1 noundef zeroext %393, ptr noundef nonnull align 8 dereferenceable(120) %23)
          to label %395 unwind label %412

395:                                              ; preds = %386
  store ptr %394, ptr %7, align 8, !tbaa !5
  %396 = load ptr, ptr %7, align 8, !tbaa !5
  %397 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.238, ptr noundef %396)
          to label %398 unwind label %412

398:                                              ; preds = %395
  %399 = call i32 @pthread_mutex_lock(ptr noundef @write_keys) #9
  %400 = invoke noalias ptr @fopen(ptr noundef @.str.229, ptr noundef @.str.239)
          to label %401 unwind label %412

401:                                              ; preds = %398
  store ptr %400, ptr %4, align 8, !tbaa !5
  %402 = load ptr, ptr %4, align 8, !tbaa !5
  %403 = icmp ne ptr %402, null
  br i1 %403, label %404, label %420

404:                                              ; preds = %401
  %405 = load ptr, ptr %4, align 8, !tbaa !5
  %406 = load ptr, ptr %8, align 8, !tbaa !5
  %407 = load ptr, ptr %7, align 8, !tbaa !5
  %408 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %405, ptr noundef @.str.240, ptr noundef %406, ptr noundef %407) #9
  %409 = load ptr, ptr %4, align 8, !tbaa !5
  %410 = invoke i32 @fclose(ptr noundef %409)
          to label %411 unwind label %412

411:                                              ; preds = %404
  br label %420

412:                                              ; preds = %451, %404, %398, %395, %386, %381, %379, %369, %358, %352
  %413 = landingpad { ptr, i32 }
          cleanup
  %414 = extractvalue { ptr, i32 } %413, 0
  store ptr %414, ptr %12, align 8
  %415 = extractvalue { ptr, i32 } %413, 1
  store i32 %415, ptr %13, align 4
  br label %460

416:                                              ; preds = %384
  %417 = landingpad { ptr, i32 }
          cleanup
  %418 = extractvalue { ptr, i32 } %417, 0
  store ptr %418, ptr %12, align 8
  %419 = extractvalue { ptr, i32 } %417, 1
  store i32 %419, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %41) #9
  br label %460

420:                                              ; preds = %411, %401
  %421 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %421) #9
  %422 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %422) #9
  %423 = call i32 @pthread_mutex_unlock(ptr noundef @write_keys) #9
  %424 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %425 = load i32, ptr %28, align 4, !tbaa !9
  %426 = zext i32 %425 to i64
  %427 = getelementptr inbounds i32, ptr %424, i64 %426
  store i32 1, ptr %427, align 4, !tbaa !9
  store i32 1, ptr %31, align 4, !tbaa !9
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %428

428:                                              ; preds = %445, %420
  %429 = load i32, ptr %29, align 4, !tbaa !9
  %430 = load i32, ptr @bsgs_point_number, align 4, !tbaa !9
  %431 = icmp ult i32 %429, %430
  br i1 %431, label %432, label %435

432:                                              ; preds = %428
  %433 = load i32, ptr %31, align 4, !tbaa !9
  %434 = icmp ne i32 %433, 0
  br label %435

435:                                              ; preds = %432, %428
  %436 = phi i1 [ false, %428 ], [ %434, %432 ]
  br i1 %436, label %437, label %448

437:                                              ; preds = %435
  %438 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %439 = load i32, ptr %29, align 4, !tbaa !9
  %440 = zext i32 %439 to i64
  %441 = getelementptr inbounds i32, ptr %438, i64 %440
  %442 = load i32, ptr %441, align 4, !tbaa !9
  %443 = load i32, ptr %31, align 4, !tbaa !9
  %444 = and i32 %443, %442
  store i32 %444, ptr %31, align 4, !tbaa !9
  br label %445

445:                                              ; preds = %437
  %446 = load i32, ptr %29, align 4, !tbaa !9
  %447 = add i32 %446, 1
  store i32 %447, ptr %29, align 4, !tbaa !9
  br label %428, !llvm.loop !24

448:                                              ; preds = %435
  %449 = load i32, ptr %31, align 4, !tbaa !9
  %450 = icmp ne i32 %449, 0
  br i1 %450, label %451, label %454

451:                                              ; preds = %448
  %452 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.241)
          to label %453 unwind label %412

453:                                              ; preds = %451
  call void @exit(i32 noundef 1) #12
  unreachable

454:                                              ; preds = %448
  br label %455

455:                                              ; preds = %454, %376
  br label %456

456:                                              ; preds = %455, %366
  br label %457

457:                                              ; preds = %456
  %458 = load i32, ptr %40, align 4, !tbaa !9
  %459 = add nsw i32 %458, 1
  store i32 %459, ptr %40, align 4, !tbaa !9
  br label %339, !llvm.loop !25

460:                                              ; preds = %416, %412
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #9
  br label %485

461:                                              ; preds = %351
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %24, i64 120, i1 false), !tbaa.struct !15
  %462 = getelementptr inbounds %class.Point, ptr %25, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef getelementptr inbounds (%class.Point, ptr @_2GSn, i32 0, i32 1), ptr noundef %462)
          to label %463 unwind label %229

463:                                              ; preds = %461
  %464 = load i32, ptr %39, align 4, !tbaa !9
  %465 = add nsw i32 %464, 1
  %466 = sext i32 %465 to i64
  %467 = getelementptr inbounds [513 x %class.Int], ptr %14, i64 0, i64 %466
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef %15, ptr noundef %467)
          to label %468 unwind label %229

468:                                              ; preds = %463
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %18, ptr noundef %17)
          to label %469 unwind label %229

469:                                              ; preds = %468
  %470 = getelementptr inbounds %class.Point, ptr %25, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %470)
          to label %471 unwind label %229

471:                                              ; preds = %469
  %472 = getelementptr inbounds %class.Point, ptr %25, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %472, ptr noundef %18)
          to label %473 unwind label %229

473:                                              ; preds = %471
  %474 = getelementptr inbounds %class.Point, ptr %25, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %474, ptr noundef @_2GSn)
          to label %475 unwind label %229

475:                                              ; preds = %473
  %476 = getelementptr inbounds %class.Point, ptr %25, i32 0, i32 1
  %477 = getelementptr inbounds %class.Point, ptr %25, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %476, ptr noundef @_2GSn, ptr noundef %477)
          to label %478 unwind label %229

478:                                              ; preds = %475
  %479 = getelementptr inbounds %class.Point, ptr %25, i32 0, i32 1
  invoke void @_ZN3Int8ModMulK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %479, ptr noundef %17)
          to label %480 unwind label %229

480:                                              ; preds = %478
  %481 = getelementptr inbounds %class.Point, ptr %25, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %481, ptr noundef getelementptr inbounds (%class.Point, ptr @_2GSn, i32 0, i32 1))
          to label %482 unwind label %229

482:                                              ; preds = %480
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %25, i64 120, i1 false), !tbaa.struct !15
  %483 = load i32, ptr %38, align 4, !tbaa !9
  %484 = add i32 %483, 1
  store i32 %484, ptr %38, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #9
  br label %186, !llvm.loop !26

485:                                              ; preds = %460, %229
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  br label %506

486:                                              ; preds = %197
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #9
  br label %487

487:                                              ; preds = %486, %173
  br label %488

488:                                              ; preds = %487
  %489 = load i32, ptr %28, align 4, !tbaa !9
  %490 = add i32 %489, 1
  store i32 %490, ptr %28, align 4, !tbaa !9
  br label %169, !llvm.loop !27

491:                                              ; preds = %169
  %492 = load ptr, ptr @steps, align 8, !tbaa !5
  %493 = load i32, ptr %32, align 4, !tbaa !9
  %494 = zext i32 %493 to i64
  %495 = getelementptr inbounds i64, ptr %492, i64 %494
  %496 = load i64, ptr %495, align 8, !tbaa !13
  %497 = add i64 %496, 2
  store i64 %497, ptr %495, align 8, !tbaa !13
  br label %498

498:                                              ; preds = %491
  br i1 true, label %123, label %499, !llvm.loop !28

499:                                              ; preds = %498, %130
  %500 = load ptr, ptr @ends, align 8, !tbaa !5
  %501 = load i32, ptr %32, align 4, !tbaa !9
  %502 = zext i32 %501 to i64
  %503 = getelementptr inbounds i32, ptr %500, i64 %502
  store i32 1, ptr %503, align 4, !tbaa !9
  store ptr null, ptr %2, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  %504 = getelementptr inbounds [1024 x %class.Point], ptr %27, i32 0, i32 0
  %505 = getelementptr inbounds %class.Point, ptr %504, i64 1024
  br label %509

506:                                              ; preds = %485, %225, %221, %217, %115
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  %507 = getelementptr inbounds [1024 x %class.Point], ptr %27, i32 0, i32 0
  %508 = getelementptr inbounds %class.Point, ptr %507, i64 1024
  br label %515

509:                                              ; preds = %509, %499
  %510 = phi ptr [ %505, %499 ], [ %511, %509 ]
  %511 = getelementptr inbounds %class.Point, ptr %510, i64 -1
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %511) #9
  %512 = icmp eq ptr %511, %504
  br i1 %512, label %513, label %509

513:                                              ; preds = %509
  call void @llvm.lifetime.end.p0(i64 122880, ptr %27) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %26) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %26) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %25) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %25) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %24) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %24) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %23) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %23) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %22) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %22) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %21) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 20520, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  %514 = load ptr, ptr %2, align 8
  ret ptr %514

515:                                              ; preds = %515, %506
  %516 = phi ptr [ %508, %506 ], [ %517, %515 ]
  %517 = getelementptr inbounds %class.Point, ptr %516, i64 -1
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %517) #9
  %518 = icmp eq ptr %517, %507
  br i1 %518, label %519, label %515

519:                                              ; preds = %515
  br label %520

520:                                              ; preds = %519, %114
  call void @llvm.lifetime.end.p0(i64 122880, ptr %27) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %26) #9
  br label %521

521:                                              ; preds = %520, %101
  call void @llvm.lifetime.end.p0(i64 120, ptr %26) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %25) #9
  br label %522

522:                                              ; preds = %521, %97
  call void @llvm.lifetime.end.p0(i64 120, ptr %25) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %24) #9
  br label %523

523:                                              ; preds = %522, %93
  call void @llvm.lifetime.end.p0(i64 120, ptr %24) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %23) #9
  br label %524

524:                                              ; preds = %523, %89
  call void @llvm.lifetime.end.p0(i64 120, ptr %23) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %22) #9
  br label %525

525:                                              ; preds = %524, %85
  call void @llvm.lifetime.end.p0(i64 120, ptr %22) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %21) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 20520, ptr %14) #9
  br label %526

526:                                              ; preds = %525, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  br label %527

527:                                              ; preds = %526
  %528 = load ptr, ptr %12, align 8
  %529 = load i32, ptr %13, align 4
  %530 = insertvalue { ptr, i32 } poison, ptr %528, 0
  %531 = insertvalue { ptr, i32 } %530, i32 %529, 1
  resume { ptr, i32 } %531
}

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

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

declare void @_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(40), 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(40), ptr noundef, ptr noundef) #0

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

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

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

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

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

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

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

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

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

declare noundef ptr @_ZN9Secp256K115GetPublicKeyHexEbR5Point(ptr noundef nonnull align 8 dereferenceable(983240), i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(120)) #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { 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 #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin nounwind }
attributes #12 = { 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 = !{i64 0, i64 40, !16, i64 40, i64 40, !16, i64 80, i64 40, !16}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = !{!21, !21, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = distinct !{!24, !18}
!25 = distinct !{!25, !18}
!26 = distinct !{!26, !18}
!27 = distinct !{!27, !18}
!28 = distinct !{!28, !18}


; 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 { %union.anon }
%union.anon = type { [5 x i64] }
%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_CURRENT = external dso_local global %class.Int, align 8
@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_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.229 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.235 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.236 = 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(120)) unnamed_addr #0

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

declare noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40)) 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(40), ptr noundef) local_unnamed_addr #0

declare void @_ZN3Int4MultEm(ptr noundef nonnull align 8 dereferenceable(40), 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(120) 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(983240), ptr noundef) local_unnamed_addr #0

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

; 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(983240), ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(120)) 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 @_Z19thread_process_bsgsPv(ptr nocapture noundef %0) local_unnamed_addr #10 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 [513 x %class.Int], align 16
  %6 = alloca %class.Int, align 8
  %7 = alloca %class.Int, align 8
  %8 = alloca %class.Int, align 8
  %9 = alloca %class.Int, align 8
  %10 = alloca %class.Int, align 8
  %11 = alloca %class.Int, align 8
  %12 = alloca %class.Point, align 8
  %13 = alloca %class.Point, align 8
  %14 = alloca %class.Point, align 8
  %15 = alloca %class.Point, align 8
  %16 = alloca %class.Point, align 8
  %17 = alloca %class.Point, align 8
  %18 = alloca [1024 x %class.Point], align 16
  %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) #11
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #11
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %3)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #11
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %4)
  %23 = call noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #12
  invoke void @_ZN8IntGroupC1Ei(ptr noundef nonnull align 8 dereferenceable(20) %23, i32 noundef 513)
          to label %24 unwind label %45

24:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 20520, ptr nonnull %5) #11
  br label %25

25:                                               ; preds = %25, %24
  %.idx = phi i64 [ 0, %24 ], [ %.add, %25 ]
  %.ptr = getelementptr inbounds i8, ptr %5, i64 %.idx
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %.ptr)
  %.add = add nuw nsw i64 %.idx, 40
  %26 = icmp eq i64 %.add, 20520
  br i1 %26, label %27, label %25

27:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #11
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %6)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #11
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %7)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #11
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %8)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #11
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %9)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #11
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %10)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #11
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %11)
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %12) #11
  call void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %12)
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %13) #11
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %13)
          to label %28 unwind label %47

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

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

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

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

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

34:                                               ; preds = %35, %32
  %.idx97 = phi i64 [ 0, %32 ], [ %.add98, %35 ]
  %.ptr99 = getelementptr inbounds i8, ptr %18, i64 %.idx97
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %.ptr99)
          to label %35 unwind label %57

35:                                               ; preds = %34
  %.add98 = add nuw nsw i64 %.idx97, 120
  %36 = icmp eq i64 %.add98, 122880
  br i1 %36, label %37, label %34

37:                                               ; preds = %35
  invoke void @_ZN8IntGroup3SetEP3Int(ptr noundef nonnull align 8 dereferenceable(20) %23, ptr noundef nonnull %5)
          to label %38 unwind label %.loopexit.split-lp122

38:                                               ; preds = %37
  %39 = load i32, ptr %0, align 8, !tbaa !5
  call void @free(ptr noundef %0) #11
  %40 = load i64, ptr @bsgs_aux, align 8, !tbaa !11
  %41 = lshr i64 %40, 10
  %42 = trunc i64 %41 to i32
  %43 = and i64 %40, 1023
  %.not = icmp ne i64 %43, 0
  %44 = zext i1 %.not to i32
  %spec.select = add i32 %44, %42
  %spec.select.fr = freeze i32 %spec.select
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull @BSGS_M_double)
          to label %63 unwind label %.loopexit.split-lp122

45:                                               ; preds = %1
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %23, i64 noundef 24) #13
  br label %274

47:                                               ; preds = %27
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %273

49:                                               ; preds = %28
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %272

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

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

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

57:                                               ; preds = %34
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = icmp eq i64 %.idx97, 0
  br i1 %59, label %.loopexit, label %.preheader125

.preheader125:                                    ; preds = %57, %.preheader125
  %60 = phi ptr [ %61, %.preheader125 ], [ %.ptr99, %57 ]
  %61 = getelementptr inbounds i8, ptr %60, i64 -120
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %61) #11
  %62 = icmp eq ptr %61, %18
  br i1 %62, label %.loopexit, label %.preheader125

.loopexit121:                                     ; preds = %71, %73, %74, %80, %89, %97, %98, %99, %102
  %lpad.loopexit123 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp122:                            ; preds = %37, %38, %63, %64
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

63:                                               ; preds = %38
  invoke void @_ZN3Int4MultEm(ptr noundef nonnull align 8 dereferenceable(40) %11, i64 noundef 512)
          to label %64 unwind label %.loopexit.split-lp122

64:                                               ; preds = %63
  invoke void @_ZN3Int3AddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull @BSGS_M)
          to label %.preheader120 unwind label %.loopexit.split-lp122

.preheader120:                                    ; preds = %64
  %.not156 = icmp eq i32 %spec.select.fr, 0
  %65 = getelementptr inbounds i8, ptr %18, i64 61440
  %66 = getelementptr inbounds i8, ptr %16, i64 40
  %67 = getelementptr inbounds i8, ptr %17, i64 40
  %68 = zext i32 %39 to i64
  %wide.trip.count = zext i32 %spec.select.fr to i64
  %69 = getelementptr inbounds i8, ptr %5, i64 20440
  %70 = getelementptr inbounds i8, ptr %5, i64 20480
  br label %71

71:                                               ; preds = %.preheader120, %._crit_edge143
  %72 = call i32 @pthread_mutex_lock(ptr noundef nonnull @bsgs_thread) #11
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull @BSGS_CURRENT)
          to label %73 unwind label %.loopexit121

73:                                               ; preds = %71
  invoke void @_ZN3Int3AddEPS_(ptr noundef nonnull align 8 dereferenceable(40) @BSGS_CURRENT, ptr noundef nonnull @BSGS_N_double)
          to label %74 unwind label %.loopexit121

74:                                               ; preds = %73
  %75 = call i32 @pthread_mutex_unlock(ptr noundef nonnull @bsgs_thread) #11
  %76 = invoke noundef zeroext i1 @_ZN3Int16IsGreaterOrEqualEPS_(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull @n_range_end)
          to label %77 unwind label %.loopexit121

77:                                               ; preds = %74
  br i1 %76, label %257, label %78

78:                                               ; preds = %77
  %79 = load i32, ptr @FLAGMATRIX, align 4, !tbaa !13
  %.not101 = icmp eq i32 %79, 0
  br i1 %.not101, label %86, label %80

80:                                               ; preds = %78
  %81 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %3)
          to label %82 unwind label %.loopexit121

82:                                               ; preds = %80
  %83 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.235, ptr noundef %81)
  %84 = load ptr, ptr @stdout, align 8, !tbaa !14
  %85 = call i32 @fflush(ptr noundef %84)
  call void @free(ptr noundef %81) #11
  br label %95

86:                                               ; preds = %78
  %87 = load i32, ptr @FLAGQUIET, align 4, !tbaa !13
  %88 = icmp eq i32 %87, 0
  br i1 %88, label %89, label %95

89:                                               ; preds = %86
  %90 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %3)
          to label %91 unwind label %.loopexit121

91:                                               ; preds = %89
  %92 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.236, ptr noundef %90)
  %93 = load ptr, ptr @stdout, align 8, !tbaa !14
  %94 = call i32 @fflush(ptr noundef %93)
  call void @free(ptr noundef %90) #11
  store i32 1, ptr @THREADOUTPUT, align 4, !tbaa !13
  br label %95

95:                                               ; preds = %86, %91, %82
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %19) #11
  %96 = 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(983240) %96, ptr noundef nonnull %3)
          to label %97 unwind label %242

97:                                               ; preds = %95
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %12, ptr noundef nonnull align 8 dereferenceable(120) %19, i64 120, i1 false), !tbaa.struct !15
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %19) #11
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %19) #11
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %10, ptr noundef nonnull %3)
          to label %98 unwind label %.loopexit121

98:                                               ; preds = %97
  invoke void @_ZN3Int3NegEv(ptr noundef nonnull align 8 dereferenceable(40) %10)
          to label %99 unwind label %.loopexit121

99:                                               ; preds = %98
  %100 = load ptr, ptr @secp, align 8, !tbaa !14
  %101 = getelementptr inbounds i8, ptr %100, i64 160
  invoke void @_ZN3Int3AddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %10, ptr noundef nonnull %101)
          to label %102 unwind label %.loopexit121

102:                                              ; preds = %99
  invoke void @_ZN3Int3SubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %10, ptr noundef nonnull %11)
          to label %103 unwind label %.loopexit121

103:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %20) #11
  %104 = 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(983240) %104, ptr noundef nonnull %10)
          to label %105 unwind label %244

105:                                              ; preds = %103
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %13, ptr noundef nonnull align 8 dereferenceable(120) %20, i64 120, i1 false), !tbaa.struct !15
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %20) #11
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %20) #11
  %106 = load i32, ptr @bsgs_point_number, align 4, !tbaa !13
  %.not157 = icmp eq i32 %106, 0
  br i1 %.not157, label %._crit_edge143, label %.lr.ph142

.lr.ph142:                                        ; preds = %105
  br i1 %.not156, label %.lr.ph142.split.preheader, label %.lr.ph142.split.us

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

.lr.ph142.split.us:                               ; preds = %.lr.ph142, %.critedge.us
  %107 = phi i32 [ %121, %.critedge.us ], [ %106, %.lr.ph142 ]
  %indvars.iv183 = phi i64 [ %indvars.iv.next184, %.critedge.us ], [ 0, %.lr.ph142 ]
  %108 = load ptr, ptr @bsgs_found, align 8, !tbaa !14
  %109 = getelementptr inbounds i32, ptr %108, i64 %indvars.iv183
  %110 = load i32, ptr %109, align 4, !tbaa !13
  %111 = icmp eq i32 %110, 0
  br i1 %111, label %112, label %.critedge.us

112:                                              ; preds = %.lr.ph142.split.us
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %21) #11
  %113 = load ptr, ptr @secp, align 8, !tbaa !14
  %114 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @OriginalPointsBSGS, i64 noundef %indvars.iv183) #11
  invoke void @_ZN9Secp256K19AddDirectER5PointS1_(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %21, ptr noundef nonnull align 8 dereferenceable(983240) %113, ptr noundef nonnull align 8 dereferenceable(120) %114, ptr noundef nonnull align 8 dereferenceable(120) %13)
          to label %.lr.ph137.us unwind label %.split.us

.lr.ph137.us:                                     ; preds = %112
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %15, ptr noundef nonnull align 8 dereferenceable(120) %21, i64 120, i1 false), !tbaa.struct !15
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %21) #11
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %21) #11
  %115 = trunc nuw i64 %indvars.iv183 to i32
  br label %116

116:                                              ; preds = %.lr.ph137.us, %155
  %indvars.iv179 = phi i64 [ 0, %.lr.ph137.us ], [ %indvars.iv.next180, %155 ]
  %117 = load ptr, ptr @bsgs_found, align 8, !tbaa !14
  %118 = getelementptr inbounds i32, ptr %117, i64 %indvars.iv183
  %119 = load i32, ptr %118, align 4, !tbaa !13
  %120 = icmp eq i32 %119, 0
  br i1 %120, label %.preheader.us, label %.critedge.us.loopexit

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

.critedge.us:                                     ; preds = %.critedge.us.loopexit, %.lr.ph142.split.us
  %121 = phi i32 [ %.pre, %.critedge.us.loopexit ], [ %107, %.lr.ph142.split.us ]
  %indvars.iv.next184 = add nuw nsw i64 %indvars.iv183, 1
  %122 = zext i32 %121 to i64
  %123 = icmp ult i64 %indvars.iv.next184, %122
  br i1 %123, label %.lr.ph142.split.us, label %._crit_edge143, !llvm.loop !17

124:                                              ; preds = %230
  %125 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef 511) #11
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %69, ptr noundef nonnull %125, ptr noundef nonnull %15)
          to label %126 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

126:                                              ; preds = %124
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %70, ptr noundef nonnull @_2GSn, ptr noundef nonnull %15)
          to label %127 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

127:                                              ; preds = %126
  invoke void @_ZN8IntGroup6ModInvEv(ptr noundef nonnull align 8 dereferenceable(20) %23)
          to label %128 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

128:                                              ; preds = %127
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(120) %65, ptr noundef nonnull align 8 dereferenceable(120) %15, i64 120, i1 false), !tbaa.struct !15
  br label %202

129:                                              ; preds = %223
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %17, ptr noundef nonnull align 8 dereferenceable(120) %15, i64 120, i1 false), !tbaa.struct !15
  %130 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef 511) #11
  %131 = getelementptr inbounds i8, ptr %130, i64 40
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull %131)
          to label %132 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

132:                                              ; preds = %129
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %7)
          to label %133 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

133:                                              ; preds = %132
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull %67)
          to label %134 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

134:                                              ; preds = %133
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull %7, ptr noundef nonnull %69)
          to label %135 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

135:                                              ; preds = %134
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull %8)
          to label %136 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

136:                                              ; preds = %135
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %17)
          to label %137 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

137:                                              ; preds = %136
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef nonnull %9)
          to label %138 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

138:                                              ; preds = %137
  %139 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef 511) #11
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef nonnull %139)
          to label %140 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

140:                                              ; preds = %138
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(120) %18, ptr noundef nonnull align 8 dereferenceable(120) %17, i64 120, i1 false), !tbaa.struct !15
  %141 = shl i64 %indvars.iv179, 10
  br label %142

142:                                              ; preds = %201, %140
  %indvars.iv175 = phi i64 [ %indvars.iv.next176, %201 ], [ 0, %140 ]
  %143 = load ptr, ptr @bsgs_found, align 8, !tbaa !14
  %144 = getelementptr inbounds i32, ptr %143, i64 %indvars.iv183
  %145 = load i32, ptr %144, align 4, !tbaa !13
  %146 = icmp eq i32 %145, 0
  br i1 %146, label %156, label %.critedge2.us

.critedge2.us:                                    ; preds = %201, %142
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %16, ptr noundef nonnull align 8 dereferenceable(120) %15, i64 120, i1 false), !tbaa.struct !15
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef nonnull getelementptr inbounds (i8, ptr @_2GSn, i64 40), ptr noundef nonnull %66)
          to label %147 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

147:                                              ; preds = %.critedge2.us
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull %6, ptr noundef nonnull %70)
          to label %148 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

148:                                              ; preds = %147
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull %8)
          to label %149 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

149:                                              ; preds = %148
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %16)
          to label %150 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

150:                                              ; preds = %149
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef nonnull %9)
          to label %151 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

151:                                              ; preds = %150
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef nonnull @_2GSn)
          to label %152 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

152:                                              ; preds = %151
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %66, ptr noundef nonnull @_2GSn, ptr noundef nonnull %16)
          to label %153 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

153:                                              ; preds = %152
  invoke void @_ZN3Int8ModMulK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %66, ptr noundef nonnull %8)
          to label %154 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

154:                                              ; preds = %153
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %66, ptr noundef nonnull getelementptr inbounds (i8, ptr @_2GSn, i64 40))
          to label %155 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

155:                                              ; preds = %154
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %15, ptr noundef nonnull align 8 dereferenceable(120) %16, i64 120, i1 false), !tbaa.struct !15
  %indvars.iv.next180 = add nuw nsw i64 %indvars.iv179, 1
  %exitcond182.not = icmp eq i64 %indvars.iv.next180, %wide.trip.count
  br i1 %exitcond182.not, label %.critedge.us.loopexit, label %116, !llvm.loop !19

156:                                              ; preds = %142
  %157 = getelementptr inbounds [1024 x %class.Point], ptr %18, i64 0, i64 %indvars.iv175
  invoke void @_ZN3Int10Get32BytesEPh(ptr noundef nonnull align 8 dereferenceable(40) %157, ptr noundef nonnull %2)
          to label %158 unwind label %.split146.us

158:                                              ; preds = %156
  %159 = load ptr, ptr @bloom_bP, align 8, !tbaa !14
  %160 = load i8, ptr %2, align 16, !tbaa !16
  %161 = zext i8 %160 to i64
  %162 = getelementptr inbounds %struct.bloom, ptr %159, i64 %161
  %163 = invoke i32 @bloom_check(ptr noundef %162, ptr noundef nonnull %2, i32 noundef 32)
          to label %164 unwind label %.split146.us

164:                                              ; preds = %158
  %.not102.us = icmp eq i32 %163, 0
  br i1 %.not102.us, label %201, label %165

165:                                              ; preds = %164
  %166 = add i64 %indvars.iv175, %141
  %167 = trunc i64 %166 to i32
  %168 = invoke noundef i32 @_Z16bsgs_secondcheckP3IntjjS0_(ptr noundef nonnull %3, i32 noundef %167, i32 noundef %115, ptr noundef nonnull %4)
          to label %169 unwind label %.split146.us

169:                                              ; preds = %165
  %.not103.us = icmp eq i32 %168, 0
  br i1 %.not103.us, label %201, label %170

170:                                              ; preds = %169
  %171 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %172 unwind label %.split146.us

172:                                              ; preds = %170
  %173 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.237, ptr noundef %171)
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %22) #11
  %174 = 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(983240) %174, ptr noundef nonnull %4)
          to label %175 unwind label %.split149.us

175:                                              ; preds = %172
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %14, ptr noundef nonnull align 8 dereferenceable(120) %22, i64 120, i1 false), !tbaa.struct !15
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %22) #11
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %22) #11
  %176 = load ptr, ptr @secp, align 8, !tbaa !14
  %177 = load ptr, ptr @OriginalPointsBSGScompressed, align 8, !tbaa !14
  %178 = getelementptr inbounds i8, ptr %177, i64 %indvars.iv183
  %179 = load i8, ptr %178, align 1, !tbaa !20, !range !22, !noundef !23
  %180 = trunc nuw i8 %179 to i1
  %181 = invoke noundef ptr @_ZN9Secp256K115GetPublicKeyHexEbR5Point(ptr noundef nonnull align 8 dereferenceable(983240) %176, i1 noundef zeroext %180, ptr noundef nonnull align 8 dereferenceable(120) %14)
          to label %182 unwind label %.split146.us

182:                                              ; preds = %175
  %183 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.238, ptr noundef %181)
  %184 = call i32 @pthread_mutex_lock(ptr noundef nonnull @write_keys) #11
  %185 = call noalias ptr @fopen(ptr noundef nonnull @.str.229, ptr noundef nonnull @.str.239)
  %.not105.us = icmp eq ptr %185, null
  br i1 %.not105.us, label %189, label %186

186:                                              ; preds = %182
  %187 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %185, ptr noundef nonnull @.str.240, ptr noundef %171, ptr noundef %181) #11
  %188 = call i32 @fclose(ptr noundef nonnull %185)
  br label %189

189:                                              ; preds = %186, %182
  call void @free(ptr noundef %171) #11
  call void @free(ptr noundef %181) #11
  %190 = call i32 @pthread_mutex_unlock(ptr noundef nonnull @write_keys) #11
  %191 = load ptr, ptr @bsgs_found, align 8, !tbaa !14
  %192 = getelementptr inbounds i32, ptr %191, i64 %indvars.iv183
  store i32 1, ptr %192, align 4, !tbaa !13
  %193 = load i32, ptr @bsgs_point_number, align 4, !tbaa !13
  %.not158 = icmp eq i32 %193, 0
  br i1 %.not158, label %.split152.us, label %.lr.ph.us.preheader

.lr.ph.us.preheader:                              ; preds = %189
  %194 = zext i32 %193 to i64
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %.lr.ph.us
  %indvars.iv172 = phi i64 [ 0, %.lr.ph.us.preheader ], [ %indvars.iv.next173, %.lr.ph.us ]
  %195 = getelementptr inbounds i32, ptr %191, i64 %indvars.iv172
  %196 = load i32, ptr %195, align 4, !tbaa !13
  %197 = and i32 %196, 1
  %indvars.iv.next173 = add nuw nsw i64 %indvars.iv172, 1
  %198 = icmp ult i64 %indvars.iv.next173, %194
  %199 = icmp ne i32 %197, 0
  %200 = select i1 %198, i1 %199, i1 false
  br i1 %200, label %.lr.ph.us, label %._crit_edge.us, !llvm.loop !24

201:                                              ; preds = %._crit_edge.us, %169, %164
  %indvars.iv.next176 = add nuw nsw i64 %indvars.iv175, 1
  %exitcond178.not = icmp eq i64 %indvars.iv.next176, 1024
  br i1 %exitcond178.not, label %.critedge2.us, label %142, !llvm.loop !25

202:                                              ; preds = %223, %128
  %indvars.iv168 = phi i64 [ %indvars.iv.next169, %223 ], [ 0, %128 ]
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %16, ptr noundef nonnull align 8 dereferenceable(120) %15, i64 120, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %17, ptr noundef nonnull align 8 dereferenceable(120) %15, i64 120, i1 false), !tbaa.struct !15
  %203 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv168) #11
  %204 = getelementptr inbounds i8, ptr %203, i64 40
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef nonnull %204, ptr noundef nonnull %66)
          to label %205 unwind label %.loopexit116.split.us

205:                                              ; preds = %202
  %206 = getelementptr inbounds [513 x %class.Int], ptr %5, i64 0, i64 %indvars.iv168
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull %6, ptr noundef nonnull %206)
          to label %207 unwind label %.loopexit116.split.us

207:                                              ; preds = %205
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull %8)
          to label %208 unwind label %.loopexit116.split.us

208:                                              ; preds = %207
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %16)
          to label %209 unwind label %.loopexit116.split.us

209:                                              ; preds = %208
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef nonnull %9)
          to label %210 unwind label %.loopexit116.split.us

210:                                              ; preds = %209
  %211 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv168) #11
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef nonnull %211)
          to label %212 unwind label %.loopexit116.split.us

212:                                              ; preds = %210
  %213 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv168) #11
  %214 = getelementptr inbounds i8, ptr %213, i64 40
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull %214)
          to label %215 unwind label %.loopexit116.split.us

215:                                              ; preds = %212
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %7)
          to label %216 unwind label %.loopexit116.split.us

216:                                              ; preds = %215
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull %67)
          to label %217 unwind label %.loopexit116.split.us

217:                                              ; preds = %216
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull %7, ptr noundef nonnull %206)
          to label %218 unwind label %.loopexit116.split.us

218:                                              ; preds = %217
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull %8)
          to label %219 unwind label %.loopexit116.split.us

219:                                              ; preds = %218
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %17)
          to label %220 unwind label %.loopexit116.split.us

220:                                              ; preds = %219
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef nonnull %9)
          to label %221 unwind label %.loopexit116.split.us

221:                                              ; preds = %220
  %222 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv168) #11
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef nonnull %222)
          to label %223 unwind label %.loopexit116.split.us

223:                                              ; preds = %221
  %indvars.iv.next169 = add nuw nsw i64 %indvars.iv168, 1
  %224 = add nuw nsw i64 %indvars.iv168, 513
  %225 = getelementptr inbounds [1024 x %class.Point], ptr %18, i64 0, i64 %224
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %225, ptr noundef nonnull align 8 dereferenceable(120) %16, i64 120, i1 false), !tbaa.struct !15
  %226 = sub nuw nsw i64 511, %indvars.iv168
  %227 = getelementptr inbounds [1024 x %class.Point], ptr %18, i64 0, i64 %226
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %227, ptr noundef nonnull align 8 dereferenceable(120) %17, i64 120, i1 false), !tbaa.struct !15
  %exitcond171.not = icmp eq i64 %indvars.iv.next169, 511
  br i1 %exitcond171.not, label %129, label %202, !llvm.loop !26

.preheader.us:                                    ; preds = %116, %230
  %indvars.iv = phi i64 [ %indvars.iv.next, %230 ], [ 0, %116 ]
  %228 = getelementptr inbounds [513 x %class.Int], ptr %5, i64 0, i64 %indvars.iv
  %229 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv) #11
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %228, ptr noundef nonnull %229, ptr noundef nonnull %15)
          to label %230 unwind label %.loopexit.split-lp.loopexit.split.us

230:                                              ; preds = %.preheader.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 %124, label %.preheader.us, !llvm.loop !27

._crit_edge.us:                                   ; preds = %.lr.ph.us
  br i1 %199, label %.split152.us, label %201

.split.us:                                        ; preds = %112
  %231 = landingpad { ptr, i32 }
          cleanup
  br label %247

.loopexit.split-lp.loopexit.split-lp.split.us:    ; preds = %154, %153, %152, %151, %150, %149, %148, %147, %.critedge2.us, %138, %137, %136, %135, %134, %133, %132, %129, %127, %126, %124
  %lpad.loopexit.split-lp118.us = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.split146.us:                                     ; preds = %175, %170, %165, %158, %156
  %232 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.split149.us:                                     ; preds = %172
  %233 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %22) #11
  br label %.loopexit.split-lp

.loopexit116.split.us:                            ; preds = %221, %220, %219, %218, %217, %216, %215, %212, %210, %209, %208, %207, %205, %202
  %lpad.loopexit.us = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

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

.lr.ph142.split:                                  ; preds = %.lr.ph142.split.preheader, %.critedge
  %234 = phi i32 [ %106, %.lr.ph142.split.preheader ], [ %249, %.critedge ]
  %235 = phi ptr [ %.pre190, %.lr.ph142.split.preheader ], [ %250, %.critedge ]
  %indvars.iv186 = phi i64 [ 0, %.lr.ph142.split.preheader ], [ %indvars.iv.next187, %.critedge ]
  %236 = getelementptr inbounds i32, ptr %235, i64 %indvars.iv186
  %237 = load i32, ptr %236, align 4, !tbaa !13
  %238 = icmp eq i32 %237, 0
  br i1 %238, label %239, label %.critedge

239:                                              ; preds = %.lr.ph142.split
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %21) #11
  %240 = load ptr, ptr @secp, align 8, !tbaa !14
  %241 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @OriginalPointsBSGS, i64 noundef %indvars.iv186) #11
  invoke void @_ZN9Secp256K19AddDirectER5PointS1_(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %21, ptr noundef nonnull align 8 dereferenceable(983240) %240, ptr noundef nonnull align 8 dereferenceable(120) %241, ptr noundef nonnull align 8 dereferenceable(120) %13)
          to label %.critedge.loopexit unwind label %.split

.critedge.loopexit:                               ; preds = %239
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %15, ptr noundef nonnull align 8 dereferenceable(120) %21, i64 120, i1 false), !tbaa.struct !15
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %21) #11
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %21) #11
  %.pre189 = load ptr, ptr @bsgs_found, align 8, !tbaa !14
  %.pre191 = load i32, ptr @bsgs_point_number, align 4, !tbaa !13
  br label %.critedge

242:                                              ; preds = %95
  %243 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %19) #11
  br label %.loopexit.split-lp

244:                                              ; preds = %103
  %245 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %20) #11
  br label %.loopexit.split-lp

.split:                                           ; preds = %239
  %246 = landingpad { ptr, i32 }
          cleanup
  br label %247

247:                                              ; preds = %.split.us, %.split
  %.us-phi = phi { ptr, i32 } [ %246, %.split ], [ %231, %.split.us ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %21) #11
  br label %.loopexit.split-lp

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

.critedge:                                        ; preds = %.critedge.loopexit, %.lr.ph142.split
  %249 = phi i32 [ %.pre191, %.critedge.loopexit ], [ %234, %.lr.ph142.split ]
  %250 = phi ptr [ %.pre189, %.critedge.loopexit ], [ %235, %.lr.ph142.split ]
  %indvars.iv.next187 = add nuw nsw i64 %indvars.iv186, 1
  %251 = zext i32 %249 to i64
  %252 = icmp ult i64 %indvars.iv.next187, %251
  br i1 %252, label %.lr.ph142.split, label %._crit_edge143, !llvm.loop !17

._crit_edge143:                                   ; preds = %.critedge.us, %.critedge, %105
  %253 = load ptr, ptr @steps, align 8, !tbaa !14
  %254 = getelementptr inbounds i64, ptr %253, i64 %68
  %255 = load i64, ptr %254, align 8, !tbaa !11
  %256 = add i64 %255, 2
  store i64 %256, ptr %254, align 8, !tbaa !11
  br label %71, !llvm.loop !28

257:                                              ; preds = %77
  %258 = load ptr, ptr @ends, align 8, !tbaa !14
  %259 = getelementptr inbounds i32, ptr %258, i64 %68
  store i32 1, ptr %259, align 4, !tbaa !13
  br label %260

.loopexit.split-lp:                               ; preds = %.loopexit116.split.us, %.loopexit.split-lp.loopexit.split-lp.split.us, %.loopexit.split-lp.loopexit.split.us, %.loopexit121, %.loopexit.split-lp122, %.split149.us, %.split146.us, %247, %244, %242
  %.pn106.pn = phi { ptr, i32 } [ %.us-phi, %247 ], [ %245, %244 ], [ %243, %242 ], [ %232, %.split146.us ], [ %233, %.split149.us ], [ %lpad.loopexit123, %.loopexit121 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp122 ], [ %lpad.loopexit.us, %.loopexit116.split.us ], [ %lpad.loopexit117.us, %.loopexit.split-lp.loopexit.split.us ], [ %lpad.loopexit.split-lp118.us, %.loopexit.split-lp.loopexit.split-lp.split.us ]
  br label %265

260:                                              ; preds = %260, %257
  %261 = phi ptr [ %33, %257 ], [ %262, %260 ]
  %262 = getelementptr inbounds i8, ptr %261, i64 -120
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %262) #11
  %263 = icmp eq ptr %262, %18
  br i1 %263, label %264, label %260

264:                                              ; preds = %260
  call void @llvm.lifetime.end.p0(i64 122880, ptr nonnull %18) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %17) #11
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %17) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %16) #11
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %16) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %15) #11
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %15) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %14) #11
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %14) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %13) #11
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %13) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %12) #11
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %12) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #11
  call void @llvm.lifetime.end.p0(i64 20520, ptr nonnull %5) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #11
  ret ptr null

265:                                              ; preds = %265, %.loopexit.split-lp
  %266 = phi ptr [ %33, %.loopexit.split-lp ], [ %267, %265 ]
  %267 = getelementptr inbounds i8, ptr %266, i64 -120
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %267) #11
  %268 = icmp eq ptr %267, %18
  br i1 %268, label %.loopexit, label %265

.loopexit:                                        ; preds = %.preheader125, %265, %57
  %.pn106.pn.pn = phi { ptr, i32 } [ %58, %57 ], [ %.pn106.pn, %265 ], [ %58, %.preheader125 ]
  call void @llvm.lifetime.end.p0(i64 122880, ptr nonnull %18) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %17) #11
  br label %269

269:                                              ; preds = %.loopexit, %55
  %.pn106.pn.pn.pn = phi { ptr, i32 } [ %.pn106.pn.pn, %.loopexit ], [ %56, %55 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %17) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %16) #11
  br label %270

270:                                              ; preds = %269, %53
  %.pn106.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn106.pn.pn.pn, %269 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %16) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %15) #11
  br label %271

271:                                              ; preds = %270, %51
  %.pn106.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn106.pn.pn.pn.pn, %270 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %15) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %14) #11
  br label %272

272:                                              ; preds = %271, %49
  %.pn106.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn106.pn.pn.pn.pn.pn, %271 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %14) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %13) #11
  br label %273

273:                                              ; preds = %272, %47
  %.pn106.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn106.pn.pn.pn.pn.pn.pn, %272 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %13) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %12) #11
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %12) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #11
  call void @llvm.lifetime.end.p0(i64 20520, ptr nonnull %5) #11
  br label %274

274:                                              ; preds = %273, %45
  %.pn106.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn106.pn.pn.pn.pn.pn.pn.pn, %273 ], [ %46, %45 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #11
  resume { ptr, i32 } %.pn106.pn.pn.pn.pn.pn.pn.pn.pn
}

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

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

declare void @_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(40), 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(40), ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

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

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

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

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

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

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

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

declare noundef ptr @_ZN9Secp256K115GetPublicKeyHexEbR5Point(ptr noundef nonnull align 8 dereferenceable(983240), i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(120)) 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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #10 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #11 = { nounwind }
attributes #12 = { builtin allocsize(0) }
attributes #13 = { builtin nounwind }
attributes #14 = { noreturn nounwind }

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

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


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