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

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

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

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

declare i32 @fflush(ptr noundef) #0

declare void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind writable sret(%class.Point) align 8, ptr noundef nonnull align 8 dereferenceable(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 @_Z25thread_process_bsgs_dancePv(ptr noundef %0) #8 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca [1024 x %class.Point], align 16
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca [513 x %class.Int], align 16
  %8 = alloca %class.Point, align 8
  %9 = alloca %class.Point, align 8
  %10 = alloca %class.Point, align 8
  %11 = alloca %class.Point, align 8
  %12 = alloca %class.Point, align 8
  %13 = alloca %class.Point, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca [32 x i8], align 16
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %class.Int, align 8
  %20 = alloca %class.Int, align 8
  %21 = alloca %class.Int, align 8
  %22 = alloca %class.Int, align 8
  %23 = alloca %class.Int, align 8
  %24 = alloca %class.Int, align 8
  %25 = alloca %class.Int, align 8
  %26 = alloca %class.Int, align 8
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %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 122880, ptr %4) #9
  %43 = getelementptr inbounds [1024 x %class.Point], ptr %4, i32 0, i32 0
  %44 = getelementptr inbounds %class.Point, ptr %43, i64 1024
  br label %45

45:                                               ; preds = %47, %1
  %46 = phi ptr [ %43, %1 ], [ %48, %47 ]
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %46)
          to label %47 unwind label %93

47:                                               ; preds = %45
  %48 = getelementptr inbounds %class.Point, ptr %46, i64 1
  %49 = icmp eq ptr %48, %44
  br i1 %49, label %50, label %45

50:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 20520, ptr %7) #9
  %51 = getelementptr inbounds [513 x %class.Int], ptr %7, i32 0, i32 0
  %52 = getelementptr inbounds %class.Int, ptr %51, i64 513
  br label %53

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

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

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

59:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 120, ptr %9) #9
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %9)
          to label %60 unwind label %111

60:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 120, ptr %10) #9
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %10)
          to label %61 unwind label %115

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

62:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 120, ptr %12) #9
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %12)
          to label %63 unwind label %123

63:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 120, ptr %13) #9
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %13)
          to label %64 unwind label %127

64:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.start.p0(i64 40, ptr %19) #9
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %19)
          to label %65 unwind label %131

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

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

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

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

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

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

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

72:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  %73 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #10
          to label %74 unwind label %163

74:                                               ; preds = %72
  invoke void @_ZN8IntGroupC1Ei(ptr noundef nonnull align 8 dereferenceable(20) %73, i32 noundef 513)
          to label %75 unwind label %167

75:                                               ; preds = %74
  store ptr %73, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #9
  store i32 511, ptr %35, align 4, !tbaa !9
  %76 = load ptr, ptr %27, align 8, !tbaa !5
  %77 = getelementptr inbounds [513 x %class.Int], ptr %7, i64 0, i64 0
  invoke void @_ZN8IntGroup3SetEP3Int(ptr noundef nonnull align 8 dereferenceable(20) %76, ptr noundef %77)
          to label %78 unwind label %171

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

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

93:                                               ; preds = %45
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %5, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %6, align 4
  %97 = icmp eq ptr %43, %46
  br i1 %97, label %102, label %98

98:                                               ; preds = %98, %93
  %99 = phi ptr [ %46, %93 ], [ %100, %98 ]
  %100 = getelementptr inbounds %class.Point, ptr %99, i64 -1
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %100) #9
  %101 = icmp eq ptr %100, %43
  br i1 %101, label %102, label %98

102:                                              ; preds = %98, %93
  br label %618

103:                                              ; preds = %53
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %5, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %6, align 4
  br label %604

107:                                              ; preds = %58
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %5, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %6, align 4
  br label %603

111:                                              ; preds = %59
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %5, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %6, align 4
  br label %602

115:                                              ; preds = %60
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %5, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %6, align 4
  br label %601

119:                                              ; preds = %61
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %5, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %6, align 4
  br label %600

123:                                              ; preds = %62
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %5, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %6, align 4
  br label %599

127:                                              ; preds = %63
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %5, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %6, align 4
  br label %598

131:                                              ; preds = %64
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %5, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %6, align 4
  br label %597

135:                                              ; preds = %65
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %5, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %6, align 4
  br label %596

139:                                              ; preds = %66
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %5, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %6, align 4
  br label %595

143:                                              ; preds = %67
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %5, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %6, align 4
  br label %594

147:                                              ; preds = %68
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %5, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %6, align 4
  br label %593

151:                                              ; preds = %69
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %5, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %6, align 4
  br label %592

155:                                              ; preds = %70
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %5, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %6, align 4
  br label %591

159:                                              ; preds = %71
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %5, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %6, align 4
  br label %590

163:                                              ; preds = %72
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %5, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %6, align 4
  br label %589

167:                                              ; preds = %74
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %5, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %73, i64 noundef 24) #11
  br label %589

171:                                              ; preds = %247, %244, %243, %242, %234, %231, %229, %221, %218, %216, %206, %202, %201, %198, %193, %191, %188, %187, %184, %177, %176, %175, %75
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %5, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %6, align 4
  br label %588

175:                                              ; preds = %90, %78
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %26, ptr noundef @BSGS_M_double)
          to label %176 unwind label %171

176:                                              ; preds = %175
  invoke void @_ZN3Int4MultEm(ptr noundef nonnull align 8 dereferenceable(40) %26, i64 noundef 512)
          to label %177 unwind label %171

177:                                              ; preds = %176
  invoke void @_ZN3Int3AddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %26, ptr noundef @BSGS_M)
          to label %178 unwind label %171

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

179:                                              ; preds = %580, %178
  %180 = call i32 @rand() #9
  %181 = srem i32 %180, 3
  store i32 %181, ptr %30, align 4, !tbaa !9
  %182 = call i32 @pthread_mutex_lock(ptr noundef @bsgs_thread) #9
  %183 = load i32, ptr %30, align 4, !tbaa !9
  switch i32 %183, label %208 [
    i32 0, label %184
    i32 1, label %198
    i32 2, label %206
  ]

184:                                              ; preds = %179
  %185 = invoke noundef zeroext i1 @_ZN3Int9IsGreaterEPS_(ptr noundef nonnull align 8 dereferenceable(40) @n_range_end, ptr noundef @BSGS_CURRENT)
          to label %186 unwind label %171

186:                                              ; preds = %184
  br i1 %185, label %187, label %196

187:                                              ; preds = %186
  invoke void @_ZN3Int3SubEPS_(ptr noundef nonnull align 8 dereferenceable(40) @n_range_end, ptr noundef @BSGS_N_double)
          to label %188 unwind label %171

188:                                              ; preds = %187
  %189 = invoke noundef zeroext i1 @_ZN3Int7IsLowerEPS_(ptr noundef nonnull align 8 dereferenceable(40) @n_range_end, ptr noundef @BSGS_CURRENT)
          to label %190 unwind label %171

190:                                              ; preds = %188
  br i1 %189, label %191, label %193

191:                                              ; preds = %190
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %19, ptr noundef @BSGS_CURRENT)
          to label %192 unwind label %171

192:                                              ; preds = %191
  br label %195

193:                                              ; preds = %190
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %19, ptr noundef @n_range_end)
          to label %194 unwind label %171

194:                                              ; preds = %193
  br label %195

195:                                              ; preds = %194, %192
  br label %197

196:                                              ; preds = %186
  store i32 0, ptr %33, align 4, !tbaa !9
  br label %197

197:                                              ; preds = %196, %195
  br label %208

198:                                              ; preds = %179
  %199 = invoke noundef zeroext i1 @_ZN3Int7IsLowerEPS_(ptr noundef nonnull align 8 dereferenceable(40) @BSGS_CURRENT, ptr noundef @n_range_end)
          to label %200 unwind label %171

200:                                              ; preds = %198
  br i1 %199, label %201, label %204

201:                                              ; preds = %200
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %19, ptr noundef @BSGS_CURRENT)
          to label %202 unwind label %171

202:                                              ; preds = %201
  invoke void @_ZN3Int3AddEPS_(ptr noundef nonnull align 8 dereferenceable(40) @BSGS_CURRENT, ptr noundef @BSGS_N_double)
          to label %203 unwind label %171

203:                                              ; preds = %202
  br label %205

204:                                              ; preds = %200
  store i32 0, ptr %33, align 4, !tbaa !9
  br label %205

205:                                              ; preds = %204, %203
  br label %208

206:                                              ; preds = %179
  invoke void @_ZN3Int4RandEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %19, ptr noundef @BSGS_CURRENT, ptr noundef @n_range_end)
          to label %207 unwind label %171

207:                                              ; preds = %206
  br label %208

208:                                              ; preds = %207, %205, %197, %179
  %209 = call i32 @pthread_mutex_unlock(ptr noundef @bsgs_thread) #9
  %210 = load i32, ptr %33, align 4, !tbaa !9
  %211 = icmp eq i32 %210, 0
  br i1 %211, label %212, label %213

