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

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

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

@Gn = external dso_local global %"class.std::vector", align 8
@_2Gn = external dso_local global %class.Point, align 8
@bPload_mutex = external dso_local global ptr, align 8
@FLAGREADEDFILE1 = external dso_local global i32, align 4
@FLAGREADEDFILE2 = external dso_local global i32, align 4
@FLAGREADEDFILE3 = external dso_local global i32, align 4
@FLAGREADEDFILE4 = external dso_local global i32, align 4
@BSGS_XVALUE_RAM = external dso_local global i64, align 8
@BSGS_BUFFERXPOINTLENGTH = external dso_local global i64, align 8
@bPtable = external dso_local global ptr, align 8
@bloom_bP = external dso_local global ptr, align 8
@bloom_bPx2nd = external dso_local global ptr, align 8
@bloom_bPx3rd = external dso_local global ptr, align 8
@bloom_bP_mutex = external dso_local global ptr, align 8
@bloom_bPx2nd_mutex = external dso_local global ptr, align 8
@bloom_bPx3rd_mutex = external dso_local global ptr, align 8
@bsgs_m2 = external dso_local global i64, align 8
@bsgs_m3 = external dso_local global i64, align 8
@secp = external dso_local global ptr, align 8

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; 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 @_Z13thread_bPloadPv(ptr noundef %0) #7 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca [32 x i8], align 16
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %class.Point, align 8
  %13 = alloca [513 x %class.Int], align 16
  %14 = alloca [1024 x %class.Point], align 16
  %15 = alloca %class.Int, align 8
  %16 = alloca %class.Int, align 8
  %17 = alloca %class.Int, align 8
  %18 = alloca %class.Int, align 8
  %19 = alloca %class.Point, align 8
  %20 = alloca %class.Point, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %class.Int, align 8
  %26 = alloca %class.Point, align 8
  %27 = alloca i64, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  %28 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #10
  invoke void @_ZN8IntGroupC1Ei(ptr noundef nonnull align 8 dereferenceable(20) %28, i32 noundef 513)
          to label %29 unwind label %84

29:                                               ; preds = %1
  store ptr %28, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 120, ptr %12) #9
  call void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %12)
  call void @llvm.lifetime.start.p0(i64 20520, ptr %13) #9
  %30 = getelementptr inbounds [513 x %class.Int], ptr %13, i32 0, i32 0
  %31 = getelementptr inbounds %class.Int, ptr %30, i64 513
  br label %32

32:                                               ; preds = %34, %29
  %33 = phi ptr [ %30, %29 ], [ %35, %34 ]
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %33)
          to label %34 unwind label %88

34:                                               ; preds = %32
  %35 = getelementptr inbounds %class.Int, ptr %33, i64 1
  %36 = icmp eq ptr %35, %31
  br i1 %36, label %37, label %32

37:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 122880, ptr %14) #9
  %38 = getelementptr inbounds [1024 x %class.Point], ptr %14, i32 0, i32 0
  %39 = getelementptr inbounds %class.Point, ptr %38, i64 1024
  br label %40

40:                                               ; preds = %42, %37
  %41 = phi ptr [ %38, %37 ], [ %43, %42 ]
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %41)
          to label %42 unwind label %92

42:                                               ; preds = %40
  %43 = getelementptr inbounds %class.Point, ptr %41, i64 1
  %44 = icmp eq ptr %43, %39
  br i1 %44, label %45, label %40

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

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

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

48:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 40, ptr %18) #9
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %18)
          to label %49 unwind label %114

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

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

51:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  store i32 511, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  %52 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %52, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %25) #9
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.bPload, ptr %53, i32 0, i32 1
  %55 = load i64, ptr %54, align 8, !tbaa !11
  %56 = add i64 %55, 1
  invoke void @_ZN3IntC1Em(ptr noundef nonnull align 8 dereferenceable(40) %25, i64 noundef %56)
          to label %57 unwind label %126

57:                                               ; preds = %51
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.bPload, ptr %58, i32 0, i32 0
  %60 = load i32, ptr %59, align 8, !tbaa !14
  store i32 %60, ptr %24, align 4, !tbaa !9
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.bPload, ptr %61, i32 0, i32 1
  %63 = load i64, ptr %62, align 8, !tbaa !11
  store i64 %63, ptr %5, align 8, !tbaa !15
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.bPload, ptr %64, i32 0, i32 2
  %66 = load i64, ptr %65, align 8, !tbaa !16
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.bPload, ptr %67, i32 0, i32 1
  %69 = load i64, ptr %68, align 8, !tbaa !11
  %70 = sub i64 %66, %69
  %71 = udiv i64 %70, 1024
  store i64 %71, ptr %7, align 8, !tbaa !15
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.bPload, ptr %72, i32 0, i32 2
  %74 = load i64, ptr %73, align 8, !tbaa !16
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.bPload, ptr %75, i32 0, i32 1
  %77 = load i64, ptr %76, align 8, !tbaa !11
  %78 = sub i64 %74, %77
  %79 = urem i64 %78, 1024
  %80 = icmp ne i64 %79, 0
  br i1 %80, label %81, label %130

81:                                               ; preds = %57
  %82 = load i64, ptr %7, align 8, !tbaa !15
  %83 = add i64 %82, 1
  store i64 %83, ptr %7, align 8, !tbaa !15
  br label %130

84:                                               ; preds = %1
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %10, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %11, align 4
  call void @_ZdlPvm(ptr noundef %28, i64 noundef 24) #11
  br label %452

88:                                               ; preds = %32
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %10, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %11, align 4
  br label %451

92:                                               ; preds = %40
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %10, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %11, align 4
  %96 = icmp eq ptr %38, %41
  br i1 %96, label %101, label %97

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

101:                                              ; preds = %97, %92
  br label %450

102:                                              ; preds = %45
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %10, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %11, align 4
  br label %442

106:                                              ; preds = %46
  %107 = landingpad { ptr, i32 }
          cleanup
  %108 = extractvalue { ptr, i32 } %107, 0
  store ptr %108, ptr %10, align 8
  %109 = extractvalue { ptr, i32 } %107, 1
  store i32 %109, ptr %11, align 4
  br label %441

110:                                              ; preds = %47
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %10, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %11, align 4
  br label %440

114:                                              ; preds = %48
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %10, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %11, align 4
  br label %439

118:                                              ; preds = %49
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %10, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %11, align 4
  br label %438

122:                                              ; preds = %50
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %10, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %11, align 4
  br label %437

126:                                              ; preds = %422, %136, %130, %51
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %10, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %11, align 4
  br label %436

130:                                              ; preds = %81, %57
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.bPload, ptr %131, i32 0, i32 2
  %133 = load i64, ptr %132, align 8, !tbaa !16
  store i64 %133, ptr %8, align 8, !tbaa !15
  invoke void @_ZN3Int3AddEm(ptr noundef nonnull align 8 dereferenceable(40) %25, i64 noundef 512)
          to label %134 unwind label %126

134:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 120, ptr %26) #9
  %135 = load ptr, ptr @secp, align 8, !tbaa !5
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind writable sret(%class.Point) align 8 %26, ptr noundef nonnull align 8 dereferenceable(983240) %135, ptr noundef %25)
          to label %136 unwind label %145

