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

; 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"

%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 }
%class.Point = type { %class.Int, %class.Int, %class.Int }
%class.Int = type { %union.anon }
%union.anon = type { [5 x i64] }
%struct.tothread = type { i32, ptr, ptr }

@raw_baseminikey = external dso_local global ptr, align 8
@write_keys = external dso_local global %union.pthread_mutex_t, align 8
@write_random = external dso_local global %union.pthread_mutex_t, align 8
@bloom = external dso_local global %struct.bloom, align 16
@steps = external dso_local global ptr, align 8
@N = external dso_local global i64, align 8
@N_SEQUENTIAL_MAX = external dso_local global i64, align 8
@FLAGBASEMINIKEY = external dso_local global i32, align 4
@FLAGQUIET = external dso_local global i32, align 4
@FLAGMATRIX = external dso_local global i32, align 4
@FLAGRANDOM = external dso_local global i32, align 4
@addressTable = external dso_local global ptr, align 8
@secp = external dso_local global ptr, align 8
@.str.81 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [16 x i8], align 1
@stdout = external global ptr, align 8
@.str.227 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.228 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.229 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.230 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.231 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.232 = external hidden unnamed_addr constant [59 x i8], align 1

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z12checkpointerPvPKcS1_S1_i(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #4

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

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

declare i32 @fclose(ptr noundef) #0

declare i32 @fflush(ptr noundef) #0

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 @_Z23thread_process_minikeysPv(ptr noundef %0) #6 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [4 x %class.Point], align 16
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca [4 x %class.Int], align 16
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca [4 x [20 x i8]], align 16
  %12 = alloca [131 x i8], align 16
  %13 = alloca [4 x [40 x i8]], align 16
  %14 = alloca [4 x [24 x i8]], align 16
  %15 = alloca [8 x [24 x i8]], align 16
  %16 = alloca [21 x i8], align 16
  %17 = alloca [24 x i8], align 16
  %18 = alloca [4 x [32 x i8]], align 16
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca %class.Int, align 8
  %28 = alloca %class.Point, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 480, ptr %5) #7
  %29 = getelementptr inbounds [4 x %class.Point], ptr %5, i32 0, i32 0
  %30 = getelementptr inbounds %class.Point, ptr %29, i64 4
  br label %31

31:                                               ; preds = %33, %1
  %32 = phi ptr [ %29, %1 ], [ %34, %33 ]
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %32)
          to label %33 unwind label %71

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

36:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 160, ptr %8) #7
  %37 = getelementptr inbounds [4 x %class.Int], ptr %8, i32 0, i32 0
  %38 = getelementptr inbounds %class.Int, ptr %37, i64 4
  br label %39

39:                                               ; preds = %41, %36
  %40 = phi ptr [ %37, %36 ], [ %42, %41 ]
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %40)
          to label %41 unwind label %81

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

44:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 80, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 131, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 160, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 96, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 192, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 21, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 128, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 1, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr %27) #7
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %27)
          to label %45 unwind label %85

45:                                               ; preds = %44
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %46, ptr %9, align 8, !tbaa !5
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.tothread, ptr %47, i32 0, i32 0
  %49 = load i32, ptr %48, align 8, !tbaa !11
  store i32 %49, ptr %22, align 4, !tbaa !9
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %50) #7
  %51 = getelementptr inbounds %class.Int, ptr %27, i32 0, i32 0
  store ptr %51, ptr %20, align 8, !tbaa !5
  store i32 0, ptr %26, align 4, !tbaa !9
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %68, %45
  %53 = load i32, ptr %24, align 4, !tbaa !9
  %54 = icmp slt i32 %53, 4
  br i1 %54, label %55, label %89

55:                                               ; preds = %52
  %56 = load i32, ptr %24, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [4 x [24 x i8]], ptr %14, i64 0, i64 %57
  %59 = getelementptr inbounds [24 x i8], ptr %58, i64 0, i64 0
  store i8 83, ptr %59, align 8, !tbaa !13
  %60 = load i32, ptr %24, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [4 x [24 x i8]], ptr %14, i64 0, i64 %61
  %63 = getelementptr inbounds [24 x i8], ptr %62, i64 0, i64 22
  store i8 63, ptr %63, align 2, !tbaa !13
  %64 = load i32, ptr %24, align 4, !tbaa !9
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [4 x [24 x i8]], ptr %14, i64 0, i64 %65
  %67 = getelementptr inbounds [24 x i8], ptr %66, i64 0, i64 23
  store i8 0, ptr %67, align 1, !tbaa !13
  br label %68

68:                                               ; preds = %55
  %69 = load i32, ptr %24, align 4, !tbaa !9
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %24, align 4, !tbaa !9
  br label %52, !llvm.loop !14

71:                                               ; preds = %31
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %6, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %7, align 4
  %75 = icmp eq ptr %29, %32
  br i1 %75, label %80, label %76

76:                                               ; preds = %76, %71
  %77 = phi ptr [ %32, %71 ], [ %78, %76 ]
  %78 = getelementptr inbounds %class.Point, ptr %77, i64 -1
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %78) #7
  %79 = icmp eq ptr %78, %29
  br i1 %79, label %80, label %76

80:                                               ; preds = %76, %71
  br label %507

81:                                               ; preds = %39
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %6, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %7, align 4
  br label %493

85:                                               ; preds = %442, %426, %410, %407, %401, %396, %377, %359, %335, %312, %259, %249, %239, %229, %224, %191, %188, %181, %178, %168, %160, %155, %134, %131, %120, %96, %44
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %6, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %7, align 4
  br label %492

89:                                               ; preds = %52
  %90 = getelementptr inbounds [24 x i8], ptr %17, i64 0, i64 0
  store i8 83, ptr %90, align 16, !tbaa !13
  %91 = getelementptr inbounds [24 x i8], ptr %17, i64 0, i64 22
  store i8 63, ptr %91, align 2, !tbaa !13
  %92 = getelementptr inbounds [24 x i8], ptr %17, i64 0, i64 23
  store i8 0, ptr %92, align 1, !tbaa !13
  br label %93

93:                                               ; preds = %486, %89
  %94 = load i32, ptr @FLAGRANDOM, align 4, !tbaa !9
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %117

96:                                               ; preds = %93
  invoke void @_ZN3Int4RandEi(ptr noundef nonnull align 8 dereferenceable(40) %27, i32 noundef 256)
          to label %97 unwind label %85

97:                                               ; preds = %96
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %98

98:                                               ; preds = %113, %97
  %99 = load i32, ptr %24, align 4, !tbaa !9
  %100 = icmp slt i32 %99, 21
  br i1 %100, label %101, label %116

101:                                              ; preds = %98
  %102 = load ptr, ptr %20, align 8, !tbaa !5
  %103 = load i32, ptr %24, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds i8, ptr %102, i64 %104
  %106 = load i8, ptr %105, align 1, !tbaa !13
  %107 = zext i8 %106 to i32
  %108 = srem i32 %107, 58
  %109 = trunc i32 %108 to i8
  %110 = load i32, ptr %24, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [21 x i8], ptr %16, i64 0, i64 %111
  store i8 %109, ptr %112, align 1, !tbaa !13
  br label %113

113:                                              ; preds = %101
  %114 = load i32, ptr %24, align 4, !tbaa !9
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %24, align 4, !tbaa !9
  br label %98, !llvm.loop !16

116:                                              ; preds = %98
  br label %168

117:                                              ; preds = %93
  %118 = load i32, ptr @FLAGBASEMINIKEY, align 4, !tbaa !9
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %127

120:                                              ; preds = %117
  %121 = call i32 @pthread_mutex_lock(ptr noundef @write_random) #7
  %122 = getelementptr inbounds [21 x i8], ptr %16, i64 0, i64 0
  %123 = load ptr, ptr @raw_baseminikey, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %122, ptr align 1 %123, i64 21, i1 false)
  %124 = load ptr, ptr @raw_baseminikey, align 8, !tbaa !5
  invoke void @_Z19increment_minikey_NPc(ptr noundef %124)
          to label %125 unwind label %85

125:                                              ; preds = %120
  %126 = call i32 @pthread_mutex_unlock(ptr noundef @write_random) #7
  br label %167

127:                                              ; preds = %117
  %128 = call i32 @pthread_mutex_lock(ptr noundef @write_random) #7
  %129 = load ptr, ptr @raw_baseminikey, align 8, !tbaa !5
  %130 = icmp eq ptr %129, null
  br i1 %130, label %131, label %160

131:                                              ; preds = %127
  %132 = call noalias ptr @malloc(i64 noundef 22) #8
  store ptr %132, ptr @raw_baseminikey, align 8, !tbaa !5
  %133 = load ptr, ptr @raw_baseminikey, align 8, !tbaa !5
  invoke void @_Z12checkpointerPvPKcS1_S1_i(ptr noundef %133, ptr noundef @.str.81, ptr noundef @.str.82, ptr noundef @.str.88, i32 noundef 2395)
          to label %134 unwind label %85

134:                                              ; preds = %131
  invoke void @_ZN3Int4RandEi(ptr noundef nonnull align 8 dereferenceable(40) %27, i32 noundef 256)
          to label %135 unwind label %85

135:                                              ; preds = %134
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %136

136:                                              ; preds = %152, %135
  %137 = load i32, ptr %24, align 4, !tbaa !9
  %138 = icmp slt i32 %137, 21
  br i1 %138, label %139, label %155

139:                                              ; preds = %136
  %140 = load ptr, ptr %20, align 8, !tbaa !5
  %141 = load i32, ptr %24, align 4, !tbaa !9
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds i8, ptr %140, i64 %142
  %144 = load i8, ptr %143, align 1, !tbaa !13
  %145 = zext i8 %144 to i32
  %146 = srem i32 %145, 58
  %147 = trunc i32 %146 to i8
  %148 = load ptr, ptr @raw_baseminikey, align 8, !tbaa !5
  %149 = load i32, ptr %24, align 4, !tbaa !9
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds i8, ptr %148, i64 %150
  store i8 %147, ptr %151, align 1, !tbaa !13
  br label %152

152:                                              ; preds = %139
  %153 = load i32, ptr %24, align 4, !tbaa !9
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %24, align 4, !tbaa !9
  br label %136, !llvm.loop !17

155:                                              ; preds = %136
  %156 = getelementptr inbounds [21 x i8], ptr %16, i64 0, i64 0
  %157 = load ptr, ptr @raw_baseminikey, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %156, ptr align 1 %157, i64 21, i1 false)
  %158 = load ptr, ptr @raw_baseminikey, align 8, !tbaa !5
  invoke void @_Z19increment_minikey_NPc(ptr noundef %158)
          to label %159 unwind label %85

159:                                              ; preds = %155
  br label %165

160:                                              ; preds = %127
  %161 = getelementptr inbounds [21 x i8], ptr %16, i64 0, i64 0
  %162 = load ptr, ptr @raw_baseminikey, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %161, ptr align 1 %162, i64 21, i1 false)
  %163 = load ptr, ptr @raw_baseminikey, align 8, !tbaa !5
  invoke void @_Z19increment_minikey_NPc(ptr noundef %163)
          to label %164 unwind label %85

