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

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl" }
%"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl" = type { %"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Point, std::allocator<Point>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Point = type { %class.Int, %class.Int, %class.Int }
%class.Int = type { %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_M = external dso_local global %class.Int, align 8
@BSGS_M_double = external dso_local global %class.Int, align 8
@n_range_start = external dso_local global %class.Int, align 8
@n_range_end = external dso_local global %class.Int, align 8
@secp = external dso_local global ptr, align 8
@stdout = external global ptr, align 8
@.str.229 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.238 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.239 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.240 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.241 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.242 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.243 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.244 = external hidden unnamed_addr constant [37 x i8], align 1

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

declare i32 @fclose(ptr noundef) #0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

156:                                              ; preds = %201, %198, %197, %196, %188, %185, %183, %175, %172, %170, %164, %162, %161, %160, %72
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %14, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %15, align 4
  br label %542

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

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

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

163:                                              ; preds = %162
  br label %164

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

166:                                              ; preds = %164
  %167 = call i32 @pthread_mutex_unlock(ptr noundef @bsgs_thread) #9
  %168 = load i32, ptr @FLAGMATRIX, align 4, !tbaa !9
  %169 = icmp ne i32 %168, 0
  br i1 %169, label %170, label %180

170:                                              ; preds = %166
  %171 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %9)
          to label %172 unwind label %156

172:                                              ; preds = %170
  store ptr %171, ptr %7, align 8, !tbaa !5
  %173 = load ptr, ptr %7, align 8, !tbaa !5
  %174 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.242, ptr noundef %173)
          to label %175 unwind label %156

175:                                              ; preds = %172
  %176 = load ptr, ptr @stdout, align 8, !tbaa !5
  %177 = invoke i32 @fflush(ptr noundef %176)
          to label %178 unwind label %156

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

180:                                              ; preds = %166
  %181 = load i32, ptr @FLAGQUIET, align 4, !tbaa !9
  %182 = icmp eq i32 %181, 0
  br i1 %182, label %183, label %193

183:                                              ; preds = %180
  %184 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %9)
          to label %185 unwind label %156

185:                                              ; preds = %183
  store ptr %184, ptr %7, align 8, !tbaa !5
  %186 = load ptr, ptr %7, align 8, !tbaa !5
  %187 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.243, ptr noundef %186)
          to label %188 unwind label %156

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

191:                                              ; preds = %188
  %192 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %192) #9
  store i32 1, ptr @THREADOUTPUT, align 4, !tbaa !9
  br label %193

193:                                              ; preds = %191, %180
  br label %194

194:                                              ; preds = %193, %178
  call void @llvm.lifetime.start.p0(i64 120, ptr %36) #9
  %195 = 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) %195, ptr noundef %9)
          to label %196 unwind label %253

196:                                              ; preds = %194
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %36, i64 120, i1 false), !tbaa.struct !15
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %36) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %36) #9
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %32, ptr noundef %9)
          to label %197 unwind label %156

197:                                              ; preds = %196
  invoke void @_ZN3Int3NegEv(ptr noundef nonnull align 8 dereferenceable(40) %32)
          to label %198 unwind label %156

198:                                              ; preds = %197
  %199 = load ptr, ptr @secp, align 8, !tbaa !5
  %200 = getelementptr inbounds %class.Secp256K1, ptr %199, i32 0, i32 2
  invoke void @_ZN3Int3AddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %32, ptr noundef %200)
          to label %201 unwind label %156

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

202:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 120, ptr %37) #9
  %203 = 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) %203, ptr noundef %32)
          to label %204 unwind label %257

204:                                              ; preds = %202
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, 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 %18, align 4, !tbaa !9
  br label %205

205:                                              ; preds = %524, %204
  %206 = load i32, ptr %18, align 4, !tbaa !9
  %207 = load i32, ptr @bsgs_point_number, align 4, !tbaa !9
  %208 = icmp ult i32 %206, %207
  br i1 %208, label %209, label %527

209:                                              ; preds = %205
  %210 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %211 = load i32, ptr %18, align 4, !tbaa !9
  %212 = zext i32 %211 to i64
  %213 = getelementptr inbounds i32, ptr %210, i64 %212
  %214 = load i32, ptr %213, align 4, !tbaa !9
  %215 = icmp eq i32 %214, 0
  br i1 %215, label %216, label %523

216:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 120, ptr %38) #9
  %217 = load ptr, ptr @secp, align 8, !tbaa !5
  %218 = load i32, ptr %18, align 4, !tbaa !9
  %219 = zext i32 %218 to i64
  %220 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @OriginalPointsBSGS, i64 noundef %219) #9
  invoke void @_ZN9Secp256K19AddDirectER5PointS1_(ptr dead_on_unwind writable sret(%class.Point) align 8 %38, ptr noundef nonnull align 8 dereferenceable(983240) %217, ptr noundef nonnull align 8 dereferenceable(120) %220, ptr noundef nonnull align 8 dereferenceable(120) %13)
          to label %221 unwind label %261

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

222:                                              ; preds = %518, %221
  %223 = load i32, ptr %39, align 4, !tbaa !9
  %224 = load i32, ptr %22, align 4, !tbaa !9
  %225 = icmp ult i32 %223, %224
  br i1 %225, label %226, label %233

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

233:                                              ; preds = %226, %222
  %234 = phi i1 [ false, %222 ], [ %232, %226 ]
  br i1 %234, label %235, label %522

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

236:                                              ; preds = %250, %235
  %237 = load i32, ptr %40, align 4, !tbaa !9
  %238 = load i32, ptr %25, align 4, !tbaa !9
  %239 = icmp slt i32 %237, %238
  br i1 %239, label %240, label %269

240:                                              ; preds = %236
  %241 = load i32, ptr %40, align 4, !tbaa !9
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %242
  %244 = load i32, ptr %40, align 4, !tbaa !9
  %245 = sext i32 %244 to i64
  %246 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %245) #9
  %247 = getelementptr inbounds %class.Point, ptr %246, i32 0, i32 0
  %248 = getelementptr inbounds %class.Point, ptr %24, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %243, ptr noundef %247, ptr noundef %248)
          to label %249 unwind label %265

249:                                              ; preds = %240
  br label %250

250:                                              ; preds = %249
  %251 = load i32, ptr %40, align 4, !tbaa !9
  %252 = add nsw i32 %251, 1
  store i32 %252, ptr %40, align 4, !tbaa !9
  br label %236, !llvm.loop !17

253:                                              ; preds = %194
  %254 = landingpad { ptr, i32 }
          cleanup
  %255 = extractvalue { ptr, i32 } %254, 0
  store ptr %255, ptr %14, align 8
  %256 = extractvalue { ptr, i32 } %254, 1
  store i32 %256, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %36) #9
  br label %542

