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

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

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

declare void @_ZN3Int3SetEPKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #0

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

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

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

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

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

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

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

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

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

declare i32 @fclose(ptr noundef) #0

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

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #0

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

declare void @_ZN9Secp256K19AddDirectER5PointS1_(ptr dead_on_unwind writable sret(%class.Point) align 8, ptr noundef nonnull align 8 dereferenceable(393296), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #0

; Function Attrs: nounwind
declare i32 @pthread_mutex_lock(ptr noundef) #1

; Function Attrs: nounwind
declare i32 @pthread_mutex_unlock(ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_Z25thread_process_bsgs_dancePv(ptr noundef %0) #7 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca [32 x i8], align 16
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %class.Int, align 8
  %10 = alloca %class.Int, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %class.Point, align 8
  %14 = alloca %class.Point, align 8
  %15 = alloca %class.Point, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca %class.Point, align 8
  %25 = alloca i32, align 4
  %26 = alloca [513 x %class.Int], align 16
  %27 = alloca [1024 x %class.Point], align 16
  %28 = alloca %class.Int, align 8
  %29 = alloca %class.Int, align 8
  %30 = alloca %class.Int, align 8
  %31 = alloca %class.Int, align 8
  %32 = alloca %class.Int, align 8
  %33 = alloca %class.Int, align 8
  %34 = alloca %class.Point, align 8
  %35 = alloca %class.Point, align 8
  %36 = alloca %class.Point, align 8
  %37 = alloca %class.Point, align 8
  %38 = alloca %class.Point, align 8
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca %class.Point, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #8
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9)
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #8
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %43 unwind label %92

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

172:                                              ; preds = %250, %247, %246, %245, %235, %232, %230, %222, %219, %217, %207, %203, %202, %199, %194, %192, %189, %188, %185, %178, %177, %176, %74
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %11, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %12, align 4
  br label %635

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

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

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

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

180:                                              ; preds = %627, %179
  %181 = call i32 @rand() #8
  %182 = srem i32 %181, 3
  store i32 %182, ptr %18, align 4, !tbaa !9
  %183 = call i32 @pthread_mutex_lock(ptr noundef @bsgs_thread) #8
  %184 = load i32, ptr %18, align 4, !tbaa !9
  switch i32 %184, label %209 [
    i32 0, label %185
    i32 1, label %199
    i32 2, label %207
  ]

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

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

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

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

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

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

193:                                              ; preds = %192
  br label %196

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

195:                                              ; preds = %194
  br label %196

196:                                              ; preds = %195, %193
  br label %198

197:                                              ; preds = %187
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %198

198:                                              ; preds = %197, %196
  br label %209

199:                                              ; preds = %180
  %200 = invoke noundef zeroext i1 @_ZN3Int7IsLowerEPS_(ptr noundef nonnull align 8 dereferenceable(16) @BSGS_CURRENT, ptr noundef @n_range_end)
          to label %201 unwind label %172

201:                                              ; preds = %199
  br i1 %200, label %202, label %205

202:                                              ; preds = %201
  invoke void @_ZN3Int3SetEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef @BSGS_CURRENT)
          to label %203 unwind label %172

203:                                              ; preds = %202
  invoke void @_ZN3Int3AddEPKS_(ptr noundef nonnull align 8 dereferenceable(16) @BSGS_CURRENT, ptr noundef @BSGS_N_double)
          to label %204 unwind label %172

204:                                              ; preds = %203
  br label %206

205:                                              ; preds = %201
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %206

206:                                              ; preds = %205, %204
  br label %209

207:                                              ; preds = %180
  invoke void @_ZN3Int4RandEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef @BSGS_CURRENT, ptr noundef @n_range_end)
          to label %208 unwind label %172

208:                                              ; preds = %207
  br label %209

209:                                              ; preds = %208, %206, %198, %180
  %210 = call i32 @pthread_mutex_unlock(ptr noundef @bsgs_thread) #8
  %211 = load i32, ptr %21, align 4, !tbaa !9
  %212 = icmp eq i32 %211, 0
  br i1 %212, label %213, label %214

213:                                              ; preds = %209
  br label %628

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

217:                                              ; preds = %214
  %218 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %219 unwind label %172

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

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

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

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

230:                                              ; preds = %227
  %231 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %232 unwind label %172

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

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

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

240:                                              ; preds = %238, %227
  br label %241

241:                                              ; preds = %240, %225
  call void @llvm.lifetime.start.p0(i64 48, ptr %36) #8
  %242 = load ptr, ptr @secp, align 8, !tbaa !5
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind writable sret(%class.Point) align 8 %36, ptr noundef nonnull align 8 dereferenceable(393296) %242, ptr noundef %9)
          to label %243 unwind label %306

243:                                              ; preds = %241
  %244 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %13, ptr noundef nonnull align 8 dereferenceable(48) %36)
          to label %245 unwind label %310

245:                                              ; preds = %243
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %36) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %36) #8
  invoke void @_ZN3Int3SetEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef %9)
          to label %246 unwind label %172

246:                                              ; preds = %245
  invoke void @_ZN3Int3NegEv(ptr noundef nonnull align 8 dereferenceable(16) %32)
          to label %247 unwind label %172

247:                                              ; preds = %246
  %248 = load ptr, ptr @secp, align 8, !tbaa !5
  %249 = getelementptr inbounds %class.Secp256K1, ptr %248, i32 0, i32 2
  invoke void @_ZN3Int3AddEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef %249)
          to label %250 unwind label %172

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

251:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 48, ptr %37) #8
  %252 = load ptr, ptr @secp, align 8, !tbaa !5
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind writable sret(%class.Point) align 8 %37, ptr noundef nonnull align 8 dereferenceable(393296) %252, ptr noundef %32)
          to label %253 unwind label %315

253:                                              ; preds = %251
  %254 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %14, ptr noundef nonnull align 8 dereferenceable(48) %37)
          to label %255 unwind label %319

255:                                              ; preds = %253
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %37) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %37) #8
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %256

256:                                              ; preds = %617, %255
  %257 = load i32, ptr %16, align 4, !tbaa !9
  %258 = load i32, ptr @bsgs_point_number, align 4, !tbaa !9
  %259 = icmp ult i32 %257, %258
  br i1 %259, label %260, label %620

260:                                              ; preds = %256
  %261 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %262 = load i32, ptr %16, align 4, !tbaa !9
  %263 = zext i32 %262 to i64
  %264 = getelementptr inbounds i32, ptr %261, i64 %263
  %265 = load i32, ptr %264, align 4, !tbaa !9
  %266 = icmp eq i32 %265, 0
  br i1 %266, label %267, label %616

267:                                              ; preds = %260
  call void @llvm.lifetime.start.p0(i64 48, ptr %38) #8
  %268 = load ptr, ptr @secp, align 8, !tbaa !5
  %269 = load i32, ptr %16, align 4, !tbaa !9
  %270 = zext i32 %269 to i64
  %271 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @OriginalPointsBSGS, i64 noundef %270) #8
  invoke void @_ZN9Secp256K19AddDirectER5PointS1_(ptr dead_on_unwind writable sret(%class.Point) align 8 %38, ptr noundef nonnull align 8 dereferenceable(393296) %268, ptr noundef nonnull align 8 dereferenceable(48) %271, ptr noundef nonnull align 8 dereferenceable(48) %14)
          to label %272 unwind label %324

272:                                              ; preds = %267
  %273 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %24, ptr noundef nonnull align 8 dereferenceable(48) %38)
          to label %274 unwind label %328

274:                                              ; preds = %272
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %38) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %38) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  store i32 0, ptr %39, align 4, !tbaa !9
  br label %275

275:                                              ; preds = %611, %274
  %276 = load i32, ptr %39, align 4, !tbaa !9
  %277 = load i32, ptr %22, align 4, !tbaa !9
  %278 = icmp ult i32 %276, %277
  br i1 %278, label %279, label %286