164:                                              ; preds = %160
  br label %165

165:                                              ; preds = %164, %159
  %166 = call i32 @pthread_mutex_unlock(ptr noundef @write_random) #7
  br label %167

167:                                              ; preds = %165, %125
  br label %168

168:                                              ; preds = %167, %116
  %169 = getelementptr inbounds [24 x i8], ptr %17, i64 0, i64 0
  %170 = getelementptr inbounds i8, ptr %169, i64 1
  %171 = getelementptr inbounds [21 x i8], ptr %16, i64 0, i64 0
  invoke void @_Z11set_minikeyPcS_i(ptr noundef %170, ptr noundef %171, i32 noundef 21)
          to label %172 unwind label %85

172:                                              ; preds = %168
  %173 = load i32, ptr %23, align 4, !tbaa !9
  %174 = icmp ne i32 %173, 0
  br i1 %174, label %175, label %485

175:                                              ; preds = %172
  store i64 0, ptr %10, align 8, !tbaa !18
  %176 = load i32, ptr @FLAGMATRIX, align 4, !tbaa !9
  %177 = icmp ne i32 %176, 0
  br i1 %177, label %178, label %185

178:                                              ; preds = %175
  %179 = getelementptr inbounds [24 x i8], ptr %17, i64 0, i64 0
  %180 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.227, ptr noundef %179)
          to label %181 unwind label %85

181:                                              ; preds = %178
  %182 = load ptr, ptr @stdout, align 8, !tbaa !5
  %183 = invoke i32 @fflush(ptr noundef %182)
          to label %184 unwind label %85

184:                                              ; preds = %181
  br label %196

185:                                              ; preds = %175
  %186 = load i32, ptr @FLAGQUIET, align 4, !tbaa !9
  %187 = icmp ne i32 %186, 0
  br i1 %187, label %195, label %188

188:                                              ; preds = %185
  %189 = getelementptr inbounds [24 x i8], ptr %17, i64 0, i64 0
  %190 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.228, ptr noundef %189)
          to label %191 unwind label %85

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

194:                                              ; preds = %191
  br label %195

195:                                              ; preds = %194, %185
  br label %196

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

197:                                              ; preds = %482, %196
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %198

198:                                              ; preds = %463, %197
  %199 = load i32, ptr %25, align 4, !tbaa !9
  %200 = icmp slt i32 %199, 256
  br i1 %200, label %201, label %466

201:                                              ; preds = %198
  %202 = load i32, ptr %26, align 4, !tbaa !9
  %203 = icmp sgt i32 %202, 0
  br i1 %203, label %204, label %223

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

205:                                              ; preds = %219, %204
  %206 = load i32, ptr %24, align 4, !tbaa !9
  %207 = load i32, ptr %26, align 4, !tbaa !9
  %208 = icmp slt i32 %206, %207
  br i1 %208, label %209, label %222

209:                                              ; preds = %205
  %210 = load i32, ptr %24, align 4, !tbaa !9
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [8 x [24 x i8]], ptr %15, i64 0, i64 %211
  %213 = getelementptr inbounds [24 x i8], ptr %212, i64 0, i64 0
  %214 = load i32, ptr %24, align 4, !tbaa !9
  %215 = add nsw i32 4, %214
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [8 x [24 x i8]], ptr %15, i64 0, i64 %216
  %218 = getelementptr inbounds [24 x i8], ptr %217, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %213, ptr align 8 %218, i64 22, i1 false)
  br label %219

219:                                              ; preds = %209
  %220 = load i32, ptr %24, align 4, !tbaa !9
  %221 = add nsw i32 %220, 1
  store i32 %221, ptr %24, align 4, !tbaa !9
  br label %205, !llvm.loop !20

222:                                              ; preds = %205
  br label %223

223:                                              ; preds = %222, %201
  br label %224

224:                                              ; preds = %309, %223
  %225 = getelementptr inbounds [24 x i8], ptr %17, i64 0, i64 0
  %226 = getelementptr inbounds i8, ptr %225, i64 1
  %227 = getelementptr inbounds [21 x i8], ptr %16, i64 0, i64 0
  %228 = invoke noundef zeroext i1 @_Z23increment_minikey_indexPcS_i(ptr noundef %226, ptr noundef %227, i32 noundef 20)
          to label %229 unwind label %85

229:                                              ; preds = %224
  %230 = getelementptr inbounds [4 x [24 x i8]], ptr %14, i64 0, i64 0
  %231 = getelementptr inbounds [24 x i8], ptr %230, i64 0, i64 0
  %232 = getelementptr inbounds i8, ptr %231, i64 1
  %233 = getelementptr inbounds [24 x i8], ptr %17, i64 0, i64 0
  %234 = getelementptr inbounds i8, ptr %233, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %232, ptr align 1 %234, i64 21, i1 false)
  %235 = getelementptr inbounds [24 x i8], ptr %17, i64 0, i64 0
  %236 = getelementptr inbounds i8, ptr %235, i64 1
  %237 = getelementptr inbounds [21 x i8], ptr %16, i64 0, i64 0
  %238 = invoke noundef zeroext i1 @_Z23increment_minikey_indexPcS_i(ptr noundef %236, ptr noundef %237, i32 noundef 20)
          to label %239 unwind label %85

239:                                              ; preds = %229
  %240 = getelementptr inbounds [4 x [24 x i8]], ptr %14, i64 0, i64 1
  %241 = getelementptr inbounds [24 x i8], ptr %240, i64 0, i64 0
  %242 = getelementptr inbounds i8, ptr %241, i64 1
  %243 = getelementptr inbounds [24 x i8], ptr %17, i64 0, i64 0
  %244 = getelementptr inbounds i8, ptr %243, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %242, ptr align 1 %244, i64 21, i1 false)
  %245 = getelementptr inbounds [24 x i8], ptr %17, i64 0, i64 0
  %246 = getelementptr inbounds i8, ptr %245, i64 1
  %247 = getelementptr inbounds [21 x i8], ptr %16, i64 0, i64 0
  %248 = invoke noundef zeroext i1 @_Z23increment_minikey_indexPcS_i(ptr noundef %246, ptr noundef %247, i32 noundef 20)
          to label %249 unwind label %85

249:                                              ; preds = %239
  %250 = getelementptr inbounds [4 x [24 x i8]], ptr %14, i64 0, i64 2
  %251 = getelementptr inbounds [24 x i8], ptr %250, i64 0, i64 0
  %252 = getelementptr inbounds i8, ptr %251, i64 1
  %253 = getelementptr inbounds [24 x i8], ptr %17, i64 0, i64 0
  %254 = getelementptr inbounds i8, ptr %253, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %252, ptr align 1 %254, i64 21, i1 false)
  %255 = getelementptr inbounds [24 x i8], ptr %17, i64 0, i64 0
  %256 = getelementptr inbounds i8, ptr %255, i64 1
  %257 = getelementptr inbounds [21 x i8], ptr %16, i64 0, i64 0
  %258 = invoke noundef zeroext i1 @_Z23increment_minikey_indexPcS_i(ptr noundef %256, ptr noundef %257, i32 noundef 20)
          to label %259 unwind label %85

259:                                              ; preds = %249
  %260 = getelementptr inbounds [4 x [24 x i8]], ptr %14, i64 0, i64 3
  %261 = getelementptr inbounds [24 x i8], ptr %260, i64 0, i64 0
  %262 = getelementptr inbounds i8, ptr %261, i64 1
  %263 = getelementptr inbounds [24 x i8], ptr %17, i64 0, i64 0
  %264 = getelementptr inbounds i8, ptr %263, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %262, ptr align 1 %264, i64 21, i1 false)
  %265 = getelementptr inbounds [4 x [24 x i8]], ptr %14, i64 0, i64 0
  %266 = getelementptr inbounds [24 x i8], ptr %265, i64 0, i64 0
  %267 = getelementptr inbounds [4 x [24 x i8]], ptr %14, i64 0, i64 1
  %268 = getelementptr inbounds [24 x i8], ptr %267, i64 0, i64 0
  %269 = getelementptr inbounds [4 x [24 x i8]], ptr %14, i64 0, i64 2
  %270 = getelementptr inbounds [24 x i8], ptr %269, i64 0, i64 0
  %271 = getelementptr inbounds [4 x [24 x i8]], ptr %14, i64 0, i64 3
  %272 = getelementptr inbounds [24 x i8], ptr %271, i64 0, i64 0
  %273 = getelementptr inbounds [4 x [32 x i8]], ptr %18, i64 0, i64 0
  %274 = getelementptr inbounds [32 x i8], ptr %273, i64 0, i64 0
  %275 = getelementptr inbounds [4 x [32 x i8]], ptr %18, i64 0, i64 1
  %276 = getelementptr inbounds [32 x i8], ptr %275, i64 0, i64 0
  %277 = getelementptr inbounds [4 x [32 x i8]], ptr %18, i64 0, i64 2
  %278 = getelementptr inbounds [32 x i8], ptr %277, i64 0, i64 0
  %279 = getelementptr inbounds [4 x [32 x i8]], ptr %18, i64 0, i64 3
  %280 = getelementptr inbounds [32 x i8], ptr %279, i64 0, i64 0
  invoke void @_Z12sha256sse_23PhS_S_S_S_S_S_S_(ptr noundef %266, ptr noundef %268, ptr noundef %270, ptr noundef %272, ptr noundef %274, ptr noundef %276, ptr noundef %278, ptr noundef %280)
          to label %281 unwind label %85

281:                                              ; preds = %259
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %282

282:                                              ; preds = %305, %281
  %283 = load i32, ptr %24, align 4, !tbaa !9
  %284 = icmp slt i32 %283, 4
  br i1 %284, label %285, label %308

285:                                              ; preds = %282
  %286 = load i32, ptr %24, align 4, !tbaa !9
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds [4 x [32 x i8]], ptr %18, i64 0, i64 %287
  %289 = getelementptr inbounds [32 x i8], ptr %288, i64 0, i64 0
  %290 = load i8, ptr %289, align 16, !tbaa !13
  %291 = sext i8 %290 to i32
  %292 = icmp eq i32 %291, 0
  br i1 %292, label %293, label %304

293:                                              ; preds = %285
  %294 = load i32, ptr %26, align 4, !tbaa !9
  %295 = sext i32 %294 to i64
  %296 = getelementptr inbounds [8 x [24 x i8]], ptr %15, i64 0, i64 %295
  %297 = getelementptr inbounds [24 x i8], ptr %296, i64 0, i64 0
  %298 = load i32, ptr %24, align 4, !tbaa !9
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds [4 x [24 x i8]], ptr %14, i64 0, i64 %299
  %301 = getelementptr inbounds [24 x i8], ptr %300, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %297, ptr align 8 %301, i64 22, i1 false)
  %302 = load i32, ptr %26, align 4, !tbaa !9
  %303 = add nsw i32 %302, 1
  store i32 %303, ptr %26, align 4, !tbaa !9
  br label %304