136:                                              ; preds = %134
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %26, i64 120, i1 false), !tbaa.struct !17
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %26) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %26) #9
  %137 = load ptr, ptr %9, align 8, !tbaa !5
  %138 = getelementptr inbounds [513 x %class.Int], ptr %13, i64 0, i64 0
  invoke void @_ZN8IntGroup3SetEP3Int(ptr noundef nonnull align 8 dereferenceable(20) %137, ptr noundef %138)
          to label %139 unwind label %126

139:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #9
  store i64 0, ptr %27, align 8, !tbaa !15
  br label %140

140:                                              ; preds = %415, %139
  %141 = load i64, ptr %27, align 8, !tbaa !15
  %142 = load i64, ptr %7, align 8, !tbaa !15
  %143 = icmp ult i64 %141, %142
  br i1 %143, label %149, label %144

144:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  br label %418

145:                                              ; preds = %134
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %10, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %26) #9
  br label %436

149:                                              ; preds = %140
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %150

150:                                              ; preds = %164, %149
  %151 = load i32, ptr %21, align 4, !tbaa !9
  %152 = load i32, ptr %23, align 4, !tbaa !9
  %153 = icmp slt i32 %151, %152
  br i1 %153, label %154, label %171

154:                                              ; preds = %150
  %155 = load i32, ptr %21, align 4, !tbaa !9
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [513 x %class.Int], ptr %13, i64 0, i64 %156
  %158 = load i32, ptr %21, align 4, !tbaa !9
  %159 = sext i32 %158 to i64
  %160 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Gn, i64 noundef %159) #9
  %161 = getelementptr inbounds %class.Point, ptr %160, i32 0, i32 0
  %162 = getelementptr inbounds %class.Point, ptr %12, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %157, ptr noundef %161, ptr noundef %162)
          to label %163 unwind label %167

163:                                              ; preds = %154
  br label %164

164:                                              ; preds = %163
  %165 = load i32, ptr %21, align 4, !tbaa !9
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %21, align 4, !tbaa !9
  br label %150, !llvm.loop !19

167:                                              ; preds = %412, %410, %407, %405, %403, %401, %400, %395, %393, %367, %340, %312, %280, %269, %267, %265, %264, %260, %258, %257, %252, %232, %230, %228, %227, %223, %221, %220, %215, %209, %207, %205, %204, %200, %194, %186, %180, %171, %154
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %10, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #9
  br label %436

171:                                              ; preds = %150
  %172 = load i32, ptr %21, align 4, !tbaa !9
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [513 x %class.Int], ptr %13, i64 0, i64 %173
  %175 = load i32, ptr %21, align 4, !tbaa !9
  %176 = sext i32 %175 to i64
  %177 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Gn, i64 noundef %176) #9
  %178 = getelementptr inbounds %class.Point, ptr %177, i32 0, i32 0
  %179 = getelementptr inbounds %class.Point, ptr %12, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %174, ptr noundef %178, ptr noundef %179)
          to label %180 unwind label %167

180:                                              ; preds = %171
  %181 = load i32, ptr %21, align 4, !tbaa !9
  %182 = add nsw i32 %181, 1
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [513 x %class.Int], ptr %13, i64 0, i64 %183
  %185 = getelementptr inbounds %class.Point, ptr %12, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %184, ptr noundef @_2Gn, ptr noundef %185)
          to label %186 unwind label %167

186:                                              ; preds = %180
  %187 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN8IntGroup6ModInvEv(ptr noundef nonnull align 8 dereferenceable(20) %187)
          to label %188 unwind label %167

188:                                              ; preds = %186
  %189 = getelementptr inbounds [1024 x %class.Point], ptr %14, i64 0, i64 512
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %189, ptr align 8 %12, i64 120, i1 false), !tbaa.struct !17
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %190

190:                                              ; preds = %249, %188
  %191 = load i32, ptr %21, align 4, !tbaa !9
  %192 = load i32, ptr %23, align 4, !tbaa !9
  %193 = icmp slt i32 %191, %192
  br i1 %193, label %194, label %252

194:                                              ; preds = %190
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %12, i64 120, i1 false), !tbaa.struct !17
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %12, i64 120, i1 false), !tbaa.struct !17
  %195 = load i32, ptr %21, align 4, !tbaa !9
  %196 = sext i32 %195 to i64
  %197 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Gn, i64 noundef %196) #9
  %198 = getelementptr inbounds %class.Point, ptr %197, i32 0, i32 1
  %199 = getelementptr inbounds %class.Point, ptr %19, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef %198, ptr noundef %199)
          to label %200 unwind label %167

200:                                              ; preds = %194
  %201 = load i32, ptr %21, align 4, !tbaa !9
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [513 x %class.Int], ptr %13, i64 0, i64 %202
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef %15, ptr noundef %203)
          to label %204 unwind label %167

204:                                              ; preds = %200
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %18, ptr noundef %17)
          to label %205 unwind label %167

205:                                              ; preds = %204
  %206 = getelementptr inbounds %class.Point, ptr %19, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %206)
          to label %207 unwind label %167

207:                                              ; preds = %205
  %208 = getelementptr inbounds %class.Point, ptr %19, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %208, ptr noundef %18)
          to label %209 unwind label %167

209:                                              ; preds = %207
  %210 = getelementptr inbounds %class.Point, ptr %19, i32 0, i32 0
  %211 = load i32, ptr %21, align 4, !tbaa !9
  %212 = sext i32 %211 to i64
  %213 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Gn, i64 noundef %212) #9
  %214 = getelementptr inbounds %class.Point, ptr %213, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %210, ptr noundef %214)
          to label %215 unwind label %167

215:                                              ; preds = %209
  %216 = load i32, ptr %21, align 4, !tbaa !9
  %217 = sext i32 %216 to i64
  %218 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Gn, i64 noundef %217) #9
  %219 = getelementptr inbounds %class.Point, ptr %218, i32 0, i32 1
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef %219)
          to label %220 unwind label %167

220:                                              ; preds = %215
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %16)
          to label %221 unwind label %167

221:                                              ; preds = %220
  %222 = getelementptr inbounds %class.Point, ptr %20, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef %222)
          to label %223 unwind label %167

223:                                              ; preds = %221
  %224 = load i32, ptr %21, align 4, !tbaa !9
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [513 x %class.Int], ptr %13, i64 0, i64 %225
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef %16, ptr noundef %226)
          to label %227 unwind label %167

227:                                              ; preds = %223
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %18, ptr noundef %17)
          to label %228 unwind label %167

228:                                              ; preds = %227
  %229 = getelementptr inbounds %class.Point, ptr %20, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %229)
          to label %230 unwind label %167

230:                                              ; preds = %228
  %231 = getelementptr inbounds %class.Point, ptr %20, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %231, ptr noundef %18)
          to label %232 unwind label %167

232:                                              ; preds = %230
  %233 = getelementptr inbounds %class.Point, ptr %20, i32 0, i32 0
  %234 = load i32, ptr %21, align 4, !tbaa !9
  %235 = sext i32 %234 to i64
  %236 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Gn, i64 noundef %235) #9
  %237 = getelementptr inbounds %class.Point, ptr %236, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %233, ptr noundef %237)
          to label %238 unwind label %167