279:                                              ; preds = %275
  %280 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %281 = load i32, ptr %16, align 4, !tbaa !9
  %282 = zext i32 %281 to i64
  %283 = getelementptr inbounds i32, ptr %280, i64 %282
  %284 = load i32, ptr %283, align 4, !tbaa !9
  %285 = icmp eq i32 %284, 0
  br label %286

286:                                              ; preds = %279, %275
  %287 = phi i1 [ false, %275 ], [ %285, %279 ]
  br i1 %287, label %288, label %615

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

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

293:                                              ; preds = %289
  %294 = load i32, ptr %40, align 4, !tbaa !9
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %295
  %297 = load i32, ptr %40, align 4, !tbaa !9
  %298 = sext i32 %297 to i64
  %299 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %298) #8
  %300 = getelementptr inbounds %class.Point, ptr %299, i32 0, i32 0
  %301 = getelementptr inbounds %class.Point, ptr %24, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %296, ptr noundef %300, ptr noundef %301)
          to label %302 unwind label %333

302:                                              ; preds = %293
  br label %303

303:                                              ; preds = %302
  %304 = load i32, ptr %40, align 4, !tbaa !9
  %305 = add nsw i32 %304, 1
  store i32 %305, ptr %40, align 4, !tbaa !9
  br label %289, !llvm.loop !15

306:                                              ; preds = %241
  %307 = landingpad { ptr, i32 }
          cleanup
  %308 = extractvalue { ptr, i32 } %307, 0
  store ptr %308, ptr %11, align 8
  %309 = extractvalue { ptr, i32 } %307, 1
  store i32 %309, ptr %12, align 4
  br label %314

310:                                              ; preds = %243
  %311 = landingpad { ptr, i32 }
          cleanup
  %312 = extractvalue { ptr, i32 } %311, 0
  store ptr %312, ptr %11, align 8
  %313 = extractvalue { ptr, i32 } %311, 1
  store i32 %313, ptr %12, align 4
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %36) #8
  br label %314

314:                                              ; preds = %310, %306
  call void @llvm.lifetime.end.p0(i64 48, ptr %36) #8
  br label %635

315:                                              ; preds = %251
  %316 = landingpad { ptr, i32 }
          cleanup
  %317 = extractvalue { ptr, i32 } %316, 0
  store ptr %317, ptr %11, align 8
  %318 = extractvalue { ptr, i32 } %316, 1
  store i32 %318, ptr %12, align 4
  br label %323

319:                                              ; preds = %253
  %320 = landingpad { ptr, i32 }
          cleanup
  %321 = extractvalue { ptr, i32 } %320, 0
  store ptr %321, ptr %11, align 8
  %322 = extractvalue { ptr, i32 } %320, 1
  store i32 %322, ptr %12, align 4
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %37) #8
  br label %323

323:                                              ; preds = %319, %315
  call void @llvm.lifetime.end.p0(i64 48, ptr %37) #8
  br label %635

324:                                              ; preds = %267
  %325 = landingpad { ptr, i32 }
          cleanup
  %326 = extractvalue { ptr, i32 } %325, 0
  store ptr %326, ptr %11, align 8
  %327 = extractvalue { ptr, i32 } %325, 1
  store i32 %327, ptr %12, align 4
  br label %332

328:                                              ; preds = %272
  %329 = landingpad { ptr, i32 }
          cleanup
  %330 = extractvalue { ptr, i32 } %329, 0
  store ptr %330, ptr %11, align 8
  %331 = extractvalue { ptr, i32 } %329, 1
  store i32 %331, ptr %12, align 4
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %38) #8
  br label %332

332:                                              ; preds = %328, %324
  call void @llvm.lifetime.end.p0(i64 48, ptr %38) #8
  br label %635

333:                                              ; preds = %609, %607, %605, %602, %600, %598, %596, %595, %590, %588, %586, %453, %447, %445, %443, %442, %438, %436, %435, %430, %428, %417, %410, %404, %402, %400, %399, %395, %393, %392, %387, %381, %379, %377, %376, %372, %366, %364, %362, %354, %352, %346, %337, %293
  %334 = landingpad { ptr, i32 }
          cleanup
  %335 = extractvalue { ptr, i32 } %334, 0
  store ptr %335, ptr %11, align 8
  %336 = extractvalue { ptr, i32 } %334, 1
  store i32 %336, ptr %12, align 4
  br label %614

337:                                              ; preds = %289
  %338 = load i32, ptr %40, align 4, !tbaa !9
  %339 = sext i32 %338 to i64
  %340 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %339
  %341 = load i32, ptr %40, align 4, !tbaa !9
  %342 = sext i32 %341 to i64
  %343 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %342) #8
  %344 = getelementptr inbounds %class.Point, ptr %343, i32 0, i32 0
  %345 = getelementptr inbounds %class.Point, ptr %24, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %340, ptr noundef %344, ptr noundef %345)
          to label %346 unwind label %333

346:                                              ; preds = %337
  %347 = load i32, ptr %40, align 4, !tbaa !9
  %348 = add nsw i32 %347, 1
  %349 = sext i32 %348 to i64
  %350 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %349
  %351 = getelementptr inbounds %class.Point, ptr %24, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %350, ptr noundef @_2GSn, ptr noundef %351)
          to label %352 unwind label %333

352:                                              ; preds = %346
  %353 = load ptr, ptr %23, align 8, !tbaa !5
  invoke void @_ZN8IntGroup6ModInvEv(ptr noundef nonnull align 8 dereferenceable(20) %353)
          to label %354 unwind label %333

354:                                              ; preds = %352
  %355 = getelementptr inbounds [1024 x %class.Point], ptr %27, i64 0, i64 512
  %356 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %355, ptr noundef nonnull align 8 dereferenceable(48) %24)
          to label %357 unwind label %333

357:                                              ; preds = %354
  store i32 0, ptr %40, align 4, !tbaa !9
  br label %358

358:                                              ; preds = %425, %357
  %359 = load i32, ptr %40, align 4, !tbaa !9
  %360 = load i32, ptr %25, align 4, !tbaa !9
  %361 = icmp slt i32 %359, %360
  br i1 %361, label %362, label %428

362:                                              ; preds = %358
  %363 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %34, ptr noundef nonnull align 8 dereferenceable(48) %24)
          to label %364 unwind label %333

364:                                              ; preds = %362
  %365 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %35, ptr noundef nonnull align 8 dereferenceable(48) %24)
          to label %366 unwind label %333

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

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

376:                                              ; preds = %372
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef %30)
          to label %377 unwind label %333

377:                                              ; preds = %376
  %378 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(16) %378)
          to label %379 unwind label %333

379:                                              ; preds = %377
  %380 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(16) %380, ptr noundef %31)
          to label %381 unwind label %333

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

387:                                              ; preds = %381
  %388 = load i32, ptr %40, align 4, !tbaa !9
  %389 = sext i32 %388 to i64
  %390 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %389) #8
  %391 = getelementptr inbounds %class.Point, ptr %390, i32 0, i32 1
  invoke void @_ZN3Int3SetEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef %391)
          to label %392 unwind label %333

392:                                              ; preds = %387
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(16) %29)
          to label %393 unwind label %333

393:                                              ; preds = %392
  %394 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef %394)
          to label %395 unwind label %333

395:                                              ; preds = %393
  %396 = load i32, ptr %40, align 4, !tbaa !9
  %397 = sext i32 %396 to i64
  %398 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %397
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef %29, ptr noundef %398)
          to label %399 unwind label %333

399:                                              ; preds = %395
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef %30)
          to label %400 unwind label %333

400:                                              ; preds = %399
  %401 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(16) %401)
          to label %402 unwind label %333

402:                                              ; preds = %400
  %403 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(16) %403, ptr noundef %31)
          to label %404 unwind label %333