304:                                              ; preds = %293, %285
  br label %305

305:                                              ; preds = %304
  %306 = load i32, ptr %24, align 4, !tbaa !9
  %307 = add nsw i32 %306, 1
  store i32 %307, ptr %24, align 4, !tbaa !9
  br label %282, !llvm.loop !21

308:                                              ; preds = %282
  br label %309

309:                                              ; preds = %308
  %310 = load i32, ptr %26, align 4, !tbaa !9
  %311 = icmp slt i32 %310, 4
  br i1 %311, label %224, label %312, !llvm.loop !22

312:                                              ; preds = %309
  %313 = load i32, ptr %26, align 4, !tbaa !9
  %314 = sub nsw i32 %313, 4
  store i32 %314, ptr %26, align 4, !tbaa !9
  %315 = getelementptr inbounds [8 x [24 x i8]], ptr %15, i64 0, i64 0
  %316 = getelementptr inbounds [24 x i8], ptr %315, i64 0, i64 0
  %317 = getelementptr inbounds [8 x [24 x i8]], ptr %15, i64 0, i64 1
  %318 = getelementptr inbounds [24 x i8], ptr %317, i64 0, i64 0
  %319 = getelementptr inbounds [8 x [24 x i8]], ptr %15, i64 0, i64 2
  %320 = getelementptr inbounds [24 x i8], ptr %319, i64 0, i64 0
  %321 = getelementptr inbounds [8 x [24 x i8]], ptr %15, i64 0, i64 3
  %322 = getelementptr inbounds [24 x i8], ptr %321, i64 0, i64 0
  %323 = getelementptr inbounds [4 x [32 x i8]], ptr %18, i64 0, i64 0
  %324 = getelementptr inbounds [32 x i8], ptr %323, i64 0, i64 0
  %325 = getelementptr inbounds [4 x [32 x i8]], ptr %18, i64 0, i64 1
  %326 = getelementptr inbounds [32 x i8], ptr %325, i64 0, i64 0
  %327 = getelementptr inbounds [4 x [32 x i8]], ptr %18, i64 0, i64 2
  %328 = getelementptr inbounds [32 x i8], ptr %327, i64 0, i64 0
  %329 = getelementptr inbounds [4 x [32 x i8]], ptr %18, i64 0, i64 3
  %330 = getelementptr inbounds [32 x i8], ptr %329, i64 0, i64 0
  invoke void @_Z12sha256sse_22PhS_S_S_S_S_S_S_(ptr noundef %316, ptr noundef %318, ptr noundef %320, ptr noundef %322, ptr noundef %324, ptr noundef %326, ptr noundef %328, ptr noundef %330)
          to label %331 unwind label %85

331:                                              ; preds = %312
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %332

332:                                              ; preds = %352, %331
  %333 = load i32, ptr %24, align 4, !tbaa !9
  %334 = icmp slt i32 %333, 4
  br i1 %334, label %335, label %359

335:                                              ; preds = %332
  %336 = load i32, ptr %24, align 4, !tbaa !9
  %337 = sext i32 %336 to i64
  %338 = getelementptr inbounds [4 x %class.Int], ptr %8, i64 0, i64 %337
  %339 = load i32, ptr %24, align 4, !tbaa !9
  %340 = sext i32 %339 to i64
  %341 = getelementptr inbounds [4 x [32 x i8]], ptr %18, i64 0, i64 %340
  %342 = getelementptr inbounds [32 x i8], ptr %341, i64 0, i64 0
  invoke void @_ZN3Int10Set32BytesEPh(ptr noundef nonnull align 8 dereferenceable(40) %338, ptr noundef %342)
          to label %343 unwind label %85

343:                                              ; preds = %335
  call void @llvm.lifetime.start.p0(i64 120, ptr %28) #7
  %344 = load ptr, ptr @secp, align 8, !tbaa !5
  %345 = load i32, ptr %24, align 4, !tbaa !9
  %346 = sext i32 %345 to i64
  %347 = getelementptr inbounds [4 x %class.Int], ptr %8, i64 0, i64 %346
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind writable sret(%class.Point) align 8 %28, ptr noundef nonnull align 8 dereferenceable(983240) %344, ptr noundef %347)
          to label %348 unwind label %355

348:                                              ; preds = %343
  %349 = load i32, ptr %24, align 4, !tbaa !9
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds [4 x %class.Point], ptr %5, i64 0, i64 %350
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %351, ptr align 8 %28, i64 120, i1 false), !tbaa.struct !23
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %28) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr %28) #7
  br label %352

352:                                              ; preds = %348
  %353 = load i32, ptr %24, align 4, !tbaa !9
  %354 = add nsw i32 %353, 1
  store i32 %354, ptr %24, align 4, !tbaa !9
  br label %332, !llvm.loop !24

355:                                              ; preds = %343
  %356 = landingpad { ptr, i32 }
          cleanup
  %357 = extractvalue { ptr, i32 } %356, 0
  store ptr %357, ptr %6, align 8
  %358 = extractvalue { ptr, i32 } %356, 1
  store i32 %358, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %28) #7
  br label %492

359:                                              ; preds = %332
  %360 = load ptr, ptr @secp, align 8, !tbaa !5
  %361 = getelementptr inbounds [4 x %class.Point], ptr %5, i64 0, i64 0
  %362 = getelementptr inbounds [4 x %class.Point], ptr %5, i64 0, i64 1
  %363 = getelementptr inbounds [4 x %class.Point], ptr %5, i64 0, i64 2
  %364 = getelementptr inbounds [4 x %class.Point], ptr %5, i64 0, i64 3
  %365 = getelementptr inbounds [4 x [20 x i8]], ptr %11, i64 0, i64 0
  %366 = getelementptr inbounds [20 x i8], ptr %365, i64 0, i64 0
  %367 = getelementptr inbounds [4 x [20 x i8]], ptr %11, i64 0, i64 1
  %368 = getelementptr inbounds [20 x i8], ptr %367, i64 0, i64 0
  %369 = getelementptr inbounds [4 x [20 x i8]], ptr %11, i64 0, i64 2
  %370 = getelementptr inbounds [20 x i8], ptr %369, i64 0, i64 0
  %371 = getelementptr inbounds [4 x [20 x i8]], ptr %11, i64 0, i64 3
  %372 = getelementptr inbounds [20 x i8], ptr %371, i64 0, i64 0
  invoke void @_ZN9Secp256K110GetHash160EibR5PointS1_S1_S1_PhS2_S2_S2_(ptr noundef nonnull align 8 dereferenceable(983240) %360, i32 noundef 0, i1 noundef zeroext false, ptr noundef nonnull align 8 dereferenceable(120) %361, ptr noundef nonnull align 8 dereferenceable(120) %362, ptr noundef nonnull align 8 dereferenceable(120) %363, ptr noundef nonnull align 8 dereferenceable(120) %364, ptr noundef %366, ptr noundef %368, ptr noundef %370, ptr noundef %372)
          to label %373 unwind label %85

373:                                              ; preds = %359
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %374

374:                                              ; preds = %459, %373
  %375 = load i32, ptr %24, align 4, !tbaa !9
  %376 = icmp slt i32 %375, 4
  br i1 %376, label %377, label %462

377:                                              ; preds = %374
  %378 = load i32, ptr %24, align 4, !tbaa !9
  %379 = sext i32 %378 to i64
  %380 = getelementptr inbounds [4 x [20 x i8]], ptr %11, i64 0, i64 %379
  %381 = getelementptr inbounds [20 x i8], ptr %380, i64 0, i64 0
  %382 = invoke i32 @bloom_check(ptr noundef @bloom, ptr noundef %381, i32 noundef 20)
          to label %383 unwind label %85

383:                                              ; preds = %377
  store i32 %382, ptr %21, align 4, !tbaa !9
  %384 = load i32, ptr %21, align 4, !tbaa !9
  %385 = icmp ne i32 %384, 0
  br i1 %385, label %386, label %458

386:                                              ; preds = %383
  %387 = load ptr, ptr @addressTable, align 8, !tbaa !5
  %388 = load i32, ptr %24, align 4, !tbaa !9
  %389 = sext i32 %388 to i64
  %390 = getelementptr inbounds [4 x [20 x i8]], ptr %11, i64 0, i64 %389
  %391 = getelementptr inbounds [20 x i8], ptr %390, i64 0, i64 0
  %392 = load i64, ptr @N, align 8, !tbaa !18
  %393 = call noundef i32 @_Z12searchbinaryP13address_valuePcl(ptr noundef %387, ptr noundef %391, i64 noundef %392)
  store i32 %393, ptr %21, align 4, !tbaa !9
  %394 = load i32, ptr %21, align 4, !tbaa !9
  %395 = icmp ne i32 %394, 0
  br i1 %395, label %396, label %457

396:                                              ; preds = %386
  %397 = load i32, ptr %24, align 4, !tbaa !9
  %398 = sext i32 %397 to i64
  %399 = getelementptr inbounds [4 x %class.Int], ptr %8, i64 0, i64 %398
  %400 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %399)
          to label %401 unwind label %85

401:                                              ; preds = %396
  store ptr %400, ptr %19, align 8, !tbaa !5
  %402 = load ptr, ptr @secp, align 8, !tbaa !5
  %403 = load i32, ptr %24, align 4, !tbaa !9
  %404 = sext i32 %403 to i64
  %405 = getelementptr inbounds [4 x %class.Point], ptr %5, i64 0, i64 %404
  %406 = getelementptr inbounds [131 x i8], ptr %12, i64 0, i64 0
  invoke void @_ZN9Secp256K115GetPublicKeyHexEbR5PointPc(ptr noundef nonnull align 8 dereferenceable(983240) %402, i1 noundef zeroext false, ptr noundef nonnull align 8 dereferenceable(120) %405, ptr noundef %406)
          to label %407 unwind label %85

407:                                              ; preds = %401
  %408 = call i32 @pthread_mutex_lock(ptr noundef @write_keys) #7
  %409 = invoke noalias ptr @fopen(ptr noundef @.str.229, ptr noundef @.str.230)
          to label %410 unwind label %85

410:                                              ; preds = %407
  store ptr %409, ptr %4, align 8, !tbaa !5
  %411 = load i32, ptr %24, align 4, !tbaa !9
  %412 = sext i32 %411 to i64
  %413 = getelementptr inbounds [4 x [20 x i8]], ptr %11, i64 0, i64 %412
  %414 = getelementptr inbounds [20 x i8], ptr %413, i64 0, i64 0
  %415 = load i32, ptr %24, align 4, !tbaa !9
  %416 = sext i32 %415 to i64
  %417 = getelementptr inbounds [4 x [40 x i8]], ptr %13, i64 0, i64 %416
  %418 = getelementptr inbounds [40 x i8], ptr %417, i64 0, i64 0
  invoke void @_Z19rmd160toaddress_dstPcS_(ptr noundef %414, ptr noundef %418)
          to label %419 unwind label %85

