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

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl" }
%"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl" = type { %"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Point = type { %class.Int, %class.Int, %class.Int }
%class.Int = type { %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_N_double = external dso_local global %class.Int, align 8
@BSGS_M = external dso_local global %class.Int, align 8
@BSGS_M_double = external dso_local global %class.Int, align 8
@n_range_start = external dso_local global %class.Int, align 8
@n_range_end = external dso_local global %class.Int, align 8
@secp = external dso_local global ptr, align 8
@stdout = external global ptr, align 8
@.str.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

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

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

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

44:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %45 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #10
          to label %46 unwind label %98

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

47:                                               ; preds = %46
  store ptr %45, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 120, ptr %24) #9
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %24)
          to label %48 unwind label %106

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

51:                                               ; preds = %53, %48
  %52 = phi ptr [ %49, %48 ], [ %54, %53 ]
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %52)
          to label %53 unwind label %110

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

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

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

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

64:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 40, ptr %28) #9
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %28)
          to label %65 unwind label %124

65:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 40, ptr %29) #9
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %29)
          to label %66 unwind label %128

66:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 40, ptr %30) #9
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %30)
          to label %67 unwind label %132

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

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

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

70:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 120, ptr %34) #9
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %34)
          to label %71 unwind label %148

71:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 120, ptr %35) #9
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %35)
          to label %72 unwind label %152

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

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

87:                                               ; preds = %75
  %88 = load i32, ptr %22, align 4, !tbaa !9
  %89 = add i32 %88, 1
  store i32 %89, ptr %22, align 4, !tbaa !9
  br label %160

90:                                               ; preds = %1
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %13, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %14, align 4
  br label %585

94:                                               ; preds = %43
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %13, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %14, align 4
  br label %584

98:                                               ; preds = %44
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %13, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %14, align 4
  br label %583

102:                                              ; preds = %46
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %13, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %14, align 4
  call void @_ZdlPvm(ptr noundef %45, i64 noundef 24) #11
  br label %583

106:                                              ; preds = %47
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %13, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %14, align 4
  br label %582

110:                                              ; preds = %51
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %13, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %14, align 4
  br label %581

114:                                              ; preds = %59
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %13, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %14, align 4
  %118 = icmp eq ptr %57, %60
  br i1 %118, label %123, label %119

119:                                              ; preds = %119, %114
  %120 = phi ptr [ %60, %114 ], [ %121, %119 ]
  %121 = getelementptr inbounds %class.Point, ptr %120, i64 -1
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %121) #9
  %122 = icmp eq ptr %121, %57
  br i1 %122, label %123, label %119

123:                                              ; preds = %119, %114
  br label %580

124:                                              ; preds = %64
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %13, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %14, align 4
  br label %566

128:                                              ; preds = %65
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %13, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %14, align 4
  br label %565

132:                                              ; preds = %66
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %13, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %14, align 4
  br label %564

136:                                              ; preds = %67
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %13, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %14, align 4
  br label %563

140:                                              ; preds = %68
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %13, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %14, align 4
  br label %562

144:                                              ; preds = %69
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %13, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %14, align 4
  br label %561

148:                                              ; preds = %70
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %13, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %14, align 4
  br label %560

152:                                              ; preds = %71
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %13, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %14, align 4
  br label %559

156:                                              ; preds = %217, %214, %213, %212, %204, %201, %199, %191, %188, %186, %174, %172, %169, %168, %164, %162, %161, %160, %72
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %13, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %14, align 4
  br label %558

160:                                              ; preds = %87, %75
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %33, ptr noundef @BSGS_M_double)
          to label %161 unwind label %156

161:                                              ; preds = %160
  invoke void @_ZN3Int4MultEm(ptr noundef nonnull align 8 dereferenceable(40) %33, i64 noundef 512)
          to label %162 unwind label %156

162:                                              ; preds = %161
  invoke void @_ZN3Int3AddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %33, ptr noundef @BSGS_M)
          to label %163 unwind label %156

163:                                              ; preds = %162
  store i32 1, ptr %21, align 4, !tbaa !9
  br label %164

164:                                              ; preds = %550, %163
  %165 = call i32 @pthread_mutex_lock(ptr noundef @bsgs_thread) #9
  %166 = invoke noundef zeroext i1 @_ZN3Int9IsGreaterEPS_(ptr noundef nonnull align 8 dereferenceable(40) @n_range_end, ptr noundef @n_range_start)
          to label %167 unwind label %156

167:                                              ; preds = %164
  br i1 %166, label %168, label %177

168:                                              ; preds = %167
  invoke void @_ZN3Int3SubEPS_(ptr noundef nonnull align 8 dereferenceable(40) @n_range_end, ptr noundef @BSGS_N_double)
          to label %169 unwind label %156

169:                                              ; preds = %168
  %170 = invoke noundef zeroext i1 @_ZN3Int7IsLowerEPS_(ptr noundef nonnull align 8 dereferenceable(40) @n_range_end, ptr noundef @n_range_start)
          to label %171 unwind label %156

171:                                              ; preds = %169
  br i1 %170, label %172, label %174

172:                                              ; preds = %171
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef @n_range_start)
          to label %173 unwind label %156

173:                                              ; preds = %172
  br label %176

174:                                              ; preds = %171
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef @n_range_end)
          to label %175 unwind label %156

175:                                              ; preds = %174
  br label %176

176:                                              ; preds = %175, %173
  br label %178

177:                                              ; preds = %167
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %178

178:                                              ; preds = %177, %176
  %179 = call i32 @pthread_mutex_unlock(ptr noundef @bsgs_thread) #9
  %180 = load i32, ptr %21, align 4, !tbaa !9
  %181 = icmp eq i32 %180, 0
  br i1 %181, label %182, label %183

182:                                              ; preds = %178
  br label %551

183:                                              ; preds = %178
  %184 = load i32, ptr @FLAGMATRIX, align 4, !tbaa !9
  %185 = icmp ne i32 %184, 0
  br i1 %185, label %186, label %196

186:                                              ; preds = %183
  %187 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %9)
          to label %188 unwind label %156

188:                                              ; preds = %186
  store ptr %187, ptr %7, align 8, !tbaa !5
  %189 = load ptr, ptr %7, align 8, !tbaa !5
  %190 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.235, ptr noundef %189)
          to label %191 unwind label %156

191:                                              ; preds = %188
  %192 = load ptr, ptr @stdout, align 8, !tbaa !5
  %193 = invoke i32 @fflush(ptr noundef %192)
          to label %194 unwind label %156

194:                                              ; preds = %191
  %195 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %195) #9
  br label %210

196:                                              ; preds = %183
  %197 = load i32, ptr @FLAGQUIET, align 4, !tbaa !9
  %198 = icmp eq i32 %197, 0
  br i1 %198, label %199, label %209

199:                                              ; preds = %196
  %200 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %9)
          to label %201 unwind label %156

201:                                              ; preds = %199
  store ptr %200, ptr %7, align 8, !tbaa !5
  %202 = load ptr, ptr %7, align 8, !tbaa !5
  %203 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.236, ptr noundef %202)
          to label %204 unwind label %156

204:                                              ; preds = %201
  %205 = load ptr, ptr @stdout, align 8, !tbaa !5
  %206 = invoke i32 @fflush(ptr noundef %205)
          to label %207 unwind label %156

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

209:                                              ; preds = %207, %196
  br label %210

210:                                              ; preds = %209, %194
  call void @llvm.lifetime.start.p0(i64 120, ptr %36) #9
  %211 = 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) %211, ptr noundef %9)
          to label %212 unwind label %269

212:                                              ; preds = %210
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, 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
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %32, ptr noundef %9)
          to label %213 unwind label %156

213:                                              ; preds = %212
  invoke void @_ZN3Int3NegEv(ptr noundef nonnull align 8 dereferenceable(40) %32)
          to label %214 unwind label %156

214:                                              ; preds = %213
  %215 = load ptr, ptr @secp, align 8, !tbaa !5
  %216 = getelementptr inbounds %class.Secp256K1, ptr %215, i32 0, i32 2
  invoke void @_ZN3Int3AddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %32, ptr noundef %216)
          to label %217 unwind label %156

217:                                              ; preds = %214
  invoke void @_ZN3Int3SubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %32, ptr noundef %33)
          to label %218 unwind label %156

218:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 120, ptr %37) #9
  %219 = load ptr, ptr @secp, align 8, !tbaa !5
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind writable sret(%class.Point) align 8 %37, ptr noundef nonnull align 8 dereferenceable(983240) %219, ptr noundef %32)
          to label %220 unwind label %273

220:                                              ; preds = %218
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, 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
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %221

221:                                              ; preds = %540, %220
  %222 = load i32, ptr %16, align 4, !tbaa !9
  %223 = load i32, ptr @bsgs_point_number, align 4, !tbaa !9
  %224 = icmp ult i32 %222, %223
  br i1 %224, label %225, label %543

225:                                              ; preds = %221
  %226 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %227 = load i32, ptr %16, align 4, !tbaa !9
  %228 = zext i32 %227 to i64
  %229 = getelementptr inbounds i32, ptr %226, i64 %228
  %230 = load i32, ptr %229, align 4, !tbaa !9
  %231 = icmp eq i32 %230, 0
  br i1 %231, label %232, label %539

232:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 120, ptr %38) #9
  %233 = load ptr, ptr @secp, align 8, !tbaa !5
  %234 = load i32, ptr %16, align 4, !tbaa !9
  %235 = zext i32 %234 to i64
  %236 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @OriginalPointsBSGS, i64 noundef %235) #9
  invoke void @_ZN9Secp256K19AddDirectER5PointS1_(ptr dead_on_unwind writable sret(%class.Point) align 8 %38, ptr noundef nonnull align 8 dereferenceable(983240) %233, ptr noundef nonnull align 8 dereferenceable(120) %236, ptr noundef nonnull align 8 dereferenceable(120) %12)
          to label %237 unwind label %277

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

238:                                              ; preds = %534, %237
  %239 = load i32, ptr %39, align 4, !tbaa !9
  %240 = load i32, ptr %22, align 4, !tbaa !9
  %241 = icmp ult i32 %239, %240
  br i1 %241, label %242, label %249

242:                                              ; preds = %238
  %243 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %244 = load i32, ptr %16, align 4, !tbaa !9
  %245 = zext i32 %244 to i64
  %246 = getelementptr inbounds i32, ptr %243, i64 %245
  %247 = load i32, ptr %246, align 4, !tbaa !9
  %248 = icmp eq i32 %247, 0
  br label %249

249:                                              ; preds = %242, %238
  %250 = phi i1 [ false, %238 ], [ %248, %242 ]
  br i1 %250, label %251, label %538

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

252:                                              ; preds = %266, %251
  %253 = load i32, ptr %40, align 4, !tbaa !9
  %254 = load i32, ptr %25, align 4, !tbaa !9
  %255 = icmp slt i32 %253, %254
  br i1 %255, label %256, label %285

256:                                              ; preds = %252
  %257 = load i32, ptr %40, align 4, !tbaa !9
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %258
  %260 = load i32, ptr %40, align 4, !tbaa !9
  %261 = sext i32 %260 to i64
  %262 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %261) #9
  %263 = getelementptr inbounds %class.Point, ptr %262, i32 0, i32 0
  %264 = getelementptr inbounds %class.Point, ptr %24, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %259, ptr noundef %263, ptr noundef %264)
          to label %265 unwind label %281

265:                                              ; preds = %256
  br label %266

266:                                              ; preds = %265
  %267 = load i32, ptr %40, align 4, !tbaa !9
  %268 = add nsw i32 %267, 1
  store i32 %268, ptr %40, align 4, !tbaa !9
  br label %252, !llvm.loop !17

269:                                              ; preds = %210
  %270 = landingpad { ptr, i32 }
          cleanup
  %271 = extractvalue { ptr, i32 } %270, 0
  store ptr %271, ptr %13, align 8
  %272 = extractvalue { ptr, i32 } %270, 1
  store i32 %272, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %36) #9
  br label %558

273:                                              ; preds = %218
  %274 = landingpad { ptr, i32 }
          cleanup
  %275 = extractvalue { ptr, i32 } %274, 0
  store ptr %275, ptr %13, align 8
  %276 = extractvalue { ptr, i32 } %274, 1
  store i32 %276, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %37) #9
  br label %558

277:                                              ; preds = %232
  %278 = landingpad { ptr, i32 }
          cleanup
  %279 = extractvalue { ptr, i32 } %278, 0
  store ptr %279, ptr %13, align 8
  %280 = extractvalue { ptr, i32 } %278, 1
  store i32 %280, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %38) #9
  br label %558

281:                                              ; preds = %532, %530, %527, %525, %523, %521, %520, %515, %513, %383, %381, %379, %378, %374, %372, %371, %366, %346, %344, %342, %341, %337, %335, %334, %329, %323, %321, %319, %318, %314, %308, %300, %294, %285, %256
  %282 = landingpad { ptr, i32 }
          cleanup
  %283 = extractvalue { ptr, i32 } %282, 0
  store ptr %283, ptr %13, align 8
  %284 = extractvalue { ptr, i32 } %282, 1
  store i32 %284, ptr %14, align 4
  br label %537

285:                                              ; preds = %252
  %286 = load i32, ptr %40, align 4, !tbaa !9
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %287
  %289 = load i32, ptr %40, align 4, !tbaa !9
  %290 = sext i32 %289 to i64
  %291 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %290) #9
  %292 = getelementptr inbounds %class.Point, ptr %291, i32 0, i32 0
  %293 = getelementptr inbounds %class.Point, ptr %24, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %288, ptr noundef %292, ptr noundef %293)
          to label %294 unwind label %281

294:                                              ; preds = %285
  %295 = load i32, ptr %40, align 4, !tbaa !9
  %296 = add nsw i32 %295, 1
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %297
  %299 = getelementptr inbounds %class.Point, ptr %24, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %298, ptr noundef @_2GSn, ptr noundef %299)
          to label %300 unwind label %281

300:                                              ; preds = %294
  %301 = load ptr, ptr %23, align 8, !tbaa !5
  invoke void @_ZN8IntGroup6ModInvEv(ptr noundef nonnull align 8 dereferenceable(20) %301)
          to label %302 unwind label %281

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

304:                                              ; preds = %363, %302
  %305 = load i32, ptr %40, align 4, !tbaa !9
  %306 = load i32, ptr %25, align 4, !tbaa !9
  %307 = icmp slt i32 %305, %306
  br i1 %307, label %308, label %366

308:                                              ; preds = %304
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 8 %24, i64 120, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %35, ptr align 8 %24, i64 120, i1 false), !tbaa.struct !15
  %309 = load i32, ptr %40, align 4, !tbaa !9
  %310 = sext i32 %309 to i64
  %311 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %310) #9
  %312 = getelementptr inbounds %class.Point, ptr %311, i32 0, i32 1
  %313 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %28, ptr noundef %312, ptr noundef %313)
          to label %314 unwind label %281

314:                                              ; preds = %308
  %315 = load i32, ptr %40, align 4, !tbaa !9
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %316
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %30, ptr noundef %28, ptr noundef %317)
          to label %318 unwind label %281

318:                                              ; preds = %314
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %31, ptr noundef %30)
          to label %319 unwind label %281

319:                                              ; preds = %318
  %320 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %320)
          to label %321 unwind label %281

321:                                              ; preds = %319
  %322 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %322, ptr noundef %31)
          to label %323 unwind label %281

323:                                              ; preds = %321
  %324 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  %325 = load i32, ptr %40, align 4, !tbaa !9
  %326 = sext i32 %325 to i64
  %327 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %326) #9
  %328 = getelementptr inbounds %class.Point, ptr %327, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %324, ptr noundef %328)
          to label %329 unwind label %281

329:                                              ; preds = %323
  %330 = load i32, ptr %40, align 4, !tbaa !9
  %331 = sext i32 %330 to i64
  %332 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %331) #9
  %333 = getelementptr inbounds %class.Point, ptr %332, i32 0, i32 1
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %29, ptr noundef %333)
          to label %334 unwind label %281

334:                                              ; preds = %329
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %29)
          to label %335 unwind label %281

335:                                              ; preds = %334
  %336 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %29, ptr noundef %336)
          to label %337 unwind label %281

337:                                              ; preds = %335
  %338 = load i32, ptr %40, align 4, !tbaa !9
  %339 = sext i32 %338 to i64
  %340 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %339
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %30, ptr noundef %29, ptr noundef %340)
          to label %341 unwind label %281