238:                                              ; preds = %232
  %239 = load i32, ptr %21, align 4, !tbaa !9
  %240 = add nsw i32 %239, 1
  %241 = add nsw i32 512, %240
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds [1024 x %class.Point], ptr %14, i64 0, i64 %242
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %243, ptr align 8 %19, i64 120, i1 false), !tbaa.struct !17
  %244 = load i32, ptr %21, align 4, !tbaa !9
  %245 = add nsw i32 %244, 1
  %246 = sub nsw i32 512, %245
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [1024 x %class.Point], ptr %14, i64 0, i64 %247
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %248, ptr align 8 %20, i64 120, i1 false), !tbaa.struct !17
  br label %249

249:                                              ; preds = %238
  %250 = load i32, ptr %21, align 4, !tbaa !9
  %251 = add nsw i32 %250, 1
  store i32 %251, ptr %21, align 4, !tbaa !9
  br label %190, !llvm.loop !21

252:                                              ; preds = %190
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %12, i64 120, i1 false), !tbaa.struct !17
  %253 = load i32, ptr %21, align 4, !tbaa !9
  %254 = sext i32 %253 to i64
  %255 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Gn, i64 noundef %254) #9
  %256 = getelementptr inbounds %class.Point, ptr %255, i32 0, i32 1
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef %256)
          to label %257 unwind label %167

257:                                              ; preds = %252
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %16)
          to label %258 unwind label %167

258:                                              ; preds = %257
  %259 = getelementptr inbounds %class.Point, ptr %20, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef %259)
          to label %260 unwind label %167

260:                                              ; preds = %258
  %261 = load i32, ptr %21, align 4, !tbaa !9
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [513 x %class.Int], ptr %13, i64 0, i64 %262
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef %16, ptr noundef %263)
          to label %264 unwind label %167

264:                                              ; preds = %260
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %18, ptr noundef %17)
          to label %265 unwind label %167

265:                                              ; preds = %264
  %266 = getelementptr inbounds %class.Point, ptr %20, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %266)
          to label %267 unwind label %167

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

269:                                              ; preds = %267
  %270 = getelementptr inbounds %class.Point, ptr %20, i32 0, i32 0
  %271 = load i32, ptr %21, align 4, !tbaa !9
  %272 = sext i32 %271 to i64
  %273 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Gn, i64 noundef %272) #9
  %274 = getelementptr inbounds %class.Point, ptr %273, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %270, ptr noundef %274)
          to label %275 unwind label %167

275:                                              ; preds = %269
  %276 = getelementptr inbounds [1024 x %class.Point], ptr %14, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %276, ptr align 8 %20, i64 120, i1 false), !tbaa.struct !17
  store i64 0, ptr %6, align 8, !tbaa !15
  br label %277

277:                                              ; preds = %390, %275
  %278 = load i64, ptr %6, align 8, !tbaa !15
  %279 = icmp ult i64 %278, 1024
  br i1 %279, label %280, label %393

280:                                              ; preds = %277
  %281 = load i64, ptr %6, align 8, !tbaa !15
  %282 = getelementptr inbounds [1024 x %class.Point], ptr %14, i64 0, i64 %281
  %283 = getelementptr inbounds %class.Point, ptr %282, i32 0, i32 0
  %284 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
  invoke void @_ZN3Int10Get32BytesEPh(ptr noundef nonnull align 8 dereferenceable(40) %283, ptr noundef %284)
          to label %285 unwind label %167

285:                                              ; preds = %280
  %286 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
  %287 = load i8, ptr %286, align 16, !tbaa !18
  %288 = zext i8 %287 to i32
  store i32 %288, ptr %22, align 4, !tbaa !9
  %289 = load i64, ptr %5, align 8, !tbaa !15
  %290 = load i64, ptr @bsgs_m3, align 8, !tbaa !15
  %291 = icmp ult i64 %289, %290
  br i1 %291, label %292, label %333

292:                                              ; preds = %285
  %293 = load i32, ptr @FLAGREADEDFILE3, align 4, !tbaa !9
  %294 = icmp ne i32 %293, 0
  br i1 %294, label %309, label %295

295:                                              ; preds = %292
  %296 = load ptr, ptr @bPtable, align 8, !tbaa !5
  %297 = load i64, ptr %5, align 8, !tbaa !15
  %298 = getelementptr inbounds %struct.bsgs_xvalue, ptr %296, i64 %297
  %299 = getelementptr inbounds %struct.bsgs_xvalue, ptr %298, i32 0, i32 0
  %300 = getelementptr inbounds [6 x i8], ptr %299, i64 0, i64 0
  %301 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
  %302 = getelementptr inbounds i8, ptr %301, i64 16
  %303 = load i64, ptr @BSGS_XVALUE_RAM, align 8, !tbaa !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %300, ptr align 1 %302, i64 %303, i1 false)
  %304 = load i64, ptr %5, align 8, !tbaa !15
  %305 = load ptr, ptr @bPtable, align 8, !tbaa !5
  %306 = load i64, ptr %5, align 8, !tbaa !15
  %307 = getelementptr inbounds %struct.bsgs_xvalue, ptr %305, i64 %306
  %308 = getelementptr inbounds %struct.bsgs_xvalue, ptr %307, i32 0, i32 1
  store i64 %304, ptr %308, align 8, !tbaa !22
  br label %309

309:                                              ; preds = %295, %292
  %310 = load i32, ptr @FLAGREADEDFILE4, align 4, !tbaa !9
  %311 = icmp ne i32 %310, 0
  br i1 %311, label %332, label %312

312:                                              ; preds = %309
  %313 = load ptr, ptr @bloom_bPx3rd_mutex, align 8, !tbaa !5
  %314 = load i32, ptr %22, align 4, !tbaa !9
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds %union.pthread_mutex_t, ptr %313, i64 %315
  %317 = call i32 @pthread_mutex_lock(ptr noundef %316) #9
  %318 = load ptr, ptr @bloom_bPx3rd, align 8, !tbaa !5
  %319 = load i32, ptr %22, align 4, !tbaa !9
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds %struct.bloom, ptr %318, i64 %320
  %322 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
  %323 = load i64, ptr @BSGS_BUFFERXPOINTLENGTH, align 8, !tbaa !15
  %324 = trunc i64 %323 to i32
  %325 = invoke i32 @bloom_add(ptr noundef %321, ptr noundef %322, i32 noundef %324)
          to label %326 unwind label %167

326:                                              ; preds = %312
  %327 = load ptr, ptr @bloom_bPx3rd_mutex, align 8, !tbaa !5
  %328 = load i32, ptr %22, align 4, !tbaa !9
  %329 = sext i32 %328 to i64
  %330 = getelementptr inbounds %union.pthread_mutex_t, ptr %327, i64 %329
  %331 = call i32 @pthread_mutex_unlock(ptr noundef %330) #9
  br label %332

332:                                              ; preds = %326, %309
  br label %333

333:                                              ; preds = %332, %285
  %334 = load i64, ptr %5, align 8, !tbaa !15
  %335 = load i64, ptr @bsgs_m2, align 8, !tbaa !15
  %336 = icmp ult i64 %334, %335
  br i1 %336, label %337, label %360

