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

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

%struct.bloom = type { i64, i64, i64, i8, x86_fp80, i8, i8, i8, double, ptr }

@bloom = external dso_local global %struct.bloom, align 16
@N = external dso_local global i64, align 8
@FLAGSKIPCHECKSUM = external dso_local global i32, align 4
@FLAGVANITY = external dso_local global i32, align 4
@MAXLENGTHADDRESS = external dso_local global i32, align 4
@FLAGSAVEREADFILE = external dso_local global i32, align 4
@FLAGREADEDFILE1 = external dso_local global i32, align 4
@FLAGMODE = external dso_local global i32, align 4
@FLAGCRYPTO = external dso_local global i32, align 4
@addressTable = external dso_local global ptr, align 8
@stderr = external global ptr, align 8
@.str.149 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.292 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.293 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.294 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.295 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.296 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.297 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.298 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.299 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.300 = external hidden unnamed_addr constant [49 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z15readFileAddressPc(ptr noundef %0) #4 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [30 x i8], align 16
  %6 = alloca [32 x i8], align 16
  %7 = alloca [9 x i8], align 1
  %8 = alloca [32 x i8], align 16
  %9 = alloca [32 x i8], align 16
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 30, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 9, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %13 = load i32, ptr @FLAGSAVEREADFILE, align 4, !tbaa !9
  %14 = icmp ne i32 %13, 0
  br i1 %14, label %15, label %170

15:                                               ; preds = %1
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  %18 = call noundef zeroext i1 @_Z11sha256_filePKcPh(ptr noundef %16, ptr noundef %17)
  br i1 %18, label %22, label %19

19:                                               ; preds = %15
  %20 = load ptr, ptr @stderr, align 8, !tbaa !5
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef @.str.292, i32 noundef 6142) #6
  store i1 false, ptr %2, align 1
  store i32 1, ptr %12, align 4
  br label %202

22:                                               ; preds = %15
  %23 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  %24 = getelementptr inbounds [9 x i8], ptr %7, i64 0, i64 0
  call void @_Z9tohex_dstPciS_(ptr noundef %23, i32 noundef 4, ptr noundef %24)
  %25 = getelementptr inbounds [30 x i8], ptr %5, i64 0, i64 0
  %26 = getelementptr inbounds [9 x i8], ptr %7, i64 0, i64 0
  %27 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %25, i64 noundef 30, ptr noundef @.str.293, ptr noundef %26) #6
  %28 = getelementptr inbounds [30 x i8], ptr %5, i64 0, i64 0
  %29 = call noalias ptr @fopen(ptr noundef %28, ptr noundef @.str.149)
  store ptr %29, ptr %4, align 8, !tbaa !5
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = icmp ne ptr %30, null
  br i1 %31, label %32, label %169

32:                                               ; preds = %22
  %33 = getelementptr inbounds [30 x i8], ptr %5, i64 0, i64 0
  %34 = call i32 (ptr, ...) @printf(ptr noundef @.str.294, ptr noundef %33)
  %35 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = call i64 @fread(ptr noundef %35, i64 noundef 1, i64 noundef 32, ptr noundef %36)
  store i64 %37, ptr %10, align 8, !tbaa !11
  %38 = load i64, ptr %10, align 8, !tbaa !11
  %39 = icmp ne i64 %38, 32
  br i1 %39, label %40, label %45

40:                                               ; preds = %32
  %41 = load ptr, ptr @stderr, align 8, !tbaa !5
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef @.str.295, i32 noundef 6165) #6
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = call i32 @fclose(ptr noundef %43)
  store i1 false, ptr %2, align 1
  store i32 1, ptr %12, align 4
  br label %202

45:                                               ; preds = %32
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = call i64 @fread(ptr noundef @bloom, i64 noundef 1, i64 noundef 80, ptr noundef %46)
  store i64 %47, ptr %10, align 8, !tbaa !11
  %48 = load i64, ptr %10, align 8, !tbaa !11
  %49 = icmp ne i64 %48, 80
  br i1 %49, label %50, label %55

50:                                               ; preds = %45
  %51 = load ptr, ptr @stderr, align 8, !tbaa !5
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef @.str.296, i32 noundef 6173) #6
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = call i32 @fclose(ptr noundef %53)
  store i1 false, ptr %2, align 1
  store i32 1, ptr %12, align 4
  br label %202