212:                                              ; preds = %208
  br label %581

213:                                              ; preds = %208
  %214 = load i32, ptr @FLAGMATRIX, align 4, !tbaa !9
  %215 = icmp ne i32 %214, 0
  br i1 %215, label %216, label %226

216:                                              ; preds = %213
  %217 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %19)
          to label %218 unwind label %171

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

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

224:                                              ; preds = %221
  %225 = load ptr, ptr %17, align 8, !tbaa !5
  call void @free(ptr noundef %225) #9
  br label %240

226:                                              ; preds = %213
  %227 = load i32, ptr @FLAGQUIET, align 4, !tbaa !9
  %228 = icmp eq i32 %227, 0
  br i1 %228, label %229, label %239

229:                                              ; preds = %226
  %230 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %19)
          to label %231 unwind label %171

231:                                              ; preds = %229
  store ptr %230, ptr %17, align 8, !tbaa !5
  %232 = load ptr, ptr %17, align 8, !tbaa !5
  %233 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.236, ptr noundef %232)
          to label %234 unwind label %171

234:                                              ; preds = %231
  %235 = load ptr, ptr @stdout, align 8, !tbaa !5
  %236 = invoke i32 @fflush(ptr noundef %235)
          to label %237 unwind label %171

237:                                              ; preds = %234
  %238 = load ptr, ptr %17, align 8, !tbaa !5
  call void @free(ptr noundef %238) #9
  store i32 1, ptr @THREADOUTPUT, align 4, !tbaa !9
  br label %239

239:                                              ; preds = %237, %226
  br label %240

240:                                              ; preds = %239, %224
  call void @llvm.lifetime.start.p0(i64 120, ptr %36) #9
  %241 = 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) %241, ptr noundef %19)
          to label %242 unwind label %299

242:                                              ; preds = %240
  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) %25, ptr noundef %19)
          to label %243 unwind label %171

243:                                              ; preds = %242
  invoke void @_ZN3Int3NegEv(ptr noundef nonnull align 8 dereferenceable(40) %25)
          to label %244 unwind label %171

244:                                              ; preds = %243
  %245 = load ptr, ptr @secp, align 8, !tbaa !5
  %246 = getelementptr inbounds %class.Secp256K1, ptr %245, i32 0, i32 2
  invoke void @_ZN3Int3AddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %25, ptr noundef %246)
          to label %247 unwind label %171

247:                                              ; preds = %244
  invoke void @_ZN3Int3SubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %25, ptr noundef %26)
          to label %248 unwind label %171

248:                                              ; preds = %247
  call void @llvm.lifetime.start.p0(i64 120, ptr %37) #9
  %249 = 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) %249, ptr noundef %25)
          to label %250 unwind label %303

250:                                              ; preds = %248
  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 %28, align 4, !tbaa !9
  br label %251

251:                                              ; preds = %570, %250
  %252 = load i32, ptr %28, align 4, !tbaa !9
  %253 = load i32, ptr @bsgs_point_number, align 4, !tbaa !9
  %254 = icmp ult i32 %252, %253
  br i1 %254, label %255, label %573

255:                                              ; preds = %251
  %256 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %257 = load i32, ptr %28, align 4, !tbaa !9
  %258 = zext i32 %257 to i64
  %259 = getelementptr inbounds i32, ptr %256, i64 %258
  %260 = load i32, ptr %259, align 4, !tbaa !9
  %261 = icmp eq i32 %260, 0
  br i1 %261, label %262, label %569

262:                                              ; preds = %255
  call void @llvm.lifetime.start.p0(i64 120, ptr %38) #9
  %263 = load ptr, ptr @secp, align 8, !tbaa !5
  %264 = load i32, ptr %28, align 4, !tbaa !9
  %265 = zext i32 %264 to i64
  %266 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @OriginalPointsBSGS, i64 noundef %265) #9
  invoke void @_ZN9Secp256K19AddDirectER5PointS1_(ptr dead_on_unwind writable sret(%class.Point) align 8 %38, ptr noundef nonnull align 8 dereferenceable(983240) %263, ptr noundef nonnull align 8 dereferenceable(120) %266, ptr noundef nonnull align 8 dereferenceable(120) %12)
          to label %267 unwind label %307

267:                                              ; preds = %262
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, 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 %268

268:                                              ; preds = %564, %267
  %269 = load i32, ptr %39, align 4, !tbaa !9
  %270 = load i32, ptr %34, align 4, !tbaa !9
  %271 = icmp ult i32 %269, %270
  br i1 %271, label %272, label %279

272:                                              ; preds = %268
  %273 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %274 = load i32, ptr %28, align 4, !tbaa !9
  %275 = zext i32 %274 to i64
  %276 = getelementptr inbounds i32, ptr %273, i64 %275
  %277 = load i32, ptr %276, align 4, !tbaa !9
  %278 = icmp eq i32 %277, 0
  br label %279

279:                                              ; preds = %272, %268
  %280 = phi i1 [ false, %268 ], [ %278, %272 ]
  br i1 %280, label %281, label %568

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

282:                                              ; preds = %296, %281
  %283 = load i32, ptr %40, align 4, !tbaa !9
  %284 = load i32, ptr %35, align 4, !tbaa !9
  %285 = icmp slt i32 %283, %284
  br i1 %285, label %286, label %315

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

295:                                              ; preds = %286
  br label %296

296:                                              ; preds = %295
  %297 = load i32, ptr %40, align 4, !tbaa !9
  %298 = add nsw i32 %297, 1
  store i32 %298, ptr %40, align 4, !tbaa !9
  br label %282, !llvm.loop !17

299:                                              ; preds = %240
  %300 = landingpad { ptr, i32 }
          cleanup
  %301 = extractvalue { ptr, i32 } %300, 0
  store ptr %301, ptr %5, align 8
  %302 = extractvalue { ptr, i32 } %300, 1
  store i32 %302, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %36) #9
  br label %588

303:                                              ; preds = %248
  %304 = landingpad { ptr, i32 }
          cleanup
  %305 = extractvalue { ptr, i32 } %304, 0
  store ptr %305, ptr %5, align 8
  %306 = extractvalue { ptr, i32 } %304, 1
  store i32 %306, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %37) #9
  br label %588

307:                                              ; preds = %262
  %308 = landingpad { ptr, i32 }
          cleanup
  %309 = extractvalue { ptr, i32 } %308, 0
  store ptr %309, ptr %5, align 8
  %310 = extractvalue { ptr, i32 } %308, 1
  store i32 %310, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %38) #9
  br label %588

311:                                              ; preds = %562, %560, %557, %555, %553, %551, %550, %545, %543, %413, %411, %409, %408, %404, %402, %401, %396, %376, %374, %372, %371, %367, %365, %364, %359, %353, %351, %349, %348, %344, %338, %330, %324, %315, %286
  %312 = landingpad { ptr, i32 }
          cleanup
  %313 = extractvalue { ptr, i32 } %312, 0
  store ptr %313, ptr %5, align 8
  %314 = extractvalue { ptr, i32 } %312, 1
  store i32 %314, ptr %6, align 4
  br label %567

315:                                              ; preds = %282
  %316 = load i32, ptr %40, align 4, !tbaa !9
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds [513 x %class.Int], ptr %7, i64 0, i64 %317
  %319 = load i32, ptr %40, align 4, !tbaa !9
  %320 = sext i32 %319 to i64
  %321 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %320) #9
  %322 = getelementptr inbounds %class.Point, ptr %321, i32 0, i32 0
  %323 = getelementptr inbounds %class.Point, ptr %10, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %318, ptr noundef %322, ptr noundef %323)
          to label %324 unwind label %311

324:                                              ; preds = %315
  %325 = load i32, ptr %40, align 4, !tbaa !9
  %326 = add nsw i32 %325, 1
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds [513 x %class.Int], ptr %7, i64 0, i64 %327
  %329 = getelementptr inbounds %class.Point, ptr %10, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %328, ptr noundef @_2GSn, ptr noundef %329)
          to label %330 unwind label %311

330:                                              ; preds = %324
  %331 = load ptr, ptr %27, align 8, !tbaa !5
  invoke void @_ZN8IntGroup6ModInvEv(ptr noundef nonnull align 8 dereferenceable(20) %331)
          to label %332 unwind label %311

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

334:                                              ; preds = %393, %332
  %335 = load i32, ptr %40, align 4, !tbaa !9
  %336 = load i32, ptr %35, align 4, !tbaa !9
  %337 = icmp slt i32 %335, %336
  br i1 %337, label %338, label %396

338:                                              ; preds = %334
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %10, i64 120, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %10, i64 120, i1 false), !tbaa.struct !15
  %339 = load i32, ptr %40, align 4, !tbaa !9
  %340 = sext i32 %339 to i64
  %341 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %340) #9
  %342 = getelementptr inbounds %class.Point, ptr %341, i32 0, i32 1
  %343 = getelementptr inbounds %class.Point, ptr %8, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %21, ptr noundef %342, ptr noundef %343)
          to label %344 unwind label %311