337:                                              ; preds = %333
  %338 = load i32, ptr @FLAGREADEDFILE2, align 4, !tbaa !9
  %339 = icmp ne i32 %338, 0
  br i1 %339, label %360, label %340

340:                                              ; preds = %337
  %341 = load ptr, ptr @bloom_bPx2nd_mutex, align 8, !tbaa !5
  %342 = load i32, ptr %22, align 4, !tbaa !9
  %343 = sext i32 %342 to i64
  %344 = getelementptr inbounds %union.pthread_mutex_t, ptr %341, i64 %343
  %345 = call i32 @pthread_mutex_lock(ptr noundef %344) #9
  %346 = load ptr, ptr @bloom_bPx2nd, align 8, !tbaa !5
  %347 = load i32, ptr %22, align 4, !tbaa !9
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds %struct.bloom, ptr %346, i64 %348
  %350 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
  %351 = load i64, ptr @BSGS_BUFFERXPOINTLENGTH, align 8, !tbaa !15
  %352 = trunc i64 %351 to i32
  %353 = invoke i32 @bloom_add(ptr noundef %349, ptr noundef %350, i32 noundef %352)
          to label %354 unwind label %167

354:                                              ; preds = %340
  %355 = load ptr, ptr @bloom_bPx2nd_mutex, align 8, !tbaa !5
  %356 = load i32, ptr %22, align 4, !tbaa !9
  %357 = sext i32 %356 to i64
  %358 = getelementptr inbounds %union.pthread_mutex_t, ptr %355, i64 %357
  %359 = call i32 @pthread_mutex_unlock(ptr noundef %358) #9
  br label %360

360:                                              ; preds = %354, %337, %333
  %361 = load i64, ptr %5, align 8, !tbaa !15
  %362 = load i64, ptr %8, align 8, !tbaa !15
  %363 = icmp ult i64 %361, %362
  br i1 %363, label %364, label %387

364:                                              ; preds = %360
  %365 = load i32, ptr @FLAGREADEDFILE1, align 4, !tbaa !9
  %366 = icmp ne i32 %365, 0
  br i1 %366, label %387, label %367

367:                                              ; preds = %364
  %368 = load ptr, ptr @bloom_bP_mutex, align 8, !tbaa !5
  %369 = load i32, ptr %22, align 4, !tbaa !9
  %370 = sext i32 %369 to i64
  %371 = getelementptr inbounds %union.pthread_mutex_t, ptr %368, i64 %370
  %372 = call i32 @pthread_mutex_lock(ptr noundef %371) #9
  %373 = load ptr, ptr @bloom_bP, align 8, !tbaa !5
  %374 = load i32, ptr %22, align 4, !tbaa !9
  %375 = sext i32 %374 to i64
  %376 = getelementptr inbounds %struct.bloom, ptr %373, i64 %375
  %377 = getelementptr inbounds [32 x i8], ptr %3, i64 0, i64 0
  %378 = load i64, ptr @BSGS_BUFFERXPOINTLENGTH, align 8, !tbaa !15
  %379 = trunc i64 %378 to i32
  %380 = invoke i32 @bloom_add(ptr noundef %376, ptr noundef %377, i32 noundef %379)
          to label %381 unwind label %167

381:                                              ; preds = %367
  %382 = load ptr, ptr @bloom_bP_mutex, align 8, !tbaa !5
  %383 = load i32, ptr %22, align 4, !tbaa !9
  %384 = sext i32 %383 to i64
  %385 = getelementptr inbounds %union.pthread_mutex_t, ptr %382, i64 %384
  %386 = call i32 @pthread_mutex_unlock(ptr noundef %385) #9
  br label %387

387:                                              ; preds = %381, %364, %360
  %388 = load i64, ptr %5, align 8, !tbaa !15
  %389 = add i64 %388, 1
  store i64 %389, ptr %5, align 8, !tbaa !15
  br label %390

390:                                              ; preds = %387
  %391 = load i64, ptr %6, align 8, !tbaa !15
  %392 = add i64 %391, 1
  store i64 %392, ptr %6, align 8, !tbaa !15
  br label %277, !llvm.loop !24

393:                                              ; preds = %277
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %12, i64 120, i1 false), !tbaa.struct !17
  %394 = getelementptr inbounds %class.Point, ptr %19, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %15, ptr noundef getelementptr inbounds (%class.Point, ptr @_2Gn, i32 0, i32 1), ptr noundef %394)
          to label %395 unwind label %167

395:                                              ; preds = %393
  %396 = load i32, ptr %21, align 4, !tbaa !9
  %397 = add nsw i32 %396, 1
  %398 = sext i32 %397 to i64
  %399 = getelementptr inbounds [513 x %class.Int], ptr %13, i64 0, i64 %398
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %17, ptr noundef %15, ptr noundef %399)
          to label %400 unwind label %167

400:                                              ; preds = %395
  invoke void @_ZN3Int11ModSquareK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %18, ptr noundef %17)
          to label %401 unwind label %167

401:                                              ; preds = %400
  %402 = getelementptr inbounds %class.Point, ptr %19, i32 0, i32 0
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %402)
          to label %403 unwind label %167

403:                                              ; preds = %401
  %404 = getelementptr inbounds %class.Point, ptr %19, i32 0, i32 0
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %404, ptr noundef %18)
          to label %405 unwind label %167

405:                                              ; preds = %403
  %406 = getelementptr inbounds %class.Point, ptr %19, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %406, ptr noundef @_2Gn)
          to label %407 unwind label %167

407:                                              ; preds = %405
  %408 = getelementptr inbounds %class.Point, ptr %19, i32 0, i32 1
  %409 = getelementptr inbounds %class.Point, ptr %19, i32 0, i32 0
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %408, ptr noundef @_2Gn, ptr noundef %409)
          to label %410 unwind label %167

410:                                              ; preds = %407
  %411 = getelementptr inbounds %class.Point, ptr %19, i32 0, i32 1
  invoke void @_ZN3Int8ModMulK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %411, ptr noundef %17)
          to label %412 unwind label %167

412:                                              ; preds = %410
  %413 = getelementptr inbounds %class.Point, ptr %19, i32 0, i32 1
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %413, ptr noundef getelementptr inbounds (%class.Point, ptr @_2Gn, i32 0, i32 1))
          to label %414 unwind label %167

414:                                              ; preds = %412
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %19, i64 120, i1 false), !tbaa.struct !17
  br label %415

415:                                              ; preds = %414
  %416 = load i64, ptr %27, align 8, !tbaa !15
  %417 = add i64 %416, 1
  store i64 %417, ptr %27, align 8, !tbaa !15
  br label %140, !llvm.loop !25

418:                                              ; preds = %144
  %419 = load ptr, ptr %9, align 8, !tbaa !5
  %420 = icmp eq ptr %419, null
  br i1 %420, label %422, label %421

421:                                              ; preds = %418
  call void @_ZN8IntGroupD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %419) #9
  call void @_ZdlPvm(ptr noundef %419, i64 noundef 24) #11
  br label %422