341:                                              ; preds = %337
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %31, ptr noundef %30)
          to label %342 unwind label %281

342:                                              ; preds = %341
  %343 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %343)
          to label %344 unwind label %281

344:                                              ; preds = %342
  %345 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %345, ptr noundef %31)
          to label %346 unwind label %281

346:                                              ; preds = %344
  %347 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 0
  %348 = load i32, ptr %40, align 4, !tbaa !9
  %349 = sext i32 %348 to i64
  %350 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %349) #9
  %351 = getelementptr inbounds %class.Point, ptr %350, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %347, ptr noundef %351)
          to label %352 unwind label %281

352:                                              ; preds = %346
  %353 = load i32, ptr %40, align 4, !tbaa !9
  %354 = add nsw i32 %353, 1
  %355 = add nsw i32 512, %354
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds [1024 x %class.Point], ptr %27, i64 0, i64 %356
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %357, ptr align 8 %34, i64 120, i1 false), !tbaa.struct !15
  %358 = load i32, ptr %40, align 4, !tbaa !9
  %359 = add nsw i32 %358, 1
  %360 = sub nsw i32 512, %359
  %361 = sext i32 %360 to i64
  %362 = getelementptr inbounds [1024 x %class.Point], ptr %27, i64 0, i64 %361
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %362, ptr align 8 %35, i64 120, i1 false), !tbaa.struct !15
  br label %363

363:                                              ; preds = %352
  %364 = load i32, ptr %40, align 4, !tbaa !9
  %365 = add nsw i32 %364, 1
  store i32 %365, ptr %40, align 4, !tbaa !9
  br label %304, !llvm.loop !19

366:                                              ; preds = %304
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %35, ptr align 8 %24, i64 120, i1 false), !tbaa.struct !15
  %367 = load i32, ptr %40, align 4, !tbaa !9
  %368 = sext i32 %367 to i64
  %369 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %368) #9
  %370 = getelementptr inbounds %class.Point, ptr %369, i32 0, i32 1
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %29, ptr noundef %370)
          to label %371 unwind label %281

371:                                              ; preds = %366
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %29)
          to label %372 unwind label %281

372:                                              ; preds = %371
  %373 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %29, ptr noundef %373)
          to label %374 unwind label %281

374:                                              ; preds = %372
  %375 = load i32, ptr %40, align 4, !tbaa !9
  %376 = sext i32 %375 to i64
  %377 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %376
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %30, ptr noundef %29, ptr noundef %377)
          to label %378 unwind label %281

378:                                              ; preds = %374
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %31, ptr noundef %30)
          to label %379 unwind label %281

379:                                              ; preds = %378
  %380 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %380)
          to label %381 unwind label %281

381:                                              ; preds = %379
  %382 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %382, ptr noundef %31)
          to label %383 unwind label %281

383:                                              ; preds = %381
  %384 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 0
  %385 = load i32, ptr %40, align 4, !tbaa !9
  %386 = sext i32 %385 to i64
  %387 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %386) #9
  %388 = getelementptr inbounds %class.Point, ptr %387, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %384, ptr noundef %388)
          to label %389 unwind label %281

389:                                              ; preds = %383
  %390 = getelementptr inbounds [1024 x %class.Point], ptr %27, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %390, ptr align 8 %35, i64 120, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #9
  store i32 0, ptr %41, align 4, !tbaa !9
  br label %391

391:                                              ; preds = %509, %389
  %392 = load i32, ptr %41, align 4, !tbaa !9
  %393 = icmp slt i32 %392, 1024
  br i1 %393, label %394, label %401

394:                                              ; preds = %391
  %395 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %396 = load i32, ptr %16, align 4, !tbaa !9
  %397 = zext i32 %396 to i64
  %398 = getelementptr inbounds i32, ptr %395, i64 %397
  %399 = load i32, ptr %398, align 4, !tbaa !9
  %400 = icmp eq i32 %399, 0
  br label %401

401:                                              ; preds = %394, %391
  %402 = phi i1 [ false, %391 ], [ %400, %394 ]
  br i1 %402, label %404, label %403

403:                                              ; preds = %401
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #9
  br label %513

404:                                              ; preds = %401
  %405 = load i32, ptr %41, align 4, !tbaa !9
  %406 = sext i32 %405 to i64
  %407 = getelementptr inbounds [1024 x %class.Point], ptr %27, i64 0, i64 %406
  %408 = getelementptr inbounds %class.Point, ptr %407, i32 0, i32 0
  %409 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  invoke void @_ZN3Int10Get32BytesEPh(ptr noundef nonnull align 8 dereferenceable(40) %408, ptr noundef %409)
          to label %410 unwind label %464

410:                                              ; preds = %404
  %411 = load ptr, ptr @bloom_bP, align 8, !tbaa !5
  %412 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  %413 = load i8, ptr %412, align 16, !tbaa !16
  %414 = zext i8 %413 to i64
  %415 = getelementptr inbounds %struct.bloom, ptr %411, i64 %414
  %416 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  %417 = invoke i32 @bloom_check(ptr noundef %415, ptr noundef %416, i32 noundef 32)
          to label %418 unwind label %464

418:                                              ; preds = %410
  store i32 %417, ptr %18, align 4, !tbaa !9
  %419 = load i32, ptr %18, align 4, !tbaa !9
  %420 = icmp ne i32 %419, 0
  br i1 %420, label %421, label %508

421:                                              ; preds = %418
  %422 = load i32, ptr %39, align 4, !tbaa !9
  %423 = mul i32 %422, 1024
  %424 = load i32, ptr %41, align 4, !tbaa !9
  %425 = add i32 %423, %424
  %426 = load i32, ptr %16, align 4, !tbaa !9
  %427 = invoke noundef i32 @_Z16bsgs_secondcheckP3IntjjS0_(ptr noundef %9, i32 noundef %425, i32 noundef %426, ptr noundef %10)
          to label %428 unwind label %464

428:                                              ; preds = %421
  store i32 %427, ptr %18, align 4, !tbaa !9
  %429 = load i32, ptr %18, align 4, !tbaa !9
  %430 = icmp ne i32 %429, 0
  br i1 %430, label %431, label %507

431:                                              ; preds = %428
  %432 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %10)
          to label %433 unwind label %464

433:                                              ; preds = %431
  store ptr %432, ptr %8, align 8, !tbaa !5
  %434 = load ptr, ptr %8, align 8, !tbaa !5
  %435 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.237, ptr noundef %434)
          to label %436 unwind label %464

436:                                              ; preds = %433
  call void @llvm.lifetime.start.p0(i64 120, ptr %42) #9
  %437 = load ptr, ptr @secp, align 8, !tbaa !5
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind writable sret(%class.Point) align 8 %42, ptr noundef nonnull align 8 dereferenceable(983240) %437, ptr noundef %10)
          to label %438 unwind label %468

438:                                              ; preds = %436
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %42, i64 120, i1 false), !tbaa.struct !15
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %42) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %42) #9
  %439 = load ptr, ptr @secp, align 8, !tbaa !5
  %440 = load ptr, ptr @OriginalPointsBSGScompressed, align 8, !tbaa !5
  %441 = load i32, ptr %16, align 4, !tbaa !9
  %442 = zext i32 %441 to i64
  %443 = getelementptr inbounds i8, ptr %440, i64 %442
  %444 = load i8, ptr %443, align 1, !tbaa !20, !range !22, !noundef !23
  %445 = trunc i8 %444 to i1
  %446 = invoke noundef ptr @_ZN9Secp256K115GetPublicKeyHexEbR5Point(ptr noundef nonnull align 8 dereferenceable(983240) %439, i1 noundef zeroext %445, ptr noundef nonnull align 8 dereferenceable(120) %15)
          to label %447 unwind label %464

447:                                              ; preds = %438
  store ptr %446, ptr %7, align 8, !tbaa !5
  %448 = load ptr, ptr %7, align 8, !tbaa !5
  %449 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.238, ptr noundef %448)
          to label %450 unwind label %464

450:                                              ; preds = %447
  %451 = call i32 @pthread_mutex_lock(ptr noundef @write_keys) #9
  %452 = invoke noalias ptr @fopen(ptr noundef @.str.229, ptr noundef @.str.239)
          to label %453 unwind label %464