404:                                              ; preds = %402
  %405 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 0
  %406 = load i32, ptr %40, align 4, !tbaa !9
  %407 = sext i32 %406 to i64
  %408 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %407) #8
  %409 = getelementptr inbounds %class.Point, ptr %408, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %405, ptr noundef %409)
          to label %410 unwind label %333

410:                                              ; preds = %404
  %411 = load i32, ptr %40, align 4, !tbaa !9
  %412 = add nsw i32 %411, 1
  %413 = add nsw i32 512, %412
  %414 = sext i32 %413 to i64
  %415 = getelementptr inbounds [1024 x %class.Point], ptr %27, i64 0, i64 %414
  %416 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %415, ptr noundef nonnull align 8 dereferenceable(48) %34)
          to label %417 unwind label %333

417:                                              ; preds = %410
  %418 = load i32, ptr %40, align 4, !tbaa !9
  %419 = add nsw i32 %418, 1
  %420 = sub nsw i32 512, %419
  %421 = sext i32 %420 to i64
  %422 = getelementptr inbounds [1024 x %class.Point], ptr %27, i64 0, i64 %421
  %423 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %422, ptr noundef nonnull align 8 dereferenceable(48) %35)
          to label %424 unwind label %333

424:                                              ; preds = %417
  br label %425

425:                                              ; preds = %424
  %426 = load i32, ptr %40, align 4, !tbaa !9
  %427 = add nsw i32 %426, 1
  store i32 %427, ptr %40, align 4, !tbaa !9
  br label %358, !llvm.loop !17

428:                                              ; preds = %358
  %429 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %35, ptr noundef nonnull align 8 dereferenceable(48) %24)
          to label %430 unwind label %333

430:                                              ; preds = %428
  %431 = load i32, ptr %40, align 4, !tbaa !9
  %432 = sext i32 %431 to i64
  %433 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %432) #8
  %434 = getelementptr inbounds %class.Point, ptr %433, i32 0, i32 1
  invoke void @_ZN3Int3SetEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef %434)
          to label %435 unwind label %333

435:                                              ; preds = %430
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(16) %29)
          to label %436 unwind label %333

436:                                              ; preds = %435
  %437 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef %437)
          to label %438 unwind label %333

438:                                              ; preds = %436
  %439 = load i32, ptr %40, align 4, !tbaa !9
  %440 = sext i32 %439 to i64
  %441 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %440
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef %29, ptr noundef %441)
          to label %442 unwind label %333

442:                                              ; preds = %438
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef %30)
          to label %443 unwind label %333

443:                                              ; preds = %442
  %444 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(16) %444)
          to label %445 unwind label %333

445:                                              ; preds = %443
  %446 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(16) %446, ptr noundef %31)
          to label %447 unwind label %333

447:                                              ; preds = %445
  %448 = getelementptr inbounds %class.Point, ptr %35, i32 0, i32 0
  %449 = load i32, ptr %40, align 4, !tbaa !9
  %450 = sext i32 %449 to i64
  %451 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %450) #8
  %452 = getelementptr inbounds %class.Point, ptr %451, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %448, ptr noundef %452)
          to label %453 unwind label %333

453:                                              ; preds = %447
  %454 = getelementptr inbounds [1024 x %class.Point], ptr %27, i64 0, i64 0
  %455 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %454, ptr noundef nonnull align 8 dereferenceable(48) %35)
          to label %456 unwind label %333

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

457:                                              ; preds = %582, %456
  %458 = load i32, ptr %41, align 4, !tbaa !9
  %459 = icmp slt i32 %458, 1024
  br i1 %459, label %460, label %467

460:                                              ; preds = %457
  %461 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %462 = load i32, ptr %16, align 4, !tbaa !9
  %463 = zext i32 %462 to i64
  %464 = getelementptr inbounds i32, ptr %461, i64 %463
  %465 = load i32, ptr %464, align 4, !tbaa !9
  %466 = icmp eq i32 %465, 0
  br label %467

467:                                              ; preds = %460, %457
  %468 = phi i1 [ false, %457 ], [ %466, %460 ]
  br i1 %468, label %470, label %469

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

470:                                              ; preds = %467
  %471 = load i32, ptr %41, align 4, !tbaa !9
  %472 = sext i32 %471 to i64
  %473 = getelementptr inbounds [1024 x %class.Point], ptr %27, i64 0, i64 %472
  %474 = getelementptr inbounds %class.Point, ptr %473, i32 0, i32 0
  %475 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  invoke void @_ZN3Int10Get32BytesEPh(ptr noundef nonnull align 8 dereferenceable(16) %474, ptr noundef %475)
          to label %476 unwind label %532

476:                                              ; preds = %470
  %477 = load ptr, ptr @bloom_bP, align 8, !tbaa !5
  %478 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  %479 = load i8, ptr %478, align 16, !tbaa !18
  %480 = zext i8 %479 to i64
  %481 = getelementptr inbounds %struct.bloom, ptr %477, i64 %480
  %482 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  %483 = invoke i32 @bloom_check(ptr noundef %481, ptr noundef %482, i32 noundef 32)
          to label %484 unwind label %532

484:                                              ; preds = %476
  store i32 %483, ptr %18, align 4, !tbaa !9
  %485 = load i32, ptr %18, align 4, !tbaa !9
  %486 = icmp ne i32 %485, 0
  br i1 %486, label %487, label %581

487:                                              ; preds = %484
  %488 = load i32, ptr %39, align 4, !tbaa !9
  %489 = mul i32 %488, 1024
  %490 = load i32, ptr %41, align 4, !tbaa !9
  %491 = add i32 %489, %490
  %492 = load i32, ptr %16, align 4, !tbaa !9
  %493 = invoke noundef i32 @_Z16bsgs_secondcheckP3IntjjS0_(ptr noundef %9, i32 noundef %491, i32 noundef %492, ptr noundef %10)
          to label %494 unwind label %532

494:                                              ; preds = %487
  store i32 %493, ptr %18, align 4, !tbaa !9
  %495 = load i32, ptr %18, align 4, !tbaa !9
  %496 = icmp ne i32 %495, 0
  br i1 %496, label %497, label %580

497:                                              ; preds = %494
  %498 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %499 unwind label %532

499:                                              ; preds = %497
  store ptr %498, ptr %8, align 8, !tbaa !5
  %500 = load ptr, ptr %8, align 8, !tbaa !5
  %501 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.237, ptr noundef %500)
          to label %502 unwind label %532

502:                                              ; preds = %499
  call void @llvm.lifetime.start.p0(i64 48, ptr %42) #8
  %503 = load ptr, ptr @secp, align 8, !tbaa !5
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind writable sret(%class.Point) align 8 %42, ptr noundef nonnull align 8 dereferenceable(393296) %503, ptr noundef %10)
          to label %504 unwind label %536

504:                                              ; preds = %502
  %505 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %15, ptr noundef nonnull align 8 dereferenceable(48) %42)
          to label %506 unwind label %540

506:                                              ; preds = %504
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %42) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %42) #8
  %507 = load ptr, ptr @secp, align 8, !tbaa !5
  %508 = load ptr, ptr @OriginalPointsBSGScompressed, align 8, !tbaa !5
  %509 = load i32, ptr %16, align 4, !tbaa !9
  %510 = zext i32 %509 to i64
  %511 = getelementptr inbounds i8, ptr %508, i64 %510
  %512 = load i8, ptr %511, align 1, !tbaa !19, !range !21, !noundef !22
  %513 = trunc i8 %512 to i1
  %514 = invoke noundef ptr @_ZN9Secp256K115GetPublicKeyHexEbR5Point(ptr noundef nonnull align 8 dereferenceable(393296) %507, i1 noundef zeroext %513, ptr noundef nonnull align 8 dereferenceable(48) %15)
          to label %515 unwind label %532