419:                                              ; preds = %410
  %420 = load i32, ptr %24, align 4, !tbaa !9
  %421 = sext i32 %420 to i64
  %422 = getelementptr inbounds [8 x [24 x i8]], ptr %15, i64 0, i64 %421
  %423 = getelementptr inbounds [24 x i8], ptr %422, i64 0, i64 22
  store i8 0, ptr %423, align 2, !tbaa !13
  %424 = load ptr, ptr %4, align 8, !tbaa !5
  %425 = icmp ne ptr %424, null
  br i1 %425, label %426, label %442

426:                                              ; preds = %419
  %427 = load ptr, ptr %4, align 8, !tbaa !5
  %428 = load ptr, ptr %19, align 8, !tbaa !5
  %429 = getelementptr inbounds [131 x i8], ptr %12, i64 0, i64 0
  %430 = load i32, ptr %24, align 4, !tbaa !9
  %431 = sext i32 %430 to i64
  %432 = getelementptr inbounds [8 x [24 x i8]], ptr %15, i64 0, i64 %431
  %433 = getelementptr inbounds [24 x i8], ptr %432, i64 0, i64 0
  %434 = load i32, ptr %24, align 4, !tbaa !9
  %435 = sext i32 %434 to i64
  %436 = getelementptr inbounds [4 x [40 x i8]], ptr %13, i64 0, i64 %435
  %437 = getelementptr inbounds [40 x i8], ptr %436, i64 0, i64 0
  %438 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %427, ptr noundef @.str.231, ptr noundef %428, ptr noundef %429, ptr noundef %433, ptr noundef %437) #7
  %439 = load ptr, ptr %4, align 8, !tbaa !5
  %440 = invoke i32 @fclose(ptr noundef %439)
          to label %441 unwind label %85

441:                                              ; preds = %426
  br label %442

442:                                              ; preds = %441, %419
  %443 = load ptr, ptr %19, align 8, !tbaa !5
  %444 = getelementptr inbounds [131 x i8], ptr %12, i64 0, i64 0
  %445 = load i32, ptr %24, align 4, !tbaa !9
  %446 = sext i32 %445 to i64
  %447 = getelementptr inbounds [8 x [24 x i8]], ptr %15, i64 0, i64 %446
  %448 = getelementptr inbounds [24 x i8], ptr %447, i64 0, i64 0
  %449 = load i32, ptr %24, align 4, !tbaa !9
  %450 = sext i32 %449 to i64
  %451 = getelementptr inbounds [4 x [40 x i8]], ptr %13, i64 0, i64 %450
  %452 = getelementptr inbounds [40 x i8], ptr %451, i64 0, i64 0
  %453 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.232, ptr noundef %443, ptr noundef %444, ptr noundef %448, ptr noundef %452)
          to label %454 unwind label %85

454:                                              ; preds = %442
  %455 = call i32 @pthread_mutex_unlock(ptr noundef @write_keys) #7
  %456 = load ptr, ptr %19, align 8, !tbaa !5
  call void @free(ptr noundef %456) #7
  br label %457

457:                                              ; preds = %454, %386
  br label %458

458:                                              ; preds = %457, %383
  br label %459

459:                                              ; preds = %458
  %460 = load i32, ptr %24, align 4, !tbaa !9
  %461 = add nsw i32 %460, 1
  store i32 %461, ptr %24, align 4, !tbaa !9
  br label %374, !llvm.loop !25

462:                                              ; preds = %374
  br label %463

463:                                              ; preds = %462
  %464 = load i32, ptr %25, align 4, !tbaa !9
  %465 = add nsw i32 %464, 1
  store i32 %465, ptr %25, align 4, !tbaa !9
  br label %198, !llvm.loop !26

466:                                              ; preds = %198
  %467 = load ptr, ptr @steps, align 8, !tbaa !5
  %468 = load i32, ptr %22, align 4, !tbaa !9
  %469 = sext i32 %468 to i64
  %470 = getelementptr inbounds i64, ptr %467, i64 %469
  %471 = load i64, ptr %470, align 8, !tbaa !18
  %472 = add i64 %471, 1
  store i64 %472, ptr %470, align 8, !tbaa !18
  %473 = load i64, ptr %10, align 8, !tbaa !18
  %474 = add i64 %473, 1024
  store i64 %474, ptr %10, align 8, !tbaa !18
  br label %475

475:                                              ; preds = %466
  %476 = load i64, ptr %10, align 8, !tbaa !18
  %477 = load i64, ptr @N_SEQUENTIAL_MAX, align 8, !tbaa !18
  %478 = icmp ult i64 %476, %477
  br i1 %478, label %479, label %482

479:                                              ; preds = %475
  %480 = load i32, ptr %23, align 4, !tbaa !9
  %481 = icmp ne i32 %480, 0
  br label %482

482:                                              ; preds = %479, %475
  %483 = phi i1 [ false, %475 ], [ %481, %479 ]
  br i1 %483, label %197, label %484, !llvm.loop !27

484:                                              ; preds = %482
  br label %485

485:                                              ; preds = %484, %172
  br label %486

486:                                              ; preds = %485
  %487 = load i32, ptr %23, align 4, !tbaa !9
  %488 = icmp ne i32 %487, 0
  br i1 %488, label %93, label %489, !llvm.loop !28

489:                                              ; preds = %486
  store ptr null, ptr %2, align 8
  call void @llvm.lifetime.end.p0(i64 40, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 21, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 192, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 131, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr %8) #7
  %490 = getelementptr inbounds [4 x %class.Point], ptr %5, i32 0, i32 0
  %491 = getelementptr inbounds %class.Point, ptr %490, i64 4
  br label %496

492:                                              ; preds = %355, %85
  call void @llvm.lifetime.end.p0(i64 40, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 21, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 192, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 131, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %493

493:                                              ; preds = %492, %81
  call void @llvm.lifetime.end.p0(i64 160, ptr %8) #7
  %494 = getelementptr inbounds [4 x %class.Point], ptr %5, i32 0, i32 0
  %495 = getelementptr inbounds %class.Point, ptr %494, i64 4
  br label %502

496:                                              ; preds = %496, %489
  %497 = phi ptr [ %491, %489 ], [ %498, %496 ]
  %498 = getelementptr inbounds %class.Point, ptr %497, i64 -1
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %498) #7
  %499 = icmp eq ptr %498, %490
  br i1 %499, label %500, label %496

500:                                              ; preds = %496
  call void @llvm.lifetime.end.p0(i64 480, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  %501 = load ptr, ptr %2, align 8
  ret ptr %501

502:                                              ; preds = %502, %493
  %503 = phi ptr [ %495, %493 ], [ %504, %502 ]
  %504 = getelementptr inbounds %class.Point, ptr %503, i64 -1
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %504) #7
  %505 = icmp eq ptr %504, %494
  br i1 %505, label %506, label %502

506:                                              ; preds = %502
  br label %507

507:                                              ; preds = %506, %80
  call void @llvm.lifetime.end.p0(i64 480, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  br label %508

508:                                              ; preds = %507
  %509 = load ptr, ptr %6, align 8
  %510 = load i32, ptr %7, align 4
  %511 = insertvalue { ptr, i32 } poison, ptr %509, 0
  %512 = insertvalue { ptr, i32 } %511, i32 %510, 1
  resume { ptr, i32 } %512
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z19rmd160toaddress_dstPcS_(ptr noundef, ptr noundef) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z12searchbinaryP13address_valuePcl(ptr noundef, ptr noundef, i64 noundef) #3

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z19increment_minikey_NPc(ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z11set_minikeyPcS_i(ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z23increment_minikey_indexPcS_i(ptr noundef, ptr noundef, i32 noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12sha256sse_23PhS_S_S_S_S_S_S_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z12sha256sse_22PhS_S_S_S_S_S_S_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #6

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

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

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

declare void @_ZN9Secp256K115GetPublicKeyHexEbR5PointPc(ptr noundef nonnull align 8 dereferenceable(983240), i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(120), ptr 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 = { 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 #4 = { nounwind 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }

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


; 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"

%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 }
%class.Point = type { %class.Int, %class.Int, %class.Int }
%class.Int = type { %union.anon }
%union.anon = type { [5 x i64] }

@raw_baseminikey = external dso_local local_unnamed_addr global ptr, align 8
@write_keys = external dso_local global %union.pthread_mutex_t, align 8
@write_random = external dso_local global %union.pthread_mutex_t, align 8
@bloom = external dso_local global %struct.bloom, align 16
@steps = external dso_local local_unnamed_addr global ptr, align 8
@N = external dso_local local_unnamed_addr global i64, align 8
@N_SEQUENTIAL_MAX = external dso_local local_unnamed_addr global i64, align 8
@FLAGBASEMINIKEY = external dso_local local_unnamed_addr global i32, align 4
@FLAGQUIET = external dso_local local_unnamed_addr global i32, align 4
@FLAGMATRIX = external dso_local local_unnamed_addr global i32, align 4
@FLAGRANDOM = external dso_local local_unnamed_addr global i32, align 4
@addressTable = external dso_local local_unnamed_addr global ptr, align 8
@secp = external dso_local local_unnamed_addr global ptr, align 8
@.str.81 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [16 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.227 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.228 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.229 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.230 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.231 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.232 = external hidden unnamed_addr constant [59 x i8], align 1

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z12checkpointerPvPKcS1_S1_i(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #5

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

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

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

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

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) #7

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 @_Z23thread_process_minikeysPv(ptr nocapture noundef %0) local_unnamed_addr #8 personality ptr @__gxx_personality_v0 {
  %2 = alloca [4 x %class.Point], align 16
  %3 = alloca [4 x %class.Int], align 16
  %4 = alloca [4 x [20 x i8]], align 16
  %5 = alloca [131 x i8], align 16
  %6 = alloca [4 x [40 x i8]], align 16
  %7 = alloca [4 x [24 x i8]], align 16
  %8 = alloca [8 x [24 x i8]], align 16
  %9 = alloca [21 x i8], align 16
  %10 = alloca [24 x i8], align 16
  %11 = alloca [4 x [32 x i8]], align 16
  %12 = alloca %class.Int, align 16
  %13 = alloca %class.Point, align 8
  call void @llvm.lifetime.start.p0(i64 480, ptr nonnull %2) #10
  call void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %2)
  %.ptr.1 = getelementptr inbounds i8, ptr %2, i64 120
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %.ptr.1)
          to label %14 unwind label %.preheader125.preheader

14:                                               ; preds = %1
  %.ptr.2 = getelementptr inbounds i8, ptr %2, i64 240
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %.ptr.2)
          to label %15 unwind label %.preheader125.preheader

15:                                               ; preds = %14
  %.ptr.3 = getelementptr inbounds i8, ptr %2, i64 360
  invoke void @_ZN5PointC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %.ptr.3)
          to label %16 unwind label %.preheader125.preheader

16:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %3) #10
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %3)
          to label %17 unwind label %85