344:                                              ; preds = %338
  %345 = load i32, ptr %40, align 4, !tbaa !9
  %346 = sext i32 %345 to i64
  %347 = getelementptr inbounds [513 x %class.Int], ptr %7, i64 0, i64 %346
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %23, ptr noundef %21, ptr noundef %347)
          to label %348 unwind label %311

348:                                              ; preds = %344
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef %23)
          to label %349 unwind label %311

349:                                              ; preds = %348
  %350 = getelementptr inbounds %class.Point, ptr %8, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %350)
          to label %351 unwind label %311

351:                                              ; preds = %349
  %352 = getelementptr inbounds %class.Point, ptr %8, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %352, ptr noundef %24)
          to label %353 unwind label %311

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

359:                                              ; preds = %353
  %360 = load i32, ptr %40, align 4, !tbaa !9
  %361 = sext i32 %360 to i64
  %362 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %361) #9
  %363 = getelementptr inbounds %class.Point, ptr %362, i32 0, i32 1
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %22, ptr noundef %363)
          to label %364 unwind label %311

364:                                              ; preds = %359
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %22)
          to label %365 unwind label %311

365:                                              ; preds = %364
  %366 = getelementptr inbounds %class.Point, ptr %9, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %22, ptr noundef %366)
          to label %367 unwind label %311

367:                                              ; preds = %365
  %368 = load i32, ptr %40, align 4, !tbaa !9
  %369 = sext i32 %368 to i64
  %370 = getelementptr inbounds [513 x %class.Int], ptr %7, i64 0, i64 %369
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %23, ptr noundef %22, ptr noundef %370)
          to label %371 unwind label %311

371:                                              ; preds = %367
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef %23)
          to label %372 unwind label %311

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

374:                                              ; preds = %372
  %375 = getelementptr inbounds %class.Point, ptr %9, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %375, ptr noundef %24)
          to label %376 unwind label %311

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

382:                                              ; preds = %376
  %383 = load i32, ptr %40, align 4, !tbaa !9
  %384 = add nsw i32 %383, 1
  %385 = add nsw i32 512, %384
  %386 = sext i32 %385 to i64
  %387 = getelementptr inbounds [1024 x %class.Point], ptr %4, i64 0, i64 %386
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %387, ptr align 8 %8, i64 120, i1 false), !tbaa.struct !15
  %388 = load i32, ptr %40, align 4, !tbaa !9
  %389 = add nsw i32 %388, 1
  %390 = sub nsw i32 512, %389
  %391 = sext i32 %390 to i64
  %392 = getelementptr inbounds [1024 x %class.Point], ptr %4, i64 0, i64 %391
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %392, ptr align 8 %9, i64 120, i1 false), !tbaa.struct !15
  br label %393

393:                                              ; preds = %382
  %394 = load i32, ptr %40, align 4, !tbaa !9
  %395 = add nsw i32 %394, 1
  store i32 %395, ptr %40, align 4, !tbaa !9
  br label %334, !llvm.loop !19

396:                                              ; preds = %334
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %10, i64 120, i1 false), !tbaa.struct !15
  %397 = load i32, ptr %40, align 4, !tbaa !9
  %398 = sext i32 %397 to i64
  %399 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %398) #9
  %400 = getelementptr inbounds %class.Point, ptr %399, i32 0, i32 1
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %22, ptr noundef %400)
          to label %401 unwind label %311

401:                                              ; preds = %396
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %22)
          to label %402 unwind label %311

402:                                              ; preds = %401
  %403 = getelementptr inbounds %class.Point, ptr %9, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %22, ptr noundef %403)
          to label %404 unwind label %311

404:                                              ; preds = %402
  %405 = load i32, ptr %40, align 4, !tbaa !9
  %406 = sext i32 %405 to i64
  %407 = getelementptr inbounds [513 x %class.Int], ptr %7, i64 0, i64 %406
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %23, ptr noundef %22, ptr noundef %407)
          to label %408 unwind label %311

408:                                              ; preds = %404
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef %23)
          to label %409 unwind label %311

409:                                              ; preds = %408
  %410 = getelementptr inbounds %class.Point, ptr %9, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %410)
          to label %411 unwind label %311

411:                                              ; preds = %409
  %412 = getelementptr inbounds %class.Point, ptr %9, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %412, ptr noundef %24)
          to label %413 unwind label %311

413:                                              ; preds = %411
  %414 = getelementptr inbounds %class.Point, ptr %9, i32 0, i32 0
  %415 = load i32, ptr %40, align 4, !tbaa !9
  %416 = sext i32 %415 to i64
  %417 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %416) #9
  %418 = getelementptr inbounds %class.Point, ptr %417, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %414, ptr noundef %418)
          to label %419 unwind label %311

419:                                              ; preds = %413
  %420 = getelementptr inbounds [1024 x %class.Point], ptr %4, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %420, ptr align 8 %9, 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 %421

421:                                              ; preds = %539, %419
  %422 = load i32, ptr %41, align 4, !tbaa !9
  %423 = icmp slt i32 %422, 1024
  br i1 %423, label %424, label %431

424:                                              ; preds = %421
  %425 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %426 = load i32, ptr %28, align 4, !tbaa !9
  %427 = zext i32 %426 to i64
  %428 = getelementptr inbounds i32, ptr %425, i64 %427
  %429 = load i32, ptr %428, align 4, !tbaa !9
  %430 = icmp eq i32 %429, 0
  br label %431

431:                                              ; preds = %424, %421
  %432 = phi i1 [ false, %421 ], [ %430, %424 ]
  br i1 %432, label %434, label %433

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

434:                                              ; preds = %431
  %435 = load i32, ptr %41, align 4, !tbaa !9
  %436 = sext i32 %435 to i64
  %437 = getelementptr inbounds [1024 x %class.Point], ptr %4, i64 0, i64 %436
  %438 = getelementptr inbounds %class.Point, ptr %437, i32 0, i32 0
  %439 = getelementptr inbounds [32 x i8], ptr %16, i64 0, i64 0
  invoke void @_ZN3Int10Get32BytesEPh(ptr noundef nonnull align 8 dereferenceable(40) %438, ptr noundef %439)
          to label %440 unwind label %494

440:                                              ; preds = %434
  %441 = load ptr, ptr @bloom_bP, align 8, !tbaa !5
  %442 = getelementptr inbounds [32 x i8], ptr %16, i64 0, i64 0
  %443 = load i8, ptr %442, align 16, !tbaa !16
  %444 = zext i8 %443 to i64
  %445 = getelementptr inbounds %struct.bloom, ptr %441, i64 %444
  %446 = getelementptr inbounds [32 x i8], ptr %16, i64 0, i64 0
  %447 = invoke i32 @bloom_check(ptr noundef %445, ptr noundef %446, i32 noundef 32)
          to label %448 unwind label %494

448:                                              ; preds = %440
  store i32 %447, ptr %30, align 4, !tbaa !9
  %449 = load i32, ptr %30, align 4, !tbaa !9
  %450 = icmp ne i32 %449, 0
  br i1 %450, label %451, label %538

451:                                              ; preds = %448
  %452 = load i32, ptr %39, align 4, !tbaa !9
  %453 = mul i32 %452, 1024
  %454 = load i32, ptr %41, align 4, !tbaa !9
  %455 = add i32 %453, %454
  %456 = load i32, ptr %28, align 4, !tbaa !9
  %457 = invoke noundef i32 @_Z16bsgs_secondcheckP3IntjjS0_(ptr noundef %19, i32 noundef %455, i32 noundef %456, ptr noundef %20)
          to label %458 unwind label %494

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

461:                                              ; preds = %458
  %462 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %20)
          to label %463 unwind label %494

463:                                              ; preds = %461
  store ptr %462, ptr %18, align 8, !tbaa !5
  %464 = load ptr, ptr %18, align 8, !tbaa !5
  %465 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.237, ptr noundef %464)
          to label %466 unwind label %494

466:                                              ; preds = %463
  call void @llvm.lifetime.start.p0(i64 120, ptr %42) #9
  %467 = 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) %467, ptr noundef %20)
          to label %468 unwind label %498

468:                                              ; preds = %466
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, 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
  %469 = load ptr, ptr @secp, align 8, !tbaa !5
  %470 = load ptr, ptr @OriginalPointsBSGScompressed, align 8, !tbaa !5
  %471 = load i32, ptr %28, align 4, !tbaa !9
  %472 = zext i32 %471 to i64
  %473 = getelementptr inbounds i8, ptr %470, i64 %472
  %474 = load i8, ptr %473, align 1, !tbaa !20, !range !22, !noundef !23
  %475 = trunc i8 %474 to i1
  %476 = invoke noundef ptr @_ZN9Secp256K115GetPublicKeyHexEbR5Point(ptr noundef nonnull align 8 dereferenceable(983240) %469, i1 noundef zeroext %475, ptr noundef nonnull align 8 dereferenceable(120) %13)
          to label %477 unwind label %494