55:                                               ; preds = %45
  %56 = load i64, ptr @bloom, align 16, !tbaa !13
  %57 = call i32 (ptr, ...) @printf(ptr noundef @.str.297, i64 noundef %56)
  %58 = load i64, ptr getelementptr inbounds (%struct.bloom, ptr @bloom, i32 0, i32 2), align 16, !tbaa !17
  %59 = call noalias ptr @malloc(i64 noundef %58) #7
  store ptr %59, ptr getelementptr inbounds (%struct.bloom, ptr @bloom, i32 0, i32 9), align 16, !tbaa !18
  %60 = load ptr, ptr getelementptr inbounds (%struct.bloom, ptr @bloom, i32 0, i32 9), align 16, !tbaa !18
  %61 = icmp eq ptr %60, null
  br i1 %61, label %62, label %67

62:                                               ; preds = %55
  %63 = load ptr, ptr @stderr, align 8, !tbaa !5
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef @.str.298, i32 noundef 6182) #6
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = call i32 @fclose(ptr noundef %65)
  store i1 false, ptr %2, align 1
  store i32 1, ptr %12, align 4
  br label %202

67:                                               ; preds = %55
  %68 = load ptr, ptr getelementptr inbounds (%struct.bloom, ptr @bloom, i32 0, i32 9), align 16, !tbaa !18
  %69 = load i64, ptr getelementptr inbounds (%struct.bloom, ptr @bloom, i32 0, i32 2), align 16, !tbaa !17
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = call i64 @fread(ptr noundef %68, i64 noundef 1, i64 noundef %69, ptr noundef %70)
  store i64 %71, ptr %10, align 8, !tbaa !11
  %72 = load i64, ptr %10, align 8, !tbaa !11
  %73 = load i64, ptr getelementptr inbounds (%struct.bloom, ptr @bloom, i32 0, i32 2), align 16, !tbaa !17
  %74 = icmp ne i64 %72, %73
  br i1 %74, label %75, label %80

75:                                               ; preds = %67
  %76 = load ptr, ptr @stderr, align 8, !tbaa !5
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef @.str.296, i32 noundef 6190) #6
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = call i32 @fclose(ptr noundef %78)
  store i1 false, ptr %2, align 1
  store i32 1, ptr %12, align 4
  br label %202

80:                                               ; preds = %67
  %81 = load i32, ptr @FLAGSKIPCHECKSUM, align 4, !tbaa !9
  %82 = icmp eq i32 %81, 0
  br i1 %82, label %83, label %97

83:                                               ; preds = %80
  %84 = load ptr, ptr getelementptr inbounds (%struct.bloom, ptr @bloom, i32 0, i32 9), align 16, !tbaa !18
  %85 = load i64, ptr getelementptr inbounds (%struct.bloom, ptr @bloom, i32 0, i32 2), align 16, !tbaa !17
  %86 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  call void @_Z6sha256PhmS_(ptr noundef %84, i64 noundef %85, ptr noundef %86)
  %87 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  %88 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %89 = call i32 @memcmp(ptr noundef %87, ptr noundef %88, i64 noundef 32) #8
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %96

91:                                               ; preds = %83
  %92 = load ptr, ptr @stderr, align 8, !tbaa !5
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %92, ptr noundef @.str.299, i32 noundef 6208) #6
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = call i32 @fclose(ptr noundef %94)
  store i1 false, ptr %2, align 1
  store i32 1, ptr %12, align 4
  br label %202

96:                                               ; preds = %83
  br label %97

97:                                               ; preds = %96, %80
  %98 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = call i64 @fread(ptr noundef %98, i64 noundef 1, i64 noundef 32, ptr noundef %99)
  store i64 %100, ptr %10, align 8, !tbaa !11
  %101 = load i64, ptr %10, align 8, !tbaa !11
  %102 = icmp ne i64 %101, 32
  br i1 %102, label %103, label %108

103:                                              ; preds = %97
  %104 = load ptr, ptr @stderr, align 8, !tbaa !5
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef @.str.295, i32 noundef 6225) #6
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = call i32 @fclose(ptr noundef %106)
  store i1 false, ptr %2, align 1
  store i32 1, ptr %12, align 4
  br label %202