257:                                              ; preds = %202
  %258 = landingpad { ptr, i32 }
          cleanup
  %259 = extractvalue { ptr, i32 } %258, 0
  store ptr %259, ptr %14, align 8
  %260 = extractvalue { ptr, i32 } %258, 1
  store i32 %260, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %37) #9
  br label %542

261:                                              ; preds = %216
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %14, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %38) #9
  br label %542

265:                                              ; preds = %516, %514, %511, %509, %507, %505, %504, %499, %497, %367, %365, %363, %362, %358, %356, %355, %350, %330, %328, %326, %325, %321, %319, %318, %313, %307, %305, %303, %302, %298, %292, %284, %278, %269, %240
  %266 = landingpad { ptr, i32 }
          cleanup
  %267 = extractvalue { ptr, i32 } %266, 0
  store ptr %267, ptr %14, align 8
  %268 = extractvalue { ptr, i32 } %266, 1
  store i32 %268, ptr %15, align 4
  br label %521

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

278:                                              ; preds = %269
  %279 = load i32, ptr %40, align 4, !tbaa !9
  %280 = add nsw i32 %279, 1
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %281
  %283 = getelementptr inbounds %class.Point, ptr %24, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %282, ptr noundef @_2GSn, ptr noundef %283)
          to label %284 unwind label %265

284:                                              ; preds = %278
  %285 = load ptr, ptr %23, align 8, !tbaa !5
  invoke void @_ZN8IntGroup6ModInvEv(ptr noundef nonnull align 8 dereferenceable(20) %285)
          to label %286 unwind label %265

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

288:                                              ; preds = %347, %286
  %289 = load i32, ptr %40, align 4, !tbaa !9
  %290 = load i32, ptr %25, align 4, !tbaa !9
  %291 = icmp slt i32 %289, %290
  br i1 %291, label %292, label %350

292:                                              ; preds = %288
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 8 %24, i64 120, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %35, ptr align 8 %24, i64 120, i1 false), !tbaa.struct !15
  %293 = load i32, ptr %40, align 4, !tbaa !9
  %294 = sext i32 %293 to i64
  %295 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %294) #9
  %296 = getelementptr inbounds %class.Point, ptr %295, i32 0, i32 1
  %297 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %28, ptr noundef %296, ptr noundef %297)
          to label %298 unwind label %265

298:                                              ; preds = %292
  %299 = load i32, ptr %40, align 4, !tbaa !9
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %300
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %30, ptr noundef %28, ptr noundef %301)
          to label %302 unwind label %265

302:                                              ; preds = %298
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %31, ptr noundef %30)
          to label %303 unwind label %265

303:                                              ; preds = %302
  %304 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %304)
          to label %305 unwind label %265

305:                                              ; preds = %303
  %306 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %306, ptr noundef %31)
          to label %307 unwind label %265

307:                                              ; preds = %305
  %308 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  %309 = load i32, ptr %40, align 4, !tbaa !9
  %310 = sext i32 %309 to i64
  %311 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %310) #9
  %312 = getelementptr inbounds %class.Point, ptr %311, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %308, ptr noundef %312)
          to label %313 unwind label %265

313:                                              ; preds = %307
  %314 = load i32, ptr %40, align 4, !tbaa !9
  %315 = sext i32 %314 to i64
  %316 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %315) #9
  %317 = getelementptr inbounds %class.Point, ptr %316, i32 0, i32 1
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %29, ptr noundef %317)
          to label %318 unwind label %265

318:                                              ; preds = %313
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %29)
          to label %319 unwind label %265

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

321:                                              ; preds = %319
  %322 = load i32, ptr %40, align 4, !tbaa !9
  %323 = sext i32 %322 to i64
  %324 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %323
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %30, ptr noundef %29, ptr noundef %324)
          to label %325 unwind label %265

325:                                              ; preds = %321
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %31, ptr noundef %30)
          to label %326 unwind label %265

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

328:                                              ; preds = %326
  %329 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %329, ptr noundef %31)
          to label %330 unwind label %265

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

336:                                              ; preds = %330
  %337 = load i32, ptr %40, align 4, !tbaa !9
  %338 = add nsw i32 %337, 1
  %339 = add nsw i32 512, %338
  %340 = sext i32 %339 to i64
  %341 = getelementptr inbounds [1024 x %class.Point], ptr %27, i64 0, i64 %340
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %341, ptr align 8 %34, i64 120, i1 false), !tbaa.struct !15
  %342 = load i32, ptr %40, align 4, !tbaa !9
  %343 = add nsw i32 %342, 1
  %344 = sub nsw i32 512, %343
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds [1024 x %class.Point], ptr %27, i64 0, i64 %345
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %346, ptr align 8 %35, i64 120, i1 false), !tbaa.struct !15
  br label %347

347:                                              ; preds = %336
  %348 = load i32, ptr %40, align 4, !tbaa !9
  %349 = add nsw i32 %348, 1
  store i32 %349, ptr %40, align 4, !tbaa !9
  br label %288, !llvm.loop !19

350:                                              ; preds = %288
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %35, ptr align 8 %24, i64 120, i1 false), !tbaa.struct !15
  %351 = load i32, ptr %40, align 4, !tbaa !9
  %352 = sext i32 %351 to i64
  %353 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %352) #9
  %354 = getelementptr inbounds %class.Point, ptr %353, i32 0, i32 1
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %29, ptr noundef %354)
          to label %355 unwind label %265

355:                                              ; preds = %350
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %29)
          to label %356 unwind label %265

356:                                              ; preds = %355
  %357 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %29, ptr noundef %357)
          to label %358 unwind label %265

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

362:                                              ; preds = %358
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %31, ptr noundef %30)
          to label %363 unwind label %265

363:                                              ; preds = %362
  %364 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %364)
          to label %365 unwind label %265

365:                                              ; preds = %363
  %366 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %366, ptr noundef %31)
          to label %367 unwind label %265

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

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

375:                                              ; preds = %493, %373
  %376 = load i32, ptr %41, align 4, !tbaa !9
  %377 = icmp slt i32 %376, 1024
  br i1 %377, label %378, label %385

378:                                              ; preds = %375
  %379 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %380 = load i32, ptr %18, align 4, !tbaa !9
  %381 = zext i32 %380 to i64
  %382 = getelementptr inbounds i32, ptr %379, i64 %381
  %383 = load i32, ptr %382, align 4, !tbaa !9
  %384 = icmp eq i32 %383, 0
  br label %385

385:                                              ; preds = %378, %375
  %386 = phi i1 [ false, %375 ], [ %384, %378 ]
  br i1 %386, label %388, label %387

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