477:                                              ; preds = %468
  store ptr %476, ptr %17, align 8, !tbaa !5
  %478 = load ptr, ptr %17, align 8, !tbaa !5
  %479 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.238, ptr noundef %478)
          to label %480 unwind label %494

480:                                              ; preds = %477
  %481 = call i32 @pthread_mutex_lock(ptr noundef @write_keys) #9
  %482 = invoke noalias ptr @fopen(ptr noundef @.str.229, ptr noundef @.str.239)
          to label %483 unwind label %494

483:                                              ; preds = %480
  store ptr %482, ptr %14, align 8, !tbaa !5
  %484 = load ptr, ptr %14, align 8, !tbaa !5
  %485 = icmp ne ptr %484, null
  br i1 %485, label %486, label %502

486:                                              ; preds = %483
  %487 = load ptr, ptr %14, align 8, !tbaa !5
  %488 = load ptr, ptr %18, align 8, !tbaa !5
  %489 = load ptr, ptr %17, align 8, !tbaa !5
  %490 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %487, ptr noundef @.str.240, ptr noundef %488, ptr noundef %489) #9
  %491 = load ptr, ptr %14, align 8, !tbaa !5
  %492 = invoke i32 @fclose(ptr noundef %491)
          to label %493 unwind label %494

493:                                              ; preds = %486
  br label %502

494:                                              ; preds = %533, %486, %480, %477, %468, %463, %461, %451, %440, %434
  %495 = landingpad { ptr, i32 }
          cleanup
  %496 = extractvalue { ptr, i32 } %495, 0
  store ptr %496, ptr %5, align 8
  %497 = extractvalue { ptr, i32 } %495, 1
  store i32 %497, ptr %6, align 4
  br label %542

498:                                              ; preds = %466
  %499 = landingpad { ptr, i32 }
          cleanup
  %500 = extractvalue { ptr, i32 } %499, 0
  store ptr %500, ptr %5, align 8
  %501 = extractvalue { ptr, i32 } %499, 1
  store i32 %501, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %42) #9
  br label %542

502:                                              ; preds = %493, %483
  %503 = load ptr, ptr %18, align 8, !tbaa !5
  call void @free(ptr noundef %503) #9
  %504 = load ptr, ptr %17, align 8, !tbaa !5
  call void @free(ptr noundef %504) #9
  %505 = call i32 @pthread_mutex_unlock(ptr noundef @write_keys) #9
  %506 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %507 = load i32, ptr %28, align 4, !tbaa !9
  %508 = zext i32 %507 to i64
  %509 = getelementptr inbounds i32, ptr %506, i64 %508
  store i32 1, ptr %509, align 4, !tbaa !9
  store i32 1, ptr %31, align 4, !tbaa !9
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %510

510:                                              ; preds = %527, %502
  %511 = load i32, ptr %29, align 4, !tbaa !9
  %512 = load i32, ptr @bsgs_point_number, align 4, !tbaa !9
  %513 = icmp ult i32 %511, %512
  br i1 %513, label %514, label %517

514:                                              ; preds = %510
  %515 = load i32, ptr %31, align 4, !tbaa !9
  %516 = icmp ne i32 %515, 0
  br label %517

517:                                              ; preds = %514, %510
  %518 = phi i1 [ false, %510 ], [ %516, %514 ]
  br i1 %518, label %519, label %530

519:                                              ; preds = %517
  %520 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %521 = load i32, ptr %29, align 4, !tbaa !9
  %522 = zext i32 %521 to i64
  %523 = getelementptr inbounds i32, ptr %520, i64 %522
  %524 = load i32, ptr %523, align 4, !tbaa !9
  %525 = load i32, ptr %31, align 4, !tbaa !9
  %526 = and i32 %525, %524
  store i32 %526, ptr %31, align 4, !tbaa !9
  br label %527

527:                                              ; preds = %519
  %528 = load i32, ptr %29, align 4, !tbaa !9
  %529 = add i32 %528, 1
  store i32 %529, ptr %29, align 4, !tbaa !9
  br label %510, !llvm.loop !24

530:                                              ; preds = %517
  %531 = load i32, ptr %31, align 4, !tbaa !9
  %532 = icmp ne i32 %531, 0
  br i1 %532, label %533, label %536

533:                                              ; preds = %530
  %534 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.241)
          to label %535 unwind label %494

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

536:                                              ; preds = %530
  br label %537

537:                                              ; preds = %536, %458
  br label %538

538:                                              ; preds = %537, %448
  br label %539

539:                                              ; preds = %538
  %540 = load i32, ptr %41, align 4, !tbaa !9
  %541 = add nsw i32 %540, 1
  store i32 %541, ptr %41, align 4, !tbaa !9
  br label %421, !llvm.loop !25

542:                                              ; preds = %498, %494
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #9
  br label %567

543:                                              ; preds = %433
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %10, i64 120, i1 false), !tbaa.struct !15
  %544 = getelementptr inbounds %class.Point, ptr %8, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %21, ptr noundef getelementptr inbounds (%class.Point, ptr @_2GSn, i32 0, i32 1), ptr noundef %544)
          to label %545 unwind label %311

545:                                              ; preds = %543
  %546 = load i32, ptr %40, align 4, !tbaa !9
  %547 = add nsw i32 %546, 1
  %548 = sext i32 %547 to i64
  %549 = getelementptr inbounds [513 x %class.Int], ptr %7, i64 0, i64 %548
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %23, ptr noundef %21, ptr noundef %549)
          to label %550 unwind label %311

550:                                              ; preds = %545
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef %23)
          to label %551 unwind label %311

551:                                              ; preds = %550
  %552 = getelementptr inbounds %class.Point, ptr %8, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %552)
          to label %553 unwind label %311

553:                                              ; preds = %551
  %554 = getelementptr inbounds %class.Point, ptr %8, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %554, ptr noundef %24)
          to label %555 unwind label %311

555:                                              ; preds = %553
  %556 = getelementptr inbounds %class.Point, ptr %8, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %556, ptr noundef @_2GSn)
          to label %557 unwind label %311

557:                                              ; preds = %555
  %558 = getelementptr inbounds %class.Point, ptr %8, i32 0, i32 1
  %559 = getelementptr inbounds %class.Point, ptr %8, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %558, ptr noundef @_2GSn, ptr noundef %559)
          to label %560 unwind label %311

560:                                              ; preds = %557
  %561 = getelementptr inbounds %class.Point, ptr %8, i32 0, i32 1
  invoke void @_ZN3Int8ModMulK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %561, ptr noundef %23)
          to label %562 unwind label %311

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

564:                                              ; preds = %562
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %8, i64 120, i1 false), !tbaa.struct !15
  %565 = load i32, ptr %39, align 4, !tbaa !9
  %566 = add i32 %565, 1
  store i32 %566, ptr %39, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #9
  br label %268, !llvm.loop !26

567:                                              ; preds = %542, %311
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #9
  br label %588

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

569:                                              ; preds = %568, %255
  br label %570

570:                                              ; preds = %569
  %571 = load i32, ptr %28, align 4, !tbaa !9
  %572 = add i32 %571, 1
  store i32 %572, ptr %28, align 4, !tbaa !9
  br label %251, !llvm.loop !27

573:                                              ; preds = %251
  %574 = load ptr, ptr @steps, align 8, !tbaa !5
  %575 = load i32, ptr %32, align 4, !tbaa !9
  %576 = zext i32 %575 to i64
  %577 = getelementptr inbounds i64, ptr %574, i64 %576
  %578 = load i64, ptr %577, align 8, !tbaa !13
  %579 = add i64 %578, 2
  store i64 %579, ptr %577, align 8, !tbaa !13
  br label %580

580:                                              ; preds = %573
  br i1 true, label %179, label %581, !llvm.loop !28

581:                                              ; preds = %580, %212
  %582 = load ptr, ptr @ends, align 8, !tbaa !5
  %583 = load i32, ptr %32, align 4, !tbaa !9
  %584 = zext i32 %583 to i64
  %585 = getelementptr inbounds i32, ptr %582, i64 %584
  store i32 1, ptr %585, align 4, !tbaa !9
  store ptr null, ptr %2, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %13) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %13) #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 @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %10) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %10) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %9) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %9) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %8) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 20520, ptr %7) #9
  %586 = getelementptr inbounds [1024 x %class.Point], ptr %4, i32 0, i32 0
  %587 = getelementptr inbounds %class.Point, ptr %586, i64 1024
  br label %607

588:                                              ; preds = %567, %307, %303, %299, %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  br label %589

589:                                              ; preds = %588, %167, %163
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  br label %590

590:                                              ; preds = %589, %159
  call void @llvm.lifetime.end.p0(i64 40, ptr %26) #9
  br label %591