422:                                              ; preds = %421, %418
  %423 = load ptr, ptr @bPload_mutex, align 8, !tbaa !5
  %424 = load i32, ptr %24, align 4, !tbaa !9
  %425 = sext i32 %424 to i64
  %426 = getelementptr inbounds %union.pthread_mutex_t, ptr %423, i64 %425
  %427 = call i32 @pthread_mutex_lock(ptr noundef %426) #9
  %428 = load ptr, ptr %4, align 8, !tbaa !5
  %429 = getelementptr inbounds %struct.bPload, ptr %428, i32 0, i32 6
  store i32 1, ptr %429, align 4, !tbaa !26
  %430 = load ptr, ptr @bPload_mutex, align 8, !tbaa !5
  %431 = load i32, ptr %24, align 4, !tbaa !9
  %432 = sext i32 %431 to i64
  %433 = getelementptr inbounds %union.pthread_mutex_t, ptr %430, i64 %432
  %434 = call i32 @pthread_mutex_unlock(ptr noundef %433) #9
  invoke void @pthread_exit(ptr noundef null) #12
          to label %435 unwind label %126

435:                                              ; preds = %422
  unreachable

436:                                              ; preds = %167, %145, %126
  call void @llvm.lifetime.end.p0(i64 40, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %20) #9
  br label %437

437:                                              ; preds = %436, %122
  call void @llvm.lifetime.end.p0(i64 120, ptr %20) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %19) #9
  br label %438

438:                                              ; preds = %437, %118
  call void @llvm.lifetime.end.p0(i64 120, ptr %19) #9
  br label %439

439:                                              ; preds = %438, %114
  call void @llvm.lifetime.end.p0(i64 40, ptr %18) #9
  br label %440

440:                                              ; preds = %439, %110
  call void @llvm.lifetime.end.p0(i64 40, ptr %17) #9
  br label %441

441:                                              ; preds = %440, %106
  call void @llvm.lifetime.end.p0(i64 40, ptr %16) #9
  br label %442

442:                                              ; preds = %441, %102
  call void @llvm.lifetime.end.p0(i64 40, ptr %15) #9
  %443 = getelementptr inbounds [1024 x %class.Point], ptr %14, i32 0, i32 0
  %444 = getelementptr inbounds %class.Point, ptr %443, i64 1024
  br label %445

445:                                              ; preds = %445, %442
  %446 = phi ptr [ %444, %442 ], [ %447, %445 ]
  %447 = getelementptr inbounds %class.Point, ptr %446, i64 -1
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %447) #9
  %448 = icmp eq ptr %447, %443
  br i1 %448, label %449, label %445

449:                                              ; preds = %445
  br label %450

450:                                              ; preds = %449, %101
  call void @llvm.lifetime.end.p0(i64 122880, ptr %14) #9
  br label %451

451:                                              ; preds = %450, %88
  call void @llvm.lifetime.end.p0(i64 20520, ptr %13) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %12) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr %12) #9
  br label %452

452:                                              ; preds = %451, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #9
  br label %453

453:                                              ; preds = %452
  %454 = load ptr, ptr %10, align 8
  %455 = load i32, ptr %11, align 4
  %456 = insertvalue { ptr, i32 } poison, ptr %454, 0
  %457 = insertvalue { ptr, i32 } %456, i32 %455, 1
  resume { ptr, i32 } %457
}

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: noreturn
declare void @pthread_exit(ptr noundef) #8

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

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

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

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

!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, !13, i64 8}
!12 = !{!"_ZTS6bPload", !10, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !10, i64 40, !10, i64 44}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !10, i64 0}
!15 = !{!13, !13, i64 0}
!16 = !{!12, !13, i64 16}
!17 = !{i64 0, i64 40, !18, i64 40, i64 40, !18, i64 80, i64 40, !18}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!23, !13, i64 8}
!23 = !{!"_ZTS11bsgs_xvalue", !7, i64 0, !13, i64 8}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = !{!12, !10, i64 44}


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

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

@Gn = external dso_local global %"class.std::vector", align 8
@_2Gn = external dso_local global %class.Point, align 8
@bPload_mutex = external dso_local local_unnamed_addr global ptr, align 8
@FLAGREADEDFILE1 = external dso_local local_unnamed_addr global i32, align 4
@FLAGREADEDFILE2 = external dso_local local_unnamed_addr global i32, align 4
@FLAGREADEDFILE3 = external dso_local local_unnamed_addr global i32, align 4
@FLAGREADEDFILE4 = external dso_local local_unnamed_addr global i32, align 4
@BSGS_XVALUE_RAM = external dso_local local_unnamed_addr global i64, align 8
@BSGS_BUFFERXPOINTLENGTH = external dso_local local_unnamed_addr global i64, align 8
@bPtable = external dso_local local_unnamed_addr global ptr, align 8
@bloom_bP = external dso_local local_unnamed_addr global ptr, align 8
@bloom_bPx2nd = external dso_local local_unnamed_addr global ptr, align 8
@bloom_bPx3rd = external dso_local local_unnamed_addr global ptr, align 8
@bloom_bP_mutex = external dso_local local_unnamed_addr global ptr, align 8
@bloom_bPx2nd_mutex = external dso_local local_unnamed_addr global ptr, align 8
@bloom_bPx3rd_mutex = external dso_local local_unnamed_addr global ptr, align 8
@bsgs_m2 = external dso_local local_unnamed_addr global i64, align 8
@bsgs_m3 = external dso_local local_unnamed_addr global i64, align 8
@secp = external dso_local local_unnamed_addr global ptr, align 8

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress noreturn uwtable
define dso_local noalias noundef nonnull ptr @_Z13thread_bPloadPv(ptr nocapture noundef %0) local_unnamed_addr #7 personality ptr @__gxx_personality_v0 {
  %2 = alloca [32 x i8], align 16
  %3 = alloca %class.Point, align 8
  %4 = alloca [513 x %class.Int], align 16
  %5 = alloca [1024 x %class.Point], align 16
  %6 = alloca %class.Int, align 8
  %7 = alloca %class.Int, align 8
  %8 = alloca %class.Int, align 8
  %9 = alloca %class.Int, align 8
  %10 = alloca %class.Point, align 8
  %11 = alloca %class.Point, align 8
  %12 = alloca %class.Int, align 8
  %13 = alloca %class.Point, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #9
  %14 = tail call noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #10
  invoke void @_ZN8IntGroupC1Ei(ptr noundef nonnull align 8 dereferenceable(20) %14, i32 noundef 513)
          to label %15 unwind label %43

15:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %3) #9
  call void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %3)
  call void @llvm.lifetime.start.p0(i64 20520, ptr nonnull %4) #9
  br label %16

16:                                               ; preds = %17, %15
  %.idx = phi i64 [ 0, %15 ], [ %.add, %17 ]
  %.ptr = getelementptr inbounds i8, ptr %4, i64 %.idx
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %.ptr)
          to label %17 unwind label %45

17:                                               ; preds = %16
  %.add = add nuw nsw i64 %.idx, 40
  %18 = icmp eq i64 %.add, 20520
  br i1 %18, label %19, label %16

19:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 122880, ptr nonnull %5) #9
  %20 = getelementptr inbounds i8, ptr %5, i64 122880
  br label %21