388:                                              ; preds = %385
  %389 = load i32, ptr %41, align 4, !tbaa !9
  %390 = sext i32 %389 to i64
  %391 = getelementptr inbounds [1024 x %class.Point], ptr %27, i64 0, i64 %390
  %392 = getelementptr inbounds %class.Point, ptr %391, i32 0, i32 0
  %393 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  invoke void @_ZN3Int10Get32BytesEPh(ptr noundef nonnull align 8 dereferenceable(40) %392, ptr noundef %393)
          to label %394 unwind label %448

394:                                              ; preds = %388
  %395 = load ptr, ptr @bloom_bP, align 8, !tbaa !5
  %396 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  %397 = load i8, ptr %396, align 16, !tbaa !16
  %398 = zext i8 %397 to i64
  %399 = getelementptr inbounds %struct.bloom, ptr %395, i64 %398
  %400 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  %401 = invoke i32 @bloom_check(ptr noundef %399, ptr noundef %400, i32 noundef 32)
          to label %402 unwind label %448

402:                                              ; preds = %394
  store i32 %401, ptr %19, align 4, !tbaa !9
  %403 = load i32, ptr %19, align 4, !tbaa !9
  %404 = icmp ne i32 %403, 0
  br i1 %404, label %405, label %492

405:                                              ; preds = %402
  %406 = load i32, ptr %39, align 4, !tbaa !9
  %407 = mul i32 %406, 1024
  %408 = load i32, ptr %41, align 4, !tbaa !9
  %409 = add i32 %407, %408
  %410 = load i32, ptr %18, align 4, !tbaa !9
  %411 = invoke noundef i32 @_Z16bsgs_secondcheckP3IntjjS0_(ptr noundef %9, i32 noundef %409, i32 noundef %410, ptr noundef %10)
          to label %412 unwind label %448

412:                                              ; preds = %405
  store i32 %411, ptr %19, align 4, !tbaa !9
  %413 = load i32, ptr %19, align 4, !tbaa !9
  %414 = icmp ne i32 %413, 0
  br i1 %414, label %415, label %491

415:                                              ; preds = %412
  %416 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %10)
          to label %417 unwind label %448

417:                                              ; preds = %415
  store ptr %416, ptr %8, align 8, !tbaa !5
  %418 = load ptr, ptr %8, align 8, !tbaa !5
  %419 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.244, ptr noundef %418)
          to label %420 unwind label %448

420:                                              ; preds = %417
  call void @llvm.lifetime.start.p0(i64 120, ptr %42) #9
  %421 = 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) %421, ptr noundef %10)
          to label %422 unwind label %452

422:                                              ; preds = %420
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, 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
  %423 = load ptr, ptr @secp, align 8, !tbaa !5
  %424 = load ptr, ptr @OriginalPointsBSGScompressed, align 8, !tbaa !5
  %425 = load i32, ptr %18, align 4, !tbaa !9
  %426 = zext i32 %425 to i64
  %427 = getelementptr inbounds i8, ptr %424, i64 %426
  %428 = load i8, ptr %427, align 1, !tbaa !20, !range !22, !noundef !23
  %429 = trunc i8 %428 to i1
  %430 = invoke noundef ptr @_ZN9Secp256K115GetPublicKeyHexEbR5Point(ptr noundef nonnull align 8 dereferenceable(983240) %423, i1 noundef zeroext %429, ptr noundef nonnull align 8 dereferenceable(120) %16)
          to label %431 unwind label %448

431:                                              ; preds = %422
  store ptr %430, ptr %7, align 8, !tbaa !5
  %432 = load ptr, ptr %7, align 8, !tbaa !5
  %433 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.238, ptr noundef %432)
          to label %434 unwind label %448

434:                                              ; preds = %431
  %435 = call i32 @pthread_mutex_lock(ptr noundef @write_keys) #9
  %436 = invoke noalias ptr @fopen(ptr noundef @.str.229, ptr noundef @.str.239)
          to label %437 unwind label %448

437:                                              ; preds = %434
  store ptr %436, ptr %4, align 8, !tbaa !5
  %438 = load ptr, ptr %4, align 8, !tbaa !5
  %439 = icmp ne ptr %438, null
  br i1 %439, label %440, label %456

440:                                              ; preds = %437
  %441 = load ptr, ptr %4, align 8, !tbaa !5
  %442 = load ptr, ptr %8, align 8, !tbaa !5
  %443 = load ptr, ptr %7, align 8, !tbaa !5
  %444 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %441, ptr noundef @.str.240, ptr noundef %442, ptr noundef %443) #9
  %445 = load ptr, ptr %4, align 8, !tbaa !5
  %446 = invoke i32 @fclose(ptr noundef %445)
          to label %447 unwind label %448

447:                                              ; preds = %440
  br label %456

448:                                              ; preds = %487, %440, %434, %431, %422, %417, %415, %405, %394, %388
  %449 = landingpad { ptr, i32 }
          cleanup
  %450 = extractvalue { ptr, i32 } %449, 0
  store ptr %450, ptr %14, align 8
  %451 = extractvalue { ptr, i32 } %449, 1
  store i32 %451, ptr %15, align 4
  br label %496

452:                                              ; preds = %420
  %453 = landingpad { ptr, i32 }
          cleanup
  %454 = extractvalue { ptr, i32 } %453, 0
  store ptr %454, ptr %14, align 8
  %455 = extractvalue { ptr, i32 } %453, 1
  store i32 %455, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %42) #9
  br label %496

456:                                              ; preds = %447, %437
  %457 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %457) #9
  %458 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %458) #9
  %459 = call i32 @pthread_mutex_unlock(ptr noundef @write_keys) #9
  %460 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %461 = load i32, ptr %18, align 4, !tbaa !9
  %462 = zext i32 %461 to i64
  %463 = getelementptr inbounds i32, ptr %460, i64 %462
  store i32 1, ptr %463, align 4, !tbaa !9
  store i32 1, ptr %20, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %464

464:                                              ; preds = %481, %456
  %465 = load i32, ptr %17, align 4, !tbaa !9
  %466 = load i32, ptr @bsgs_point_number, align 4, !tbaa !9
  %467 = icmp ult i32 %465, %466
  br i1 %467, label %468, label %471

468:                                              ; preds = %464
  %469 = load i32, ptr %20, align 4, !tbaa !9
  %470 = icmp ne i32 %469, 0
  br label %471

471:                                              ; preds = %468, %464
  %472 = phi i1 [ false, %464 ], [ %470, %468 ]
  br i1 %472, label %473, label %484