108:                                              ; preds = %97
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = call i64 @fread(ptr noundef %11, i64 noundef 1, i64 noundef 8, ptr noundef %109)
  store i64 %110, ptr %10, align 8, !tbaa !11
  %111 = load i64, ptr %10, align 8, !tbaa !11
  %112 = icmp ne i64 %111, 8
  br i1 %112, label %113, label %118

113:                                              ; preds = %108
  %114 = load ptr, ptr @stderr, align 8, !tbaa !5
  %115 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %114, ptr noundef @.str.295, i32 noundef 6232) #6
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = call i32 @fclose(ptr noundef %116)
  store i1 false, ptr %2, align 1
  store i32 1, ptr %12, align 4
  br label %202

118:                                              ; preds = %108
  %119 = load i64, ptr %11, align 8, !tbaa !11
  %120 = udiv i64 %119, 20
  store i64 %120, ptr @N, align 8, !tbaa !11
  %121 = load i64, ptr @N, align 8, !tbaa !11
  %122 = load i64, ptr @N, align 8, !tbaa !11
  %123 = uitofp i64 %122 to double
  %124 = fmul double 2.000000e+01, %123
  %125 = fdiv double %124, 0x4130000000000000
  %126 = call i32 (ptr, ...) @printf(ptr noundef @.str.300, i64 noundef %121, double noundef %125)
  %127 = load i64, ptr %11, align 8, !tbaa !11
  %128 = call noalias ptr @malloc(i64 noundef %127) #7
  store ptr %128, ptr @addressTable, align 8, !tbaa !5
  %129 = load ptr, ptr @addressTable, align 8, !tbaa !5
  %130 = icmp eq ptr %129, null
  br i1 %130, label %131, label %136

131:                                              ; preds = %118
  %132 = load ptr, ptr @stderr, align 8, !tbaa !5
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %132, ptr noundef @.str.298, i32 noundef 6242) #6
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = call i32 @fclose(ptr noundef %134)
  store i1 false, ptr %2, align 1
  store i32 1, ptr %12, align 4
  br label %202

136:                                              ; preds = %118
  %137 = load ptr, ptr @addressTable, align 8, !tbaa !5
  %138 = load i64, ptr %11, align 8, !tbaa !11
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  %140 = call i64 @fread(ptr noundef %137, i64 noundef 1, i64 noundef %138, ptr noundef %139)
  store i64 %140, ptr %10, align 8, !tbaa !11
  %141 = load i64, ptr %10, align 8, !tbaa !11
  %142 = load i64, ptr %11, align 8, !tbaa !11
  %143 = icmp ne i64 %141, %142
  br i1 %143, label %144, label %149

144:                                              ; preds = %136
  %145 = load ptr, ptr @stderr, align 8, !tbaa !5
  %146 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %145, ptr noundef @.str.296, i32 noundef 6249) #6
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = call i32 @fclose(ptr noundef %147)
  store i1 false, ptr %2, align 1
  store i32 1, ptr %12, align 4
  br label %202

149:                                              ; preds = %136
  %150 = load i32, ptr @FLAGSKIPCHECKSUM, align 4, !tbaa !9
  %151 = icmp eq i32 %150, 0
  br i1 %151, label %152, label %166

152:                                              ; preds = %149
  %153 = load ptr, ptr @addressTable, align 8, !tbaa !5
  %154 = load i64, ptr %11, align 8, !tbaa !11
  %155 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  call void @_Z6sha256PhmS_(ptr noundef %153, i64 noundef %154, ptr noundef %155)
  %156 = getelementptr inbounds [32 x i8], ptr %6, i64 0, i64 0
  %157 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
  %158 = call i32 @memcmp(ptr noundef %156, ptr noundef %157, i64 noundef 32) #8
  %159 = icmp ne i32 %158, 0
  br i1 %159, label %160, label %165

160:                                              ; preds = %152
  %161 = load ptr, ptr @stderr, align 8, !tbaa !5
  %162 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %161, ptr noundef @.str.299, i32 noundef 6257) #6
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  %164 = call i32 @fclose(ptr noundef %163)
  store i1 false, ptr %2, align 1
  store i32 1, ptr %12, align 4
  br label %202

165:                                              ; preds = %152
  br label %166

166:                                              ; preds = %165, %149
  store i32 1, ptr @FLAGREADEDFILE1, align 4, !tbaa !9
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  %168 = call i32 @fclose(ptr noundef %167)
  store i32 20, ptr @MAXLENGTHADDRESS, align 4, !tbaa !9
  br label %169