591:                                              ; preds = %590, %155
  call void @llvm.lifetime.end.p0(i64 40, ptr %25) #9
  br label %592

592:                                              ; preds = %591, %151
  call void @llvm.lifetime.end.p0(i64 40, ptr %24) #9
  br label %593

593:                                              ; preds = %592, %147
  call void @llvm.lifetime.end.p0(i64 40, ptr %23) #9
  br label %594

594:                                              ; preds = %593, %143
  call void @llvm.lifetime.end.p0(i64 40, ptr %22) #9
  br label %595

595:                                              ; preds = %594, %139
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #9
  br label %596

596:                                              ; preds = %595, %135
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #9
  br label %597

597:                                              ; preds = %596, %131
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %13) #9
  br label %598

598:                                              ; preds = %597, %127
  call void @llvm.lifetime.end.p0(i64 120, ptr %13) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %12) #9
  br label %599

599:                                              ; preds = %598, %123
  call void @llvm.lifetime.end.p0(i64 120, ptr %12) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %11) #9
  br label %600

600:                                              ; preds = %599, %119
  call void @llvm.lifetime.end.p0(i64 120, ptr %11) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %10) #9
  br label %601

601:                                              ; preds = %600, %115
  call void @llvm.lifetime.end.p0(i64 120, ptr %10) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %9) #9
  br label %602

602:                                              ; preds = %601, %111
  call void @llvm.lifetime.end.p0(i64 120, ptr %9) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %8) #9
  br label %603

603:                                              ; preds = %602, %107
  call void @llvm.lifetime.end.p0(i64 120, ptr %8) #9
  br label %604

604:                                              ; preds = %603, %103
  call void @llvm.lifetime.end.p0(i64 20520, ptr %7) #9
  %605 = getelementptr inbounds [1024 x %class.Point], ptr %4, i32 0, i32 0
  %606 = getelementptr inbounds %class.Point, ptr %605, i64 1024
  br label %613

607:                                              ; preds = %607, %581
  %608 = phi ptr [ %587, %581 ], [ %609, %607 ]
  %609 = getelementptr inbounds %class.Point, ptr %608, i64 -1
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %609) #9
  %610 = icmp eq ptr %609, %586
  br i1 %610, label %611, label %607

611:                                              ; preds = %607
  call void @llvm.lifetime.end.p0(i64 122880, ptr %4) #9
  %612 = load ptr, ptr %2, align 8
  ret ptr %612

613:                                              ; preds = %613, %604
  %614 = phi ptr [ %606, %604 ], [ %615, %613 ]
  %615 = getelementptr inbounds %class.Point, ptr %614, i64 -1
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %615) #9
  %616 = icmp eq ptr %615, %605
  br i1 %616, label %617, label %613

617:                                              ; preds = %613
  br label %618

618:                                              ; preds = %617, %102
  call void @llvm.lifetime.end.p0(i64 122880, ptr %4) #9
  br label %619

619:                                              ; preds = %618
  %620 = load ptr, ptr %5, align 8
  %621 = load i32, ptr %6, align 4
  %622 = insertvalue { ptr, i32 } poison, ptr %620, 0
  %623 = insertvalue { ptr, i32 } %622, i32 %621, 1
  resume { ptr, i32 } %623
}

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

; Function Attrs: nounwind
declare i32 @rand() #1

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nounwind }
attributes #10 = { builtin allocsize(0) }
attributes #11 = { builtin nounwind }
attributes #12 = { noreturn nounwind }

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

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


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

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

@GSn = external dso_local global %"class.std::vector", align 8
@_2GSn = external dso_local global %class.Point, align 8
@THREADOUTPUT = external dso_local local_unnamed_addr global i32, align 4
@write_keys = external dso_local global %union.pthread_mutex_t, align 8
@bsgs_thread = external dso_local global %union.pthread_mutex_t, align 8
@steps = external dso_local local_unnamed_addr global ptr, align 8
@ends = external dso_local local_unnamed_addr global ptr, align 8
@FLAGQUIET = external dso_local local_unnamed_addr global i32, align 4
@FLAGMATRIX = external dso_local local_unnamed_addr global i32, align 4
@bsgs_found = external dso_local local_unnamed_addr global ptr, align 8
@OriginalPointsBSGS = external dso_local global %"class.std::vector", align 8
@OriginalPointsBSGScompressed = external dso_local local_unnamed_addr global ptr, align 8
@bloom_bP = external dso_local local_unnamed_addr global ptr, align 8
@bsgs_aux = external dso_local local_unnamed_addr global i64, align 8
@bsgs_point_number = external dso_local local_unnamed_addr global i32, align 4
@BSGS_CURRENT = external dso_local global %class.Int, align 8
@BSGS_N_double = external dso_local global %class.Int, align 8
@BSGS_M = external dso_local global %class.Int, align 8
@BSGS_M_double = external dso_local global %class.Int, align 8
@n_range_end = external dso_local global %class.Int, align 8
@secp = external dso_local local_unnamed_addr global ptr, align 8
@stdout = external local_unnamed_addr global ptr, align 8
@.str.229 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.235 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.236 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.237 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.238 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.239 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.240 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.241 = external hidden unnamed_addr constant [23 x i8], align 1

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

declare void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind writable sret(%class.Point) align 8, ptr noundef nonnull align 8 dereferenceable(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 @_Z25thread_process_bsgs_dancePv(ptr nocapture noundef %0) local_unnamed_addr #10 personality ptr @__gxx_personality_v0 {
  %2 = alloca [1024 x %class.Point], align 16
  %3 = alloca [513 x %class.Int], align 16
  %4 = alloca %class.Point, 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 %class.Point, align 8
  %10 = alloca [32 x i8], 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.Int, align 8
  %18 = alloca %class.Int, 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 122880, ptr nonnull %2) #11
  %23 = getelementptr inbounds i8, ptr %2, i64 122880
  br label %24

24:                                               ; preds = %25, %1
  %.idx = phi i64 [ 0, %1 ], [ %.add, %25 ]
  %.ptr = getelementptr inbounds i8, ptr %2, i64 %.idx
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %.ptr)
          to label %25 unwind label %56

25:                                               ; preds = %24
  %.add = add nuw nsw i64 %.idx, 120
  %26 = icmp eq i64 %.add, 122880
  br i1 %26, label %27, label %24

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

28:                                               ; preds = %29, %27
  %.idx112 = phi i64 [ 0, %27 ], [ %.add113, %29 ]
  %.ptr114 = getelementptr inbounds i8, ptr %3, i64 %.idx112
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %.ptr114)
          to label %29 unwind label %62

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

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

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

33:                                               ; preds = %32
  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 %34 unwind label %68

34:                                               ; preds = %33
  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 %35 unwind label %70

35:                                               ; preds = %34
  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 %36 unwind label %72

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

37:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #11
  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 %76

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

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

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

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

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

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

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

45:                                               ; preds = %44
  %46 = invoke noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #12
          to label %47 unwind label %92

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

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

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

56:                                               ; preds = %24
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = icmp eq i64 %.idx, 0
  br i1 %58, label %.loopexit, label %.preheader152

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

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

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

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

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

70:                                               ; preds = %34
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %312

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

74:                                               ; preds = %36
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %310

76:                                               ; preds = %37
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %309

78:                                               ; preds = %38
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %308

80:                                               ; preds = %39
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %307

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

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

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

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

90:                                               ; preds = %44
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

92:                                               ; preds = %45
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

94:                                               ; preds = %47
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %46, i64 noundef 24) #13
  br label %.loopexit.split-lp

.loopexit148:                                     ; preds = %.invoke, %108, %111, %112, %114, %117, %118, %119, %126, %135, %143, %144, %145, %148
  %lpad.loopexit150 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp149:                            ; preds = %48, %49, %96, %97
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

96:                                               ; preds = %49
  invoke void @_ZN3Int4MultEm(ptr noundef nonnull align 8 dereferenceable(40) %18, i64 noundef 512)
          to label %97 unwind label %.loopexit.split-lp149

97:                                               ; preds = %96
  invoke void @_ZN3Int3AddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %18, ptr noundef nonnull @BSGS_M)
          to label %.preheader147 unwind label %.loopexit.split-lp149

.preheader147:                                    ; preds = %97
  %.not183 = icmp eq i32 %spec.select.fr, 0
  %98 = getelementptr inbounds i8, ptr %2, i64 61440
  %99 = getelementptr inbounds i8, ptr %4, i64 40
  %100 = getelementptr inbounds i8, ptr %5, i64 40
  %101 = zext i32 %50 to i64
  %wide.trip.count = zext i32 %spec.select.fr to i64
  %102 = getelementptr inbounds i8, ptr %3, i64 20440
  %103 = getelementptr inbounds i8, ptr %3, i64 20480
  br label %104