453:                                              ; preds = %450
  store ptr %452, ptr %4, align 8, !tbaa !5
  %454 = load ptr, ptr %4, align 8, !tbaa !5
  %455 = icmp ne ptr %454, null
  br i1 %455, label %456, label %472

456:                                              ; preds = %453
  %457 = load ptr, ptr %4, align 8, !tbaa !5
  %458 = load ptr, ptr %8, align 8, !tbaa !5
  %459 = load ptr, ptr %7, align 8, !tbaa !5
  %460 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %457, ptr noundef @.str.240, ptr noundef %458, ptr noundef %459) #9
  %461 = load ptr, ptr %4, align 8, !tbaa !5
  %462 = invoke i32 @fclose(ptr noundef %461)
          to label %463 unwind label %464

463:                                              ; preds = %456
  br label %472

464:                                              ; preds = %503, %456, %450, %447, %438, %433, %431, %421, %410, %404
  %465 = landingpad { ptr, i32 }
          cleanup
  %466 = extractvalue { ptr, i32 } %465, 0
  store ptr %466, ptr %13, align 8
  %467 = extractvalue { ptr, i32 } %465, 1
  store i32 %467, ptr %14, align 4
  br label %512

468:                                              ; preds = %436
  %469 = landingpad { ptr, i32 }
          cleanup
  %470 = extractvalue { ptr, i32 } %469, 0
  store ptr %470, ptr %13, align 8
  %471 = extractvalue { ptr, i32 } %469, 1
  store i32 %471, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %42) #9
  br label %512

472:                                              ; preds = %463, %453
  %473 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %473) #9
  %474 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %474) #9
  %475 = call i32 @pthread_mutex_unlock(ptr noundef @write_keys) #9
  %476 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %477 = load i32, ptr %16, align 4, !tbaa !9
  %478 = zext i32 %477 to i64
  %479 = getelementptr inbounds i32, ptr %476, i64 %478
  store i32 1, ptr %479, align 4, !tbaa !9
  store i32 1, ptr %19, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %480

480:                                              ; preds = %497, %472
  %481 = load i32, ptr %17, align 4, !tbaa !9
  %482 = load i32, ptr @bsgs_point_number, align 4, !tbaa !9
  %483 = icmp ult i32 %481, %482
  br i1 %483, label %484, label %487

484:                                              ; preds = %480
  %485 = load i32, ptr %19, align 4, !tbaa !9
  %486 = icmp ne i32 %485, 0
  br label %487

487:                                              ; preds = %484, %480
  %488 = phi i1 [ false, %480 ], [ %486, %484 ]
  br i1 %488, label %489, label %500

489:                                              ; preds = %487
  %490 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %491 = load i32, ptr %17, align 4, !tbaa !9
  %492 = zext i32 %491 to i64
  %493 = getelementptr inbounds i32, ptr %490, i64 %492
  %494 = load i32, ptr %493, align 4, !tbaa !9
  %495 = load i32, ptr %19, align 4, !tbaa !9
  %496 = and i32 %495, %494
  store i32 %496, ptr %19, align 4, !tbaa !9
  br label %497

497:                                              ; preds = %489
  %498 = load i32, ptr %17, align 4, !tbaa !9
  %499 = add i32 %498, 1
  store i32 %499, ptr %17, align 4, !tbaa !9
  br label %480, !llvm.loop !24

500:                                              ; preds = %487
  %501 = load i32, ptr %19, align 4, !tbaa !9
  %502 = icmp ne i32 %501, 0
  br i1 %502, label %503, label %506

503:                                              ; preds = %500
  %504 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.241)
          to label %505 unwind label %464

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

506:                                              ; preds = %500
  br label %507

507:                                              ; preds = %506, %428
  br label %508

508:                                              ; preds = %507, %418
  br label %509

509:                                              ; preds = %508
  %510 = load i32, ptr %41, align 4, !tbaa !9
  %511 = add nsw i32 %510, 1
  store i32 %511, ptr %41, align 4, !tbaa !9
  br label %391, !llvm.loop !25

512:                                              ; preds = %468, %464
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #9
  br label %537

513:                                              ; preds = %403
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 8 %24, i64 120, i1 false), !tbaa.struct !15
  %514 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %28, ptr noundef getelementptr inbounds (%class.Point, ptr @_2GSn, i32 0, i32 1), ptr noundef %514)
          to label %515 unwind label %281

515:                                              ; preds = %513
  %516 = load i32, ptr %40, align 4, !tbaa !9
  %517 = add nsw i32 %516, 1
  %518 = sext i32 %517 to i64
  %519 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %518
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %30, ptr noundef %28, ptr noundef %519)
          to label %520 unwind label %281

520:                                              ; preds = %515
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %31, ptr noundef %30)
          to label %521 unwind label %281

521:                                              ; preds = %520
  %522 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %522)
          to label %523 unwind label %281

523:                                              ; preds = %521
  %524 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %524, ptr noundef %31)
          to label %525 unwind label %281

525:                                              ; preds = %523
  %526 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %526, ptr noundef @_2GSn)
          to label %527 unwind label %281

527:                                              ; preds = %525
  %528 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 1
  %529 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %528, ptr noundef @_2GSn, ptr noundef %529)
          to label %530 unwind label %281

530:                                              ; preds = %527
  %531 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 1
  invoke void @_ZN3Int8ModMulK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %531, ptr noundef %30)
          to label %532 unwind label %281

532:                                              ; preds = %530
  %533 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %533, ptr noundef getelementptr inbounds (%class.Point, ptr @_2GSn, i32 0, i32 1))
          to label %534 unwind label %281

534:                                              ; preds = %532
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %34, i64 120, i1 false), !tbaa.struct !15
  %535 = load i32, ptr %39, align 4, !tbaa !9
  %536 = add i32 %535, 1
  store i32 %536, ptr %39, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #9
  br label %238, !llvm.loop !26

537:                                              ; preds = %512, %281
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #9
  br label %558

538:                                              ; preds = %249
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #9
  br label %539

539:                                              ; preds = %538, %225
  br label %540

540:                                              ; preds = %539
  %541 = load i32, ptr %16, align 4, !tbaa !9
  %542 = add i32 %541, 1
  store i32 %542, ptr %16, align 4, !tbaa !9
  br label %221, !llvm.loop !27

543:                                              ; preds = %221
  %544 = load ptr, ptr @steps, align 8, !tbaa !5
  %545 = load i32, ptr %20, align 4, !tbaa !9
  %546 = zext i32 %545 to i64
  %547 = getelementptr inbounds i64, ptr %544, i64 %546
  %548 = load i64, ptr %547, align 8, !tbaa !13
  %549 = add i64 %548, 2
  store i64 %549, ptr %547, align 8, !tbaa !13
  br label %550

550:                                              ; preds = %543
  br i1 true, label %164, label %551, !llvm.loop !28

551:                                              ; preds = %550, %182
  %552 = load ptr, ptr @ends, align 8, !tbaa !5
  %553 = load i32, ptr %20, align 4, !tbaa !9
  %554 = zext i32 %553 to i64
  %555 = getelementptr inbounds i32, ptr %552, i64 %554
  store i32 1, ptr %555, align 4, !tbaa !9
  store ptr null, ptr %2, align 8
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %35) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %35) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %34) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %28) #9
  %556 = getelementptr inbounds [1024 x %class.Point], ptr %27, i32 0, i32 0
  %557 = getelementptr inbounds %class.Point, ptr %556, i64 1024
  br label %569

558:                                              ; preds = %537, %277, %273, %269, %156
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %35) #9
  br label %559

559:                                              ; preds = %558, %152
  call void @llvm.lifetime.end.p0(i64 120, ptr %35) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %34) #9
  br label %560

560:                                              ; preds = %559, %148
  call void @llvm.lifetime.end.p0(i64 120, ptr %34) #9
  br label %561

561:                                              ; preds = %560, %144
  call void @llvm.lifetime.end.p0(i64 40, ptr %33) #9
  br label %562

562:                                              ; preds = %561, %140
  call void @llvm.lifetime.end.p0(i64 40, ptr %32) #9
  br label %563

563:                                              ; preds = %562, %136
  call void @llvm.lifetime.end.p0(i64 40, ptr %31) #9
  br label %564

564:                                              ; preds = %563, %132
  call void @llvm.lifetime.end.p0(i64 40, ptr %30) #9
  br label %565

565:                                              ; preds = %564, %128
  call void @llvm.lifetime.end.p0(i64 40, ptr %29) #9
  br label %566