21:                                               ; preds = %22, %19
  %.idx88 = phi i64 [ 0, %19 ], [ %.add89, %22 ]
  %.ptr90 = getelementptr inbounds i8, ptr %5, i64 %.idx88
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %.ptr90)
          to label %22 unwind label %47

22:                                               ; preds = %21
  %.add89 = add nuw nsw i64 %.idx88, 120
  %23 = icmp eq i64 %.add89, 122880
  br i1 %23, label %24, label %21

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

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

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

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

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

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

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %12) #9
  %31 = getelementptr inbounds i8, ptr %0, i64 8
  %32 = load i64, ptr %31, align 8, !tbaa !5
  %33 = add i64 %32, 1
  invoke void @_ZN3IntC1Em(ptr noundef nonnull align 8 dereferenceable(40) %12, i64 noundef %33)
          to label %34 unwind label %65

34:                                               ; preds = %30
  %35 = load i32, ptr %0, align 8, !tbaa !11
  %36 = load i64, ptr %31, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %0, i64 16
  %38 = load i64, ptr %37, align 8, !tbaa !12
  %39 = sub i64 %38, %36
  %40 = lshr i64 %39, 10
  %41 = and i64 %39, 1023
  %.not = icmp ne i64 %41, 0
  %42 = zext i1 %.not to i64
  %spec.select = add nuw nsw i64 %40, %42
  invoke void @_ZN3Int3AddEm(ptr noundef nonnull align 8 dereferenceable(40) %12, i64 noundef 512)
          to label %67 unwind label %65

43:                                               ; preds = %1
  %44 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %14, i64 noundef 24) #11
  br label %226

45:                                               ; preds = %16
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %225

47:                                               ; preds = %21
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = icmp eq i64 %.idx88, 0
  br i1 %49, label %.loopexit, label %.preheader111

.preheader111:                                    ; preds = %47, %.preheader111
  %50 = phi ptr [ %51, %.preheader111 ], [ %.ptr90, %47 ]
  %51 = getelementptr inbounds i8, ptr %50, i64 -120
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %51) #9
  %52 = icmp eq ptr %51, %5
  br i1 %52, label %.loopexit, label %.preheader111

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

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

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

59:                                               ; preds = %27
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %217

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

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

65:                                               ; preds = %._crit_edge, %69, %34, %30
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

67:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %13) #9
  %68 = load ptr, ptr @secp, align 8, !tbaa !13
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %13, ptr noundef nonnull align 8 dereferenceable(983240) %68, ptr noundef nonnull %12)
          to label %69 unwind label %76

69:                                               ; preds = %67
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %3, ptr noundef nonnull align 8 dereferenceable(120) %13, i64 120, i1 false), !tbaa.struct !15
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %13) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %13) #9
  invoke void @_ZN8IntGroup3SetEP3Int(ptr noundef nonnull align 8 dereferenceable(20) %14, ptr noundef nonnull %4)
          to label %.preheader110 unwind label %65

.preheader110:                                    ; preds = %69
  %.not125 = icmp eq i64 %spec.select, 0
  br i1 %.not125, label %._crit_edge, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.preheader110
  %70 = getelementptr inbounds i8, ptr %5, i64 61440
  %71 = getelementptr inbounds i8, ptr %10, i64 40
  %72 = getelementptr inbounds i8, ptr %11, i64 40
  %73 = getelementptr inbounds i8, ptr %2, i64 16
  %74 = getelementptr inbounds i8, ptr %4, i64 20440
  %75 = getelementptr inbounds i8, ptr %4, i64 20480
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %204
  %.0124 = phi i64 [ 0, %.preheader.lr.ph ], [ %205, %204 ]
  %.066123 = phi i64 [ %36, %.preheader.lr.ph ], [ %193, %204 ]
  br label %78

76:                                               ; preds = %67
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %13) #9
  br label %.loopexit.split-lp

78:                                               ; preds = %.preheader, %81
  %indvars.iv = phi i64 [ 0, %.preheader ], [ %indvars.iv.next, %81 ]
  %79 = getelementptr inbounds [513 x %class.Int], ptr %4, i64 0, i64 %indvars.iv
  %80 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Gn, i64 noundef %indvars.iv) #9
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %79, ptr noundef nonnull %80, ptr noundef nonnull %3)
          to label %81 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

81:                                               ; preds = %78
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 511
  br i1 %exitcond.not, label %82, label %78, !llvm.loop !17

.loopexit104:                                     ; preds = %125, %141, %160, %178
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %106, %105, %104, %103, %102, %101, %100, %97, %95, %94, %93, %92, %90, %87
  %lpad.loopexit105 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

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

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp: ; preds = %82, %84, %85, %113, %116, %117, %118, %119, %120, %121, %122, %195, %196, %197, %198, %199, %200, %201, %202, %203
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

82:                                               ; preds = %81
  %83 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Gn, i64 noundef 511) #9
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %74, ptr noundef nonnull %83, ptr noundef nonnull %3)
          to label %84 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

84:                                               ; preds = %82
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %75, ptr noundef nonnull @_2Gn, ptr noundef nonnull %3)
          to label %85 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

85:                                               ; preds = %84
  invoke void @_ZN8IntGroup6ModInvEv(ptr noundef nonnull align 8 dereferenceable(20) %14)
          to label %86 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

86:                                               ; preds = %85
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(120) %70, ptr noundef nonnull align 8 dereferenceable(120) %3, i64 120, i1 false), !tbaa.struct !15
  br label %87

87:                                               ; preds = %86, %108
  %indvars.iv134 = phi i64 [ 0, %86 ], [ %indvars.iv.next135, %108 ]
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %10, ptr noundef nonnull align 8 dereferenceable(120) %3, i64 120, i1 false), !tbaa.struct !15
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %11, ptr noundef nonnull align 8 dereferenceable(120) %3, i64 120, i1 false), !tbaa.struct !15
  %88 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Gn, i64 noundef %indvars.iv134) #9
  %89 = getelementptr inbounds i8, ptr %88, i64 40
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef nonnull %89, ptr noundef nonnull %71)
          to label %90 unwind label %.loopexit.split-lp.loopexit

90:                                               ; preds = %87
  %91 = getelementptr inbounds [513 x %class.Int], ptr %4, i64 0, i64 %indvars.iv134
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull %6, ptr noundef nonnull %91)
          to label %92 unwind label %.loopexit.split-lp.loopexit

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

93:                                               ; preds = %92
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %10)
          to label %94 unwind label %.loopexit.split-lp.loopexit

94:                                               ; preds = %93
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %10, ptr noundef nonnull %9)
          to label %95 unwind label %.loopexit.split-lp.loopexit

95:                                               ; preds = %94
  %96 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Gn, i64 noundef %indvars.iv134) #9
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %10, ptr noundef nonnull %96)
          to label %97 unwind label %.loopexit.split-lp.loopexit

97:                                               ; preds = %95
  %98 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Gn, i64 noundef %indvars.iv134) #9
  %99 = getelementptr inbounds i8, ptr %98, i64 40
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull %99)
          to label %100 unwind label %.loopexit.split-lp.loopexit

100:                                              ; preds = %97
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %7)
          to label %101 unwind label %.loopexit.split-lp.loopexit