17:                                               ; preds = %16
  %.ptr95.1 = getelementptr inbounds i8, ptr %3, i64 40
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %.ptr95.1)
          to label %18 unwind label %85

18:                                               ; preds = %17
  %.ptr95.2 = getelementptr inbounds i8, ptr %3, i64 80
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %.ptr95.2)
          to label %19 unwind label %85

19:                                               ; preds = %18
  %.ptr95.3 = getelementptr inbounds i8, ptr %3, i64 120
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %.ptr95.3)
          to label %20 unwind label %85

20:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %4) #10
  call void @llvm.lifetime.start.p0(i64 131, ptr nonnull %5) #10
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %6) #10
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %7) #10
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %8) #10
  call void @llvm.lifetime.start.p0(i64 21, ptr nonnull %9) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #10
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %11) #10
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %12) #10
  invoke void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %12)
          to label %21 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

21:                                               ; preds = %20
  %22 = load i32, ptr %0, align 8, !tbaa !5
  call void @free(ptr noundef %0) #10
  store i8 83, ptr %7, align 16, !tbaa !11
  %23 = getelementptr inbounds i8, ptr %7, i64 22
  store i8 63, ptr %23, align 2, !tbaa !11
  %24 = getelementptr inbounds i8, ptr %7, i64 23
  store i8 0, ptr %24, align 1, !tbaa !11
  %25 = getelementptr inbounds i8, ptr %7, i64 24
  store i8 83, ptr %25, align 8, !tbaa !11
  %26 = getelementptr inbounds i8, ptr %7, i64 46
  store i8 63, ptr %26, align 2, !tbaa !11
  %27 = getelementptr inbounds i8, ptr %7, i64 47
  store i8 0, ptr %27, align 1, !tbaa !11
  %28 = getelementptr inbounds i8, ptr %7, i64 48
  store i8 83, ptr %28, align 16, !tbaa !11
  %29 = getelementptr inbounds i8, ptr %7, i64 70
  store i8 63, ptr %29, align 2, !tbaa !11
  %30 = getelementptr inbounds i8, ptr %7, i64 71
  store i8 0, ptr %30, align 1, !tbaa !11
  %31 = getelementptr inbounds i8, ptr %7, i64 72
  store i8 83, ptr %31, align 8, !tbaa !11
  %32 = getelementptr inbounds i8, ptr %7, i64 94
  store i8 63, ptr %32, align 2, !tbaa !11
  %33 = getelementptr inbounds i8, ptr %7, i64 95
  store i8 0, ptr %33, align 1, !tbaa !11
  store i8 83, ptr %10, align 16, !tbaa !11
  %34 = getelementptr inbounds i8, ptr %10, i64 22
  store i8 63, ptr %34, align 2, !tbaa !11
  %35 = getelementptr inbounds i8, ptr %10, i64 23
  store i8 0, ptr %35, align 1, !tbaa !11
  %36 = getelementptr inbounds i8, ptr %10, i64 1
  %37 = getelementptr inbounds i8, ptr %7, i64 1
  %38 = getelementptr inbounds i8, ptr %7, i64 25
  %39 = getelementptr inbounds i8, ptr %7, i64 49
  %40 = getelementptr inbounds i8, ptr %7, i64 73
  %41 = getelementptr inbounds i8, ptr %11, i64 32
  %42 = getelementptr inbounds i8, ptr %11, i64 64
  %43 = getelementptr inbounds i8, ptr %11, i64 96
  %44 = getelementptr inbounds i8, ptr %8, i64 24
  %45 = getelementptr inbounds i8, ptr %8, i64 48
  %46 = getelementptr inbounds i8, ptr %8, i64 72
  %47 = getelementptr inbounds i8, ptr %4, i64 20
  %48 = getelementptr inbounds i8, ptr %4, i64 40
  %49 = getelementptr inbounds i8, ptr %4, i64 60
  %50 = sext i32 %22 to i64
  %51 = getelementptr inbounds i8, ptr %12, i64 16
  %52 = getelementptr inbounds i8, ptr %9, i64 16
  %53 = getelementptr inbounds i8, ptr %12, i64 20
  %54 = getelementptr inbounds i8, ptr %9, i64 20
  %55 = getelementptr inbounds i8, ptr %12, i64 1
  %56 = getelementptr inbounds i8, ptr %12, i64 2
  %57 = getelementptr inbounds i8, ptr %12, i64 3
  %58 = getelementptr inbounds i8, ptr %12, i64 4
  %59 = getelementptr inbounds i8, ptr %12, i64 5
  %60 = getelementptr inbounds i8, ptr %12, i64 6
  %61 = getelementptr inbounds i8, ptr %12, i64 7
  %62 = getelementptr inbounds i8, ptr %12, i64 8
  %63 = getelementptr inbounds i8, ptr %12, i64 9
  %64 = getelementptr inbounds i8, ptr %12, i64 10
  %65 = getelementptr inbounds i8, ptr %12, i64 11
  %66 = getelementptr inbounds i8, ptr %12, i64 12
  %67 = getelementptr inbounds i8, ptr %12, i64 13
  %68 = getelementptr inbounds i8, ptr %12, i64 14
  %69 = getelementptr inbounds i8, ptr %12, i64 15
  %70 = getelementptr inbounds i8, ptr %12, i64 16
  %71 = getelementptr inbounds i8, ptr %12, i64 17
  %72 = getelementptr inbounds i8, ptr %12, i64 18
  %73 = getelementptr inbounds i8, ptr %12, i64 19
  %74 = getelementptr inbounds i8, ptr %12, i64 20
  %75 = getelementptr inbounds i8, ptr %8, i64 22
  %76 = getelementptr inbounds i8, ptr %6, i64 40
  %77 = getelementptr inbounds i8, ptr %8, i64 46
  %78 = getelementptr inbounds i8, ptr %6, i64 80
  %79 = getelementptr inbounds i8, ptr %8, i64 70
  %80 = getelementptr inbounds i8, ptr %6, i64 120
  %81 = getelementptr inbounds i8, ptr %8, i64 94
  br label %87

.preheader125.preheader:                          ; preds = %1, %14, %15
  %.ptr.lcssa.ph = phi ptr [ %.ptr.3, %15 ], [ %.ptr.2, %14 ], [ %.ptr.1, %1 ]
  %lpad.thr_comm = landingpad { ptr, i32 }
          cleanup
  br label %.preheader125

.preheader125:                                    ; preds = %.preheader125.preheader, %.preheader125
  %82 = phi ptr [ %83, %.preheader125 ], [ %.ptr.lcssa.ph, %.preheader125.preheader ]
  %83 = getelementptr inbounds i8, ptr %82, i64 -120
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %83) #10
  %84 = icmp eq ptr %83, %2
  br i1 %84, label %.loopexit, label %.preheader125

85:                                               ; preds = %19, %18, %17, %16
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.loopexit

.loopexit107:                                     ; preds = %317, %315, %313, %.preheader106.3, %297, %295, %293, %.preheader106.2, %277, %275, %273, %.preheader106.1, %.preheader106.preheader, %253, %255, %257
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %.preheader108.3, %.preheader108.2, %.preheader108.1, %.preheader108.preheader
  %lpad.loopexit109 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit:    ; preds = %.loopexit115, %200, %202, %204, %206
  %lpad.loopexit112 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

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

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

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

.loopexit119:                                     ; preds = %329
  br label %87, !llvm.loop !12

87:                                               ; preds = %.loopexit119, %21
  %.0 = phi i32 [ 0, %21 ], [ %234, %.loopexit119 ]
  %88 = load i32, ptr @FLAGRANDOM, align 4, !tbaa !14
  %.not = icmp eq i32 %88, 0
  br i1 %.not, label %96, label %89

89:                                               ; preds = %87
  invoke void @_ZN3Int4RandEi(ptr noundef nonnull align 8 dereferenceable(40) %12, i32 noundef 256)
          to label %.preheader121.preheader unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader121.preheader:                          ; preds = %89
  %90 = load <16 x i8>, ptr %12, align 16, !tbaa !11
  %91 = urem <16 x i8> %90, <i8 58, i8 58, i8 58, i8 58, i8 58, i8 58, i8 58, i8 58, i8 58, i8 58, i8 58, i8 58, i8 58, i8 58, i8 58, i8 58>
  store <16 x i8> %91, ptr %9, align 16, !tbaa !11
  %92 = load <4 x i8>, ptr %51, align 16, !tbaa !11
  %93 = urem <4 x i8> %92, <i8 58, i8 58, i8 58, i8 58>
  store <4 x i8> %93, ptr %52, align 16, !tbaa !11
  %94 = load i8, ptr %53, align 4, !tbaa !11
  %95 = urem i8 %94, 58
  store i8 %95, ptr %54, align 4, !tbaa !11
  br label %.loopexit122

96:                                               ; preds = %87
  %97 = load i32, ptr @FLAGBASEMINIKEY, align 4, !tbaa !14
  %.not97 = icmp eq i32 %97, 0
  %98 = call i32 @pthread_mutex_lock(ptr noundef nonnull @write_random) #10
  %99 = load ptr, ptr @raw_baseminikey, align 8, !tbaa !15
  br i1 %.not97, label %102, label %100

100:                                              ; preds = %96
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(21) %9, ptr noundef nonnull align 1 dereferenceable(21) %99, i64 21, i1 false)
  call void @_Z19increment_minikey_NPc(ptr noundef %99)
  %101 = call i32 @pthread_mutex_unlock(ptr noundef nonnull @write_random) #10
  br label %.loopexit122

102:                                              ; preds = %96
  %103 = icmp eq ptr %99, null
  br i1 %103, label %104, label %177