566:                                              ; preds = %565, %124
  call void @llvm.lifetime.end.p0(i64 40, ptr %28) #9
  %567 = getelementptr inbounds [1024 x %class.Point], ptr %27, i32 0, i32 0
  %568 = getelementptr inbounds %class.Point, ptr %567, i64 1024
  br label %575

569:                                              ; preds = %569, %551
  %570 = phi ptr [ %557, %551 ], [ %571, %569 ]
  %571 = getelementptr inbounds %class.Point, ptr %570, i64 -1
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %571) #9
  %572 = icmp eq ptr %571, %556
  br i1 %572, label %573, label %569

573:                                              ; preds = %569
  call void @llvm.lifetime.end.p0(i64 122880, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 20520, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 4, 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 @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %15) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %15) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %12) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %12) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %11) #9
  call void @llvm.lifetime.end.p0(i64 120, 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
  %574 = load ptr, ptr %2, align 8
  ret ptr %574

575:                                              ; preds = %575, %566
  %576 = phi ptr [ %568, %566 ], [ %577, %575 ]
  %577 = getelementptr inbounds %class.Point, ptr %576, i64 -1
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %577) #9
  %578 = icmp eq ptr %577, %567
  br i1 %578, label %579, label %575

579:                                              ; preds = %575
  br label %580

580:                                              ; preds = %579, %123
  call void @llvm.lifetime.end.p0(i64 122880, ptr %27) #9
  br label %581

581:                                              ; preds = %580, %110
  call void @llvm.lifetime.end.p0(i64 20520, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %24) #9
  br label %582

582:                                              ; preds = %581, %106
  call void @llvm.lifetime.end.p0(i64 120, ptr %24) #9
  br label %583

583:                                              ; preds = %582, %102, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %15) #9
  br label %584

584:                                              ; preds = %583, %94
  call void @llvm.lifetime.end.p0(i64 120, ptr %15) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %12) #9
  br label %585

585:                                              ; preds = %584, %90
  call void @llvm.lifetime.end.p0(i64 120, ptr %12) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %11) #9
  call void @llvm.lifetime.end.p0(i64 120, 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 %586

586:                                              ; preds = %585
  %587 = load ptr, ptr %13, align 8
  %588 = load i32, ptr %14, align 4
  %589 = insertvalue { ptr, i32 } poison, ptr %587, 0
  %590 = insertvalue { ptr, i32 } %589, i32 %588, 1
  resume { ptr, i32 } %590
}

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

; 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_N_double = external dso_local global %class.Int, align 8
@BSGS_M = external dso_local global %class.Int, align 8
@BSGS_M_double = external dso_local global %class.Int, align 8
@n_range_start = external dso_local global %class.Int, align 8
@n_range_end = external dso_local global %class.Int, align 8
@secp = external dso_local local_unnamed_addr global ptr, align 8
@stdout = external local_unnamed_addr global ptr, align 8
@.str.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

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

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

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

declare void @_ZN3Int3SubEPS_(ptr noundef nonnull align 8 dereferenceable(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 @_Z28thread_process_bsgs_backwardPv(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 %class.Point, align 8
  %6 = alloca %class.Point, align 8
  %7 = alloca %class.Point, align 8
  %8 = alloca %class.Point, align 8
  %9 = alloca [513 x %class.Int], align 16
  %10 = alloca [1024 x %class.Point], align 16
  %11 = alloca %class.Int, align 8
  %12 = alloca %class.Int, align 8
  %13 = alloca %class.Int, align 8
  %14 = alloca %class.Int, align 8
  %15 = alloca %class.Int, align 8
  %16 = alloca %class.Int, align 8
  %17 = alloca %class.Point, align 8
  %18 = alloca %class.Point, align 8
  %19 = alloca %class.Point, align 8
  %20 = alloca %class.Point, align 8
  %21 = alloca %class.Point, align 8
  %22 = alloca %class.Point, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #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)
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %5) #11
  call void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %5)
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %6) #11
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %6)
          to label %23 unwind label %53

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

24:                                               ; preds = %23
  %25 = invoke noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #12
          to label %26 unwind label %57

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

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

28:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 20520, ptr nonnull %9) #11
  br label %29

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

30:                                               ; preds = %29
  %.add = add nuw nsw i64 %.idx, 40
  %31 = icmp eq i64 %.add, 20520
  br i1 %31, label %32, label %29

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

34:                                               ; preds = %35, %32
  %.idx108 = phi i64 [ 0, %32 ], [ %.add109, %35 ]
  %.ptr110 = getelementptr inbounds i8, ptr %10, i64 %.idx108
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %.ptr110)
          to label %35 unwind label %65

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

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

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

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

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

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

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

43:                                               ; preds = %42
  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 %44 unwind label %83

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

45:                                               ; preds = %44
  invoke void @_ZN8IntGroup3SetEP3Int(ptr noundef nonnull align 8 dereferenceable(20) %25, ptr noundef nonnull %9)
          to label %46 unwind label %.loopexit.split-lp142

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

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

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

57:                                               ; preds = %24
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %305

59:                                               ; preds = %26
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %25, i64 noundef 24) #13
  br label %305

61:                                               ; preds = %27
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %304

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

65:                                               ; preds = %34
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = icmp eq i64 %.idx108, 0
  br i1 %67, label %.loopexit, label %.preheader145

.preheader145:                                    ; preds = %65, %.preheader145
  %68 = phi ptr [ %69, %.preheader145 ], [ %.ptr110, %65 ]
  %69 = getelementptr inbounds i8, ptr %68, i64 -120
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %69) #11
  %70 = icmp eq ptr %69, %10
  br i1 %70, label %.loopexit, label %.preheader145

71:                                               ; preds = %37
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %293

73:                                               ; preds = %38
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %292

75:                                               ; preds = %39
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %291

77:                                               ; preds = %40
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %290

79:                                               ; preds = %41
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %289

81:                                               ; preds = %42
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %288

83:                                               ; preds = %43
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %287

85:                                               ; preds = %44
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %286

.loopexit141:                                     ; preds = %.invoke, %95, %99, %100, %105, %114, %122, %123, %124, %127
  %lpad.loopexit143 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp142:                            ; preds = %45, %46, %87, %88
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

87:                                               ; preds = %46
  invoke void @_ZN3Int4MultEm(ptr noundef nonnull align 8 dereferenceable(40) %16, i64 noundef 512)
          to label %88 unwind label %.loopexit.split-lp142

88:                                               ; preds = %87
  invoke void @_ZN3Int3AddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef nonnull @BSGS_M)
          to label %.preheader140 unwind label %.loopexit.split-lp142

.preheader140:                                    ; preds = %88
  %.not176 = icmp eq i32 %spec.select.fr, 0
  %89 = getelementptr inbounds i8, ptr %10, i64 61440
  %90 = getelementptr inbounds i8, ptr %17, i64 40
  %91 = getelementptr inbounds i8, ptr %18, i64 40
  %92 = zext i32 %47 to i64
  %wide.trip.count = zext i32 %spec.select.fr to i64
  %93 = getelementptr inbounds i8, ptr %9, i64 20440
  %94 = getelementptr inbounds i8, ptr %9, i64 20480
  br label %95

95:                                               ; preds = %.preheader140, %._crit_edge163
  %96 = call i32 @pthread_mutex_lock(ptr noundef nonnull @bsgs_thread) #11
  %97 = invoke noundef zeroext i1 @_ZN3Int9IsGreaterEPS_(ptr noundef nonnull align 8 dereferenceable(40) @n_range_end, ptr noundef nonnull @n_range_start)
          to label %98 unwind label %.loopexit141

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

99:                                               ; preds = %98
  invoke void @_ZN3Int3SubEPS_(ptr noundef nonnull align 8 dereferenceable(40) @n_range_end, ptr noundef nonnull @BSGS_N_double)
          to label %100 unwind label %.loopexit141

100:                                              ; preds = %99
  %101 = invoke noundef zeroext i1 @_ZN3Int7IsLowerEPS_(ptr noundef nonnull align 8 dereferenceable(40) @n_range_end, ptr noundef nonnull @n_range_start)
          to label %.invoke unwind label %.loopexit141

.invoke:                                          ; preds = %100
  %n_range_start.n_range_end = select i1 %101, ptr @n_range_start, ptr @n_range_end
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull %n_range_start.n_range_end)
          to label %102 unwind label %.loopexit141