101:                                              ; preds = %100
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull %72)
          to label %102 unwind label %.loopexit.split-lp.loopexit

102:                                              ; preds = %101
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull %7, ptr noundef nonnull %91)
          to label %103 unwind label %.loopexit.split-lp.loopexit

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

104:                                              ; preds = %103
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %11)
          to label %105 unwind label %.loopexit.split-lp.loopexit

105:                                              ; preds = %104
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull %9)
          to label %106 unwind label %.loopexit.split-lp.loopexit

106:                                              ; preds = %105
  %107 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Gn, i64 noundef %indvars.iv134) #9
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull %107)
          to label %108 unwind label %.loopexit.split-lp.loopexit

108:                                              ; preds = %106
  %indvars.iv.next135 = add nuw nsw i64 %indvars.iv134, 1
  %109 = add nuw nsw i64 %indvars.iv134, 513
  %110 = getelementptr inbounds [1024 x %class.Point], ptr %5, i64 0, i64 %109
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %110, ptr noundef nonnull align 8 dereferenceable(120) %10, i64 120, i1 false), !tbaa.struct !15
  %111 = sub nuw nsw i64 511, %indvars.iv134
  %112 = getelementptr inbounds [1024 x %class.Point], ptr %5, i64 0, i64 %111
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %112, ptr noundef nonnull align 8 dereferenceable(120) %11, i64 120, i1 false), !tbaa.struct !15
  %exitcond137.not = icmp eq i64 %indvars.iv.next135, 511
  br i1 %exitcond137.not, label %113, label %87, !llvm.loop !19

113:                                              ; preds = %108
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %11, ptr noundef nonnull align 8 dereferenceable(120) %3, i64 120, i1 false), !tbaa.struct !15
  %114 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Gn, i64 noundef 511) #9
  %115 = getelementptr inbounds i8, ptr %114, i64 40
  invoke void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull %115)
          to label %116 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

116:                                              ; preds = %113
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %7)
          to label %117 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

117:                                              ; preds = %116
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull %72)
          to label %118 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

118:                                              ; preds = %117
  invoke void @_ZN3Int8ModMulK1EPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull %7, ptr noundef nonnull %74)
          to label %119 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

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

120:                                              ; preds = %119
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %11)
          to label %121 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

121:                                              ; preds = %120
  invoke void @_ZN3Int6ModAddEPS_(ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull %9)
          to label %122 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

122:                                              ; preds = %121
  %123 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZNSt6vectorI5PointSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @Gn, i64 noundef 511) #9
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull %123)
          to label %124 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

124:                                              ; preds = %122
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(120) %5, ptr noundef nonnull align 8 dereferenceable(120) %11, i64 120, i1 false), !tbaa.struct !15
  br label %125

125:                                              ; preds = %124, %192
  %.1121 = phi i64 [ %.066123, %124 ], [ %193, %192 ]
  %.067120 = phi i64 [ 0, %124 ], [ %194, %192 ]
  %126 = getelementptr inbounds [1024 x %class.Point], ptr %5, i64 0, i64 %.067120
  invoke void @_ZN3Int10Get32BytesEPh(ptr noundef nonnull align 8 dereferenceable(40) %126, ptr noundef nonnull %2)
          to label %127 unwind label %.loopexit104

127:                                              ; preds = %125
  %128 = load i8, ptr %2, align 16, !tbaa !16
  %129 = load i64, ptr @bsgs_m3, align 8, !tbaa !20
  %130 = icmp ult i64 %.1121, %129
  br i1 %130, label %131, label %155

131:                                              ; preds = %127
  %132 = load i32, ptr @FLAGREADEDFILE3, align 4, !tbaa !21
  %.not92 = icmp eq i32 %132, 0
  br i1 %.not92, label %133, label %139

133:                                              ; preds = %131
  %134 = load ptr, ptr @bPtable, align 8, !tbaa !13
  %135 = getelementptr inbounds %struct.bsgs_xvalue, ptr %134, i64 %.1121
  %136 = load i64, ptr @BSGS_XVALUE_RAM, align 8, !tbaa !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %135, ptr nonnull align 16 %73, i64 %136, i1 false)
  %137 = load ptr, ptr @bPtable, align 8, !tbaa !13
  %138 = getelementptr inbounds %struct.bsgs_xvalue, ptr %137, i64 %.1121, i32 1
  store i64 %.1121, ptr %138, align 8, !tbaa !22
  br label %139

139:                                              ; preds = %133, %131
  %140 = load i32, ptr @FLAGREADEDFILE4, align 4, !tbaa !21
  %.not93 = icmp eq i32 %140, 0
  br i1 %.not93, label %141, label %155

141:                                              ; preds = %139
  %142 = load ptr, ptr @bloom_bPx3rd_mutex, align 8, !tbaa !13
  %143 = zext i8 %128 to i64
  %144 = getelementptr inbounds %union.pthread_mutex_t, ptr %142, i64 %143
  %145 = call i32 @pthread_mutex_lock(ptr noundef %144) #9
  %146 = load ptr, ptr @bloom_bPx3rd, align 8, !tbaa !13
  %147 = getelementptr inbounds %struct.bloom, ptr %146, i64 %143
  %148 = load i64, ptr @BSGS_BUFFERXPOINTLENGTH, align 8, !tbaa !20
  %149 = trunc i64 %148 to i32
  %150 = invoke i32 @bloom_add(ptr noundef %147, ptr noundef nonnull %2, i32 noundef %149)
          to label %151 unwind label %.loopexit104

151:                                              ; preds = %141
  %152 = load ptr, ptr @bloom_bPx3rd_mutex, align 8, !tbaa !13
  %153 = getelementptr inbounds %union.pthread_mutex_t, ptr %152, i64 %143
  %154 = call i32 @pthread_mutex_unlock(ptr noundef %153) #9
  br label %155

155:                                              ; preds = %139, %151, %127
  %156 = load i64, ptr @bsgs_m2, align 8, !tbaa !20
  %157 = icmp uge i64 %.1121, %156
  %158 = load i32, ptr @FLAGREADEDFILE2, align 4
  %159 = icmp ne i32 %158, 0
  %or.cond = select i1 %157, i1 true, i1 %159
  br i1 %or.cond, label %174, label %160

160:                                              ; preds = %155
  %161 = load ptr, ptr @bloom_bPx2nd_mutex, align 8, !tbaa !13
  %162 = zext i8 %128 to i64
  %163 = getelementptr inbounds %union.pthread_mutex_t, ptr %161, i64 %162
  %164 = call i32 @pthread_mutex_lock(ptr noundef %163) #9
  %165 = load ptr, ptr @bloom_bPx2nd, align 8, !tbaa !13
  %166 = getelementptr inbounds %struct.bloom, ptr %165, i64 %162
  %167 = load i64, ptr @BSGS_BUFFERXPOINTLENGTH, align 8, !tbaa !20
  %168 = trunc i64 %167 to i32
  %169 = invoke i32 @bloom_add(ptr noundef %166, ptr noundef nonnull %2, i32 noundef %168)
          to label %170 unwind label %.loopexit104