515:                                              ; preds = %506
  store ptr %514, ptr %7, align 8, !tbaa !5
  %516 = load ptr, ptr %7, align 8, !tbaa !5
  %517 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.238, ptr noundef %516)
          to label %518 unwind label %532

518:                                              ; preds = %515
  %519 = call i32 @pthread_mutex_lock(ptr noundef @write_keys) #8
  %520 = invoke noalias ptr @fopen(ptr noundef @.str.228, ptr noundef @.str.239)
          to label %521 unwind label %532

521:                                              ; preds = %518
  store ptr %520, ptr %4, align 8, !tbaa !5
  %522 = load ptr, ptr %4, align 8, !tbaa !5
  %523 = icmp ne ptr %522, null
  br i1 %523, label %524, label %545

524:                                              ; preds = %521
  %525 = load ptr, ptr %4, align 8, !tbaa !5
  %526 = load ptr, ptr %8, align 8, !tbaa !5
  %527 = load ptr, ptr %7, align 8, !tbaa !5
  %528 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %525, ptr noundef @.str.240, ptr noundef %526, ptr noundef %527) #8
  %529 = load ptr, ptr %4, align 8, !tbaa !5
  %530 = invoke i32 @fclose(ptr noundef %529)
          to label %531 unwind label %532

531:                                              ; preds = %524
  br label %545

532:                                              ; preds = %576, %524, %518, %515, %506, %499, %497, %487, %476, %470
  %533 = landingpad { ptr, i32 }
          cleanup
  %534 = extractvalue { ptr, i32 } %533, 0
  store ptr %534, ptr %11, align 8
  %535 = extractvalue { ptr, i32 } %533, 1
  store i32 %535, ptr %12, align 4
  br label %585

536:                                              ; preds = %502
  %537 = landingpad { ptr, i32 }
          cleanup
  %538 = extractvalue { ptr, i32 } %537, 0
  store ptr %538, ptr %11, align 8
  %539 = extractvalue { ptr, i32 } %537, 1
  store i32 %539, ptr %12, align 4
  br label %544

540:                                              ; preds = %504
  %541 = landingpad { ptr, i32 }
          cleanup
  %542 = extractvalue { ptr, i32 } %541, 0
  store ptr %542, ptr %11, align 8
  %543 = extractvalue { ptr, i32 } %541, 1
  store i32 %543, ptr %12, align 4
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %42) #8
  br label %544

544:                                              ; preds = %540, %536
  call void @llvm.lifetime.end.p0(i64 48, ptr %42) #8
  br label %585

545:                                              ; preds = %531, %521
  %546 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %546) #8
  %547 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %547) #8
  %548 = call i32 @pthread_mutex_unlock(ptr noundef @write_keys) #8
  %549 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %550 = load i32, ptr %16, align 4, !tbaa !9
  %551 = zext i32 %550 to i64
  %552 = getelementptr inbounds i32, ptr %549, i64 %551
  store i32 1, ptr %552, align 4, !tbaa !9
  store i32 1, ptr %19, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %553

553:                                              ; preds = %570, %545
  %554 = load i32, ptr %17, align 4, !tbaa !9
  %555 = load i32, ptr @bsgs_point_number, align 4, !tbaa !9
  %556 = icmp ult i32 %554, %555
  br i1 %556, label %557, label %560

557:                                              ; preds = %553
  %558 = load i32, ptr %19, align 4, !tbaa !9
  %559 = icmp ne i32 %558, 0
  br label %560

560:                                              ; preds = %557, %553
  %561 = phi i1 [ false, %553 ], [ %559, %557 ]
  br i1 %561, label %562, label %573

562:                                              ; preds = %560
  %563 = load ptr, ptr @bsgs_found, align 8, !tbaa !5
  %564 = load i32, ptr %17, align 4, !tbaa !9
  %565 = zext i32 %564 to i64
  %566 = getelementptr inbounds i32, ptr %563, i64 %565
  %567 = load i32, ptr %566, align 4, !tbaa !9
  %568 = load i32, ptr %19, align 4, !tbaa !9
  %569 = and i32 %568, %567
  store i32 %569, ptr %19, align 4, !tbaa !9
  br label %570

570:                                              ; preds = %562
  %571 = load i32, ptr %17, align 4, !tbaa !9
  %572 = add i32 %571, 1
  store i32 %572, ptr %17, align 4, !tbaa !9
  br label %553, !llvm.loop !23

573:                                              ; preds = %560
  %574 = load i32, ptr %19, align 4, !tbaa !9
  %575 = icmp ne i32 %574, 0
  br i1 %575, label %576, label %579

576:                                              ; preds = %573
  %577 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.241)
          to label %578 unwind label %532

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

579:                                              ; preds = %573
  br label %580

580:                                              ; preds = %579, %494
  br label %581

581:                                              ; preds = %580, %484
  br label %582

582:                                              ; preds = %581
  %583 = load i32, ptr %41, align 4, !tbaa !9
  %584 = add nsw i32 %583, 1
  store i32 %584, ptr %41, align 4, !tbaa !9
  br label %457, !llvm.loop !24

585:                                              ; preds = %544, %532
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  br label %614

586:                                              ; preds = %469
  %587 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %34, ptr noundef nonnull align 8 dereferenceable(48) %24)
          to label %588 unwind label %333

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

590:                                              ; preds = %588
  %591 = load i32, ptr %40, align 4, !tbaa !9
  %592 = add nsw i32 %591, 1
  %593 = sext i32 %592 to i64
  %594 = getelementptr inbounds [513 x %class.Int], ptr %26, i64 0, i64 %593
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef %28, ptr noundef %594)
          to label %595 unwind label %333

595:                                              ; preds = %590
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef %30)
          to label %596 unwind label %333

596:                                              ; preds = %595
  %597 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(16) %597)
          to label %598 unwind label %333

598:                                              ; preds = %596
  %599 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(16) %599, ptr noundef %31)
          to label %600 unwind label %333

600:                                              ; preds = %598
  %601 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %601, ptr noundef @_2GSn)
          to label %602 unwind label %333

602:                                              ; preds = %600
  %603 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 1
  %604 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %603, ptr noundef @_2GSn, ptr noundef %604)
          to label %605 unwind label %333

605:                                              ; preds = %602
  %606 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 1
  invoke void @_ZN3Int8ModMulK1EPS_(ptr noundef nonnull align 8 dereferenceable(16) %606, ptr noundef %30)
          to label %607 unwind label %333

607:                                              ; preds = %605
  %608 = getelementptr inbounds %class.Point, ptr %34, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %608, ptr noundef getelementptr inbounds (%class.Point, ptr @_2GSn, i32 0, i32 1))
          to label %609 unwind label %333

609:                                              ; preds = %607
  %610 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %24, ptr noundef nonnull align 8 dereferenceable(48) %34)
          to label %611 unwind label %333

611:                                              ; preds = %609
  %612 = load i32, ptr %39, align 4, !tbaa !9
  %613 = add i32 %612, 1
  store i32 %613, ptr %39, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  br label %275, !llvm.loop !25

614:                                              ; preds = %585, %333
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  br label %635

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

616:                                              ; preds = %615, %260
  br label %617

617:                                              ; preds = %616
  %618 = load i32, ptr %16, align 4, !tbaa !9
  %619 = add i32 %618, 1
  store i32 %619, ptr %16, align 4, !tbaa !9
  br label %256, !llvm.loop !26

620:                                              ; preds = %256
  %621 = load ptr, ptr @steps, align 8, !tbaa !5
  %622 = load i32, ptr %20, align 4, !tbaa !9
  %623 = zext i32 %622 to i64
  %624 = getelementptr inbounds i64, ptr %621, i64 %623
  %625 = load i64, ptr %624, align 8, !tbaa !13
  %626 = add i64 %625, 2
  store i64 %626, ptr %624, align 8, !tbaa !13
  br label %627

627:                                              ; preds = %620
  br i1 true, label %180, label %628, !llvm.loop !27