473:                                              ; preds = %471
  %474 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %475 = load i32, ptr %17, align 4, !tbaa !9
  %476 = zext i32 %475 to i64
  %477 = getelementptr inbounds i32, ptr %474, i64 %476
  %478 = load i32, ptr %477, align 4, !tbaa !9
  %479 = load i32, ptr %20, align 4, !tbaa !9
  %480 = and i32 %479, %478
  store i32 %480, ptr %20, align 4, !tbaa !9
  br label %481

481:                                              ; preds = %473
  %482 = load i32, ptr %17, align 4, !tbaa !9
  %483 = add i32 %482, 1
  store i32 %483, ptr %17, align 4, !tbaa !9
  br label %464, !llvm.loop !24

484:                                              ; preds = %471
  %485 = load i32, ptr %20, align 4, !tbaa !9
  %486 = icmp ne i32 %485, 0
  br i1 %486, label %487, label %490

487:                                              ; preds = %484
  %488 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.241)
          to label %489 unwind label %448

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

490:                                              ; preds = %484
  br label %491

491:                                              ; preds = %490, %412
  br label %492

492:                                              ; preds = %491, %402
  br label %493

493:                                              ; preds = %492
  %494 = load i32, ptr %41, align 4, !tbaa !9
  %495 = add nsw i32 %494, 1
  store i32 %495, ptr %41, align 4, !tbaa !9
  br label %375, !llvm.loop !25

496:                                              ; preds = %452, %448
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #9
  br label %521

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

499:                                              ; preds = %497
  %500 = load i32, ptr %40, align 4, !tbaa !9
  %501 = add nsw i32 %500, 1
  %502 = sext i32 %501 to i64
  %503 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %502
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %30, ptr noundef %28, ptr noundef %503)
          to label %504 unwind label %265

504:                                              ; preds = %499
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %31, ptr noundef %30)
          to label %505 unwind label %265

505:                                              ; preds = %504
  %506 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %506)
          to label %507 unwind label %265

507:                                              ; preds = %505
  %508 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %508, ptr noundef %31)
          to label %509 unwind label %265

509:                                              ; preds = %507
  %510 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %510, ptr noundef @_2GSn)
          to label %511 unwind label %265

511:                                              ; preds = %509
  %512 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 1
  %513 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %512, ptr noundef @_2GSn, ptr noundef %513)
          to label %514 unwind label %265

514:                                              ; preds = %511
  %515 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 1
  invoke void @_ZN3Int8ModMulK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %515, ptr noundef %30)
          to label %516 unwind label %265

516:                                              ; preds = %514
  %517 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %517, ptr noundef getelementptr inbounds (%class.Point, ptr @_2GSn, i32 0, i32 1))
          to label %518 unwind label %265

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

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

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

523:                                              ; preds = %522, %209
  br label %524

524:                                              ; preds = %523
  %525 = load i32, ptr %18, align 4, !tbaa !9
  %526 = add i32 %525, 1
  store i32 %526, ptr %18, align 4, !tbaa !9
  br label %205, !llvm.loop !27

527:                                              ; preds = %205
  %528 = load ptr, ptr @steps, align 8, !tbaa !5
  %529 = load i32, ptr %21, align 4, !tbaa !9
  %530 = zext i32 %529 to i64
  %531 = getelementptr inbounds i64, ptr %528, i64 %530
  %532 = load i64, ptr %531, align 8, !tbaa !13
  %533 = add i64 %532, 2
  store i64 %533, ptr %531, align 8, !tbaa !13
  br label %534

534:                                              ; preds = %527
  br i1 true, label %164, label %535, !llvm.loop !28

535:                                              ; preds = %534
  %536 = load ptr, ptr @ends, align 8, !tbaa !5
  %537 = load i32, ptr %21, align 4, !tbaa !9
  %538 = zext i32 %537 to i64
  %539 = getelementptr inbounds i32, ptr %536, i64 %538
  store i32 1, ptr %539, align 4, !tbaa !9
  store ptr null, ptr %2, align 8
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %35) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %35) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %34) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %32) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %28) #9
  %540 = getelementptr inbounds [1024 x %class.Point], ptr %27, i32 0, i32 0
  %541 = getelementptr inbounds %class.Point, ptr %540, i64 1024
  br label %553

542:                                              ; preds = %521, %261, %257, %253, %156
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %35) #9
  br label %543

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

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

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

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

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

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

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

550:                                              ; preds = %549, %124
  call void @llvm.lifetime.end.p0(i64 40, ptr %28) #9
  %551 = getelementptr inbounds [1024 x %class.Point], ptr %27, i32 0, i32 0
  %552 = getelementptr inbounds %class.Point, ptr %551, i64 1024
  br label %559

553:                                              ; preds = %553, %535
  %554 = phi ptr [ %541, %535 ], [ %555, %553 ]
  %555 = getelementptr inbounds %class.Point, ptr %554, i64 -1
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %555) #9
  %556 = icmp eq ptr %555, %540
  br i1 %556, label %557, label %553

557:                                              ; preds = %553
  call void @llvm.lifetime.end.p0(i64 122880, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 20520, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %24) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %16) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %16) #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 @llvm.lifetime.end.p0(i64 40, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  %558 = load ptr, ptr %2, align 8
  ret ptr %558

559:                                              ; preds = %559, %550
  %560 = phi ptr [ %552, %550 ], [ %561, %559 ]
  %561 = getelementptr inbounds %class.Point, ptr %560, i64 -1
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %561) #9
  %562 = icmp eq ptr %561, %551
  br i1 %562, label %563, label %559

563:                                              ; preds = %559
  br label %564

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

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

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

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

568:                                              ; preds = %567, %94
  call void @llvm.lifetime.end.p0(i64 120, ptr %16) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %13) #9
  br label %569

569:                                              ; preds = %568, %90
  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 @llvm.lifetime.end.p0(i64 40, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  br label %570

570:                                              ; preds = %569
  %571 = load ptr, ptr %14, align 8
  %572 = load i32, ptr %15, align 4
  %573 = insertvalue { ptr, i32 } poison, ptr %571, 0
  %574 = insertvalue { ptr, i32 } %573, i32 %572, 1
  resume { ptr, i32 } %574
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare noundef ptr @_ZN9Secp256K115GetPublicKeyHexEbR5Point(ptr noundef nonnull align 8 dereferenceable(983240), i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(120)) #0

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

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

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


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

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

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

35:                                               ; preds = %36, %33
  %.idx102 = phi i64 [ 0, %33 ], [ %.add103, %36 ]
  %.ptr104 = getelementptr inbounds i8, ptr %11, i64 %.idx102
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %.ptr104)
          to label %36 unwind label %66

36:                                               ; preds = %35
  %.add103 = add nuw nsw i64 %.idx102, 120
  %37 = icmp eq i64 %.add103, 122880
  br i1 %37, label %38, label %35

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

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

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

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

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

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

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

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