170:                                              ; preds = %160
  %171 = load ptr, ptr @bloom_bPx2nd_mutex, align 8, !tbaa !13
  %172 = getelementptr inbounds %union.pthread_mutex_t, ptr %171, i64 %162
  %173 = call i32 @pthread_mutex_unlock(ptr noundef %172) #9
  br label %174

174:                                              ; preds = %170, %155
  %175 = icmp uge i64 %.1121, %38
  %176 = load i32, ptr @FLAGREADEDFILE1, align 4
  %177 = icmp ne i32 %176, 0
  %or.cond3 = select i1 %175, i1 true, i1 %177
  br i1 %or.cond3, label %192, label %178

178:                                              ; preds = %174
  %179 = load ptr, ptr @bloom_bP_mutex, align 8, !tbaa !13
  %180 = zext i8 %128 to i64
  %181 = getelementptr inbounds %union.pthread_mutex_t, ptr %179, i64 %180
  %182 = call i32 @pthread_mutex_lock(ptr noundef %181) #9
  %183 = load ptr, ptr @bloom_bP, align 8, !tbaa !13
  %184 = getelementptr inbounds %struct.bloom, ptr %183, i64 %180
  %185 = load i64, ptr @BSGS_BUFFERXPOINTLENGTH, align 8, !tbaa !20
  %186 = trunc i64 %185 to i32
  %187 = invoke i32 @bloom_add(ptr noundef %184, ptr noundef nonnull %2, i32 noundef %186)
          to label %188 unwind label %.loopexit104

188:                                              ; preds = %178
  %189 = load ptr, ptr @bloom_bP_mutex, align 8, !tbaa !13
  %190 = getelementptr inbounds %union.pthread_mutex_t, ptr %189, i64 %180
  %191 = call i32 @pthread_mutex_unlock(ptr noundef %190) #9
  br label %192

192:                                              ; preds = %188, %174
  %193 = add i64 %.1121, 1
  %194 = add nuw nsw i64 %.067120, 1
  %exitcond138.not = icmp eq i64 %194, 1024
  br i1 %exitcond138.not, label %195, label %125, !llvm.loop !24

195:                                              ; preds = %192
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %10, ptr noundef nonnull align 8 dereferenceable(120) %3, i64 120, i1 false), !tbaa.struct !15
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef nonnull getelementptr inbounds (i8, ptr @_2Gn, i64 40), ptr noundef nonnull %71)
          to label %196 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

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

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

198:                                              ; preds = %197
  invoke void @_ZN3Int6ModNegEv(ptr noundef nonnull align 8 dereferenceable(40) %10)
          to label %199 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

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

200:                                              ; preds = %199
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %10, ptr noundef nonnull @_2Gn)
          to label %201 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

201:                                              ; preds = %200
  invoke void @_ZN3Int6ModSubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %71, ptr noundef nonnull @_2Gn, ptr noundef nonnull %10)
          to label %202 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

202:                                              ; preds = %201
  invoke void @_ZN3Int8ModMulK1EPS_(ptr noundef nonnull align 8 dereferenceable(40) %71, ptr noundef nonnull %8)
          to label %203 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

203:                                              ; preds = %202
  invoke void @_ZN3Int6ModSubEPS_(ptr noundef nonnull align 8 dereferenceable(40) %71, ptr noundef nonnull getelementptr inbounds (i8, ptr @_2Gn, i64 40))
          to label %204 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

204:                                              ; preds = %203
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %3, ptr noundef nonnull align 8 dereferenceable(120) %10, i64 120, i1 false), !tbaa.struct !15
  %205 = add nuw nsw i64 %.0124, 1
  %exitcond139.not = icmp eq i64 %205, %spec.select
  br i1 %exitcond139.not, label %._crit_edge, label %.preheader, !llvm.loop !25

._crit_edge:                                      ; preds = %204, %.preheader110
  call void @_ZN8IntGroupD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %14) #9
  call void @_ZdlPvm(ptr noundef nonnull %14, i64 noundef 24) #11
  %206 = load ptr, ptr @bPload_mutex, align 8, !tbaa !13
  %207 = sext i32 %35 to i64
  %208 = getelementptr inbounds %union.pthread_mutex_t, ptr %206, i64 %207
  %209 = call i32 @pthread_mutex_lock(ptr noundef %208) #9
  %210 = getelementptr inbounds i8, ptr %0, i64 44
  store i32 1, ptr %210, align 4, !tbaa !26
  %211 = load ptr, ptr @bPload_mutex, align 8, !tbaa !13
  %212 = getelementptr inbounds %union.pthread_mutex_t, ptr %211, i64 %207
  %213 = call i32 @pthread_mutex_unlock(ptr noundef %212) #9
  invoke void @pthread_exit(ptr noundef null) #12
          to label %214 unwind label %65

214:                                              ; preds = %._crit_edge
  unreachable

.loopexit.split-lp:                               ; preds = %.loopexit104, %.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit, %76, %65
  %.pn = phi { ptr, i32 } [ %66, %65 ], [ %77, %76 ], [ %lpad.loopexit, %.loopexit104 ], [ %lpad.loopexit105, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit108, %.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %11) #9
  br label %215

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

216:                                              ; preds = %215, %61
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %215 ], [ %62, %61 ]
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %10) #9
  br label %217

217:                                              ; preds = %216, %59
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %216 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #9
  br label %218

218:                                              ; preds = %217, %57
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %217 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #9
  br label %219

219:                                              ; preds = %218, %55
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %218 ], [ %56, %55 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #9
  br label %220

220:                                              ; preds = %219, %53
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %219 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #9
  br label %221

221:                                              ; preds = %221, %220
  %222 = phi ptr [ %20, %220 ], [ %223, %221 ]
  %223 = getelementptr inbounds i8, ptr %222, i64 -120
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %223) #9
  %224 = icmp eq ptr %223, %5
  br i1 %224, label %.loopexit, label %221

.loopexit:                                        ; preds = %.preheader111, %221, %47
  %.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %48, %47 ], [ %.pn.pn.pn.pn.pn.pn.pn, %221 ], [ %48, %.preheader111 ]
  call void @llvm.lifetime.end.p0(i64 122880, ptr nonnull %5) #9
  br label %225

225:                                              ; preds = %.loopexit, %45
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn, %.loopexit ], [ %46, %45 ]
  call void @llvm.lifetime.end.p0(i64 20520, ptr nonnull %4) #9
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %3) #9
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %3) #9
  br label %226

226:                                              ; preds = %225, %43
  %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn.pn.pn.pn, %225 ], [ %44, %43 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #9
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn
}

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: noreturn
declare void @pthread_exit(ptr noundef) local_unnamed_addr #8

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

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

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

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

!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, !10, i64 8}
!6 = !{!"_ZTS6bPload", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !7, i64 40, !7, i64 44}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!6, !10, i64 16}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{i64 0, i64 40, !16, i64 40, i64 40, !16, i64 80, i64 40, !16}
!16 = !{!8, !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = !{!10, !10, i64 0}
!21 = !{!7, !7, i64 0}
!22 = !{!23, !10, i64 8}
!23 = !{!"_ZTS11bsgs_xvalue", !8, i64 0, !10, i64 8}
!24 = distinct !{!24, !18}
!25 = distinct !{!25, !18}
!26 = !{!6, !7, i64 44}


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