628:                                              ; preds = %627, %213
  %629 = load ptr, ptr @ends, align 8, !tbaa !5
  %630 = load i32, ptr %20, align 4, !tbaa !9
  %631 = zext i32 %630 to i64
  %632 = getelementptr inbounds i32, ptr %629, i64 %631
  store i32 1, ptr %632, align 4, !tbaa !9
  store ptr null, ptr %2, align 8
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %35) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %35) #8
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %34) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %34) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %33) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %30) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #8
  %633 = getelementptr inbounds [1024 x %class.Point], ptr %27, i32 0, i32 0
  %634 = getelementptr inbounds %class.Point, ptr %633, i64 1024
  br label %646

635:                                              ; preds = %614, %332, %323, %314, %172
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %35) #8
  br label %636

636:                                              ; preds = %635, %168
  call void @llvm.lifetime.end.p0(i64 48, ptr %35) #8
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %34) #8
  br label %637

637:                                              ; preds = %636, %164
  call void @llvm.lifetime.end.p0(i64 48, ptr %34) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %33) #8
  br label %638

638:                                              ; preds = %637, %160
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %32) #8
  br label %639

639:                                              ; preds = %638, %156
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %31) #8
  br label %640

640:                                              ; preds = %639, %152
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %30) #8
  br label %641

641:                                              ; preds = %640, %148
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %29) #8
  br label %642

642:                                              ; preds = %641, %144
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %28) #8
  br label %643

643:                                              ; preds = %642, %140
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #8
  %644 = getelementptr inbounds [1024 x %class.Point], ptr %27, i32 0, i32 0
  %645 = getelementptr inbounds %class.Point, ptr %644, i64 1024
  br label %653

646:                                              ; preds = %646, %628
  %647 = phi ptr [ %634, %628 ], [ %648, %646 ]
  %648 = getelementptr inbounds %class.Point, ptr %647, i64 -1
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %648) #8
  %649 = icmp eq ptr %648, %633
  br i1 %649, label %650, label %646

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

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

657:                                              ; preds = %653
  br label %658

658:                                              ; preds = %657, %139
  call void @llvm.lifetime.end.p0(i64 49152, ptr %27) #8
  %659 = getelementptr inbounds [513 x %class.Int], ptr %26, i32 0, i32 0
  %660 = getelementptr inbounds %class.Int, ptr %659, i64 513
  br label %667

661:                                              ; preds = %661, %650
  %662 = phi ptr [ %652, %650 ], [ %663, %661 ]
  %663 = getelementptr inbounds %class.Int, ptr %662, i64 -1
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %663) #8
  %664 = icmp eq ptr %663, %651
  br i1 %664, label %665, label %661

665:                                              ; preds = %661
  call void @llvm.lifetime.end.p0(i64 8208, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %24) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #8
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #8
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %13) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  %666 = load ptr, ptr %2, align 8
  ret ptr %666

667:                                              ; preds = %667, %658
  %668 = phi ptr [ %660, %658 ], [ %669, %667 ]
  %669 = getelementptr inbounds %class.Int, ptr %668, i64 -1
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %669) #8
  %670 = icmp eq ptr %669, %659
  br i1 %670, label %671, label %667

671:                                              ; preds = %667
  br label %672

672:                                              ; preds = %671, %129
  call void @llvm.lifetime.end.p0(i64 8208, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %24) #8
  br label %673

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

674:                                              ; preds = %673, %112, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %15) #8
  br label %675

675:                                              ; preds = %674, %104
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #8
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #8
  br label %676

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

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

678:                                              ; preds = %677, %92
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  br label %679

679:                                              ; preds = %678
  %680 = load ptr, ptr %11, align 8
  %681 = load i32, ptr %12, align 4
  %682 = insertvalue { ptr, i32 } poison, ptr %680, 0
  %683 = insertvalue { ptr, i32 } %682, i32 %681, 1
  resume { ptr, i32 } %683
}

declare void @_ZN3Int3AddEPKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) #0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

declare void @_ZN3Int3SetEPKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #0

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

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

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

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

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

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

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #0

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

declare void @_ZN9Secp256K19AddDirectER5PointS1_(ptr dead_on_unwind writable sret(%class.Point) align 8, ptr noundef nonnull align 8 dereferenceable(393296), ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #0

; Function Attrs: nounwind
declare i32 @pthread_mutex_lock(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare i32 @pthread_mutex_unlock(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noalias noundef ptr @_Z25thread_process_bsgs_dancePv(ptr nocapture noundef %0) local_unnamed_addr #9 personality ptr @__gxx_personality_v0 {
  %2 = alloca [32 x i8], align 16
  %3 = alloca %class.Int, align 8
  %4 = alloca %class.Int, align 8
  %5 = alloca %class.Point, align 8
  %6 = alloca %class.Point, align 8
  %7 = alloca %class.Point, align 8
  %8 = alloca %class.Point, align 8
  %9 = alloca [513 x %class.Int], align 16
  %10 = alloca [1024 x %class.Point], align 16
  %11 = alloca %class.Int, align 8
  %12 = alloca %class.Int, align 8
  %13 = alloca %class.Int, align 8
  %14 = alloca %class.Int, align 8
  %15 = alloca %class.Int, align 8
  %16 = alloca %class.Int, align 8
  %17 = alloca %class.Point, align 8
  %18 = alloca %class.Point, align 8
  %19 = alloca %class.Point, align 8
  %20 = alloca %class.Point, align 8
  %21 = alloca %class.Point, align 8
  %22 = alloca %class.Point, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #10
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %3)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #10
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %23 unwind label %56

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.loopexit164:                                     ; preds = %.invoke, %110, %113, %114, %116, %119, %120, %121, %128, %137, %147, %148, %149, %152
  %lpad.loopexit166 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

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

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

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

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

106:                                              ; preds = %.preheader163, %._crit_edge189
  %107 = call i32 @rand() #10
  %108 = srem i32 %107, 3
  %109 = call i32 @pthread_mutex_lock(ptr noundef nonnull @bsgs_thread) #10
  switch i32 %108, label %.critedge155 [
    i32 0, label %110
    i32 1, label %116
    i32 2, label %121
  ]

110:                                              ; preds = %106
  %111 = invoke noundef zeroext i1 @_ZN3Int9IsGreaterEPS_(ptr noundef nonnull align 8 dereferenceable(16) @n_range_end, ptr noundef nonnull @BSGS_CURRENT)
          to label %112 unwind label %.loopexit164

112:                                              ; preds = %110
  br i1 %111, label %113, label %122

113:                                              ; preds = %112
  invoke void @_ZN3Int3SubEPS_(ptr noundef nonnull align 8 dereferenceable(16) @n_range_end, ptr noundef nonnull @BSGS_N_double)
          to label %114 unwind label %.loopexit164

114:                                              ; preds = %113
  %115 = invoke noundef zeroext i1 @_ZN3Int7IsLowerEPS_(ptr noundef nonnull align 8 dereferenceable(16) @n_range_end, ptr noundef nonnull @BSGS_CURRENT)
          to label %.invoke unwind label %.loopexit164

.invoke:                                          ; preds = %114
  %BSGS_CURRENT.n_range_end = select i1 %115, ptr @BSGS_CURRENT, ptr @n_range_end
  invoke void @_ZN3Int3SetEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull %BSGS_CURRENT.n_range_end)
          to label %.critedge155 unwind label %.loopexit164

116:                                              ; preds = %106
  %117 = invoke noundef zeroext i1 @_ZN3Int7IsLowerEPS_(ptr noundef nonnull align 8 dereferenceable(16) @BSGS_CURRENT, ptr noundef nonnull @n_range_end)
          to label %118 unwind label %.loopexit164

118:                                              ; preds = %116
  br i1 %117, label %119, label %122

119:                                              ; preds = %118
  invoke void @_ZN3Int3SetEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull @BSGS_CURRENT)
          to label %120 unwind label %.loopexit164