169:                                              ; preds = %166, %22
  br label %170

170:                                              ; preds = %169, %1
  %171 = load i32, ptr @FLAGVANITY, align 4, !tbaa !9
  %172 = icmp ne i32 %171, 0
  br i1 %172, label %173, label %175

173:                                              ; preds = %170
  %174 = call noundef zeroext i1 @_Z16processOneVanityv()
  br label %175

175:                                              ; preds = %173, %170
  %176 = load i32, ptr @FLAGREADEDFILE1, align 4, !tbaa !9
  %177 = icmp ne i32 %176, 0
  br i1 %177, label %201, label %178

178:                                              ; preds = %175
  %179 = load i32, ptr @FLAGMODE, align 4, !tbaa !9
  switch i32 %179, label %199 [
    i32 1, label %180
    i32 5, label %193
    i32 3, label %193
    i32 0, label %196
  ]

180:                                              ; preds = %178
  %181 = load i32, ptr @FLAGCRYPTO, align 4, !tbaa !9
  %182 = icmp eq i32 %181, 1
  br i1 %182, label %183, label %186

183:                                              ; preds = %180
  %184 = load ptr, ptr %3, align 8, !tbaa !5
  %185 = call noundef zeroext i1 @_Z20forceReadFileAddressPc(ptr noundef %184)
  store i1 %185, ptr %2, align 1
  store i32 1, ptr %12, align 4
  br label %202

186:                                              ; preds = %180
  %187 = load i32, ptr @FLAGCRYPTO, align 4, !tbaa !9
  %188 = icmp eq i32 %187, 2
  br i1 %188, label %189, label %192

189:                                              ; preds = %186
  %190 = load ptr, ptr %3, align 8, !tbaa !5
  %191 = call noundef zeroext i1 @_Z23forceReadFileAddressEthPc(ptr noundef %190)
  store i1 %191, ptr %2, align 1
  store i32 1, ptr %12, align 4
  br label %202

192:                                              ; preds = %186
  br label %200

193:                                              ; preds = %178, %178
  %194 = load ptr, ptr %3, align 8, !tbaa !5
  %195 = call noundef zeroext i1 @_Z20forceReadFileAddressPc(ptr noundef %194)
  store i1 %195, ptr %2, align 1
  store i32 1, ptr %12, align 4
  br label %202

196:                                              ; preds = %178
  %197 = load ptr, ptr %3, align 8, !tbaa !5
  %198 = call noundef zeroext i1 @_Z19forceReadFileXPointPc(ptr noundef %197)
  store i1 %198, ptr %2, align 1
  store i32 1, ptr %12, align 4
  br label %202

199:                                              ; preds = %178
  store i1 false, ptr %2, align 1
  store i32 1, ptr %12, align 4
  br label %202

200:                                              ; preds = %192
  br label %201

201:                                              ; preds = %200, %175
  store i1 true, ptr %2, align 1
  store i32 1, ptr %12, align 4
  br label %202

202:                                              ; preds = %201, %199, %196, %193, %189, %183, %160, %144, %131, %113, %103, %91, %75, %62, %50, %40, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 9, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 30, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  %203 = load i1, ptr %2, align 1
  ret i1 %203
}

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

declare i32 @fclose(ptr noundef) #2

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

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

declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

declare void @_Z6sha256PhmS_(ptr noundef, i64 noundef, ptr noundef) #2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #5