46:                                               ; preds = %45
  invoke void @_ZN8IntGroup3SetEP3Int(ptr noundef nonnull align 8 dereferenceable(20) %26, ptr noundef nonnull %10)
          to label %47 unwind label %.loopexit.split-lp134

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

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

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

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

60:                                               ; preds = %27
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %26, i64 noundef 24) #14
  br label %292

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

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

66:                                               ; preds = %35
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = icmp eq i64 %.idx102, 0
  br i1 %68, label %.loopexit, label %.preheader137

.preheader137:                                    ; preds = %66, %.preheader137
  %69 = phi ptr [ %70, %.preheader137 ], [ %.ptr104, %66 ]
  %70 = getelementptr inbounds i8, ptr %69, i64 -120
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %70) #12
  %71 = icmp eq ptr %70, %11
  br i1 %71, label %.loopexit, label %.preheader137

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

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

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

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

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

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

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

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

.loopexit133:                                     ; preds = %96, %101, %110, %118, %119, %120, %123
  %lpad.loopexit135 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp134:                            ; preds = %46, %47, %88, %89
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

88:                                               ; preds = %47
  invoke void @_ZN3Int4MultEm(ptr noundef nonnull align 8 dereferenceable(40) %17, i64 noundef 512)
          to label %89 unwind label %.loopexit.split-lp134

89:                                               ; preds = %88
  invoke void @_ZN3Int3AddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef nonnull @BSGS_M)
          to label %.preheader132 unwind label %.loopexit.split-lp134

.preheader132:                                    ; preds = %89
  %.not168 = icmp eq i32 %spec.select.fr, 0
  %90 = getelementptr inbounds i8, ptr %11, i64 61440
  %91 = getelementptr inbounds i8, ptr %18, i64 40
  %92 = getelementptr inbounds i8, ptr %19, i64 40
  %93 = zext i32 %48 to i64
  %wide.trip.count = zext i32 %spec.select.fr to i64
  %94 = getelementptr inbounds i8, ptr %10, i64 20440
  %95 = getelementptr inbounds i8, ptr %10, i64 20480
  br label %96

96:                                               ; preds = %.preheader132, %._crit_edge155
  %97 = call i32 @pthread_mutex_lock(ptr noundef nonnull @bsgs_thread) #12
  invoke void @_ZN3Int4RandEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull @n_range_start, ptr noundef nonnull @n_range_end)
          to label %98 unwind label %.loopexit133

98:                                               ; preds = %96
  %99 = call i32 @pthread_mutex_unlock(ptr noundef nonnull @bsgs_thread) #12
  %100 = load i32, ptr @FLAGMATRIX, align 4, !tbaa !13
  %.not106 = icmp eq i32 %100, 0
  br i1 %.not106, label %107, label %101

101:                                              ; preds = %98
  %102 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %3)
          to label %103 unwind label %.loopexit133

103:                                              ; preds = %101
  %104 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.242, ptr noundef %102)
  %105 = load ptr, ptr @stdout, align 8, !tbaa !14
  %106 = call i32 @fflush(ptr noundef %105)
  call void @free(ptr noundef %102) #12
  br label %116

107:                                              ; preds = %98
  %108 = load i32, ptr @FLAGQUIET, align 4, !tbaa !13
  %109 = icmp eq i32 %108, 0
  br i1 %109, label %110, label %116

110:                                              ; preds = %107
  %111 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %3)
          to label %112 unwind label %.loopexit133

112:                                              ; preds = %110
  %113 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.243, ptr noundef %111)
  %114 = load ptr, ptr @stdout, align 8, !tbaa !14
  %115 = call i32 @fflush(ptr noundef %114)
  call void @free(ptr noundef %111) #12
  store i32 1, ptr @THREADOUTPUT, align 4, !tbaa !13
  br label %116

116:                                              ; preds = %107, %112, %103
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %20) #12
  %117 = load ptr, ptr @secp, align 8, !tbaa !14
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %20, ptr noundef nonnull align 8 dereferenceable(983240) %117, ptr noundef nonnull %3)
          to label %118 unwind label %263

118:                                              ; preds = %116
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %6, ptr noundef nonnull align 8 dereferenceable(120) %20, i64 120, i1 false), !tbaa.struct !15
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %20) #12
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %20) #12
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef nonnull %3)
          to label %119 unwind label %.loopexit133

119:                                              ; preds = %118
  invoke void @_ZN3Int3NegEv(ptr noundef nonnull align 8 dereferenceable(40) %16)
          to label %120 unwind label %.loopexit133

120:                                              ; preds = %119
  %121 = load ptr, ptr @secp, align 8, !tbaa !14
  %122 = getelementptr inbounds i8, ptr %121, i64 160
  invoke void @_ZN3Int3AddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef nonnull %122)
          to label %123 unwind label %.loopexit133

123:                                              ; preds = %120
  invoke void @_ZN3Int3SubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef nonnull %17)
          to label %124 unwind label %.loopexit133

124:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %21) #12
  %125 = load ptr, ptr @secp, align 8, !tbaa !14
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %21, ptr noundef nonnull align 8 dereferenceable(983240) %125, ptr noundef nonnull %16)
          to label %126 unwind label %265

126:                                              ; preds = %124
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %7, 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) #12
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %21) #12
  %127 = load i32, ptr @bsgs_point_number, align 4, !tbaa !13
  %.not169 = icmp eq i32 %127, 0
  br i1 %.not169, label %._crit_edge155, label %.lr.ph154

.lr.ph154:                                        ; preds = %126
  br i1 %.not168, label %.lr.ph154.split.preheader, label %.lr.ph154.split.us

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

.lr.ph154.split.us:                               ; preds = %.lr.ph154, %.critedge.us
  %128 = phi i32 [ %142, %.critedge.us ], [ %127, %.lr.ph154 ]
  %indvars.iv195 = phi i64 [ %indvars.iv.next196, %.critedge.us ], [ 0, %.lr.ph154 ]
  %129 = load ptr, ptr @bsgs_found, align 8, !tbaa !14
  %130 = getelementptr inbounds i32, ptr %129, i64 %indvars.iv195
  %131 = load i32, ptr %130, align 4, !tbaa !13
  %132 = icmp eq i32 %131, 0
  br i1 %132, label %133, label %.critedge.us

133:                                              ; preds = %.lr.ph154.split.us
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %22) #12
  %134 = load ptr, ptr @secp, align 8, !tbaa !14
  %135 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @OriginalPointsBSGS, i64 noundef %indvars.iv195) #12
  invoke void @_ZN9Secp256K19AddDirectER5PointS1_(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %22, ptr noundef nonnull align 8 dereferenceable(983240) %134, ptr noundef nonnull align 8 dereferenceable(120) %135, ptr noundef nonnull align 8 dereferenceable(120) %7)
          to label %.lr.ph149.us unwind label %.split.us