104:                                              ; preds = %102
  %105 = call noalias dereferenceable_or_null(22) ptr @malloc(i64 noundef 22) #11
  store ptr %105, ptr @raw_baseminikey, align 8, !tbaa !15
  call void @_Z12checkpointerPvPKcS1_S1_i(ptr noundef %105, ptr noundef nonnull @.str.81, ptr noundef nonnull @.str.82, ptr noundef nonnull @.str.88, i32 noundef 2395)
  invoke void @_ZN3Int4RandEi(ptr noundef nonnull align 8 dereferenceable(40) %12, i32 noundef 256)
          to label %.preheader120.preheader unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader120.preheader:                          ; preds = %104
  %106 = load i8, ptr %12, align 16, !tbaa !11
  %107 = urem i8 %106, 58
  %108 = load ptr, ptr @raw_baseminikey, align 8, !tbaa !15
  store i8 %107, ptr %108, align 1, !tbaa !11
  %109 = load i8, ptr %55, align 1, !tbaa !11
  %110 = urem i8 %109, 58
  %111 = load ptr, ptr @raw_baseminikey, align 8, !tbaa !15
  %112 = getelementptr inbounds i8, ptr %111, i64 1
  store i8 %110, ptr %112, align 1, !tbaa !11
  %113 = load i8, ptr %56, align 2, !tbaa !11
  %114 = urem i8 %113, 58
  %115 = load ptr, ptr @raw_baseminikey, align 8, !tbaa !15
  %116 = getelementptr inbounds i8, ptr %115, i64 2
  store i8 %114, ptr %116, align 1, !tbaa !11
  %117 = load i8, ptr %57, align 1, !tbaa !11
  %118 = urem i8 %117, 58
  %119 = load ptr, ptr @raw_baseminikey, align 8, !tbaa !15
  %120 = getelementptr inbounds i8, ptr %119, i64 3
  store i8 %118, ptr %120, align 1, !tbaa !11
  %121 = load i8, ptr %58, align 4, !tbaa !11
  %122 = urem i8 %121, 58
  %123 = load ptr, ptr @raw_baseminikey, align 8, !tbaa !15
  %124 = getelementptr inbounds i8, ptr %123, i64 4
  store i8 %122, ptr %124, align 1, !tbaa !11
  %125 = load i8, ptr %59, align 1, !tbaa !11
  %126 = urem i8 %125, 58
  %127 = load ptr, ptr @raw_baseminikey, align 8, !tbaa !15
  %128 = getelementptr inbounds i8, ptr %127, i64 5
  store i8 %126, ptr %128, align 1, !tbaa !11
  %129 = load i8, ptr %60, align 2, !tbaa !11
  %130 = urem i8 %129, 58
  %131 = load ptr, ptr @raw_baseminikey, align 8, !tbaa !15
  %132 = getelementptr inbounds i8, ptr %131, i64 6
  store i8 %130, ptr %132, align 1, !tbaa !11
  %133 = load i8, ptr %61, align 1, !tbaa !11
  %134 = urem i8 %133, 58
  %135 = load ptr, ptr @raw_baseminikey, align 8, !tbaa !15
  %136 = getelementptr inbounds i8, ptr %135, i64 7
  store i8 %134, ptr %136, align 1, !tbaa !11
  %137 = load i8, ptr %62, align 8, !tbaa !11
  %138 = urem i8 %137, 58
  %139 = load ptr, ptr @raw_baseminikey, align 8, !tbaa !15
  %140 = getelementptr inbounds i8, ptr %139, i64 8
  store i8 %138, ptr %140, align 1, !tbaa !11
  %141 = load i8, ptr %63, align 1, !tbaa !11
  %142 = urem i8 %141, 58
  %143 = getelementptr inbounds i8, ptr %139, i64 9
  store i8 %142, ptr %143, align 1, !tbaa !11
  %144 = load i8, ptr %64, align 2, !tbaa !11
  %145 = urem i8 %144, 58
  %146 = getelementptr inbounds i8, ptr %139, i64 10
  store i8 %145, ptr %146, align 1, !tbaa !11
  %147 = load i8, ptr %65, align 1, !tbaa !11
  %148 = urem i8 %147, 58
  %149 = getelementptr inbounds i8, ptr %139, i64 11
  store i8 %148, ptr %149, align 1, !tbaa !11
  %150 = load i8, ptr %66, align 4, !tbaa !11
  %151 = urem i8 %150, 58
  %152 = getelementptr inbounds i8, ptr %139, i64 12
  store i8 %151, ptr %152, align 1, !tbaa !11
  %153 = load i8, ptr %67, align 1, !tbaa !11
  %154 = urem i8 %153, 58
  %155 = getelementptr inbounds i8, ptr %139, i64 13
  store i8 %154, ptr %155, align 1, !tbaa !11
  %156 = load i8, ptr %68, align 2, !tbaa !11
  %157 = urem i8 %156, 58
  %158 = getelementptr inbounds i8, ptr %139, i64 14
  store i8 %157, ptr %158, align 1, !tbaa !11
  %159 = load i8, ptr %69, align 1, !tbaa !11
  %160 = urem i8 %159, 58
  %161 = getelementptr inbounds i8, ptr %139, i64 15
  store i8 %160, ptr %161, align 1, !tbaa !11
  %162 = load i8, ptr %70, align 16, !tbaa !11
  %163 = urem i8 %162, 58
  %164 = getelementptr inbounds i8, ptr %139, i64 16
  store i8 %163, ptr %164, align 1, !tbaa !11
  %165 = load i8, ptr %71, align 1, !tbaa !11
  %166 = urem i8 %165, 58
  %167 = getelementptr inbounds i8, ptr %139, i64 17
  store i8 %166, ptr %167, align 1, !tbaa !11
  %168 = load i8, ptr %72, align 2, !tbaa !11
  %169 = urem i8 %168, 58
  %170 = getelementptr inbounds i8, ptr %139, i64 18
  store i8 %169, ptr %170, align 1, !tbaa !11
  %171 = load i8, ptr %73, align 1, !tbaa !11
  %172 = urem i8 %171, 58
  %173 = getelementptr inbounds i8, ptr %139, i64 19
  store i8 %172, ptr %173, align 1, !tbaa !11
  %174 = load i8, ptr %74, align 4, !tbaa !11
  %175 = urem i8 %174, 58
  %176 = getelementptr inbounds i8, ptr %139, i64 20
  store i8 %175, ptr %176, align 1, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(21) %9, ptr noundef nonnull align 1 dereferenceable(21) %139, i64 21, i1 false)
  call void @_Z19increment_minikey_NPc(ptr noundef %139)
  br label %178

177:                                              ; preds = %102
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(21) %9, ptr noundef nonnull align 1 dereferenceable(21) %99, i64 21, i1 false)
  call void @_Z19increment_minikey_NPc(ptr noundef nonnull %99)
  br label %178

178:                                              ; preds = %177, %.preheader120.preheader
  %179 = call i32 @pthread_mutex_unlock(ptr noundef nonnull @write_random) #10
  br label %.loopexit122

.loopexit122:                                     ; preds = %.preheader121.preheader, %100, %178
  call void @_Z11set_minikeyPcS_i(ptr noundef nonnull %36, ptr noundef nonnull %9, i32 noundef 21)
  %180 = load i32, ptr @FLAGMATRIX, align 4, !tbaa !14
  %.not98 = icmp eq i32 %180, 0
  br i1 %.not98, label %181, label %.sink.split

181:                                              ; preds = %.loopexit122
  %182 = load i32, ptr @FLAGQUIET, align 4, !tbaa !14
  %.not99 = icmp eq i32 %182, 0
  br i1 %.not99, label %.sink.split, label %.preheader

.sink.split:                                      ; preds = %181, %.loopexit122
  %.str.228.sink = phi ptr [ @.str.227, %.loopexit122 ], [ @.str.228, %181 ]
  %183 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.228.sink, ptr noundef nonnull %10)
  %184 = load ptr, ptr @stdout, align 8, !tbaa !15
  %185 = call i32 @fflush(ptr noundef %184)
  br label %.preheader

.preheader:                                       ; preds = %.sink.split, %181
  br label %186

186:                                              ; preds = %.preheader, %329
  %.083 = phi i64 [ %334, %329 ], [ 0, %.preheader ]
  %.1 = phi i32 [ %234, %329 ], [ %.0, %.preheader ]
  br label %187

187:                                              ; preds = %186, %327
  %.2145 = phi i32 [ %.1, %186 ], [ %234, %327 ]
  %.069144 = phi i32 [ 0, %186 ], [ %328, %327 ]
  %188 = icmp sgt i32 %.2145, 0
  br i1 %188, label %.preheader114.preheader, label %.loopexit115.preheader

.preheader114.preheader:                          ; preds = %187
  %wide.trip.count = zext nneg i32 %.2145 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %189 = icmp eq i32 %.2145, 1
  br i1 %189, label %.loopexit115.preheader.loopexit.unr-lcssa, label %.preheader114.preheader.new

.preheader114.preheader.new:                      ; preds = %.preheader114.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  br label %.preheader114

.preheader114:                                    ; preds = %.preheader114, %.preheader114.preheader.new
  %indvars.iv = phi i64 [ 0, %.preheader114.preheader.new ], [ %indvars.iv.next.1, %.preheader114 ]
  %niter = phi i64 [ 0, %.preheader114.preheader.new ], [ %niter.next.1, %.preheader114 ]
  %190 = getelementptr inbounds [8 x [24 x i8]], ptr %8, i64 0, i64 %indvars.iv
  %191 = add nuw nsw i64 %indvars.iv, 4
  %192 = getelementptr inbounds [8 x [24 x i8]], ptr %8, i64 0, i64 %191
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(22) %190, ptr noundef nonnull align 16 dereferenceable(22) %192, i64 22, i1 false)
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %193 = getelementptr inbounds [8 x [24 x i8]], ptr %8, i64 0, i64 %indvars.iv.next
  %194 = add nuw nsw i64 %indvars.iv, 5
  %195 = getelementptr inbounds [8 x [24 x i8]], ptr %8, i64 0, i64 %194
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(22) %193, ptr noundef nonnull align 8 dereferenceable(22) %195, i64 22, i1 false)
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.loopexit115.preheader.loopexit.unr-lcssa, label %.preheader114, !llvm.loop !16

.loopexit115.preheader.loopexit.unr-lcssa:        ; preds = %.preheader114, %.preheader114.preheader
  %indvars.iv.unr = phi i64 [ 0, %.preheader114.preheader ], [ %indvars.iv.next.1, %.preheader114 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit115.preheader, label %.preheader114.epil

.preheader114.epil:                               ; preds = %.loopexit115.preheader.loopexit.unr-lcssa
  %196 = getelementptr inbounds [8 x [24 x i8]], ptr %8, i64 0, i64 %indvars.iv.unr
  %197 = add nuw nsw i64 %indvars.iv.unr, 4
  %198 = getelementptr inbounds [8 x [24 x i8]], ptr %8, i64 0, i64 %197
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(22) %196, ptr noundef nonnull align 8 dereferenceable(22) %198, i64 22, i1 false)
  br label %.loopexit115.preheader

.loopexit115.preheader:                           ; preds = %.preheader114.epil, %.loopexit115.preheader.loopexit.unr-lcssa, %187
  br label %.loopexit115

.loopexit115:                                     ; preds = %.loopexit115.preheader, %231
  %.3 = phi i32 [ %.5.3, %231 ], [ %.2145, %.loopexit115.preheader ]
  %199 = invoke noundef zeroext i1 @_Z23increment_minikey_indexPcS_i(ptr noundef nonnull %36, ptr noundef nonnull %9, i32 noundef 20)
          to label %200 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

200:                                              ; preds = %.loopexit115
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(21) %37, ptr noundef nonnull align 1 dereferenceable(21) %36, i64 21, i1 false)
  %201 = invoke noundef zeroext i1 @_Z23increment_minikey_indexPcS_i(ptr noundef nonnull %36, ptr noundef nonnull %9, i32 noundef 20)
          to label %202 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

202:                                              ; preds = %200
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(21) %38, ptr noundef nonnull align 1 dereferenceable(21) %36, i64 21, i1 false)
  %203 = invoke noundef zeroext i1 @_Z23increment_minikey_indexPcS_i(ptr noundef nonnull %36, ptr noundef nonnull %9, i32 noundef 20)
          to label %204 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