declare void @_Z9tohex_dstPciS_(ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z16processOneVanityv() #4

declare noundef zeroext i1 @_Z11sha256_filePKcPh(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z20forceReadFileAddressPc(ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z23forceReadFileAddressEthPc(ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z19forceReadFileXPointPc(ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 #3 = { 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 #4 = { 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 #5 = { nounwind willreturn memory(read) "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 = { nounwind }
attributes #7 = { nounwind allocsize(0) }
attributes #8 = { nounwind willreturn memory(read) }

!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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTS5bloom", !12, i64 0, !12, i64 8, !12, i64 16, !7, i64 24, !15, i64 32, !7, i64 48, !7, i64 49, !7, i64 50, !16, i64 56, !6, i64 64}
!15 = !{!"long double", !7, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = !{!14, !12, i64 16}
!18 = !{!14, !6, i64 64}


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

%struct.bloom = type { i64, i64, i64, i8, x86_fp80, i8, i8, i8, double, ptr }

@bloom = external dso_local global %struct.bloom, align 16
@N = external dso_local local_unnamed_addr global i64, align 8
@FLAGSKIPCHECKSUM = external dso_local local_unnamed_addr global i32, align 4
@FLAGVANITY = external dso_local local_unnamed_addr global i32, align 4
@MAXLENGTHADDRESS = external dso_local local_unnamed_addr global i32, align 4
@FLAGSAVEREADFILE = external dso_local local_unnamed_addr global i32, align 4
@FLAGREADEDFILE1 = external dso_local local_unnamed_addr global i32, align 4
@FLAGMODE = external dso_local local_unnamed_addr global i32, align 4
@FLAGCRYPTO = external dso_local local_unnamed_addr global i32, align 4
@addressTable = external dso_local local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.149 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.292 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.293 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.294 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.295 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.296 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.297 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.298 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.299 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.300 = external hidden unnamed_addr constant [49 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z15readFileAddressPc(ptr noundef %0) local_unnamed_addr #3 {
  %2 = alloca [30 x i8], align 16
  %3 = alloca [32 x i8], align 16
  %4 = alloca [9 x i8], align 1
  %5 = alloca [32 x i8], align 16
  %6 = alloca [32 x i8], align 16
  %7 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 30, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 9, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %8 = load i32, ptr @FLAGSAVEREADFILE, align 4, !tbaa !5
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %98, label %9

9:                                                ; preds = %1
  %10 = call noundef zeroext i1 @_Z11sha256_filePKcPh(ptr noundef %0, ptr noundef nonnull %3)
  br i1 %10, label %14, label %11

11:                                               ; preds = %9
  %12 = load ptr, ptr @stderr, align 8, !tbaa !9
  %13 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef nonnull @.str.292, i32 noundef 6142) #7
  br label %116

14:                                               ; preds = %9
  call void @_Z9tohex_dstPciS_(ptr noundef nonnull %3, i32 noundef 4, ptr noundef nonnull %4)
  %15 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 30, ptr noundef nonnull @.str.293, ptr noundef nonnull %4) #6
  %16 = call noalias ptr @fopen(ptr noundef nonnull %2, ptr noundef nonnull @.str.149)
  %.not35 = icmp eq ptr %16, null
  br i1 %.not35, label %98, label %17

17:                                               ; preds = %14
  %18 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.294, ptr noundef nonnull %2)
  %19 = call i64 @fread(ptr noundef nonnull %6, i64 noundef 1, i64 noundef 32, ptr noundef nonnull %16)
  %.not36 = icmp eq i64 %19, 32
  br i1 %.not36, label %24, label %20

20:                                               ; preds = %17
  %21 = load ptr, ptr @stderr, align 8, !tbaa !9
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str.295, i32 noundef 6165) #7
  %23 = call i32 @fclose(ptr noundef nonnull %16)
  br label %116

24:                                               ; preds = %17
  %25 = call i64 @fread(ptr noundef nonnull @bloom, i64 noundef 1, i64 noundef 80, ptr noundef nonnull %16)
  %.not37 = icmp eq i64 %25, 80
  br i1 %.not37, label %30, label %26

26:                                               ; preds = %24
  %27 = load ptr, ptr @stderr, align 8, !tbaa !9
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str.296, i32 noundef 6173) #7
  %29 = call i32 @fclose(ptr noundef nonnull %16)
  br label %116

30:                                               ; preds = %24
  %31 = load i64, ptr @bloom, align 16, !tbaa !11
  %32 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.297, i64 noundef %31)
  %33 = load i64, ptr getelementptr inbounds (i8, ptr @bloom, i64 16), align 16, !tbaa !16
  %34 = call noalias ptr @malloc(i64 noundef %33) #8
  store ptr %34, ptr getelementptr inbounds (i8, ptr @bloom, i64 64), align 16, !tbaa !17
  %35 = icmp eq ptr %34, null
  br i1 %35, label %36, label %40

36:                                               ; preds = %30
  %37 = load ptr, ptr @stderr, align 8, !tbaa !9
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef nonnull @.str.298, i32 noundef 6182) #7
  %39 = call i32 @fclose(ptr noundef nonnull %16)
  br label %116