102:                                              ; preds = %.invoke
  %103 = call i32 @pthread_mutex_unlock(ptr noundef nonnull @bsgs_thread) #11
  %104 = load i32, ptr @FLAGMATRIX, align 4, !tbaa !13
  %.not112 = icmp eq i32 %104, 0
  br i1 %.not112, label %111, label %105

105:                                              ; preds = %102
  %106 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %3)
          to label %107 unwind label %.loopexit141

107:                                              ; preds = %105
  %108 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.235, ptr noundef %106)
  %109 = load ptr, ptr @stdout, align 8, !tbaa !14
  %110 = call i32 @fflush(ptr noundef %109)
  call void @free(ptr noundef %106) #11
  br label %120

111:                                              ; preds = %102
  %112 = load i32, ptr @FLAGQUIET, align 4, !tbaa !13
  %113 = icmp eq i32 %112, 0
  br i1 %113, label %114, label %120

114:                                              ; preds = %111
  %115 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %3)
          to label %116 unwind label %.loopexit141

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

120:                                              ; preds = %111, %116, %107
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %19) #11
  %121 = 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) %121, ptr noundef nonnull %3)
          to label %122 unwind label %267

122:                                              ; preds = %120
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %5, 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) %15, ptr noundef nonnull %3)
          to label %123 unwind label %.loopexit141

123:                                              ; preds = %122
  invoke void @_ZN3Int3NegEv(ptr noundef nonnull align 8 dereferenceable(40) %15)
          to label %124 unwind label %.loopexit141

124:                                              ; preds = %123
  %125 = load ptr, ptr @secp, align 8, !tbaa !14
  %126 = getelementptr inbounds i8, ptr %125, i64 160
  invoke void @_ZN3Int3AddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef nonnull %126)
          to label %127 unwind label %.loopexit141

127:                                              ; preds = %124
  invoke void @_ZN3Int3SubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef nonnull %16)
          to label %128 unwind label %.loopexit141

128:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %20) #11
  %129 = 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) %129, ptr noundef nonnull %15)
          to label %130 unwind label %269

130:                                              ; preds = %128
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %6, 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
  %131 = load i32, ptr @bsgs_point_number, align 4, !tbaa !13
  %.not177 = icmp eq i32 %131, 0
  br i1 %.not177, label %._crit_edge163, label %.lr.ph162

.lr.ph162:                                        ; preds = %130
  br i1 %.not176, label %.lr.ph162.split.preheader, label %.lr.ph162.split.us

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

.lr.ph162.split.us:                               ; preds = %.lr.ph162, %.critedge.us
  %132 = phi i32 [ %146, %.critedge.us ], [ %131, %.lr.ph162 ]
  %indvars.iv203 = phi i64 [ %indvars.iv.next204, %.critedge.us ], [ 0, %.lr.ph162 ]
  %133 = load ptr, ptr @bsgs_found, align 8, !tbaa !14
  %134 = getelementptr inbounds i32, ptr %133, i64 %indvars.iv203
  %135 = load i32, ptr %134, align 4, !tbaa !13
  %136 = icmp eq i32 %135, 0
  br i1 %136, label %137, label %.critedge.us

137:                                              ; preds = %.lr.ph162.split.us
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %21) #11
  %138 = load ptr, ptr @secp, align 8, !tbaa !14
  %139 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @OriginalPointsBSGS, i64 noundef %indvars.iv203) #11
  invoke void @_ZN9Secp256K19AddDirectER5PointS1_(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %21, ptr noundef nonnull align 8 dereferenceable(983240) %138, ptr noundef nonnull align 8 dereferenceable(120) %139, ptr noundef nonnull align 8 dereferenceable(120) %6)
          to label %.lr.ph157.us unwind label %.split.us

.lr.ph157.us:                                     ; preds = %137
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %8, 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
  %140 = trunc nuw i64 %indvars.iv203 to i32
  br label %141

141:                                              ; preds = %.lr.ph157.us, %180
  %indvars.iv199 = phi i64 [ 0, %.lr.ph157.us ], [ %indvars.iv.next200, %180 ]
  %142 = load ptr, ptr @bsgs_found, align 8, !tbaa !14
  %143 = getelementptr inbounds i32, ptr %142, i64 %indvars.iv203
  %144 = load i32, ptr %143, align 4, !tbaa !13
  %145 = icmp eq i32 %144, 0
  br i1 %145, label %.preheader.us, label %.critedge.us.loopexit

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

.critedge.us:                                     ; preds = %.critedge.us.loopexit, %.lr.ph162.split.us
  %146 = phi i32 [ %.pre, %.critedge.us.loopexit ], [ %132, %.lr.ph162.split.us ]
  %indvars.iv.next204 = add nuw nsw i64 %indvars.iv203, 1
  %147 = zext i32 %146 to i64
  %148 = icmp ult i64 %indvars.iv.next204, %147
  br i1 %148, label %.lr.ph162.split.us, label %._crit_edge163, !llvm.loop !17

149:                                              ; preds = %255
  %150 = 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) %93, ptr noundef nonnull %150, ptr noundef nonnull %8)
          to label %151 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

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

152:                                              ; preds = %151
  invoke void @_ZN8IntGroup6ModInvEv(ptr noundef nonnull align 8 dereferenceable(20) %25)
          to label %153 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

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

154:                                              ; preds = %248
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %18, ptr noundef nonnull align 8 dereferenceable(120) %8, i64 120, i1 false), !tbaa.struct !15
  %155 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef 511) #11
  %156 = getelementptr inbounds i8, ptr %155, i64 40
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull %156)
          to label %157 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

157:                                              ; preds = %154
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %12)
          to label %158 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

158:                                              ; preds = %157
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull %91)
          to label %159 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

159:                                              ; preds = %158
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %13, ptr noundef nonnull %12, ptr noundef nonnull %93)
          to label %160 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

160:                                              ; preds = %159
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %14, ptr noundef nonnull %13)
          to label %161 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

161:                                              ; preds = %160
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %18)
          to label %162 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

162:                                              ; preds = %161
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %18, ptr noundef nonnull %14)
          to label %163 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

163:                                              ; preds = %162
  %164 = 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) %18, ptr noundef nonnull %164)
          to label %165 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

165:                                              ; preds = %163
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(120) %10, ptr noundef nonnull align 8 dereferenceable(120) %18, i64 120, i1 false), !tbaa.struct !15
  %166 = shl i64 %indvars.iv199, 10
  br label %167

167:                                              ; preds = %226, %165
  %indvars.iv195 = phi i64 [ %indvars.iv.next196, %226 ], [ 0, %165 ]
  %168 = load ptr, ptr @bsgs_found, align 8, !tbaa !14
  %169 = getelementptr inbounds i32, ptr %168, i64 %indvars.iv203
  %170 = load i32, ptr %169, align 4, !tbaa !13
  %171 = icmp eq i32 %170, 0
  br i1 %171, label %181, label %.critedge2.us

.critedge2.us:                                    ; preds = %226, %167
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %17, ptr noundef nonnull align 8 dereferenceable(120) %8, i64 120, i1 false), !tbaa.struct !15
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull getelementptr inbounds (i8, ptr @_2GSn, i64 40), ptr noundef nonnull %90)
          to label %172 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

172:                                              ; preds = %.critedge2.us
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %13, ptr noundef nonnull %11, ptr noundef nonnull %94)
          to label %173 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

173:                                              ; preds = %172
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %14, ptr noundef nonnull %13)
          to label %174 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

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

175:                                              ; preds = %174
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef nonnull %14)
          to label %176 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

176:                                              ; preds = %175
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef nonnull @_2GSn)
          to label %177 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

177:                                              ; preds = %176
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %90, ptr noundef nonnull @_2GSn, ptr noundef nonnull %17)
          to label %178 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

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

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

180:                                              ; preds = %179
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %8, ptr noundef nonnull align 8 dereferenceable(120) %17, i64 120, i1 false), !tbaa.struct !15
  %indvars.iv.next200 = add nuw nsw i64 %indvars.iv199, 1
  %exitcond202.not = icmp eq i64 %indvars.iv.next200, %wide.trip.count
  br i1 %exitcond202.not, label %.critedge.us.loopexit, label %141, !llvm.loop !19