120:                                              ; preds = %119
  invoke void @_ZN3Int3AddEPKS_(ptr noundef nonnull align 8 dereferenceable(16) @BSGS_CURRENT, ptr noundef nonnull @BSGS_N_double)
          to label %.critedge155 unwind label %.loopexit164

121:                                              ; preds = %106
  invoke void @_ZN3Int4RandEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull @BSGS_CURRENT, ptr noundef nonnull @n_range_end)
          to label %.critedge155 unwind label %.loopexit164

122:                                              ; preds = %118, %112
  %123 = call i32 @pthread_mutex_unlock(ptr noundef nonnull @bsgs_thread) #10
  %124 = load ptr, ptr @ends, align 8, !tbaa !13
  %125 = getelementptr inbounds i32, ptr %124, i64 %103
  store i32 1, ptr %125, align 4, !tbaa !14
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %18) #10
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %17) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %17) #10
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #10
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #10
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #10
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #10
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #10
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #10
  br label %349

.critedge155:                                     ; preds = %.invoke, %120, %121, %106
  %126 = call i32 @pthread_mutex_unlock(ptr noundef nonnull @bsgs_thread) #10
  %127 = load i32, ptr @FLAGMATRIX, align 4, !tbaa !14
  %.not122 = icmp eq i32 %127, 0
  br i1 %.not122, label %134, label %128

128:                                              ; preds = %.critedge155
  %129 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %130 unwind label %.loopexit164

130:                                              ; preds = %128
  %131 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.234, ptr noundef %129)
  %132 = load ptr, ptr @stdout, align 8, !tbaa !13
  %133 = call i32 @fflush(ptr noundef %132)
  call void @free(ptr noundef %129) #10
  br label %143

134:                                              ; preds = %.critedge155
  %135 = load i32, ptr @FLAGQUIET, align 4, !tbaa !14
  %136 = icmp eq i32 %135, 0
  br i1 %136, label %137, label %143

137:                                              ; preds = %134
  %138 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(16) %3)
          to label %139 unwind label %.loopexit164

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

143:                                              ; preds = %134, %139, %130
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %19) #10
  %144 = load ptr, ptr @secp, align 8, !tbaa !13
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %19, ptr noundef nonnull align 8 dereferenceable(393296) %144, ptr noundef nonnull %3)
          to label %145 unwind label %317

145:                                              ; preds = %143
  %146 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(48) %19)
          to label %147 unwind label %319

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

148:                                              ; preds = %147
  invoke void @_ZN3Int3NegEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %149 unwind label %.loopexit164

149:                                              ; preds = %148
  %150 = load ptr, ptr @secp, align 8, !tbaa !13
  %151 = getelementptr inbounds i8, ptr %150, i64 64
  invoke void @_ZN3Int3AddEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull %151)
          to label %152 unwind label %.loopexit164

152:                                              ; preds = %149
  invoke void @_ZN3Int3SubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull %16)
          to label %153 unwind label %.loopexit164

153:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %20) #10
  %154 = load ptr, ptr @secp, align 8, !tbaa !13
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %20, ptr noundef nonnull align 8 dereferenceable(393296) %154, ptr noundef nonnull %15)
          to label %155 unwind label %322

155:                                              ; preds = %153
  %156 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(48) %20)
          to label %157 unwind label %324

157:                                              ; preds = %155
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %20) #10
  %158 = load i32, ptr @bsgs_point_number, align 4, !tbaa !14
  %.not209 = icmp eq i32 %158, 0
  br i1 %.not209, label %._crit_edge189, label %.lr.ph188

.lr.ph188:                                        ; preds = %157
  br i1 %.not208, label %.lr.ph188.split.preheader, label %.lr.ph188.split.us

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

.lr.ph188.split.us:                               ; preds = %.lr.ph188, %.critedge.us
  %159 = phi i32 [ %175, %.critedge.us ], [ %158, %.lr.ph188 ]
  %indvars.iv237 = phi i64 [ %indvars.iv.next238, %.critedge.us ], [ 0, %.lr.ph188 ]
  %160 = load ptr, ptr @bsgs_found, align 8, !tbaa !13
  %161 = getelementptr inbounds i32, ptr %160, i64 %indvars.iv237
  %162 = load i32, ptr %161, align 4, !tbaa !14
  %163 = icmp eq i32 %162, 0
  br i1 %163, label %164, label %.critedge.us

164:                                              ; preds = %.lr.ph188.split.us
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %21) #10
  %165 = load ptr, ptr @secp, align 8, !tbaa !13
  %166 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @OriginalPointsBSGS, i64 noundef %indvars.iv237) #10
  invoke void @_ZN9Secp256K19AddDirectER5PointS1_(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %21, ptr noundef nonnull align 8 dereferenceable(393296) %165, ptr noundef nonnull align 8 dereferenceable(48) %166, ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %167 unwind label %.split.us

167:                                              ; preds = %164
  %168 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 8 dereferenceable(48) %21)
          to label %.lr.ph183.us unwind label %.split191.us

.lr.ph183.us:                                     ; preds = %167
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %21) #10
  %169 = trunc nuw i64 %indvars.iv237 to i32
  br label %170

170:                                              ; preds = %.lr.ph183.us, %216
  %indvars.iv233 = phi i64 [ 0, %.lr.ph183.us ], [ %indvars.iv.next234, %216 ]
  %171 = load ptr, ptr @bsgs_found, align 8, !tbaa !13
  %172 = getelementptr inbounds i32, ptr %171, i64 %indvars.iv237
  %173 = load i32, ptr %172, align 4, !tbaa !14
  %174 = icmp eq i32 %173, 0
  br i1 %174, label %.preheader159.us, label %.critedge.us.loopexit

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

.critedge.us:                                     ; preds = %.critedge.us.loopexit, %.lr.ph188.split.us
  %175 = phi i32 [ %.pre, %.critedge.us.loopexit ], [ %159, %.lr.ph188.split.us ]
  %indvars.iv.next238 = add nuw nsw i64 %indvars.iv237, 1
  %176 = zext i32 %175 to i64
  %177 = icmp ult i64 %indvars.iv.next238, %176
  br i1 %177, label %.lr.ph188.split.us, label %._crit_edge189, !llvm.loop !15

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

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

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

182:                                              ; preds = %181
  %183 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %100, ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %.preheader157.us unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

.preheader157.us:                                 ; preds = %182, %294
  %indvars.iv222 = phi i64 [ %indvars.iv.next223, %294 ], [ 0, %182 ]
  %exitcond225.not = icmp eq i64 %indvars.iv222, 511
  br i1 %exitcond225.not, label %184, label %265

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

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

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

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

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

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

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

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

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

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

199:                                              ; preds = %.preheader.us, %264
  %indvars.iv229 = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next230, %264 ]
  %200 = load ptr, ptr @bsgs_found, align 8, !tbaa !13
  %201 = getelementptr inbounds i32, ptr %200, i64 %indvars.iv237
  %202 = load i32, ptr %201, align 4, !tbaa !14
  %203 = icmp eq i32 %202, 0
  br i1 %203, label %217, label %.critedge2.us

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

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

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

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

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

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

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

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

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

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

214:                                              ; preds = %213
  %215 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 8 dereferenceable(48) %17)
          to label %216 unwind label %.loopexit.split-lp.loopexit.split-lp.split.us

216:                                              ; preds = %214
  %indvars.iv.next234 = add nuw nsw i64 %indvars.iv233, 1
  %exitcond236.not = icmp eq i64 %indvars.iv.next234, %wide.trip.count
  br i1 %exitcond236.not, label %.critedge.us.loopexit, label %170, !llvm.loop !17

217:                                              ; preds = %199
  %218 = getelementptr inbounds [1024 x %class.Point], ptr %10, i64 0, i64 %indvars.iv229
  invoke void @_ZN3Int10Get32BytesEPh(ptr noundef nonnull align 8 dereferenceable(16) %218, ptr noundef nonnull %2)
          to label %219 unwind label %.split195.us