40:                                               ; preds = %30
  %41 = call i64 @fread(ptr noundef nonnull %34, i64 noundef 1, i64 noundef %33, ptr noundef nonnull %16)
  %42 = load i64, ptr getelementptr inbounds (i8, ptr @bloom, i64 16), align 16, !tbaa !16
  %.not38 = icmp eq i64 %41, %42
  br i1 %.not38, label %47, label %43

43:                                               ; preds = %40
  %44 = load ptr, ptr @stderr, align 8, !tbaa !9
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str.296, i32 noundef 6190) #7
  %46 = call i32 @fclose(ptr noundef nonnull %16)
  br label %116

47:                                               ; preds = %40
  %48 = load i32, ptr @FLAGSKIPCHECKSUM, align 4, !tbaa !5
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %56

50:                                               ; preds = %47
  %51 = load ptr, ptr getelementptr inbounds (i8, ptr @bloom, i64 64), align 16, !tbaa !17
  call void @_Z6sha256PhmS_(ptr noundef %51, i64 noundef %41, ptr noundef nonnull %3)
  %bcmp = call i32 @bcmp(ptr noundef nonnull dereferenceable(32) %3, ptr noundef nonnull dereferenceable(32) %6, i64 32)
  %.not39 = icmp eq i32 %bcmp, 0
  br i1 %.not39, label %56, label %52

52:                                               ; preds = %50
  %53 = load ptr, ptr @stderr, align 8, !tbaa !9
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.299, i32 noundef 6208) #7
  %55 = call i32 @fclose(ptr noundef nonnull %16)
  br label %116

56:                                               ; preds = %50, %47
  %57 = call i64 @fread(ptr noundef nonnull %5, i64 noundef 1, i64 noundef 32, ptr noundef nonnull %16)
  %.not40 = icmp eq i64 %57, 32
  br i1 %.not40, label %62, label %58

58:                                               ; preds = %56
  %59 = load ptr, ptr @stderr, align 8, !tbaa !9
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef nonnull @.str.295, i32 noundef 6225) #7
  %61 = call i32 @fclose(ptr noundef nonnull %16)
  br label %116

62:                                               ; preds = %56
  %63 = call i64 @fread(ptr noundef nonnull %7, i64 noundef 1, i64 noundef 8, ptr noundef nonnull %16)
  %.not41 = icmp eq i64 %63, 8
  br i1 %.not41, label %68, label %64

64:                                               ; preds = %62
  %65 = load ptr, ptr @stderr, align 8, !tbaa !9
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef nonnull @.str.295, i32 noundef 6232) #7
  %67 = call i32 @fclose(ptr noundef nonnull %16)
  br label %116

68:                                               ; preds = %62
  %69 = load i64, ptr %7, align 8, !tbaa !18
  %70 = udiv i64 %69, 20
  store i64 %70, ptr @N, align 8, !tbaa !18
  %71 = uitofp nneg i64 %70 to double
  %72 = fmul double %71, 2.000000e+01
  %73 = fmul double %72, 0x3EB0000000000000
  %74 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.300, i64 noundef %70, double noundef %73)
  %75 = call noalias ptr @malloc(i64 noundef %69) #8
  store ptr %75, ptr @addressTable, align 8, !tbaa !9
  %76 = icmp eq ptr %75, null
  br i1 %76, label %77, label %81

77:                                               ; preds = %68
  %78 = load ptr, ptr @stderr, align 8, !tbaa !9
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef nonnull @.str.298, i32 noundef 6242) #7
  %80 = call i32 @fclose(ptr noundef nonnull %16)
  br label %116

81:                                               ; preds = %68
  %82 = call i64 @fread(ptr noundef nonnull %75, i64 noundef 1, i64 noundef %69, ptr noundef nonnull %16)
  %.not42 = icmp eq i64 %82, %69
  br i1 %.not42, label %87, label %83

83:                                               ; preds = %81
  %84 = load ptr, ptr @stderr, align 8, !tbaa !9
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef nonnull @.str.296, i32 noundef 6249) #7
  %86 = call i32 @fclose(ptr noundef nonnull %16)
  br label %116

87:                                               ; preds = %81
  %88 = load i32, ptr @FLAGSKIPCHECKSUM, align 4, !tbaa !5
  %89 = icmp eq i32 %88, 0
  br i1 %89, label %90, label %96