.lr.ph149.us:                                     ; preds = %133
  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) #12
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %22) #12
  %136 = trunc nuw i64 %indvars.iv195 to i32
  br label %137

137:                                              ; preds = %.lr.ph149.us, %176
  %indvars.iv191 = phi i64 [ 0, %.lr.ph149.us ], [ %indvars.iv.next192, %176 ]
  %138 = load ptr, ptr @bsgs_found, align 8, !tbaa !14
  %139 = getelementptr inbounds i32, ptr %138, i64 %indvars.iv195
  %140 = load i32, ptr %139, align 4, !tbaa !13
  %141 = icmp eq i32 %140, 0
  br i1 %141, label %.preheader.us, label %.critedge.us.loopexit

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

.critedge.us:                                     ; preds = %.critedge.us.loopexit, %.lr.ph154.split.us
  %142 = phi i32 [ %.pre, %.critedge.us.loopexit ], [ %128, %.lr.ph154.split.us ]
  %indvars.iv.next196 = add nuw nsw i64 %indvars.iv195, 1
  %143 = zext i32 %142 to i64
  %144 = icmp ult i64 %indvars.iv.next196, %143
  br i1 %144, label %.lr.ph154.split.us, label %._crit_edge155, !llvm.loop !17

145:                                              ; preds = %251
  %146 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef 511) #12
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %94, ptr noundef nonnull %146, ptr noundef nonnull %9)
          to label %147 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

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

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

149:                                              ; preds = %148
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(120) %90, ptr noundef nonnull align 8 dereferenceable(120) %9, i64 120, i1 false), !tbaa.struct !15
  br label %223

150:                                              ; preds = %244
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %19, ptr noundef nonnull align 8 dereferenceable(120) %9, i64 120, i1 false), !tbaa.struct !15
  %151 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef 511) #12
  %152 = getelementptr inbounds i8, ptr %151, i64 40
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %13, ptr noundef nonnull %152)
          to label %153 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

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

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

155:                                              ; preds = %154
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %14, ptr noundef nonnull %13, ptr noundef nonnull %94)
          to label %156 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

156:                                              ; preds = %155
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef nonnull %14)
          to label %157 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

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

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

159:                                              ; preds = %158
  %160 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef 511) #12
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %19, ptr noundef nonnull %160)
          to label %161 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

161:                                              ; preds = %159
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(120) %11, ptr noundef nonnull align 8 dereferenceable(120) %19, i64 120, i1 false), !tbaa.struct !15
  %162 = shl i64 %indvars.iv191, 10
  br label %163

163:                                              ; preds = %222, %161
  %indvars.iv187 = phi i64 [ %indvars.iv.next188, %222 ], [ 0, %161 ]
  %164 = load ptr, ptr @bsgs_found, align 8, !tbaa !14
  %165 = getelementptr inbounds i32, ptr %164, i64 %indvars.iv195
  %166 = load i32, ptr %165, align 4, !tbaa !13
  %167 = icmp eq i32 %166, 0
  br i1 %167, label %177, label %.critedge2.us

.critedge2.us:                                    ; preds = %222, %163
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %18, ptr noundef nonnull align 8 dereferenceable(120) %9, i64 120, i1 false), !tbaa.struct !15
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull getelementptr inbounds (i8, ptr @_2GSn, i64 40), ptr noundef nonnull %91)
          to label %168 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

168:                                              ; preds = %.critedge2.us
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %14, ptr noundef nonnull %12, ptr noundef nonnull %95)
          to label %169 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

169:                                              ; preds = %168
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef nonnull %14)
          to label %170 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

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

171:                                              ; preds = %170
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %18, ptr noundef nonnull %15)
          to label %172 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

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

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

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

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

176:                                              ; preds = %175
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %9, ptr noundef nonnull align 8 dereferenceable(120) %18, i64 120, i1 false), !tbaa.struct !15
  %indvars.iv.next192 = add nuw nsw i64 %indvars.iv191, 1
  %exitcond194.not = icmp eq i64 %indvars.iv.next192, %wide.trip.count
  br i1 %exitcond194.not, label %.critedge.us.loopexit, label %137, !llvm.loop !19

177:                                              ; preds = %163
  %178 = getelementptr inbounds [1024 x %class.Point], ptr %11, i64 0, i64 %indvars.iv187
  invoke void @_ZN3Int10Get32BytesEPh(ptr noundef nonnull align 8 dereferenceable(40) %178, ptr noundef nonnull %2)
          to label %179 unwind label %.split158.us

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

185:                                              ; preds = %179
  %.not107.us = icmp eq i32 %184, 0
  br i1 %.not107.us, label %222, label %186

186:                                              ; preds = %185
  %187 = add i64 %indvars.iv187, %162
  %188 = trunc i64 %187 to i32
  %189 = invoke noundef i32 @_Z16bsgs_secondcheckP3IntjjS0_(ptr noundef nonnull %3, i32 noundef %188, i32 noundef %136, ptr noundef nonnull %4)
          to label %190 unwind label %.split158.us

190:                                              ; preds = %186
  %.not108.us = icmp eq i32 %189, 0
  br i1 %.not108.us, label %222, label %191

191:                                              ; preds = %190
  %192 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %193 unwind label %.split158.us

193:                                              ; preds = %191
  %194 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.244, ptr noundef %192)
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %23) #12
  %195 = load ptr, ptr @secp, align 8, !tbaa !14
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %23, ptr noundef nonnull align 8 dereferenceable(983240) %195, ptr noundef nonnull %4)
          to label %196 unwind label %.split161.us

196:                                              ; preds = %193
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %8, ptr noundef nonnull align 8 dereferenceable(120) %23, i64 120, i1 false), !tbaa.struct !15
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %23) #12
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %23) #12
  %197 = load ptr, ptr @secp, align 8, !tbaa !14
  %198 = load ptr, ptr @OriginalPointsBSGScompressed, align 8, !tbaa !14
  %199 = getelementptr inbounds i8, ptr %198, i64 %indvars.iv195
  %200 = load i8, ptr %199, align 1, !tbaa !20, !range !22, !noundef !23
  %201 = trunc nuw i8 %200 to i1
  %202 = invoke noundef ptr @_ZN9Secp256K115GetPublicKeyHexEbR5Point(ptr noundef nonnull align 8 dereferenceable(983240) %197, i1 noundef zeroext %201, ptr noundef nonnull align 8 dereferenceable(120) %8)
          to label %203 unwind label %.split158.us