219:                                              ; preds = %217
  %220 = load ptr, ptr @bloom_bP, align 8, !tbaa !13
  %221 = load i8, ptr %2, align 16, !tbaa !18
  %222 = zext i8 %221 to i64
  %223 = getelementptr inbounds %struct.bloom, ptr %220, i64 %222
  %224 = invoke i32 @bloom_check(ptr noundef %223, ptr noundef nonnull %2, i32 noundef 32)
          to label %225 unwind label %.split195.us

225:                                              ; preds = %219
  %.not128.us = icmp eq i32 %224, 0
  br i1 %.not128.us, label %264, label %226

226:                                              ; preds = %225
  %227 = add i64 %indvars.iv229, %301
  %228 = trunc i64 %227 to i32
  %229 = invoke noundef i32 @_Z16bsgs_secondcheckP3IntjjS0_(ptr noundef nonnull %3, i32 noundef %228, i32 noundef %169, ptr noundef nonnull %4)
          to label %230 unwind label %.split195.us

230:                                              ; preds = %226
  %.not129.us = icmp eq i32 %229, 0
  br i1 %.not129.us, label %264, label %231

231:                                              ; preds = %230
  %232 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %233 unwind label %.split195.us

233:                                              ; preds = %231
  %234 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.237, ptr noundef %232)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %22) #10
  %235 = load ptr, ptr @secp, align 8, !tbaa !13
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %22, ptr noundef nonnull align 8 dereferenceable(393296) %235, ptr noundef nonnull %4)
          to label %236 unwind label %.split198.us

236:                                              ; preds = %233
  %237 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(48) %22)
          to label %238 unwind label %.split201.us

238:                                              ; preds = %236
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %22) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %22) #10
  %239 = load ptr, ptr @secp, align 8, !tbaa !13
  %240 = load ptr, ptr @OriginalPointsBSGScompressed, align 8, !tbaa !13
  %241 = getelementptr inbounds i8, ptr %240, i64 %indvars.iv237
  %242 = load i8, ptr %241, align 1, !tbaa !19, !range !21, !noundef !22
  %243 = trunc nuw i8 %242 to i1
  %244 = invoke noundef ptr @_ZN9Secp256K115GetPublicKeyHexEbR5Point(ptr noundef nonnull align 8 dereferenceable(393296) %239, i1 noundef zeroext %243, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %245 unwind label %.split195.us

245:                                              ; preds = %238
  %246 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.238, ptr noundef %244)
  %247 = call i32 @pthread_mutex_lock(ptr noundef nonnull @write_keys) #10
  %248 = call noalias ptr @fopen(ptr noundef nonnull @.str.228, ptr noundef nonnull @.str.239)
  %.not134.us = icmp eq ptr %248, null
  br i1 %.not134.us, label %252, label %249

249:                                              ; preds = %245
  %250 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %248, ptr noundef nonnull @.str.240, ptr noundef %232, ptr noundef %244) #10
  %251 = call i32 @fclose(ptr noundef nonnull %248)
  br label %252

252:                                              ; preds = %249, %245
  call void @free(ptr noundef %232) #10
  call void @free(ptr noundef %244) #10
  %253 = call i32 @pthread_mutex_unlock(ptr noundef nonnull @write_keys) #10
  %254 = load ptr, ptr @bsgs_found, align 8, !tbaa !13
  %255 = getelementptr inbounds i32, ptr %254, i64 %indvars.iv237
  store i32 1, ptr %255, align 4, !tbaa !14
  %256 = load i32, ptr @bsgs_point_number, align 4, !tbaa !14
  %.not210 = icmp eq i32 %256, 0
  br i1 %.not210, label %.split204.us, label %.lr.ph.us.preheader

.lr.ph.us.preheader:                              ; preds = %252
  %257 = zext i32 %256 to i64
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %.lr.ph.us
  %indvars.iv226 = phi i64 [ 0, %.lr.ph.us.preheader ], [ %indvars.iv.next227, %.lr.ph.us ]
  %258 = getelementptr inbounds i32, ptr %254, i64 %indvars.iv226
  %259 = load i32, ptr %258, align 4, !tbaa !14
  %260 = and i32 %259, 1
  %indvars.iv.next227 = add nuw nsw i64 %indvars.iv226, 1
  %261 = icmp ult i64 %indvars.iv.next227, %257
  %262 = icmp ne i32 %260, 0
  %263 = select i1 %261, i1 %262, i1 false
  br i1 %263, label %.lr.ph.us, label %._crit_edge.us, !llvm.loop !23

264:                                              ; preds = %._crit_edge.us, %230, %225
  %indvars.iv.next230 = add nuw nsw i64 %indvars.iv229, 1
  %exitcond232.not = icmp eq i64 %indvars.iv.next230, 1024
  br i1 %exitcond232.not, label %.critedge2.us, label %199, !llvm.loop !24

265:                                              ; preds = %.preheader157.us
  %266 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %17, ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %267 unwind label %.loopexit158.split.us

267:                                              ; preds = %265
  %268 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %18, ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %269 unwind label %.loopexit158.split.us

269:                                              ; preds = %267
  %270 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv222) #10
  %271 = getelementptr inbounds i8, ptr %270, i64 16
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull %271, ptr noundef nonnull %101)
          to label %272 unwind label %.loopexit158.split.us

272:                                              ; preds = %269
  %273 = getelementptr inbounds [513 x %class.Int], ptr %9, i64 0, i64 %indvars.iv222
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull %11, ptr noundef nonnull %273)
          to label %274 unwind label %.loopexit158.split.us

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

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

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

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

279:                                              ; preds = %277
  %280 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv222) #10
  %281 = getelementptr inbounds i8, ptr %280, i64 16
  invoke void @_ZN3Int3SetEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull %281)
          to label %282 unwind label %.loopexit158.split.us

282:                                              ; preds = %279
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %283 unwind label %.loopexit158.split.us

283:                                              ; preds = %282
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull %102)
          to label %284 unwind label %.loopexit158.split.us

284:                                              ; preds = %283
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull %12, ptr noundef nonnull %273)
          to label %285 unwind label %.loopexit158.split.us

285:                                              ; preds = %284
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull %13)
          to label %286 unwind label %.loopexit158.split.us

286:                                              ; preds = %285
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %287 unwind label %.loopexit158.split.us

287:                                              ; preds = %286
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull %14)
          to label %288 unwind label %.loopexit158.split.us

288:                                              ; preds = %287
  %289 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @GSn, i64 noundef %indvars.iv222) #10
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull %289)
          to label %290 unwind label %.loopexit158.split.us

290:                                              ; preds = %288
  %291 = add nuw nsw i64 %indvars.iv222, 513
  %292 = getelementptr inbounds [1024 x %class.Point], ptr %10, i64 0, i64 %291
  %293 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %292, ptr noundef nonnull align 8 dereferenceable(48) %17)
          to label %294 unwind label %.loopexit158.split.us

294:                                              ; preds = %290
  %indvars.iv.next223 = add nuw nsw i64 %indvars.iv222, 1
  %295 = sub nuw nsw i64 511, %indvars.iv222
  %296 = getelementptr inbounds [1024 x %class.Point], ptr %10, i64 0, i64 %295
  %297 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %296, ptr noundef nonnull align 8 dereferenceable(48) %18)
          to label %.preheader157.us unwind label %.loopexit158.split.us, !llvm.loop !25

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

300:                                              ; preds = %.preheader159.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 %178, label %.preheader159.us, !llvm.loop !26

.preheader.us:                                    ; preds = %197
  %301 = shl i64 %indvars.iv233, 10
  br label %199

._crit_edge.us:                                   ; preds = %.lr.ph.us
  br i1 %262, label %.split204.us, label %264