104:                                              ; preds = %.preheader147, %._crit_edge170
  %105 = call i32 @rand() #11
  %106 = srem i32 %105, 3
  %107 = call i32 @pthread_mutex_lock(ptr noundef nonnull @bsgs_thread) #11
  switch i32 %106, label %.critedge142 [
    i32 0, label %108
    i32 1, label %114
    i32 2, label %119
  ]

108:                                              ; preds = %104
  %109 = invoke noundef zeroext i1 @_ZN3Int9IsGreaterEPS_(ptr noundef nonnull align 8 dereferenceable(40) @n_range_end, ptr noundef nonnull @BSGS_CURRENT)
          to label %110 unwind label %.loopexit148

110:                                              ; preds = %108
  br i1 %109, label %111, label %120

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

112:                                              ; preds = %111
  %113 = invoke noundef zeroext i1 @_ZN3Int7IsLowerEPS_(ptr noundef nonnull align 8 dereferenceable(40) @n_range_end, ptr noundef nonnull @BSGS_CURRENT)
          to label %.invoke unwind label %.loopexit148

.invoke:                                          ; preds = %112
  %BSGS_CURRENT.n_range_end = select i1 %113, ptr @BSGS_CURRENT, ptr @n_range_end
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull %BSGS_CURRENT.n_range_end)
          to label %.critedge142 unwind label %.loopexit148

114:                                              ; preds = %104
  %115 = invoke noundef zeroext i1 @_ZN3Int7IsLowerEPS_(ptr noundef nonnull align 8 dereferenceable(40) @BSGS_CURRENT, ptr noundef nonnull @n_range_end)
          to label %116 unwind label %.loopexit148

116:                                              ; preds = %114
  br i1 %115, label %117, label %120

117:                                              ; preds = %116
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull @BSGS_CURRENT)
          to label %118 unwind label %.loopexit148

118:                                              ; preds = %117
  invoke void @_ZN3Int3AddEPS_(ptr noundef nonnull align 8 dereferenceable(40) @BSGS_CURRENT, ptr noundef nonnull @BSGS_N_double)
          to label %.critedge142 unwind label %.loopexit148

119:                                              ; preds = %104
  invoke void @_ZN3Int4RandEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull @BSGS_CURRENT, ptr noundef nonnull @n_range_end)
          to label %.critedge142 unwind label %.loopexit148

120:                                              ; preds = %116, %110
  %121 = call i32 @pthread_mutex_unlock(ptr noundef nonnull @bsgs_thread) #11
  %122 = load ptr, ptr @ends, align 8, !tbaa !13
  %123 = getelementptr inbounds i32, ptr %122, i64 %101
  store i32 1, ptr %123, align 4, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %18) #11
  call void @llvm.lifetime.end.p0(i64 40, 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
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %9) #11
  call void @llvm.lifetime.end.p0(i64 120, 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 @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %4) #11
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %4) #11
  call void @llvm.lifetime.end.p0(i64 20520, ptr nonnull %3) #11
  br label %317

.critedge142:                                     ; preds = %.invoke, %118, %119, %104
  %124 = call i32 @pthread_mutex_unlock(ptr noundef nonnull @bsgs_thread) #11
  %125 = load i32, ptr @FLAGMATRIX, align 4, !tbaa !14
  %.not116 = icmp eq i32 %125, 0
  br i1 %.not116, label %132, label %126

126:                                              ; preds = %.critedge142
  %127 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %11)
          to label %128 unwind label %.loopexit148

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

132:                                              ; preds = %.critedge142
  %133 = load i32, ptr @FLAGQUIET, align 4, !tbaa !14
  %134 = icmp eq i32 %133, 0
  br i1 %134, label %135, label %141

135:                                              ; preds = %132
  %136 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %11)
          to label %137 unwind label %.loopexit148

137:                                              ; preds = %135
  %138 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.236, ptr noundef %136)
  %139 = load ptr, ptr @stdout, align 8, !tbaa !13
  %140 = call i32 @fflush(ptr noundef %139)
  call void @free(ptr noundef %136) #11
  store i32 1, ptr @THREADOUTPUT, align 4, !tbaa !14
  br label %141

141:                                              ; preds = %132, %137, %128
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %19) #11
  %142 = load ptr, ptr @secp, align 8, !tbaa !13
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %19, ptr noundef nonnull align 8 dereferenceable(983240) %142, ptr noundef nonnull %11)
          to label %143 unwind label %288

143:                                              ; preds = %141
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %7, 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) %17, ptr noundef nonnull %11)
          to label %144 unwind label %.loopexit148

144:                                              ; preds = %143
  invoke void @_ZN3Int3NegEv(ptr noundef nonnull align 8 dereferenceable(40) %17)
          to label %145 unwind label %.loopexit148

145:                                              ; preds = %144
  %146 = load ptr, ptr @secp, align 8, !tbaa !13
  %147 = getelementptr inbounds i8, ptr %146, i64 160
  invoke void @_ZN3Int3AddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef nonnull %147)
          to label %148 unwind label %.loopexit148

148:                                              ; preds = %145
  invoke void @_ZN3Int3SubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef nonnull %18)
          to label %149 unwind label %.loopexit148

149:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %20) #11
  %150 = load ptr, ptr @secp, align 8, !tbaa !13
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %20, ptr noundef nonnull align 8 dereferenceable(983240) %150, ptr noundef nonnull %17)
          to label %151 unwind label %290

151:                                              ; preds = %149
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %8, 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
  %152 = load i32, ptr @bsgs_point_number, align 4, !tbaa !14
  %.not184 = icmp eq i32 %152, 0
  br i1 %.not184, label %._crit_edge170, label %.lr.ph169

.lr.ph169:                                        ; preds = %151
  br i1 %.not183, label %.lr.ph169.split.preheader, label %.lr.ph169.split.us

.lr.ph169.split.preheader:                        ; preds = %.lr.ph169
  %.pre217 = load ptr, ptr @bsgs_found, align 8, !tbaa !13
  br label %.lr.ph169.split

.lr.ph169.split.us:                               ; preds = %.lr.ph169, %.critedge.us
  %153 = phi i32 [ %167, %.critedge.us ], [ %152, %.lr.ph169 ]
  %indvars.iv210 = phi i64 [ %indvars.iv.next211, %.critedge.us ], [ 0, %.lr.ph169 ]
  %154 = load ptr, ptr @bsgs_found, align 8, !tbaa !13
  %155 = getelementptr inbounds i32, ptr %154, i64 %indvars.iv210
  %156 = load i32, ptr %155, align 4, !tbaa !14
  %157 = icmp eq i32 %156, 0
  br i1 %157, label %158, label %.critedge.us

158:                                              ; preds = %.lr.ph169.split.us
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %21) #11
  %159 = load ptr, ptr @secp, align 8, !tbaa !13
  %160 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @OriginalPointsBSGS, i64 noundef %indvars.iv210) #11
  invoke void @_ZN9Secp256K19AddDirectER5PointS1_(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %21, ptr noundef nonnull align 8 dereferenceable(983240) %159, ptr noundef nonnull align 8 dereferenceable(120) %160, ptr noundef nonnull align 8 dereferenceable(120) %8)
          to label %.lr.ph164.us unwind label %.split.us

.lr.ph164.us:                                     ; preds = %158
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %6, 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
  %161 = trunc nuw i64 %indvars.iv210 to i32
  br label %162

162:                                              ; preds = %.lr.ph164.us, %201
  %indvars.iv206 = phi i64 [ 0, %.lr.ph164.us ], [ %indvars.iv.next207, %201 ]
  %163 = load ptr, ptr @bsgs_found, align 8, !tbaa !13
  %164 = getelementptr inbounds i32, ptr %163, i64 %indvars.iv210
  %165 = load i32, ptr %164, align 4, !tbaa !14
  %166 = icmp eq i32 %165, 0
  br i1 %166, label %.preheader.us, label %.critedge.us.loopexit

.critedge.us.loopexit:                            ; preds = %201, %162
  %.pre = load i32, ptr @bsgs_point_number, align 4, !tbaa !14
  br label %.critedge.us

.critedge.us:                                     ; preds = %.critedge.us.loopexit, %.lr.ph169.split.us
  %167 = phi i32 [ %.pre, %.critedge.us.loopexit ], [ %153, %.lr.ph169.split.us ]
  %indvars.iv.next211 = add nuw nsw i64 %indvars.iv210, 1
  %168 = zext i32 %167 to i64
  %169 = icmp ult i64 %indvars.iv.next211, %168
  br i1 %169, label %.lr.ph169.split.us, label %._crit_edge170, !llvm.loop !17

170:                                              ; preds = %276
  %171 = 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) %102, ptr noundef nonnull %171, ptr noundef nonnull %6)
          to label %172 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

172:                                              ; preds = %170
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %103, ptr noundef nonnull @_2GSn, ptr noundef nonnull %6)
          to label %173 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

173:                                              ; preds = %172
  invoke void @_ZN8IntGroup6ModInvEv(ptr noundef nonnull align 8 dereferenceable(20) %46)
          to label %174 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