203:                                              ; preds = %196
  %204 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.238, ptr noundef %202)
  %205 = call i32 @pthread_mutex_lock(ptr noundef nonnull @write_keys) #12
  %206 = call noalias ptr @fopen(ptr noundef nonnull @.str.229, ptr noundef nonnull @.str.239)
  %.not110.us = icmp eq ptr %206, null
  br i1 %.not110.us, label %210, label %207

207:                                              ; preds = %203
  %208 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %206, ptr noundef nonnull @.str.240, ptr noundef %192, ptr noundef %202) #12
  %209 = call i32 @fclose(ptr noundef nonnull %206)
  br label %210

210:                                              ; preds = %207, %203
  call void @free(ptr noundef %192) #12
  call void @free(ptr noundef %202) #12
  %211 = call i32 @pthread_mutex_unlock(ptr noundef nonnull @write_keys) #12
  %212 = load ptr, ptr @bsgs_found, align 8, !tbaa !14
  %213 = getelementptr inbounds i32, ptr %212, i64 %indvars.iv195
  store i32 1, ptr %213, align 4, !tbaa !13
  %214 = load i32, ptr @bsgs_point_number, align 4, !tbaa !13
  %.not170 = icmp eq i32 %214, 0
  br i1 %.not170, label %.split164.us, label %.lr.ph.us.preheader

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

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

222:                                              ; preds = %._crit_edge.us, %190, %185
  %indvars.iv.next188 = add nuw nsw i64 %indvars.iv187, 1
  %exitcond190.not = icmp eq i64 %indvars.iv.next188, 1024
  br i1 %exitcond190.not, label %.critedge2.us, label %163, !llvm.loop !25

223:                                              ; preds = %244, %149
  %indvars.iv180 = phi i64 [ %indvars.iv.next181, %244 ], [ 0, %149 ]
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %18, ptr noundef nonnull align 8 dereferenceable(120) %9, i64 120, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %19, ptr noundef nonnull align 8 dereferenceable(120) %9, i64 120, i1 false), !tbaa.struct !15
  %224 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv180) #12
  %225 = getelementptr inbounds i8, ptr %224, i64 40
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull %225, ptr noundef nonnull %91)
          to label %226 unwind label %.loopexit128.split.us

226:                                              ; preds = %223
  %227 = getelementptr inbounds [513 x %class.Int], ptr %10, i64 0, i64 %indvars.iv180
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %14, ptr noundef nonnull %12, ptr noundef nonnull %227)
          to label %228 unwind label %.loopexit128.split.us

228:                                              ; preds = %226
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef nonnull %14)
          to label %229 unwind label %.loopexit128.split.us

229:                                              ; preds = %228
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %18)
          to label %230 unwind label %.loopexit128.split.us

230:                                              ; preds = %229
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %18, ptr noundef nonnull %15)
          to label %231 unwind label %.loopexit128.split.us

231:                                              ; preds = %230
  %232 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv180) #12
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %18, ptr noundef nonnull %232)
          to label %233 unwind label %.loopexit128.split.us

233:                                              ; preds = %231
  %234 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv180) #12
  %235 = getelementptr inbounds i8, ptr %234, i64 40
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %13, ptr noundef nonnull %235)
          to label %236 unwind label %.loopexit128.split.us

236:                                              ; preds = %233
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %13)
          to label %237 unwind label %.loopexit128.split.us

237:                                              ; preds = %236
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %13, ptr noundef nonnull %92)
          to label %238 unwind label %.loopexit128.split.us

238:                                              ; preds = %237
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %14, ptr noundef nonnull %13, ptr noundef nonnull %227)
          to label %239 unwind label %.loopexit128.split.us

239:                                              ; preds = %238
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef nonnull %14)
          to label %240 unwind label %.loopexit128.split.us

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

241:                                              ; preds = %240
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %19, ptr noundef nonnull %15)
          to label %242 unwind label %.loopexit128.split.us

242:                                              ; preds = %241
  %243 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv180) #12
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %19, ptr noundef nonnull %243)
          to label %244 unwind label %.loopexit128.split.us

244:                                              ; preds = %242
  %indvars.iv.next181 = add nuw nsw i64 %indvars.iv180, 1
  %245 = add nuw nsw i64 %indvars.iv180, 513
  %246 = getelementptr inbounds [1024 x %class.Point], ptr %11, i64 0, i64 %245
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %246, ptr noundef nonnull align 8 dereferenceable(120) %18, i64 120, i1 false), !tbaa.struct !15
  %247 = sub nuw nsw i64 511, %indvars.iv180
  %248 = getelementptr inbounds [1024 x %class.Point], ptr %11, i64 0, i64 %247
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %248, ptr noundef nonnull align 8 dereferenceable(120) %19, i64 120, i1 false), !tbaa.struct !15
  %exitcond183.not = icmp eq i64 %indvars.iv.next181, 511
  br i1 %exitcond183.not, label %150, label %223, !llvm.loop !26

.preheader.us:                                    ; preds = %137, %251
  %indvars.iv = phi i64 [ %indvars.iv.next, %251 ], [ 0, %137 ]
  %249 = getelementptr inbounds [513 x %class.Int], ptr %10, i64 0, i64 %indvars.iv
  %250 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv) #12
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %249, ptr noundef nonnull %250, ptr noundef nonnull %9)
          to label %251 unwind label %.loopexit.split-lp.loopexit.split.us

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

._crit_edge.us:                                   ; preds = %.lr.ph.us
  br i1 %220, label %.split164.us, label %222

.split.us:                                        ; preds = %133
  %252 = landingpad { ptr, i32 }
          cleanup
  br label %268

.loopexit.split-lp.loopexit.split-lp.split.us:    ; preds = %175, %174, %173, %172, %171, %170, %169, %168, %.critedge2.us, %159, %158, %157, %156, %155, %154, %153, %150, %148, %147, %145
  %lpad.loopexit.split-lp130.us = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.split158.us:                                     ; preds = %196, %191, %186, %179, %177
  %253 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.split161.us:                                     ; preds = %193
  %254 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %23) #12
  br label %.loopexit.split-lp

.loopexit128.split.us:                            ; preds = %242, %241, %240, %239, %238, %237, %236, %233, %231, %230, %229, %228, %226, %223
  %lpad.loopexit.us = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

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

.lr.ph154.split:                                  ; preds = %.lr.ph154.split.preheader, %.critedge
  %255 = phi i32 [ %127, %.lr.ph154.split.preheader ], [ %270, %.critedge ]
  %256 = phi ptr [ %.pre202, %.lr.ph154.split.preheader ], [ %271, %.critedge ]
  %indvars.iv198 = phi i64 [ 0, %.lr.ph154.split.preheader ], [ %indvars.iv.next199, %.critedge ]
  %257 = getelementptr inbounds i32, ptr %256, i64 %indvars.iv198
  %258 = load i32, ptr %257, align 4, !tbaa !13
  %259 = icmp eq i32 %258, 0
  br i1 %259, label %260, label %.critedge