204:                                              ; preds = %202
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(21) %39, ptr noundef nonnull align 1 dereferenceable(21) %36, i64 21, i1 false)
  %205 = invoke noundef zeroext i1 @_Z23increment_minikey_indexPcS_i(ptr noundef nonnull %36, ptr noundef nonnull %9, i32 noundef 20)
          to label %206 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

206:                                              ; preds = %204
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(21) %40, ptr noundef nonnull align 1 dereferenceable(21) %36, i64 21, i1 false)
  invoke void @_Z12sha256sse_23PhS_S_S_S_S_S_S_(ptr noundef nonnull %7, ptr noundef nonnull %25, ptr noundef nonnull %28, ptr noundef nonnull %31, ptr noundef nonnull %11, ptr noundef nonnull %41, ptr noundef nonnull %42, ptr noundef nonnull %43)
          to label %.preheader.preheader unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader.preheader:                             ; preds = %206
  %207 = load i8, ptr %11, align 16, !tbaa !11
  %208 = icmp eq i8 %207, 0
  br i1 %208, label %209, label %.preheader.1

209:                                              ; preds = %.preheader.preheader
  %210 = sext i32 %.3 to i64
  %211 = getelementptr inbounds [8 x [24 x i8]], ptr %8, i64 0, i64 %210
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(22) %211, ptr noundef nonnull align 16 dereferenceable(22) %7, i64 22, i1 false)
  %212 = add nsw i32 %.3, 1
  br label %.preheader.1

.preheader.1:                                     ; preds = %.preheader.preheader, %209
  %.5 = phi i32 [ %212, %209 ], [ %.3, %.preheader.preheader ]
  %213 = load i8, ptr %41, align 16, !tbaa !11
  %214 = icmp eq i8 %213, 0
  br i1 %214, label %215, label %.preheader.2

215:                                              ; preds = %.preheader.1
  %216 = sext i32 %.5 to i64
  %217 = getelementptr inbounds [8 x [24 x i8]], ptr %8, i64 0, i64 %216
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(22) %217, ptr noundef nonnull align 8 dereferenceable(22) %25, i64 22, i1 false)
  %218 = add nsw i32 %.5, 1
  br label %.preheader.2

.preheader.2:                                     ; preds = %215, %.preheader.1
  %.5.1 = phi i32 [ %218, %215 ], [ %.5, %.preheader.1 ]
  %219 = load i8, ptr %42, align 16, !tbaa !11
  %220 = icmp eq i8 %219, 0
  br i1 %220, label %221, label %.preheader.3

221:                                              ; preds = %.preheader.2
  %222 = sext i32 %.5.1 to i64
  %223 = getelementptr inbounds [8 x [24 x i8]], ptr %8, i64 0, i64 %222
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(22) %223, ptr noundef nonnull align 16 dereferenceable(22) %28, i64 22, i1 false)
  %224 = add nsw i32 %.5.1, 1
  br label %.preheader.3

.preheader.3:                                     ; preds = %221, %.preheader.2
  %.5.2 = phi i32 [ %224, %221 ], [ %.5.1, %.preheader.2 ]
  %225 = load i8, ptr %43, align 16, !tbaa !11
  %226 = icmp eq i8 %225, 0
  br i1 %226, label %227, label %231

227:                                              ; preds = %.preheader.3
  %228 = sext i32 %.5.2 to i64
  %229 = getelementptr inbounds [8 x [24 x i8]], ptr %8, i64 0, i64 %228
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(22) %229, ptr noundef nonnull align 8 dereferenceable(22) %31, i64 22, i1 false)
  %230 = add nsw i32 %.5.2, 1
  br label %231

231:                                              ; preds = %227, %.preheader.3
  %.5.3 = phi i32 [ %230, %227 ], [ %.5.2, %.preheader.3 ]
  %232 = icmp slt i32 %.5.3, 4
  br i1 %232, label %.loopexit115, label %233, !llvm.loop !17

233:                                              ; preds = %231
  %234 = add nsw i32 %.5.3, -4
  invoke void @_Z12sha256sse_22PhS_S_S_S_S_S_S_(ptr noundef nonnull %8, ptr noundef nonnull %44, ptr noundef nonnull %45, ptr noundef nonnull %46, ptr noundef nonnull %11, ptr noundef nonnull %41, ptr noundef nonnull %42, ptr noundef nonnull %43)
          to label %.preheader108.preheader unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

.preheader108.preheader:                          ; preds = %233
  invoke void @_ZN3Int10Set32BytesEPh(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull %11)
          to label %235 unwind label %.loopexit.split-lp.loopexit

235:                                              ; preds = %.preheader108.preheader
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %13) #10
  %236 = load ptr, ptr @secp, align 8, !tbaa !15
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %13, ptr noundef nonnull align 8 dereferenceable(983240) %236, ptr noundef nonnull %3)
          to label %.preheader108.1 unwind label %245

.preheader108.1:                                  ; preds = %235
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(120) %2, ptr noundef nonnull align 8 dereferenceable(120) %13, i64 120, i1 false), !tbaa.struct !18
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %13) #10
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %13) #10
  invoke void @_ZN3Int10Set32BytesEPh(ptr noundef nonnull align 8 dereferenceable(40) %.ptr95.1, ptr noundef nonnull %41)
          to label %237 unwind label %.loopexit.split-lp.loopexit

237:                                              ; preds = %.preheader108.1
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %13) #10
  %238 = load ptr, ptr @secp, align 8, !tbaa !15
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %13, ptr noundef nonnull align 8 dereferenceable(983240) %238, ptr noundef nonnull %.ptr95.1)
          to label %.preheader108.2 unwind label %245

.preheader108.2:                                  ; preds = %237
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %.ptr.1, ptr noundef nonnull align 8 dereferenceable(120) %13, i64 120, i1 false), !tbaa.struct !18
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %13) #10
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %13) #10
  invoke void @_ZN3Int10Set32BytesEPh(ptr noundef nonnull align 8 dereferenceable(40) %.ptr95.2, ptr noundef nonnull %42)
          to label %239 unwind label %.loopexit.split-lp.loopexit

239:                                              ; preds = %.preheader108.2
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %13) #10
  %240 = load ptr, ptr @secp, align 8, !tbaa !15
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %13, ptr noundef nonnull align 8 dereferenceable(983240) %240, ptr noundef nonnull %.ptr95.2)
          to label %.preheader108.3 unwind label %245

.preheader108.3:                                  ; preds = %239
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(120) %.ptr.2, ptr noundef nonnull align 8 dereferenceable(120) %13, i64 120, i1 false), !tbaa.struct !18
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %13) #10
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %13) #10
  invoke void @_ZN3Int10Set32BytesEPh(ptr noundef nonnull align 8 dereferenceable(40) %.ptr95.3, ptr noundef nonnull %43)
          to label %241 unwind label %.loopexit.split-lp.loopexit

241:                                              ; preds = %.preheader108.3
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %13) #10
  %242 = load ptr, ptr @secp, align 8, !tbaa !15
  invoke void @_ZN9Secp256K116ComputePublicKeyEP3Int(ptr dead_on_unwind nonnull writable sret(%class.Point) align 8 %13, ptr noundef nonnull align 8 dereferenceable(983240) %242, ptr noundef nonnull %.ptr95.3)
          to label %243 unwind label %245

243:                                              ; preds = %241
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(120) %.ptr.3, ptr noundef nonnull align 8 dereferenceable(120) %13, i64 120, i1 false), !tbaa.struct !18
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %13) #10
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %13) #10
  %244 = load ptr, ptr @secp, align 8, !tbaa !15
  invoke void @_ZN9Secp256K110GetHash160EibR5PointS1_S1_S1_PhS2_S2_S2_(ptr noundef nonnull align 8 dereferenceable(983240) %244, i32 noundef 0, i1 noundef zeroext false, ptr noundef nonnull align 8 dereferenceable(120) %2, ptr noundef nonnull align 8 dereferenceable(120) %.ptr.1, ptr noundef nonnull align 8 dereferenceable(120) %.ptr.2, ptr noundef nonnull align 8 dereferenceable(120) %.ptr.3, ptr noundef nonnull %4, ptr noundef nonnull %47, ptr noundef nonnull %48, ptr noundef nonnull %49)
          to label %.preheader106.preheader unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit

245:                                              ; preds = %241, %239, %237, %235
  %246 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %13) #10
  br label %.loopexit.split-lp

.preheader106.preheader:                          ; preds = %243
  %247 = invoke i32 @bloom_check(ptr noundef nonnull @bloom, ptr noundef nonnull %4, i32 noundef 20)
          to label %248 unwind label %.loopexit107

248:                                              ; preds = %.preheader106.preheader
  %.not100 = icmp eq i32 %247, 0
  br i1 %.not100, label %.preheader106.1, label %249

249:                                              ; preds = %248
  %250 = load ptr, ptr @addressTable, align 8, !tbaa !15
  %251 = load i64, ptr @N, align 8, !tbaa !19
  %252 = call noundef i32 @_Z12searchbinaryP13address_valuePcl(ptr noundef %250, ptr noundef nonnull %4, i64 noundef %251)
  %.not101 = icmp eq i32 %252, 0
  br i1 %.not101, label %.preheader106.1, label %253

253:                                              ; preds = %249
  %254 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %3)
          to label %255 unwind label %.loopexit107

255:                                              ; preds = %253
  %256 = load ptr, ptr @secp, align 8, !tbaa !15
  invoke void @_ZN9Secp256K115GetPublicKeyHexEbR5PointPc(ptr noundef nonnull align 8 dereferenceable(983240) %256, i1 noundef zeroext false, ptr noundef nonnull align 8 dereferenceable(120) %2, ptr noundef nonnull %5)
          to label %257 unwind label %.loopexit107

257:                                              ; preds = %255
  %258 = call i32 @pthread_mutex_lock(ptr noundef nonnull @write_keys) #10
  %259 = call noalias ptr @fopen(ptr noundef nonnull @.str.229, ptr noundef nonnull @.str.230)
  invoke void @_Z19rmd160toaddress_dstPcS_(ptr noundef nonnull %4, ptr noundef nonnull %6)
          to label %260 unwind label %.loopexit107

260:                                              ; preds = %257
  store i8 0, ptr %75, align 2, !tbaa !11
  %.not102 = icmp eq ptr %259, null
  br i1 %.not102, label %264, label %261

261:                                              ; preds = %260
  %262 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %259, ptr noundef nonnull @.str.231, ptr noundef %254, ptr noundef nonnull %5, ptr noundef nonnull %8, ptr noundef nonnull %6) #10
  %263 = call i32 @fclose(ptr noundef nonnull %259)
  br label %264

264:                                              ; preds = %261, %260
  %265 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.232, ptr noundef %254, ptr noundef nonnull %5, ptr noundef nonnull %8, ptr noundef nonnull %6)
  %266 = call i32 @pthread_mutex_unlock(ptr noundef nonnull @write_keys) #10
  call void @free(ptr noundef %254) #10
  br label %.preheader106.1