174:                                              ; preds = %173
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(120) %98, ptr noundef nonnull align 8 dereferenceable(120) %6, i64 120, i1 false), !tbaa.struct !15
  br label %248

175:                                              ; preds = %269
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %5, ptr noundef nonnull align 8 dereferenceable(120) %6, i64 120, i1 false), !tbaa.struct !15
  %176 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef 511) #11
  %177 = getelementptr inbounds i8, ptr %176, i64 40
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %14, ptr noundef nonnull %177)
          to label %178 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

178:                                              ; preds = %175
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %14)
          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) %14, ptr noundef nonnull %100)
          to label %180 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

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

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

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

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

184:                                              ; preds = %183
  %185 = 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) %5, ptr noundef nonnull %185)
          to label %186 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

186:                                              ; preds = %184
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(120) %2, ptr noundef nonnull align 8 dereferenceable(120) %5, i64 120, i1 false), !tbaa.struct !15
  %187 = shl i64 %indvars.iv206, 10
  br label %188

188:                                              ; preds = %247, %186
  %indvars.iv202 = phi i64 [ %indvars.iv.next203, %247 ], [ 0, %186 ]
  %189 = load ptr, ptr @bsgs_found, align 8, !tbaa !13
  %190 = getelementptr inbounds i32, ptr %189, i64 %indvars.iv210
  %191 = load i32, ptr %190, align 4, !tbaa !14
  %192 = icmp eq i32 %191, 0
  br i1 %192, label %202, label %.critedge2.us

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

193:                                              ; preds = %.critedge2.us
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef nonnull %13, ptr noundef nonnull %103)
          to label %194 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

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

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

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

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

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

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

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

201:                                              ; preds = %200
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %6, ptr noundef nonnull align 8 dereferenceable(120) %4, i64 120, i1 false), !tbaa.struct !15
  %indvars.iv.next207 = add nuw nsw i64 %indvars.iv206, 1
  %exitcond209.not = icmp eq i64 %indvars.iv.next207, %wide.trip.count
  br i1 %exitcond209.not, label %.critedge.us.loopexit, label %162, !llvm.loop !19

202:                                              ; preds = %188
  %203 = getelementptr inbounds [1024 x %class.Point], ptr %2, i64 0, i64 %indvars.iv202
  invoke void @_ZN3Int10Get32BytesEPh(ptr noundef nonnull align 8 dereferenceable(40) %203, ptr noundef nonnull %10)
          to label %204 unwind label %.split173.us

204:                                              ; preds = %202
  %205 = load ptr, ptr @bloom_bP, align 8, !tbaa !13
  %206 = load i8, ptr %10, align 16, !tbaa !16
  %207 = zext i8 %206 to i64
  %208 = getelementptr inbounds %struct.bloom, ptr %205, i64 %207
  %209 = invoke i32 @bloom_check(ptr noundef %208, ptr noundef nonnull %10, i32 noundef 32)
          to label %210 unwind label %.split173.us

210:                                              ; preds = %204
  %.not117.us = icmp eq i32 %209, 0
  br i1 %.not117.us, label %247, label %211

211:                                              ; preds = %210
  %212 = add i64 %indvars.iv202, %187
  %213 = trunc i64 %212 to i32
  %214 = invoke noundef i32 @_Z16bsgs_secondcheckP3IntjjS0_(ptr noundef nonnull %11, i32 noundef %213, i32 noundef %161, ptr noundef nonnull %12)
          to label %215 unwind label %.split173.us

215:                                              ; preds = %211
  %.not118.us = icmp eq i32 %214, 0
  br i1 %.not118.us, label %247, label %216

216:                                              ; preds = %215
  %217 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %12)
          to label %218 unwind label %.split173.us

218:                                              ; preds = %216
  %219 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.237, ptr noundef %217)
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %22) #11
  %220 = load ptr, ptr @secp, align 8, !tbaa !13
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %22, ptr noundef nonnull align 8 dereferenceable(983240) %220, ptr noundef nonnull %12)
          to label %221 unwind label %.split176.us

221:                                              ; preds = %218
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %9, 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
  %222 = load ptr, ptr @secp, align 8, !tbaa !13
  %223 = load ptr, ptr @OriginalPointsBSGScompressed, align 8, !tbaa !13
  %224 = getelementptr inbounds i8, ptr %223, i64 %indvars.iv210
  %225 = load i8, ptr %224, align 1, !tbaa !20, !range !22, !noundef !23
  %226 = trunc nuw i8 %225 to i1
  %227 = invoke noundef ptr @_ZN9Secp256K115GetPublicKeyHexEbR5Point(ptr noundef nonnull align 8 dereferenceable(983240) %222, i1 noundef zeroext %226, ptr noundef nonnull align 8 dereferenceable(120) %9)
          to label %228 unwind label %.split173.us

228:                                              ; preds = %221
  %229 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.238, ptr noundef %227)
  %230 = call i32 @pthread_mutex_lock(ptr noundef nonnull @write_keys) #11
  %231 = call noalias ptr @fopen(ptr noundef nonnull @.str.229, ptr noundef nonnull @.str.239)
  %.not120.us = icmp eq ptr %231, null
  br i1 %.not120.us, label %235, label %232

232:                                              ; preds = %228
  %233 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %231, ptr noundef nonnull @.str.240, ptr noundef %217, ptr noundef %227) #11
  %234 = call i32 @fclose(ptr noundef nonnull %231)
  br label %235

235:                                              ; preds = %232, %228
  call void @free(ptr noundef %217) #11
  call void @free(ptr noundef %227) #11
  %236 = call i32 @pthread_mutex_unlock(ptr noundef nonnull @write_keys) #11
  %237 = load ptr, ptr @bsgs_found, align 8, !tbaa !13
  %238 = getelementptr inbounds i32, ptr %237, i64 %indvars.iv210
  store i32 1, ptr %238, align 4, !tbaa !14
  %239 = load i32, ptr @bsgs_point_number, align 4, !tbaa !14
  %.not185 = icmp eq i32 %239, 0
  br i1 %.not185, label %.split179.us, label %.lr.ph.us.preheader

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

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %.lr.ph.us
  %indvars.iv199 = phi i64 [ 0, %.lr.ph.us.preheader ], [ %indvars.iv.next200, %.lr.ph.us ]
  %241 = getelementptr inbounds i32, ptr %237, i64 %indvars.iv199
  %242 = load i32, ptr %241, align 4, !tbaa !14
  %243 = and i32 %242, 1
  %indvars.iv.next200 = add nuw nsw i64 %indvars.iv199, 1
  %244 = icmp ult i64 %indvars.iv.next200, %240
  %245 = icmp ne i32 %243, 0
  %246 = select i1 %244, i1 %245, i1 false
  br i1 %246, label %.lr.ph.us, label %._crit_edge.us, !llvm.loop !24

247:                                              ; preds = %._crit_edge.us, %215, %210
  %indvars.iv.next203 = add nuw nsw i64 %indvars.iv202, 1
  %exitcond205.not = icmp eq i64 %indvars.iv.next203, 1024
  br i1 %exitcond205.not, label %.critedge2.us, label %188, !llvm.loop !25

248:                                              ; preds = %269, %174
  %indvars.iv195 = phi i64 [ %indvars.iv.next196, %269 ], [ 0, %174 ]
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %4, ptr noundef nonnull align 8 dereferenceable(120) %6, i64 120, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %5, ptr noundef nonnull align 8 dereferenceable(120) %6, i64 120, i1 false), !tbaa.struct !15
  %249 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv195) #11
  %250 = getelementptr inbounds i8, ptr %249, i64 40
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %13, ptr noundef nonnull %250, ptr noundef nonnull %99)
          to label %251 unwind label %.loopexit143.split.us

251:                                              ; preds = %248
  %252 = getelementptr inbounds [513 x %class.Int], ptr %3, i64 0, i64 %indvars.iv195
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef nonnull %13, ptr noundef nonnull %252)
          to label %253 unwind label %.loopexit143.split.us

253:                                              ; preds = %251
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef nonnull %15)
          to label %254 unwind label %.loopexit143.split.us

254:                                              ; preds = %253
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %255 unwind label %.loopexit143.split.us

255:                                              ; preds = %254
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull %16)
          to label %256 unwind label %.loopexit143.split.us

256:                                              ; preds = %255
  %257 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv195) #11
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull %257)
          to label %258 unwind label %.loopexit143.split.us

258:                                              ; preds = %256
  %259 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv195) #11
  %260 = getelementptr inbounds i8, ptr %259, i64 40
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %14, ptr noundef nonnull %260)
          to label %261 unwind label %.loopexit143.split.us

261:                                              ; preds = %258
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %14)
          to label %262 unwind label %.loopexit143.split.us

262:                                              ; preds = %261
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %14, ptr noundef nonnull %100)
          to label %263 unwind label %.loopexit143.split.us