260:                                              ; preds = %.lr.ph154.split
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %22) #12
  %261 = load ptr, ptr @secp, align 8, !tbaa !14
  %262 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @OriginalPointsBSGS, i64 noundef %indvars.iv198) #12
  invoke void @_ZN9Secp256K19AddDirectER5PointS1_(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %22, ptr noundef nonnull align 8 dereferenceable(983240) %261, ptr noundef nonnull align 8 dereferenceable(120) %262, ptr noundef nonnull align 8 dereferenceable(120) %7)
          to label %.critedge.loopexit unwind label %.split

.critedge.loopexit:                               ; preds = %260
  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) #12
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %22) #12
  %.pre201 = load ptr, ptr @bsgs_found, align 8, !tbaa !14
  %.pre203 = load i32, ptr @bsgs_point_number, align 4, !tbaa !13
  br label %.critedge

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

265:                                              ; preds = %124
  %266 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %21) #12
  br label %.loopexit.split-lp

.split:                                           ; preds = %260
  %267 = landingpad { ptr, i32 }
          cleanup
  br label %268

268:                                              ; preds = %.split.us, %.split
  %.us-phi = phi { ptr, i32 } [ %267, %.split ], [ %252, %.split.us ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %22) #12
  br label %.loopexit.split-lp

.split164.us:                                     ; preds = %._crit_edge.us, %210
  %269 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.241)
  call void @exit(i32 noundef 1) #15
  unreachable

.critedge:                                        ; preds = %.critedge.loopexit, %.lr.ph154.split
  %270 = phi i32 [ %.pre203, %.critedge.loopexit ], [ %255, %.lr.ph154.split ]
  %271 = phi ptr [ %.pre201, %.critedge.loopexit ], [ %256, %.lr.ph154.split ]
  %indvars.iv.next199 = add nuw nsw i64 %indvars.iv198, 1
  %272 = zext i32 %270 to i64
  %273 = icmp ult i64 %indvars.iv.next199, %272
  br i1 %273, label %.lr.ph154.split, label %._crit_edge155, !llvm.loop !17

._crit_edge155:                                   ; preds = %.critedge.us, %.critedge, %126
  %274 = load ptr, ptr @steps, align 8, !tbaa !14
  %275 = getelementptr inbounds i64, ptr %274, i64 %93
  %276 = load i64, ptr %275, align 8, !tbaa !11
  %277 = add i64 %276, 2
  store i64 %277, ptr %275, align 8, !tbaa !11
  br label %96, !llvm.loop !28

.loopexit.split-lp:                               ; preds = %.loopexit128.split.us, %.loopexit.split-lp.loopexit.split-lp.split.us, %.loopexit.split-lp.loopexit.split.us, %.loopexit133, %.loopexit.split-lp134, %.split161.us, %.split158.us, %268, %265, %263
  %.pn111.pn = phi { ptr, i32 } [ %.us-phi, %268 ], [ %266, %265 ], [ %264, %263 ], [ %253, %.split158.us ], [ %254, %.split161.us ], [ %lpad.loopexit135, %.loopexit133 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp134 ], [ %lpad.loopexit.us, %.loopexit128.split.us ], [ %lpad.loopexit129.us, %.loopexit.split-lp.loopexit.split.us ], [ %lpad.loopexit.split-lp130.us, %.loopexit.split-lp.loopexit.split-lp.split.us ]
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %19) #12
  br label %278

278:                                              ; preds = %.loopexit.split-lp, %86
  %.pn111.pn.pn = phi { ptr, i32 } [ %.pn111.pn, %.loopexit.split-lp ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %19) #12
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %18) #12
  br label %279

279:                                              ; preds = %278, %84
  %.pn111.pn.pn.pn = phi { ptr, i32 } [ %.pn111.pn.pn, %278 ], [ %85, %84 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %18) #12
  br label %280

280:                                              ; preds = %279, %82
  %.pn111.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn111.pn.pn.pn, %279 ], [ %83, %82 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %17) #12
  br label %281

281:                                              ; preds = %280, %80
  %.pn111.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn111.pn.pn.pn.pn, %280 ], [ %81, %80 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %16) #12
  br label %282

282:                                              ; preds = %281, %78
  %.pn111.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn111.pn.pn.pn.pn.pn, %281 ], [ %79, %78 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #12
  br label %283

283:                                              ; preds = %282, %76
  %.pn111.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn111.pn.pn.pn.pn.pn.pn, %282 ], [ %77, %76 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %14) #12
  br label %284

284:                                              ; preds = %283, %74
  %.pn111.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn111.pn.pn.pn.pn.pn.pn.pn, %283 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #12
  br label %285

285:                                              ; preds = %284, %72
  %.pn111.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn111.pn.pn.pn.pn.pn.pn.pn.pn, %284 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #12
  br label %286

286:                                              ; preds = %286, %285
  %287 = phi ptr [ %34, %285 ], [ %288, %286 ]
  %288 = getelementptr inbounds i8, ptr %287, i64 -120
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %288) #12
  %289 = icmp eq ptr %288, %11
  br i1 %289, label %.loopexit, label %286

.loopexit:                                        ; preds = %.preheader137, %286, %66
  %.pn111.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %67, %66 ], [ %.pn111.pn.pn.pn.pn.pn.pn.pn.pn.pn, %286 ], [ %67, %.preheader137 ]
  call void @llvm.lifetime.end.p0(i64 122880, ptr nonnull %11) #12
  br label %290

290:                                              ; preds = %.loopexit, %64
  %.pn111.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn111.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %.loopexit ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 20520, ptr nonnull %10) #12
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %9) #12
  br label %291

291:                                              ; preds = %290, %62
  %.pn111.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn111.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %290 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %9) #12
  br label %292

292:                                              ; preds = %291, %60, %58
  %.pn111.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn111.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %291 ], [ %61, %60 ], [ %59, %58 ]
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %8) #12
  br label %293

293:                                              ; preds = %292, %56
  %.pn111.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn111.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %292 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %8) #12
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %7) #12
  br label %294

294:                                              ; preds = %293, %54
  %.pn111.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn111.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %293 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %7) #12
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %6) #12
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %6) #12
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #12
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #12
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #12
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #12
  resume { ptr, i32 } %.pn111.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 #11

declare noundef ptr @_ZN9Secp256K115GetPublicKeyHexEbR5Point(ptr noundef nonnull align 8 dereferenceable(983240), i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #0

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

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

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


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