.preheader106.1:                                  ; preds = %248, %264, %249
  %267 = invoke i32 @bloom_check(ptr noundef nonnull @bloom, ptr noundef nonnull %47, i32 noundef 20)
          to label %268 unwind label %.loopexit107

268:                                              ; preds = %.preheader106.1
  %.not100.1 = icmp eq i32 %267, 0
  br i1 %.not100.1, label %.preheader106.2, label %269

269:                                              ; preds = %268
  %270 = load ptr, ptr @addressTable, align 8, !tbaa !15
  %271 = load i64, ptr @N, align 8, !tbaa !19
  %272 = call noundef i32 @_Z12searchbinaryP13address_valuePcl(ptr noundef %270, ptr noundef nonnull %47, i64 noundef %271)
  %.not101.1 = icmp eq i32 %272, 0
  br i1 %.not101.1, label %.preheader106.2, label %273

273:                                              ; preds = %269
  %274 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %.ptr95.1)
          to label %275 unwind label %.loopexit107

275:                                              ; preds = %273
  %276 = load ptr, ptr @secp, align 8, !tbaa !15
  invoke void @_ZN9Secp256K115GetPublicKeyHexEbR5PointPc(ptr noundef nonnull align 8 dereferenceable(983240) %276, i1 noundef zeroext false, ptr noundef nonnull align 8 dereferenceable(120) %.ptr.1, ptr noundef nonnull %5)
          to label %277 unwind label %.loopexit107

277:                                              ; preds = %275
  %278 = call i32 @pthread_mutex_lock(ptr noundef nonnull @write_keys) #10
  %279 = call noalias ptr @fopen(ptr noundef nonnull @.str.229, ptr noundef nonnull @.str.230)
  invoke void @_Z19rmd160toaddress_dstPcS_(ptr noundef nonnull %47, ptr noundef nonnull %76)
          to label %280 unwind label %.loopexit107

280:                                              ; preds = %277
  store i8 0, ptr %77, align 2, !tbaa !11
  %.not102.1 = icmp eq ptr %279, null
  br i1 %.not102.1, label %284, label %281

281:                                              ; preds = %280
  %282 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %279, ptr noundef nonnull @.str.231, ptr noundef %274, ptr noundef nonnull %5, ptr noundef nonnull %44, ptr noundef nonnull %76) #10
  %283 = call i32 @fclose(ptr noundef nonnull %279)
  br label %284

284:                                              ; preds = %281, %280
  %285 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.232, ptr noundef %274, ptr noundef nonnull %5, ptr noundef nonnull %44, ptr noundef nonnull %76)
  %286 = call i32 @pthread_mutex_unlock(ptr noundef nonnull @write_keys) #10
  call void @free(ptr noundef %274) #10
  br label %.preheader106.2

.preheader106.2:                                  ; preds = %284, %269, %268
  %287 = invoke i32 @bloom_check(ptr noundef nonnull @bloom, ptr noundef nonnull %48, i32 noundef 20)
          to label %288 unwind label %.loopexit107

288:                                              ; preds = %.preheader106.2
  %.not100.2 = icmp eq i32 %287, 0
  br i1 %.not100.2, label %.preheader106.3, label %289

289:                                              ; preds = %288
  %290 = load ptr, ptr @addressTable, align 8, !tbaa !15
  %291 = load i64, ptr @N, align 8, !tbaa !19
  %292 = call noundef i32 @_Z12searchbinaryP13address_valuePcl(ptr noundef %290, ptr noundef nonnull %48, i64 noundef %291)
  %.not101.2 = icmp eq i32 %292, 0
  br i1 %.not101.2, label %.preheader106.3, label %293

293:                                              ; preds = %289
  %294 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %.ptr95.2)
          to label %295 unwind label %.loopexit107

295:                                              ; preds = %293
  %296 = load ptr, ptr @secp, align 8, !tbaa !15
  invoke void @_ZN9Secp256K115GetPublicKeyHexEbR5PointPc(ptr noundef nonnull align 8 dereferenceable(983240) %296, i1 noundef zeroext false, ptr noundef nonnull align 8 dereferenceable(120) %.ptr.2, ptr noundef nonnull %5)
          to label %297 unwind label %.loopexit107

297:                                              ; preds = %295
  %298 = call i32 @pthread_mutex_lock(ptr noundef nonnull @write_keys) #10
  %299 = call noalias ptr @fopen(ptr noundef nonnull @.str.229, ptr noundef nonnull @.str.230)
  invoke void @_Z19rmd160toaddress_dstPcS_(ptr noundef nonnull %48, ptr noundef nonnull %78)
          to label %300 unwind label %.loopexit107

300:                                              ; preds = %297
  store i8 0, ptr %79, align 2, !tbaa !11
  %.not102.2 = icmp eq ptr %299, null
  br i1 %.not102.2, label %304, label %301

301:                                              ; preds = %300
  %302 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %299, ptr noundef nonnull @.str.231, ptr noundef %294, ptr noundef nonnull %5, ptr noundef nonnull %45, ptr noundef nonnull %78) #10
  %303 = call i32 @fclose(ptr noundef nonnull %299)
  br label %304

304:                                              ; preds = %301, %300
  %305 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.232, ptr noundef %294, ptr noundef nonnull %5, ptr noundef nonnull %45, ptr noundef nonnull %78)
  %306 = call i32 @pthread_mutex_unlock(ptr noundef nonnull @write_keys) #10
  call void @free(ptr noundef %294) #10
  br label %.preheader106.3

.preheader106.3:                                  ; preds = %304, %289, %288
  %307 = invoke i32 @bloom_check(ptr noundef nonnull @bloom, ptr noundef nonnull %49, i32 noundef 20)
          to label %308 unwind label %.loopexit107

308:                                              ; preds = %.preheader106.3
  %.not100.3 = icmp eq i32 %307, 0
  br i1 %.not100.3, label %327, label %309

309:                                              ; preds = %308
  %310 = load ptr, ptr @addressTable, align 8, !tbaa !15
  %311 = load i64, ptr @N, align 8, !tbaa !19
  %312 = call noundef i32 @_Z12searchbinaryP13address_valuePcl(ptr noundef %310, ptr noundef nonnull %49, i64 noundef %311)
  %.not101.3 = icmp eq i32 %312, 0
  br i1 %.not101.3, label %327, label %313

313:                                              ; preds = %309
  %314 = invoke noundef ptr @_ZN3Int9GetBase16Ev(ptr noundef nonnull align 8 dereferenceable(40) %.ptr95.3)
          to label %315 unwind label %.loopexit107

315:                                              ; preds = %313
  %316 = load ptr, ptr @secp, align 8, !tbaa !15
  invoke void @_ZN9Secp256K115GetPublicKeyHexEbR5PointPc(ptr noundef nonnull align 8 dereferenceable(983240) %316, i1 noundef zeroext false, ptr noundef nonnull align 8 dereferenceable(120) %.ptr.3, ptr noundef nonnull %5)
          to label %317 unwind label %.loopexit107

317:                                              ; preds = %315
  %318 = call i32 @pthread_mutex_lock(ptr noundef nonnull @write_keys) #10
  %319 = call noalias ptr @fopen(ptr noundef nonnull @.str.229, ptr noundef nonnull @.str.230)
  invoke void @_Z19rmd160toaddress_dstPcS_(ptr noundef nonnull %49, ptr noundef nonnull %80)
          to label %320 unwind label %.loopexit107

320:                                              ; preds = %317
  store i8 0, ptr %81, align 2, !tbaa !11
  %.not102.3 = icmp eq ptr %319, null
  br i1 %.not102.3, label %324, label %321

321:                                              ; preds = %320
  %322 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %319, ptr noundef nonnull @.str.231, ptr noundef %314, ptr noundef nonnull %5, ptr noundef nonnull %46, ptr noundef nonnull %80) #10
  %323 = call i32 @fclose(ptr noundef nonnull %319)
  br label %324

324:                                              ; preds = %321, %320
  %325 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.232, ptr noundef %314, ptr noundef nonnull %5, ptr noundef nonnull %46, ptr noundef nonnull %80)
  %326 = call i32 @pthread_mutex_unlock(ptr noundef nonnull @write_keys) #10
  call void @free(ptr noundef %314) #10
  br label %327

327:                                              ; preds = %324, %309, %308
  %328 = add nuw nsw i32 %.069144, 1
  %exitcond169.not = icmp eq i32 %328, 256
  br i1 %exitcond169.not, label %329, label %187, !llvm.loop !21

329:                                              ; preds = %327
  %330 = load ptr, ptr @steps, align 8, !tbaa !15
  %331 = getelementptr inbounds i64, ptr %330, i64 %50
  %332 = load i64, ptr %331, align 8, !tbaa !19
  %333 = add i64 %332, 1
  store i64 %333, ptr %331, align 8, !tbaa !19
  %334 = add i64 %.083, 1024
  %335 = load i64, ptr @N_SEQUENTIAL_MAX, align 8, !tbaa !19
  %336 = icmp ult i64 %334, %335
  br i1 %336, label %186, label %.loopexit119, !llvm.loop !12

.loopexit.split-lp:                               ; preds = %.loopexit107, %.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit, %245
  %.pn = phi { ptr, i32 } [ %246, %245 ], [ %lpad.loopexit, %.loopexit107 ], [ %lpad.loopexit109, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit112, %.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit116, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit123, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 21, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 131, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %4) #10
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %.loopexit.split-lp, %85
  %.pn.pn = phi { ptr, i32 } [ %.pn, %.loopexit.split-lp ], [ %86, %85 ]
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %3) #10
  %337 = getelementptr inbounds i8, ptr %2, i64 360
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %337) #10
  %338 = getelementptr inbounds i8, ptr %2, i64 240
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %338) #10
  %339 = getelementptr inbounds i8, ptr %2, i64 120
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %339) #10
  call void @_ZN5PointD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %2) #10
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader125, %.loopexit.loopexit
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %.loopexit.loopexit ], [ %lpad.thr_comm, %.preheader125 ]
  call void @llvm.lifetime.end.p0(i64 480, ptr nonnull %2) #10
  resume { ptr, i32 } %.pn.pn.pn
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z12searchbinaryP13address_valuePcl(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z19increment_minikey_NPc(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z11set_minikeyPcS_i(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

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

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

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

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

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

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

declare void @_ZN9Secp256K115GetPublicKeyHexEbR5PointPc(ptr noundef nonnull align 8 dereferenceable(983240), i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(120), ptr 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 = { 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 #4 = { 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 #5 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(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 #6 = { 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 #7 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { 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 #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 = { nounwind allocsize(0) }

!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 = !{!8, !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!7, !7, i64 0}
!15 = !{!10, !10, i64 0}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = !{i64 0, i64 40, !11, i64 40, i64 40, !11, i64 80, i64 40, !11}
!19 = !{!20, !20, i64 0}
!20 = !{!"long", !8, i64 0}
!21 = distinct !{!21, !13}


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