181:                                              ; preds = %167
  %182 = getelementptr inbounds [1024 x %class.Point], ptr %10, i64 0, i64 %indvars.iv195
  invoke void @_ZN3Int10Get32BytesEPh(ptr noundef nonnull align 8 dereferenceable(40) %182, ptr noundef nonnull %2)
          to label %183 unwind label %.split166.us

183:                                              ; preds = %181
  %184 = load ptr, ptr @bloom_bP, align 8, !tbaa !14
  %185 = load i8, ptr %2, align 16, !tbaa !16
  %186 = zext i8 %185 to i64
  %187 = getelementptr inbounds %struct.bloom, ptr %184, i64 %186
  %188 = invoke i32 @bloom_check(ptr noundef %187, ptr noundef nonnull %2, i32 noundef 32)
          to label %189 unwind label %.split166.us

189:                                              ; preds = %183
  %.not113.us = icmp eq i32 %188, 0
  br i1 %.not113.us, label %226, label %190

190:                                              ; preds = %189
  %191 = add i64 %indvars.iv195, %166
  %192 = trunc i64 %191 to i32
  %193 = invoke noundef i32 @_Z16bsgs_secondcheckP3IntjjS0_(ptr noundef nonnull %3, i32 noundef %192, i32 noundef %140, ptr noundef nonnull %4)
          to label %194 unwind label %.split166.us

194:                                              ; preds = %190
  %.not114.us = icmp eq i32 %193, 0
  br i1 %.not114.us, label %226, label %195

195:                                              ; preds = %194
  %196 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %197 unwind label %.split166.us

197:                                              ; preds = %195
  %198 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.237, ptr noundef %196)
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %22) #11
  %199 = 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) %199, ptr noundef nonnull %4)
          to label %200 unwind label %.split169.us

200:                                              ; preds = %197
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %7, 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
  %201 = load ptr, ptr @secp, align 8, !tbaa !14
  %202 = load ptr, ptr @OriginalPointsBSGScompressed, align 8, !tbaa !14
  %203 = getelementptr inbounds i8, ptr %202, i64 %indvars.iv203
  %204 = load i8, ptr %203, align 1, !tbaa !20, !range !22, !noundef !23
  %205 = trunc nuw i8 %204 to i1
  %206 = invoke noundef ptr @_ZN9Secp256K115GetPublicKeyHexEbR5Point(ptr noundef nonnull align 8 dereferenceable(983240) %201, i1 noundef zeroext %205, ptr noundef nonnull align 8 dereferenceable(120) %7)
          to label %207 unwind label %.split166.us

207:                                              ; preds = %200
  %208 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.238, ptr noundef %206)
  %209 = call i32 @pthread_mutex_lock(ptr noundef nonnull @write_keys) #11
  %210 = call noalias ptr @fopen(ptr noundef nonnull @.str.229, ptr noundef nonnull @.str.239)
  %.not116.us = icmp eq ptr %210, null
  br i1 %.not116.us, label %214, label %211

211:                                              ; preds = %207
  %212 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %210, ptr noundef nonnull @.str.240, ptr noundef %196, ptr noundef %206) #11
  %213 = call i32 @fclose(ptr noundef nonnull %210)
  br label %214

214:                                              ; preds = %211, %207
  call void @free(ptr noundef %196) #11
  call void @free(ptr noundef %206) #11
  %215 = call i32 @pthread_mutex_unlock(ptr noundef nonnull @write_keys) #11
  %216 = load ptr, ptr @bsgs_found, align 8, !tbaa !14
  %217 = getelementptr inbounds i32, ptr %216, i64 %indvars.iv203
  store i32 1, ptr %217, align 4, !tbaa !13
  %218 = load i32, ptr @bsgs_point_number, align 4, !tbaa !13
  %.not178 = icmp eq i32 %218, 0
  br i1 %.not178, label %.split172.us, label %.lr.ph.us.preheader

.lr.ph.us.preheader:                              ; preds = %214
  %219 = zext i32 %218 to i64
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %.lr.ph.us
  %indvars.iv192 = phi i64 [ 0, %.lr.ph.us.preheader ], [ %indvars.iv.next193, %.lr.ph.us ]
  %220 = getelementptr inbounds i32, ptr %216, i64 %indvars.iv192
  %221 = load i32, ptr %220, align 4, !tbaa !13
  %222 = and i32 %221, 1
  %indvars.iv.next193 = add nuw nsw i64 %indvars.iv192, 1
  %223 = icmp ult i64 %indvars.iv.next193, %219
  %224 = icmp ne i32 %222, 0
  %225 = select i1 %223, i1 %224, i1 false
  br i1 %225, label %.lr.ph.us, label %._crit_edge.us, !llvm.loop !24

226:                                              ; preds = %._crit_edge.us, %194, %189
  %indvars.iv.next196 = add nuw nsw i64 %indvars.iv195, 1
  %exitcond198.not = icmp eq i64 %indvars.iv.next196, 1024
  br i1 %exitcond198.not, label %.critedge2.us, label %167, !llvm.loop !25

227:                                              ; preds = %248, %153
  %indvars.iv188 = phi i64 [ %indvars.iv.next189, %248 ], [ 0, %153 ]
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %17, ptr noundef nonnull align 8 dereferenceable(120) %8, i64 120, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %18, ptr noundef nonnull align 8 dereferenceable(120) %8, i64 120, i1 false), !tbaa.struct !15
  %228 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv188) #11
  %229 = getelementptr inbounds i8, ptr %228, i64 40
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull %229, ptr noundef nonnull %90)
          to label %230 unwind label %.loopexit136.split.us

230:                                              ; preds = %227
  %231 = getelementptr inbounds [513 x %class.Int], ptr %9, i64 0, i64 %indvars.iv188
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %13, ptr noundef nonnull %11, ptr noundef nonnull %231)
          to label %232 unwind label %.loopexit136.split.us

232:                                              ; preds = %230
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %14, ptr noundef nonnull %13)
          to label %233 unwind label %.loopexit136.split.us

233:                                              ; preds = %232
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %17)
          to label %234 unwind label %.loopexit136.split.us

234:                                              ; preds = %233
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef nonnull %14)
          to label %235 unwind label %.loopexit136.split.us

235:                                              ; preds = %234
  %236 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv188) #11
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef nonnull %236)
          to label %237 unwind label %.loopexit136.split.us

237:                                              ; preds = %235
  %238 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv188) #11
  %239 = getelementptr inbounds i8, ptr %238, i64 40
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull %239)
          to label %240 unwind label %.loopexit136.split.us

240:                                              ; preds = %237
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %12)
          to label %241 unwind label %.loopexit136.split.us

241:                                              ; preds = %240
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull %91)
          to label %242 unwind label %.loopexit136.split.us

242:                                              ; preds = %241
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %13, ptr noundef nonnull %12, ptr noundef nonnull %231)
          to label %243 unwind label %.loopexit136.split.us

243:                                              ; preds = %242
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %14, ptr noundef nonnull %13)
          to label %244 unwind label %.loopexit136.split.us

244:                                              ; preds = %243
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %18)
          to label %245 unwind label %.loopexit136.split.us

245:                                              ; preds = %244
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %18, ptr noundef nonnull %14)
          to label %246 unwind label %.loopexit136.split.us

246:                                              ; preds = %245
  %247 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv188) #11
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %18, ptr noundef nonnull %247)
          to label %248 unwind label %.loopexit136.split.us

248:                                              ; preds = %246
  %indvars.iv.next189 = add nuw nsw i64 %indvars.iv188, 1
  %249 = add nuw nsw i64 %indvars.iv188, 513
  %250 = getelementptr inbounds [1024 x %class.Point], ptr %10, i64 0, i64 %249
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %250, ptr noundef nonnull align 8 dereferenceable(120) %17, i64 120, i1 false), !tbaa.struct !15
  %251 = sub nuw nsw i64 511, %indvars.iv188
  %252 = getelementptr inbounds [1024 x %class.Point], ptr %10, i64 0, i64 %251
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %252, ptr noundef nonnull align 8 dereferenceable(120) %18, i64 120, i1 false), !tbaa.struct !15
  %exitcond191.not = icmp eq i64 %indvars.iv.next189, 511
  br i1 %exitcond191.not, label %154, label %227, !llvm.loop !26