263:                                              ; preds = %262
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef nonnull %14, ptr noundef nonnull %252)
          to label %264 unwind label %.loopexit143.split.us

264:                                              ; preds = %263
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef nonnull %15)
          to label %265 unwind label %.loopexit143.split.us

265:                                              ; preds = %264
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %266 unwind label %.loopexit143.split.us

266:                                              ; preds = %265
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull %16)
          to label %267 unwind label %.loopexit143.split.us

267:                                              ; preds = %266
  %268 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv195) #11
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull %268)
          to label %269 unwind label %.loopexit143.split.us

269:                                              ; preds = %267
  %indvars.iv.next196 = add nuw nsw i64 %indvars.iv195, 1
  %270 = add nuw nsw i64 %indvars.iv195, 513
  %271 = getelementptr inbounds [1024 x %class.Point], ptr %2, i64 0, i64 %270
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %271, ptr noundef nonnull align 8 dereferenceable(120) %4, i64 120, i1 false), !tbaa.struct !15
  %272 = sub nuw nsw i64 511, %indvars.iv195
  %273 = getelementptr inbounds [1024 x %class.Point], ptr %2, i64 0, i64 %272
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %273, ptr noundef nonnull align 8 dereferenceable(120) %5, i64 120, i1 false), !tbaa.struct !15
  %exitcond198.not = icmp eq i64 %indvars.iv.next196, 511
  br i1 %exitcond198.not, label %175, label %248, !llvm.loop !26

.preheader.us:                                    ; preds = %162, %276
  %indvars.iv = phi i64 [ %indvars.iv.next, %276 ], [ 0, %162 ]
  %274 = getelementptr inbounds [513 x %class.Int], ptr %3, i64 0, i64 %indvars.iv
  %275 = 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) %274, ptr noundef nonnull %275, ptr noundef nonnull %6)
          to label %276 unwind label %.loopexit.split-lp.loopexit.split.us

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

._crit_edge.us:                                   ; preds = %.lr.ph.us
  br i1 %245, label %.split179.us, label %247

.split.us:                                        ; preds = %158
  %277 = landingpad { ptr, i32 }
          cleanup
  br label %293

.loopexit.split-lp.loopexit.split-lp.split.us:    ; preds = %200, %199, %198, %197, %196, %195, %194, %193, %.critedge2.us, %184, %183, %182, %181, %180, %179, %178, %175, %173, %172, %170
  %lpad.loopexit.split-lp145.us = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.split173.us:                                     ; preds = %221, %216, %211, %204, %202
  %278 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

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

.loopexit143.split.us:                            ; preds = %267, %266, %265, %264, %263, %262, %261, %258, %256, %255, %254, %253, %251, %248
  %lpad.loopexit.us = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

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

.lr.ph169.split:                                  ; preds = %.lr.ph169.split.preheader, %.critedge
  %280 = phi i32 [ %152, %.lr.ph169.split.preheader ], [ %295, %.critedge ]
  %281 = phi ptr [ %.pre217, %.lr.ph169.split.preheader ], [ %296, %.critedge ]
  %indvars.iv213 = phi i64 [ 0, %.lr.ph169.split.preheader ], [ %indvars.iv.next214, %.critedge ]
  %282 = getelementptr inbounds i32, ptr %281, i64 %indvars.iv213
  %283 = load i32, ptr %282, align 4, !tbaa !14
  %284 = icmp eq i32 %283, 0
  br i1 %284, label %285, label %.critedge

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

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

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

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

.split:                                           ; preds = %285
  %292 = landingpad { ptr, i32 }
          cleanup
  br label %293

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

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

.critedge:                                        ; preds = %.critedge.loopexit, %.lr.ph169.split
  %295 = phi i32 [ %.pre218, %.critedge.loopexit ], [ %280, %.lr.ph169.split ]
  %296 = phi ptr [ %.pre216, %.critedge.loopexit ], [ %281, %.lr.ph169.split ]
  %indvars.iv.next214 = add nuw nsw i64 %indvars.iv213, 1
  %297 = zext i32 %295 to i64
  %298 = icmp ult i64 %indvars.iv.next214, %297
  br i1 %298, label %.lr.ph169.split, label %._crit_edge170, !llvm.loop !17

._crit_edge170:                                   ; preds = %.critedge.us, %.critedge, %151
  %299 = load ptr, ptr @steps, align 8, !tbaa !13
  %300 = getelementptr inbounds i64, ptr %299, i64 %101
  %301 = load i64, ptr %300, align 8, !tbaa !11
  %302 = add i64 %301, 2
  store i64 %302, ptr %300, align 8, !tbaa !11
  br label %104, !llvm.loop !28

.loopexit.split-lp:                               ; preds = %.loopexit143.split.us, %.loopexit.split-lp.loopexit.split-lp.split.us, %.loopexit.split-lp.loopexit.split.us, %.loopexit148, %.loopexit.split-lp149, %92, %94, %.split176.us, %.split173.us, %293, %290, %288, %90
  %.pn121.pn.pn.pn = phi { ptr, i32 } [ %91, %90 ], [ %95, %94 ], [ %93, %92 ], [ %.us-phi, %293 ], [ %291, %290 ], [ %289, %288 ], [ %278, %.split173.us ], [ %279, %.split176.us ], [ %lpad.loopexit150, %.loopexit148 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp149 ], [ %lpad.loopexit.us, %.loopexit143.split.us ], [ %lpad.loopexit144.us, %.loopexit.split-lp.loopexit.split.us ], [ %lpad.loopexit.split-lp145.us, %.loopexit.split-lp.loopexit.split-lp.split.us ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %18) #11
  br label %303

303:                                              ; preds = %.loopexit.split-lp, %88
  %.pn121.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn121.pn.pn.pn, %.loopexit.split-lp ], [ %89, %88 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %17) #11
  br label %304

304:                                              ; preds = %303, %86
  %.pn121.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn121.pn.pn.pn.pn, %303 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #11
  br label %305

305:                                              ; preds = %304, %84
  %.pn121.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn121.pn.pn.pn.pn.pn, %304 ], [ %85, %84 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #11
  br label %306

306:                                              ; preds = %305, %82
  %.pn121.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn121.pn.pn.pn.pn.pn.pn, %305 ], [ %83, %82 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #11
  br label %307

307:                                              ; preds = %306, %80
  %.pn121.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn121.pn.pn.pn.pn.pn.pn.pn, %306 ], [ %81, %80 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #11
  br label %308

308:                                              ; preds = %307, %78
  %.pn121.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn121.pn.pn.pn.pn.pn.pn.pn.pn, %307 ], [ %79, %78 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #11
  br label %309

309:                                              ; preds = %308, %76
  %.pn121.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn121.pn.pn.pn.pn.pn.pn.pn.pn.pn, %308 ], [ %77, %76 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %9) #11
  br label %310

310:                                              ; preds = %309, %74
  %.pn121.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn121.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %309 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %9) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %8) #11
  br label %311

311:                                              ; preds = %310, %72
  %.pn121.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn121.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %310 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %8) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %7) #11
  br label %312

312:                                              ; preds = %311, %70
  %.pn121.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn121.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %311 ], [ %71, %70 ]
  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 %313

313:                                              ; preds = %312, %68
  %.pn121.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn121.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %312 ], [ %69, %68 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %6) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %5) #11
  br label %314

314:                                              ; preds = %313, %66
  %.pn121.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn121.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %313 ], [ %67, %66 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %5) #11
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %4) #11
  br label %315

315:                                              ; preds = %314, %64
  %.pn121.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn121.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %314 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %4) #11
  br label %316

316:                                              ; preds = %315, %62
  %.pn121.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn121.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %315 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 20520, ptr nonnull %3) #11
  br label %322

317:                                              ; preds = %317, %120
  %318 = phi ptr [ %23, %120 ], [ %319, %317 ]
  %319 = getelementptr inbounds i8, ptr %318, i64 -120
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %319) #11
  %320 = icmp eq ptr %319, %2
  br i1 %320, label %321, label %317

321:                                              ; preds = %317
  call void @llvm.lifetime.end.p0(i64 122880, ptr nonnull %2) #11
  ret ptr null

322:                                              ; preds = %322, %316
  %323 = phi ptr [ %23, %316 ], [ %324, %322 ]
  %324 = getelementptr inbounds i8, ptr %323, i64 -120
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %324) #11
  %325 = icmp eq ptr %324, %2
  br i1 %325, label %.loopexit, label %322

.loopexit:                                        ; preds = %.preheader152, %322, %56
  %.pn121.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %57, %56 ], [ %.pn121.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %322 ], [ %57, %.preheader152 ]
  call void @llvm.lifetime.end.p0(i64 122880, ptr nonnull %2) #11
  resume { ptr, i32 } %.pn121.pn.pn.pn.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

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #1

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 = !{!10, !10, i64 0}
!14 = !{!7, !7, 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