.split.us:                                        ; preds = %164
  %302 = landingpad { ptr, i32 }
          cleanup
  br label %330

.split191.us:                                     ; preds = %167
  %303 = landingpad { ptr, i32 }
          cleanup
  br label %329

.loopexit.split-lp.loopexit.split-lp.split.us:    ; preds = %214, %213, %212, %211, %210, %209, %208, %207, %206, %205, %.critedge2.us, %197, %195, %194, %193, %192, %191, %190, %189, %186, %184, %182, %181, %180, %178
  %lpad.loopexit.split-lp161.us = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.split195.us:                                     ; preds = %238, %231, %226, %219, %217
  %304 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.split198.us:                                     ; preds = %233
  %305 = landingpad { ptr, i32 }
          cleanup
  br label %331

.split201.us:                                     ; preds = %236
  %306 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %22) #10
  br label %331

.loopexit158.split.us:                            ; preds = %294, %290, %288, %287, %286, %285, %284, %283, %282, %279, %277, %276, %275, %274, %272, %269, %267, %265
  %lpad.loopexit.us = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

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

.lr.ph188.split:                                  ; preds = %.lr.ph188.split.preheader, %.critedge
  %307 = phi i32 [ %158, %.lr.ph188.split.preheader ], [ %333, %.critedge ]
  %308 = phi ptr [ %.pre244, %.lr.ph188.split.preheader ], [ %334, %.critedge ]
  %indvars.iv240 = phi i64 [ 0, %.lr.ph188.split.preheader ], [ %indvars.iv.next241, %.critedge ]
  %309 = getelementptr inbounds i32, ptr %308, i64 %indvars.iv240
  %310 = load i32, ptr %309, align 4, !tbaa !14
  %311 = icmp eq i32 %310, 0
  br i1 %311, label %312, label %.critedge

312:                                              ; preds = %.lr.ph188.split
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %21) #10
  %313 = load ptr, ptr @secp, align 8, !tbaa !13
  %314 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @OriginalPointsBSGS, i64 noundef %indvars.iv240) #10
  invoke void @_ZN9Secp256K19AddDirectER5PointS1_(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %21, ptr noundef nonnull align 8 dereferenceable(393296) %313, ptr noundef nonnull align 8 dereferenceable(48) %314, ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %315 unwind label %.split

315:                                              ; preds = %312
  %316 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN5PointaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 8 dereferenceable(48) %21)
          to label %.critedge.loopexit unwind label %.split191

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

317:                                              ; preds = %143
  %318 = landingpad { ptr, i32 }
          cleanup
  br label %321

319:                                              ; preds = %145
  %320 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #10
  br label %321

321:                                              ; preds = %319, %317
  %.pn = phi { ptr, i32 } [ %320, %319 ], [ %318, %317 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %19) #10
  br label %.loopexit.split-lp

322:                                              ; preds = %153
  %323 = landingpad { ptr, i32 }
          cleanup
  br label %326

324:                                              ; preds = %155
  %325 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #10
  br label %326

326:                                              ; preds = %324, %322
  %.pn124 = phi { ptr, i32 } [ %325, %324 ], [ %323, %322 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %20) #10
  br label %.loopexit.split-lp

.split:                                           ; preds = %312
  %327 = landingpad { ptr, i32 }
          cleanup
  br label %330

.split191:                                        ; preds = %315
  %328 = landingpad { ptr, i32 }
          cleanup
  br label %329

329:                                              ; preds = %.split191.us, %.split191
  %.us-phi192 = phi { ptr, i32 } [ %328, %.split191 ], [ %303, %.split191.us ]
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %21) #10
  br label %330

330:                                              ; preds = %.split, %.split.us, %329
  %.pn126 = phi { ptr, i32 } [ %.us-phi192, %329 ], [ %327, %.split ], [ %302, %.split.us ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %21) #10
  br label %.loopexit.split-lp

331:                                              ; preds = %.split201.us, %.split198.us
  %.pn130 = phi { ptr, i32 } [ %306, %.split201.us ], [ %305, %.split198.us ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %22) #10
  br label %.loopexit.split-lp

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

.critedge:                                        ; preds = %.critedge.loopexit, %.lr.ph188.split
  %333 = phi i32 [ %.pre245, %.critedge.loopexit ], [ %307, %.lr.ph188.split ]
  %334 = phi ptr [ %.pre243, %.critedge.loopexit ], [ %308, %.lr.ph188.split ]
  %indvars.iv.next241 = add nuw nsw i64 %indvars.iv240, 1
  %335 = zext i32 %333 to i64
  %336 = icmp ult i64 %indvars.iv.next241, %335
  br i1 %336, label %.lr.ph188.split, label %._crit_edge189, !llvm.loop !15

._crit_edge189:                                   ; preds = %.critedge.us, %.critedge, %157
  %337 = load ptr, ptr @steps, align 8, !tbaa !13
  %338 = getelementptr inbounds i64, ptr %337, i64 %103
  %339 = load i64, ptr %338, align 8, !tbaa !11
  %340 = add i64 %339, 2
  store i64 %340, ptr %338, align 8, !tbaa !11
  br label %106, !llvm.loop !27

.loopexit.split-lp:                               ; preds = %.loopexit158.split.us, %.loopexit.split-lp.loopexit.split-lp.split.us, %.loopexit.split-lp.loopexit.split.us, %.loopexit164, %.loopexit.split-lp165, %331, %.split195.us, %330, %326, %321
  %.pn135.pn = phi { ptr, i32 } [ %.pn126, %330 ], [ %.pn124, %326 ], [ %.pn, %321 ], [ %304, %.split195.us ], [ %.pn130, %331 ], [ %lpad.loopexit166, %.loopexit164 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp165 ], [ %lpad.loopexit.us, %.loopexit158.split.us ], [ %lpad.loopexit160.us, %.loopexit.split-lp.loopexit.split.us ], [ %lpad.loopexit.split-lp161.us, %.loopexit.split-lp.loopexit.split-lp.split.us ]
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %18) #10
  br label %341

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

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

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

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

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

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

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

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

349:                                              ; preds = %349, %122
  %350 = phi ptr [ %36, %122 ], [ %351, %349 ]
  %351 = getelementptr inbounds i8, ptr %350, i64 -48
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %351) #10
  %352 = icmp eq ptr %351, %10
  br i1 %352, label %353, label %349

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

354:                                              ; preds = %354, %348
  %355 = phi ptr [ %36, %348 ], [ %356, %354 ]
  %356 = getelementptr inbounds i8, ptr %355, i64 -48
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %356) #10
  %357 = icmp eq ptr %356, %10
  br i1 %357, label %.loopexit156, label %354

.loopexit156:                                     ; preds = %.preheader168, %354, %76
  %.pn135.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %77, %76 ], [ %.pn135.pn.pn.pn.pn.pn.pn.pn.pn.pn, %354 ], [ %77, %.preheader168 ]
  call void @llvm.lifetime.end.p0(i64 49152, ptr nonnull %10) #10
  br label %363

358:                                              ; preds = %358, %353
  %359 = phi ptr [ %31, %353 ], [ %360, %358 ]
  %360 = getelementptr inbounds i8, ptr %359, i64 -16
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %360) #10
  %361 = icmp eq ptr %360, %9
  br i1 %361, label %362, label %358

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

363:                                              ; preds = %363, %.loopexit156
  %364 = phi ptr [ %31, %.loopexit156 ], [ %365, %363 ]
  %365 = getelementptr inbounds i8, ptr %364, i64 -16
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %365) #10
  %366 = icmp eq ptr %365, %9
  br i1 %366, label %.loopexit, label %363

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

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

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

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

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

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

372:                                              ; preds = %371, %56
  %.pn135.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn135.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %371 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #10
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %3) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #10
  resume { ptr, i32 } %.pn135.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

declare void @_ZN3Int3AddEPKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) local_unnamed_addr #0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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