.preheader.us:                                    ; preds = %141, %255
  %indvars.iv = phi i64 [ %indvars.iv.next, %255 ], [ 0, %141 ]
  %253 = getelementptr inbounds [513 x %class.Int], ptr %9, i64 0, i64 %indvars.iv
  %254 = 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) %253, ptr noundef nonnull %254, ptr noundef nonnull %8)
          to label %255 unwind label %.loopexit.split-lp.loopexit.split.us

255:                                              ; 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 %149, label %.preheader.us, !llvm.loop !27

._crit_edge.us:                                   ; preds = %.lr.ph.us
  br i1 %224, label %.split172.us, label %226

.split.us:                                        ; preds = %137
  %256 = landingpad { ptr, i32 }
          cleanup
  br label %272

.loopexit.split-lp.loopexit.split-lp.split.us:    ; preds = %179, %178, %177, %176, %175, %174, %173, %172, %.critedge2.us, %163, %162, %161, %160, %159, %158, %157, %154, %152, %151, %149
  %lpad.loopexit.split-lp138.us = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.split166.us:                                     ; preds = %200, %195, %190, %183, %181
  %257 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

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

.loopexit136.split.us:                            ; preds = %246, %245, %244, %243, %242, %241, %240, %237, %235, %234, %233, %232, %230, %227
  %lpad.loopexit.us = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

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

.lr.ph162.split:                                  ; preds = %.lr.ph162.split.preheader, %.critedge
  %259 = phi i32 [ %131, %.lr.ph162.split.preheader ], [ %274, %.critedge ]
  %260 = phi ptr [ %.pre210, %.lr.ph162.split.preheader ], [ %275, %.critedge ]
  %indvars.iv206 = phi i64 [ 0, %.lr.ph162.split.preheader ], [ %indvars.iv.next207, %.critedge ]
  %261 = getelementptr inbounds i32, ptr %260, i64 %indvars.iv206
  %262 = load i32, ptr %261, align 4, !tbaa !13
  %263 = icmp eq i32 %262, 0
  br i1 %263, label %264, label %.critedge

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

.critedge.loopexit:                               ; preds = %264
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %8, 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
  %.pre209 = load ptr, ptr @bsgs_found, align 8, !tbaa !14
  %.pre211 = load i32, ptr @bsgs_point_number, align 4, !tbaa !13
  br label %.critedge

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

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

.split:                                           ; preds = %264
  %271 = landingpad { ptr, i32 }
          cleanup
  br label %272

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

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

.critedge:                                        ; preds = %.critedge.loopexit, %.lr.ph162.split
  %274 = phi i32 [ %.pre211, %.critedge.loopexit ], [ %259, %.lr.ph162.split ]
  %275 = phi ptr [ %.pre209, %.critedge.loopexit ], [ %260, %.lr.ph162.split ]
  %indvars.iv.next207 = add nuw nsw i64 %indvars.iv206, 1
  %276 = zext i32 %274 to i64
  %277 = icmp ult i64 %indvars.iv.next207, %276
  br i1 %277, label %.lr.ph162.split, label %._crit_edge163, !llvm.loop !17

._crit_edge163:                                   ; preds = %.critedge.us, %.critedge, %130
  %278 = load ptr, ptr @steps, align 8, !tbaa !14
  %279 = getelementptr inbounds i64, ptr %278, i64 %92
  %280 = load i64, ptr %279, align 8, !tbaa !11
  %281 = add i64 %280, 2
  store i64 %281, ptr %279, align 8, !tbaa !11
  br label %95, !llvm.loop !28

282:                                              ; preds = %98
  %283 = call i32 @pthread_mutex_unlock(ptr noundef nonnull @bsgs_thread) #11
  %284 = load ptr, ptr @ends, align 8, !tbaa !14
  %285 = getelementptr inbounds i32, ptr %284, i64 %92
  store i32 1, ptr %285, align 4, !tbaa !13
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %18) #11
  call void @llvm.lifetime.end.p0(i64 120, 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 @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #11
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #11
  br label %294

.loopexit.split-lp:                               ; preds = %.loopexit136.split.us, %.loopexit.split-lp.loopexit.split-lp.split.us, %.loopexit.split-lp.loopexit.split.us, %.loopexit141, %.loopexit.split-lp142, %.split169.us, %.split166.us, %272, %269, %267
  %.pn117.pn = phi { ptr, i32 } [ %.us-phi, %272 ], [ %270, %269 ], [ %268, %267 ], [ %257, %.split166.us ], [ %258, %.split169.us ], [ %lpad.loopexit143, %.loopexit141 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp142 ], [ %lpad.loopexit.us, %.loopexit136.split.us ], [ %lpad.loopexit137.us, %.loopexit.split-lp.loopexit.split.us ], [ %lpad.loopexit.split-lp138.us, %.loopexit.split-lp.loopexit.split-lp.split.us ]
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %18) #11
  br label %286

286:                                              ; preds = %.loopexit.split-lp, %85
  %.pn117.pn.pn = phi { ptr, i32 } [ %.pn117.pn, %.loopexit.split-lp ], [ %86, %85 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %18) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %17) #11
  br label %287

287:                                              ; preds = %286, %83
  %.pn117.pn.pn.pn = phi { ptr, i32 } [ %.pn117.pn.pn, %286 ], [ %84, %83 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %17) #11
  br label %288

288:                                              ; preds = %287, %81
  %.pn117.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn117.pn.pn.pn, %287 ], [ %82, %81 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #11
  br label %289

289:                                              ; preds = %288, %79
  %.pn117.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn117.pn.pn.pn.pn, %288 ], [ %80, %79 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #11
  br label %290

290:                                              ; preds = %289, %77
  %.pn117.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn117.pn.pn.pn.pn.pn, %289 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #11
  br label %291

291:                                              ; preds = %290, %75
  %.pn117.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn117.pn.pn.pn.pn.pn.pn, %290 ], [ %76, %75 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #11
  br label %292

292:                                              ; preds = %291, %73
  %.pn117.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn117.pn.pn.pn.pn.pn.pn.pn, %291 ], [ %74, %73 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #11
  br label %293

293:                                              ; preds = %292, %71
  %.pn117.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn117.pn.pn.pn.pn.pn.pn.pn.pn, %292 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #11
  br label %299

294:                                              ; preds = %294, %282
  %295 = phi ptr [ %33, %282 ], [ %296, %294 ]
  %296 = getelementptr inbounds i8, ptr %295, i64 -120
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %296) #11
  %297 = icmp eq ptr %296, %10
  br i1 %297, label %298, label %294

298:                                              ; preds = %294
  call void @llvm.lifetime.end.p0(i64 122880, ptr nonnull %10) #11
  call void @llvm.lifetime.end.p0(i64 20520, ptr nonnull %9) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %8) #11
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %8) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %7) #11
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %7) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %6) #11
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %6) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %5) #11
  call void @llvm.lifetime.end.p0(i64 120, 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

299:                                              ; preds = %299, %293
  %300 = phi ptr [ %33, %293 ], [ %301, %299 ]
  %301 = getelementptr inbounds i8, ptr %300, i64 -120
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %301) #11
  %302 = icmp eq ptr %301, %10
  br i1 %302, label %.loopexit, label %299

.loopexit:                                        ; preds = %.preheader145, %299, %65
  %.pn117.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %66, %65 ], [ %.pn117.pn.pn.pn.pn.pn.pn.pn.pn.pn, %299 ], [ %66, %.preheader145 ]
  call void @llvm.lifetime.end.p0(i64 122880, ptr nonnull %10) #11
  br label %303

303:                                              ; preds = %.loopexit, %63
  %.pn117.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn117.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %.loopexit ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 20520, ptr nonnull %9) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %8) #11
  br label %304

304:                                              ; preds = %303, %61
  %.pn117.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn117.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %303 ], [ %62, %61 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %8) #11
  br label %305

305:                                              ; preds = %304, %59, %57
  %.pn117.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn117.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %304 ], [ %60, %59 ], [ %58, %57 ]
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %7) #11
  br label %306

306:                                              ; preds = %305, %55
  %.pn117.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn117.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %305 ], [ %56, %55 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %7) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %6) #11
  br label %307

307:                                              ; preds = %306, %53
  %.pn117.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn117.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %306 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %6) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %5) #11
  call void @llvm.lifetime.end.p0(i64 120, 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
  resume { ptr, i32 } %.pn117.pn.pn.pn.pn.pn.pn.pn.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

; 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