90:                                               ; preds = %87
  %91 = load ptr, ptr @addressTable, align 8, !tbaa !9
  call void @_Z6sha256PhmS_(ptr noundef %91, i64 noundef %69, ptr noundef nonnull %3)
  %bcmp43 = call i32 @bcmp(ptr noundef nonnull dereferenceable(32) %3, ptr noundef nonnull dereferenceable(32) %5, i64 32)
  %.not44 = icmp eq i32 %bcmp43, 0
  br i1 %.not44, label %96, label %92

92:                                               ; preds = %90
  %93 = load ptr, ptr @stderr, align 8, !tbaa !9
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef nonnull @.str.299, i32 noundef 6257) #7
  %95 = call i32 @fclose(ptr noundef nonnull %16)
  br label %116

96:                                               ; preds = %90, %87
  store i32 1, ptr @FLAGREADEDFILE1, align 4, !tbaa !5
  %97 = call i32 @fclose(ptr noundef nonnull %16)
  store i32 20, ptr @MAXLENGTHADDRESS, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %14, %96, %1
  %99 = load i32, ptr @FLAGVANITY, align 4, !tbaa !5
  %.not45 = icmp eq i32 %99, 0
  br i1 %.not45, label %102, label %100

100:                                              ; preds = %98
  %101 = call noundef zeroext i1 @_Z16processOneVanityv()
  br label %102

102:                                              ; preds = %100, %98
  %103 = load i32, ptr @FLAGREADEDFILE1, align 4, !tbaa !5
  %.not46 = icmp eq i32 %103, 0
  br i1 %.not46, label %104, label %116

104:                                              ; preds = %102
  %105 = load i32, ptr @FLAGMODE, align 4, !tbaa !5
  switch i32 %105, label %116 [
    i32 1, label %106
    i32 5, label %112
    i32 3, label %112
    i32 0, label %114
  ]

106:                                              ; preds = %104
  %107 = load i32, ptr @FLAGCRYPTO, align 4, !tbaa !5
  switch i32 %107, label %116 [
    i32 1, label %108
    i32 2, label %110
  ]

108:                                              ; preds = %106
  %109 = call noundef zeroext i1 @_Z20forceReadFileAddressPc(ptr noundef %0)
  br label %116

110:                                              ; preds = %106
  %111 = call noundef zeroext i1 @_Z23forceReadFileAddressEthPc(ptr noundef %0)
  br label %116

112:                                              ; preds = %104, %104
  %113 = call noundef zeroext i1 @_Z20forceReadFileAddressPc(ptr noundef %0)
  br label %116

114:                                              ; preds = %104
  %115 = call noundef zeroext i1 @_Z19forceReadFileXPointPc(ptr noundef %0)
  br label %116

116:                                              ; preds = %102, %106, %104, %114, %112, %110, %108, %92, %83, %77, %64, %58, %52, %43, %36, %26, %20, %11
  %.0 = phi i1 [ false, %20 ], [ false, %26 ], [ false, %36 ], [ false, %43 ], [ false, %52 ], [ false, %58 ], [ false, %64 ], [ false, %77 ], [ false, %83 ], [ false, %92 ], [ %115, %114 ], [ %113, %112 ], [ %109, %108 ], [ %111, %110 ], [ false, %11 ], [ false, %104 ], [ true, %106 ], [ true, %102 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 9, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 30, ptr nonnull %2) #6
  ret i1 %.0
}

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i64 @fread(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #1

declare void @_Z6sha256PhmS_(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

declare void @_Z9tohex_dstPciS_(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z16processOneVanityv() local_unnamed_addr #3

declare noundef zeroext i1 @_Z11sha256_filePKcPh(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z20forceReadFileAddressPc(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z23forceReadFileAddressEthPc(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z19forceReadFileXPointPc(ptr noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nofree nounwind willreturn memory(argmem: read) }
attributes #6 = { nounwind }
attributes #7 = { cold 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTS5bloom", !13, i64 0, !13, i64 8, !13, i64 16, !7, i64 24, !14, i64 32, !7, i64 48, !7, i64 49, !7, i64 50, !15, i64 56, !10, i64 64}
!13 = !{!"long", !7, i64 0}
!14 = !{!"long double", !7, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{!12, !13, i64 16}
!17 = !{!12, !10, i64 64}
!18 = !{!13, !13, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass