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

; 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.Int = type { [1 x %struct.__mpz_struct] }
%struct.__mpz_struct = type { i32, i32, ptr }
%struct.publickey = type <{ i8, %union.anon }>
%union.anon = type { [4 x i64] }
%struct.tothread = type { i32, ptr, ptr }

@THREADOUTPUT = external dso_local global i32, align 4
@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
@ends = 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
@DEBUGCOUNT = external dso_local global i64, align 8
@FLAGQUIET = external dso_local global i32, align 4
@FLAGMATRIX = external dso_local global i32, align 4
@MAXLENGTHADDRESS = external dso_local global i32, align 4
@FLAGRANDOM = external dso_local global i32, align 4
@addressTable = external dso_local global ptr, align 8
@n_range_start = external dso_local global %class.Int, align 8
@n_range_end = external dso_local global %class.Int, align 8
@n_range_diff = external dso_local global %class.Int, align 8
@stderr = external global ptr, align 8
@stdout = external global ptr, align 8
@.str.228 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.229 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.242 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.245 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.246 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.247 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.248 = external hidden unnamed_addr constant [48 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

declare i32 @fclose(ptr noundef) #0

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

declare i32 @fflush(ptr noundef) #0

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

declare noundef i32 @_Z6sha256PKhmPh(ptr noundef, i64 noundef, ptr noundef) #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_Z14thread_pub2rmdPv(ptr noundef %0) #4 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %class.Int, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca [20 x i8], align 16
  %9 = alloca [32 x i8], align 16
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %struct.publickey, align 1
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #6
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %4)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 20, 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 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 1, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 33, ptr %14) #6
  store i64 4294967295, ptr %7, align 8, !tbaa !11
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %17, ptr %5, align 8, !tbaa !5
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.tothread, ptr %18, i32 0, i32 0
  %20 = load i32, ptr %19, align 8, !tbaa !13
  store i32 %20, ptr %11, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %203, %1
  %22 = load i32, ptr @FLAGRANDOM, align 4, !tbaa !9
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %24, label %30

24:                                               ; preds = %21
  invoke void @_ZN3Int4RandEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef @n_range_start, ptr noundef @n_range_diff)
          to label %25 unwind label %26

25:                                               ; preds = %24
  br label %41

26:                                               ; preds = %162, %157, %154, %152, %138, %134, %130, %114, %109, %106, %104, %90, %86, %82, %71, %68, %66, %58, %55, %53, %44, %35, %33, %30, %24
  %27 = landingpad { ptr, i32 }
          cleanup
  %28 = extractvalue { ptr, i32 } %27, 0
  store ptr %28, ptr %15, align 8
  %29 = extractvalue { ptr, i32 } %27, 1
  store i32 %29, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 33, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, 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 20, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %211

30:                                               ; preds = %21
  %31 = invoke noundef zeroext i1 @_ZN3Int7IsLowerEPS_(ptr noundef nonnull align 8 dereferenceable(16) @n_range_start, ptr noundef @n_range_end)
          to label %32 unwind label %26

32:                                               ; preds = %30
  br i1 %31, label %33, label %39

33:                                               ; preds = %32
  %34 = call i32 @pthread_mutex_lock(ptr noundef @write_random) #6
  invoke void @_ZN3Int3SetEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef @n_range_start)
          to label %35 unwind label %26

35:                                               ; preds = %33
  %36 = load i64, ptr @N_SEQUENTIAL_MAX, align 8, !tbaa !11
  invoke void @_ZN3Int3AddEm(ptr noundef nonnull align 8 dereferenceable(16) @n_range_start, i64 noundef %36)
          to label %37 unwind label %26

37:                                               ; preds = %35
  %38 = call i32 @pthread_mutex_lock(ptr noundef @write_random) #6
  br label %40

39:                                               ; preds = %32
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %39, %37
  br label %41

41:                                               ; preds = %40, %25
  %42 = load i32, ptr %13, align 4, !tbaa !9
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %44, label %202

44:                                               ; preds = %41
  %45 = getelementptr inbounds %struct.publickey, ptr %14, i32 0, i32 1
  %46 = getelementptr inbounds [32 x i8], ptr %45, i64 0, i64 0
  invoke void @_ZN3Int10Get32BytesEPh(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef %46)
          to label %47 unwind label %26

47:                                               ; preds = %44
  %48 = getelementptr inbounds %struct.publickey, ptr %14, i32 0, i32 0
  store i8 2, ptr %48, align 1, !tbaa !15
  %49 = getelementptr inbounds %struct.publickey, ptr %14, i32 0, i32 1
  %50 = getelementptr inbounds [8 x i32], ptr %49, i64 0, i64 7
  store i32 0, ptr %50, align 1, !tbaa !17
  %51 = load i32, ptr @FLAGMATRIX, align 4, !tbaa !9
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %63

53:                                               ; preds = %47
  %54 = invoke noundef ptr @_Z5tohexPci(ptr noundef %14, i32 noundef 33)
          to label %55 unwind label %26

55:                                               ; preds = %53
  store ptr %54, ptr %10, align 8, !tbaa !5
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  %57 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.242, ptr noundef %56)
          to label %58 unwind label %26

58:                                               ; preds = %55
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %59) #6
  %60 = load ptr, ptr @stdout, align 8, !tbaa !5
  %61 = invoke i32 @fflush(ptr noundef %60)
          to label %62 unwind label %26

62:                                               ; preds = %58
  br label %77

63:                                               ; preds = %47
  %64 = load i32, ptr @FLAGQUIET, align 4, !tbaa !9
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %66, label %76

66:                                               ; preds = %63
  %67 = invoke noundef ptr @_Z5tohexPci(ptr noundef %14, i32 noundef 33)
          to label %68 unwind label %26

68:                                               ; preds = %66
  store ptr %67, ptr %10, align 8, !tbaa !5
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.245, ptr noundef %69)
          to label %71 unwind label %26

71:                                               ; preds = %68
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %72) #6
  %73 = load ptr, ptr @stdout, align 8, !tbaa !5
  %74 = invoke i32 @fflush(ptr noundef %73)
          to label %75 unwind label %26

75:                                               ; preds = %71
  store i32 1, ptr @THREADOUTPUT, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %75, %63
  br label %77

77:                                               ; preds = %76, %62
  store i64 0, ptr %6, align 8, !tbaa !11
  br label %78

78:                                               ; preds = %198, %77
  %79 = load i64, ptr %6, align 8, !tbaa !11
  %80 = load i64, ptr %7, align 8, !tbaa !11
  %81 = icmp ult i64 %79, %80
  br i1 %81, label %82, label %201

82:                                               ; preds = %78
  %83 = getelementptr inbounds %struct.publickey, ptr %14, i32 0, i32 0
  store i8 2, ptr %83, align 1, !tbaa !15
  %84 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %85 = invoke noundef i32 @_Z6sha256PKhmPh(ptr noundef %14, i64 noundef 33, ptr noundef %84)
          to label %86 unwind label %26

86:                                               ; preds = %82
  %87 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %88 = getelementptr inbounds [20 x i8], ptr %8, i64 0, i64 0
  %89 = invoke noundef i32 @_Z6rmd160PKhmPh(ptr noundef %87, i64 noundef 32, ptr noundef %88)
          to label %90 unwind label %26

90:                                               ; preds = %86
  %91 = getelementptr inbounds [20 x i8], ptr %8, i64 0, i64 0
  %92 = load i32, ptr @MAXLENGTHADDRESS, align 4, !tbaa !9
  %93 = invoke i32 @bloom_check(ptr noundef @bloom, ptr noundef %91, i32 noundef %92)
          to label %94 unwind label %26

94:                                               ; preds = %90
  store i32 %93, ptr %12, align 4, !tbaa !9
  %95 = load i32, ptr %12, align 4, !tbaa !9
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %130

97:                                               ; preds = %94
  %98 = load ptr, ptr @addressTable, align 8, !tbaa !5
  %99 = getelementptr inbounds [20 x i8], ptr %8, i64 0, i64 0
  %100 = load i64, ptr @N, align 8, !tbaa !11
  %101 = call noundef i32 @_Z12searchbinaryP13address_valuePcl(ptr noundef %98, ptr noundef %99, i64 noundef %100)
  store i32 %101, ptr %12, align 4, !tbaa !9
  %102 = load i32, ptr %12, align 4, !tbaa !9
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %129

104:                                              ; preds = %97
  %105 = invoke noundef ptr @_Z5tohexPci(ptr noundef %14, i32 noundef 33)
          to label %106 unwind label %26

106:                                              ; preds = %104
  store ptr %105, ptr %10, align 8, !tbaa !5
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  %108 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.246, ptr noundef %107)
          to label %109 unwind label %26

109:                                              ; preds = %106
  %110 = invoke noalias ptr @fopen(ptr noundef @.str.228, ptr noundef @.str.229)
          to label %111 unwind label %26

111:                                              ; preds = %109
  store ptr %110, ptr %3, align 8, !tbaa !5
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  %113 = icmp ne ptr %112, null
  br i1 %113, label %114, label %123

114:                                              ; preds = %111
  %115 = call i32 @pthread_mutex_lock(ptr noundef @write_keys) #6
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %116, ptr noundef @.str.247, ptr noundef %117) #6
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  %120 = invoke i32 @fclose(ptr noundef %119)
          to label %121 unwind label %26

121:                                              ; preds = %114
  %122 = call i32 @pthread_mutex_unlock(ptr noundef @write_keys) #6
  br label %127

123:                                              ; preds = %111
  %124 = load ptr, ptr @stderr, align 8, !tbaa !5
  %125 = load ptr, ptr %10, align 8, !tbaa !5
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %124, ptr noundef @.str.248, ptr noundef %125) #6
  call void @exit(i32 noundef 1) #7
  unreachable

127:                                              ; preds = %121
  %128 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %128) #6
  br label %129

129:                                              ; preds = %127, %97
  br label %130

130:                                              ; preds = %129, %94
  %131 = getelementptr inbounds %struct.publickey, ptr %14, i32 0, i32 0
  store i8 3, ptr %131, align 1, !tbaa !15
  %132 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %133 = invoke noundef i32 @_Z6sha256PKhmPh(ptr noundef %14, i64 noundef 33, ptr noundef %132)
          to label %134 unwind label %26

134:                                              ; preds = %130
  %135 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
  %136 = getelementptr inbounds [20 x i8], ptr %8, i64 0, i64 0
  %137 = invoke noundef i32 @_Z6rmd160PKhmPh(ptr noundef %135, i64 noundef 32, ptr noundef %136)
          to label %138 unwind label %26

138:                                              ; preds = %134
  %139 = getelementptr inbounds [20 x i8], ptr %8, i64 0, i64 0
  %140 = load i32, ptr @MAXLENGTHADDRESS, align 4, !tbaa !9
  %141 = invoke i32 @bloom_check(ptr noundef @bloom, ptr noundef %139, i32 noundef %140)
          to label %142 unwind label %26

142:                                              ; preds = %138
  store i32 %141, ptr %12, align 4, !tbaa !9
  %143 = load i32, ptr %12, align 4, !tbaa !9
  %144 = icmp ne i32 %143, 0
  br i1 %144, label %145, label %178

145:                                              ; preds = %142
  %146 = load ptr, ptr @addressTable, align 8, !tbaa !5
  %147 = getelementptr inbounds [20 x i8], ptr %8, i64 0, i64 0
  %148 = load i64, ptr @N, align 8, !tbaa !11
  %149 = call noundef i32 @_Z12searchbinaryP13address_valuePcl(ptr noundef %146, ptr noundef %147, i64 noundef %148)
  store i32 %149, ptr %12, align 4, !tbaa !9
  %150 = load i32, ptr %12, align 4, !tbaa !9
  %151 = icmp ne i32 %150, 0
  br i1 %151, label %152, label %177

152:                                              ; preds = %145
  %153 = invoke noundef ptr @_Z5tohexPci(ptr noundef %14, i32 noundef 33)
          to label %154 unwind label %26

154:                                              ; preds = %152
  store ptr %153, ptr %10, align 8, !tbaa !5
  %155 = load ptr, ptr %10, align 8, !tbaa !5
  %156 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.246, ptr noundef %155)
          to label %157 unwind label %26

157:                                              ; preds = %154
  %158 = invoke noalias ptr @fopen(ptr noundef @.str.228, ptr noundef @.str.229)
          to label %159 unwind label %26

159:                                              ; preds = %157
  store ptr %158, ptr %3, align 8, !tbaa !5
  %160 = load ptr, ptr %3, align 8, !tbaa !5
  %161 = icmp ne ptr %160, null
  br i1 %161, label %162, label %171

162:                                              ; preds = %159
  %163 = call i32 @pthread_mutex_lock(ptr noundef @write_keys) #6
  %164 = load ptr, ptr %3, align 8, !tbaa !5
  %165 = load ptr, ptr %10, align 8, !tbaa !5
  %166 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %164, ptr noundef @.str.247, ptr noundef %165) #6
  %167 = load ptr, ptr %3, align 8, !tbaa !5
  %168 = invoke i32 @fclose(ptr noundef %167)
          to label %169 unwind label %26

169:                                              ; preds = %162
  %170 = call i32 @pthread_mutex_unlock(ptr noundef @write_keys) #6
  br label %175

171:                                              ; preds = %159
  %172 = load ptr, ptr @stderr, align 8, !tbaa !5
  %173 = load ptr, ptr %10, align 8, !tbaa !5
  %174 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %172, ptr noundef @.str.248, ptr noundef %173) #6
  call void @exit(i32 noundef 1) #7
  unreachable

175:                                              ; preds = %169
  %176 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %176) #6
  br label %177

177:                                              ; preds = %175, %145
  br label %178

178:                                              ; preds = %177, %142
  %179 = getelementptr inbounds %struct.publickey, ptr %14, i32 0, i32 1
  %180 = getelementptr inbounds [8 x i32], ptr %179, i64 0, i64 7
  %181 = load i32, ptr %180, align 1, !tbaa !17
  %182 = add i32 %181, 1
  store i32 %182, ptr %180, align 1, !tbaa !17
  %183 = getelementptr inbounds %struct.publickey, ptr %14, i32 0, i32 1
  %184 = getelementptr inbounds [8 x i32], ptr %183, i64 0, i64 7
  %185 = load i32, ptr %184, align 1, !tbaa !17
  %186 = zext i32 %185 to i64
  %187 = load i64, ptr @DEBUGCOUNT, align 8, !tbaa !11
  %188 = urem i64 %186, %187
  %189 = icmp eq i64 %188, 0
  br i1 %189, label %190, label %197

190:                                              ; preds = %178
  %191 = load ptr, ptr @steps, align 8, !tbaa !5
  %192 = load i32, ptr %11, align 4, !tbaa !9
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds i64, ptr %191, i64 %193
  %195 = load i64, ptr %194, align 8, !tbaa !11
  %196 = add i64 %195, 1
  store i64 %196, ptr %194, align 8, !tbaa !11
  br label %197

197:                                              ; preds = %190, %178
  br label %198

198:                                              ; preds = %197
  %199 = load i64, ptr %6, align 8, !tbaa !11
  %200 = add i64 %199, 1
  store i64 %200, ptr %6, align 8, !tbaa !11
  br label %78, !llvm.loop !18

201:                                              ; preds = %78
  br label %202

202:                                              ; preds = %201, %41
  br label %203

203:                                              ; preds = %202
  %204 = load i32, ptr %13, align 4, !tbaa !9
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %21, label %206, !llvm.loop !20

206:                                              ; preds = %203
  %207 = load ptr, ptr @ends, align 8, !tbaa !5
  %208 = load i32, ptr %11, align 4, !tbaa !9
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds i32, ptr %207, i64 %209
  store i32 1, ptr %210, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 33, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, 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 20, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret ptr null

211:                                              ; preds = %26
  %212 = load ptr, ptr %15, align 8
  %213 = load i32, ptr %16, align 4
  %214 = insertvalue { ptr, i32 } poison, ptr %212, 0
  %215 = insertvalue { ptr, i32 } %214, i32 %213, 1
  resume { ptr, i32 } %215
}

declare noundef i32 @_Z6rmd160PKhmPh(ptr noundef, i64 noundef, ptr noundef) #0

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

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

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

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

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

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

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

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


; 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.Int = type { [1 x %struct.__mpz_struct] }
%struct.__mpz_struct = type { i32, i32, ptr }
%struct.publickey = type <{ i8, %union.anon }>
%union.anon = type { [4 x i64] }

@THREADOUTPUT = external dso_local local_unnamed_addr global i32, align 4
@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
@ends = 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
@DEBUGCOUNT = external dso_local local_unnamed_addr global i64, align 8
@FLAGQUIET = external dso_local local_unnamed_addr global i32, align 4
@FLAGMATRIX = external dso_local local_unnamed_addr global i32, align 4
@MAXLENGTHADDRESS = 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
@n_range_start = external dso_local global %class.Int, align 8
@n_range_end = external dso_local global %class.Int, align 8
@n_range_diff = external dso_local global %class.Int, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@stdout = external local_unnamed_addr global ptr, align 8
@.str.228 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.229 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.242 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.245 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.246 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.247 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.248 = external hidden unnamed_addr constant [48 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; 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

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

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

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

declare noundef i32 @_Z6sha256PKhmPh(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local noalias noundef ptr @_Z14thread_pub2rmdPv(ptr nocapture noundef readonly %0) local_unnamed_addr #6 personality ptr @__gxx_personality_v0 {
  %2 = alloca %class.Int, align 8
  %3 = alloca [20 x i8], align 16
  %4 = alloca [32 x i8], align 16
  %5 = alloca %struct.publickey, align 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #8
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %2)
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 33, ptr nonnull %5) #8
  %6 = load i32, ptr %0, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %5, i64 1
  %8 = getelementptr inbounds i8, ptr %5, i64 29
  %9 = sext i32 %6 to i64
  br label %10

.loopexit:                                        ; preds = %103
  br label %10, !llvm.loop !11

10:                                               ; preds = %.loopexit, %1
  %11 = load i32, ptr @FLAGRANDOM, align 4, !tbaa !13
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %14, label %12

12:                                               ; preds = %10
  invoke void @_ZN3Int4RandEPS_S0_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull @n_range_start, ptr noundef nonnull @n_range_diff)
          to label %23 unwind label %.loopexit.split-lp

.loopexit45:                                      ; preds = %41, %43, %45, %53, %66, %68, %70, %78
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %13

.loopexit.split-lp:                               ; preds = %12, %14, %17, %19, %23, %26, %35
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %13

13:                                               ; preds = %.loopexit.split-lp, %.loopexit45
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit45 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 33, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #8
  resume { ptr, i32 } %lpad.phi

14:                                               ; preds = %10
  %15 = invoke noundef zeroext i1 @_ZN3Int7IsLowerEPS_(ptr noundef nonnull align 8 dereferenceable(16) @n_range_start, ptr noundef nonnull @n_range_end)
          to label %16 unwind label %.loopexit.split-lp

16:                                               ; preds = %14
  br i1 %15, label %17, label %.critedge

17:                                               ; preds = %16
  %18 = call i32 @pthread_mutex_lock(ptr noundef nonnull @write_random) #8
  invoke void @_ZN3Int3SetEPKS_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull @n_range_start)
          to label %19 unwind label %.loopexit.split-lp

19:                                               ; preds = %17
  %20 = load i64, ptr @N_SEQUENTIAL_MAX, align 8, !tbaa !14
  invoke void @_ZN3Int3AddEm(ptr noundef nonnull align 8 dereferenceable(16) @n_range_start, i64 noundef %20)
          to label %21 unwind label %.loopexit.split-lp

21:                                               ; preds = %19
  %22 = call i32 @pthread_mutex_lock(ptr noundef nonnull @write_random) #8
  br label %23

23:                                               ; preds = %12, %21
  invoke void @_ZN3Int10Get32BytesEPh(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull %7)
          to label %24 unwind label %.loopexit.split-lp

24:                                               ; preds = %23
  store i8 2, ptr %5, align 1, !tbaa !16
  store i32 0, ptr %8, align 1, !tbaa !18
  %25 = load i32, ptr @FLAGMATRIX, align 4, !tbaa !13
  %.not36 = icmp eq i32 %25, 0
  br i1 %.not36, label %32, label %26

26:                                               ; preds = %24
  %27 = invoke noundef ptr @_Z5tohexPci(ptr noundef nonnull %5, i32 noundef 33)
          to label %28 unwind label %.loopexit.split-lp

28:                                               ; preds = %26
  %29 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.242, ptr noundef %27)
  call void @free(ptr noundef %27) #8
  %30 = load ptr, ptr @stdout, align 8, !tbaa !19
  %31 = call i32 @fflush(ptr noundef %30)
  br label %.preheader

32:                                               ; preds = %24
  %33 = load i32, ptr @FLAGQUIET, align 4, !tbaa !13
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %35, label %.preheader

35:                                               ; preds = %32
  %36 = invoke noundef ptr @_Z5tohexPci(ptr noundef nonnull %5, i32 noundef 33)
          to label %37 unwind label %.loopexit.split-lp

37:                                               ; preds = %35
  %38 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.245, ptr noundef %36)
  call void @free(ptr noundef %36) #8
  %39 = load ptr, ptr @stdout, align 8, !tbaa !19
  %40 = call i32 @fflush(ptr noundef %39)
  store i32 1, ptr @THREADOUTPUT, align 4, !tbaa !13
  br label %.preheader

.preheader:                                       ; preds = %32, %37, %28
  br label %41

41:                                               ; preds = %.preheader, %103
  %.047 = phi i64 [ %104, %103 ], [ 0, %.preheader ]
  store i8 2, ptr %5, align 1, !tbaa !16
  %42 = invoke noundef i32 @_Z6sha256PKhmPh(ptr noundef nonnull %5, i64 noundef 33, ptr noundef nonnull %4)
          to label %43 unwind label %.loopexit45

43:                                               ; preds = %41
  %44 = invoke noundef i32 @_Z6rmd160PKhmPh(ptr noundef nonnull %4, i64 noundef 32, ptr noundef nonnull %3)
          to label %45 unwind label %.loopexit45

45:                                               ; preds = %43
  %46 = load i32, ptr @MAXLENGTHADDRESS, align 4, !tbaa !13
  %47 = invoke i32 @bloom_check(ptr noundef nonnull @bloom, ptr noundef nonnull %3, i32 noundef %46)
          to label %48 unwind label %.loopexit45

48:                                               ; preds = %45
  %.not37 = icmp eq i32 %47, 0
  br i1 %.not37, label %66, label %49

49:                                               ; preds = %48
  %50 = load ptr, ptr @addressTable, align 8, !tbaa !19
  %51 = load i64, ptr @N, align 8, !tbaa !14
  %52 = call noundef i32 @_Z12searchbinaryP13address_valuePcl(ptr noundef %50, ptr noundef nonnull %3, i64 noundef %51)
  %.not38 = icmp eq i32 %52, 0
  br i1 %.not38, label %66, label %53

53:                                               ; preds = %49
  %54 = invoke noundef ptr @_Z5tohexPci(ptr noundef nonnull %5, i32 noundef 33)
          to label %55 unwind label %.loopexit45

55:                                               ; preds = %53
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.246, ptr noundef %54)
  %57 = call noalias ptr @fopen(ptr noundef nonnull @.str.228, ptr noundef nonnull @.str.229)
  %.not39 = icmp eq ptr %57, null
  br i1 %.not39, label %63, label %58

58:                                               ; preds = %55
  %59 = call i32 @pthread_mutex_lock(ptr noundef nonnull @write_keys) #8
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %57, ptr noundef nonnull @.str.247, ptr noundef %54) #8
  %61 = call i32 @fclose(ptr noundef nonnull %57)
  %62 = call i32 @pthread_mutex_unlock(ptr noundef nonnull @write_keys) #8
  call void @free(ptr noundef %54) #8
  br label %66

63:                                               ; preds = %55
  %64 = load ptr, ptr @stderr, align 8, !tbaa !19
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef nonnull @.str.248, ptr noundef %54) #9
  call void @exit(i32 noundef 1) #10
  unreachable

66:                                               ; preds = %49, %58, %48
  store i8 3, ptr %5, align 1, !tbaa !16
  %67 = invoke noundef i32 @_Z6sha256PKhmPh(ptr noundef nonnull %5, i64 noundef 33, ptr noundef nonnull %4)
          to label %68 unwind label %.loopexit45

68:                                               ; preds = %66
  %69 = invoke noundef i32 @_Z6rmd160PKhmPh(ptr noundef nonnull %4, i64 noundef 32, ptr noundef nonnull %3)
          to label %70 unwind label %.loopexit45

70:                                               ; preds = %68
  %71 = load i32, ptr @MAXLENGTHADDRESS, align 4, !tbaa !13
  %72 = invoke i32 @bloom_check(ptr noundef nonnull @bloom, ptr noundef nonnull %3, i32 noundef %71)
          to label %73 unwind label %.loopexit45

73:                                               ; preds = %70
  %.not40 = icmp eq i32 %72, 0
  br i1 %.not40, label %91, label %74

74:                                               ; preds = %73
  %75 = load ptr, ptr @addressTable, align 8, !tbaa !19
  %76 = load i64, ptr @N, align 8, !tbaa !14
  %77 = call noundef i32 @_Z12searchbinaryP13address_valuePcl(ptr noundef %75, ptr noundef nonnull %3, i64 noundef %76)
  %.not41 = icmp eq i32 %77, 0
  br i1 %.not41, label %91, label %78

78:                                               ; preds = %74
  %79 = invoke noundef ptr @_Z5tohexPci(ptr noundef nonnull %5, i32 noundef 33)
          to label %80 unwind label %.loopexit45

80:                                               ; preds = %78
  %81 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.246, ptr noundef %79)
  %82 = call noalias ptr @fopen(ptr noundef nonnull @.str.228, ptr noundef nonnull @.str.229)
  %.not42 = icmp eq ptr %82, null
  br i1 %.not42, label %88, label %83

83:                                               ; preds = %80
  %84 = call i32 @pthread_mutex_lock(ptr noundef nonnull @write_keys) #8
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef nonnull %82, ptr noundef nonnull @.str.247, ptr noundef %79) #8
  %86 = call i32 @fclose(ptr noundef nonnull %82)
  %87 = call i32 @pthread_mutex_unlock(ptr noundef nonnull @write_keys) #8
  call void @free(ptr noundef %79) #8
  br label %91

88:                                               ; preds = %80
  %89 = load ptr, ptr @stderr, align 8, !tbaa !19
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef nonnull @.str.248, ptr noundef %79) #9
  call void @exit(i32 noundef 1) #10
  unreachable

91:                                               ; preds = %74, %83, %73
  %92 = load i32, ptr %8, align 1, !tbaa !18
  %93 = add i32 %92, 1
  store i32 %93, ptr %8, align 1, !tbaa !18
  %94 = zext i32 %93 to i64
  %95 = load i64, ptr @DEBUGCOUNT, align 8, !tbaa !14
  %96 = urem i64 %94, %95
  %97 = icmp eq i64 %96, 0
  br i1 %97, label %98, label %103

98:                                               ; preds = %91
  %99 = load ptr, ptr @steps, align 8, !tbaa !19
  %100 = getelementptr inbounds i64, ptr %99, i64 %9
  %101 = load i64, ptr %100, align 8, !tbaa !14
  %102 = add i64 %101, 1
  store i64 %102, ptr %100, align 8, !tbaa !14
  br label %103

103:                                              ; preds = %91, %98
  %104 = add nuw nsw i64 %.047, 1
  %exitcond.not = icmp eq i64 %104, 4294967295
  br i1 %exitcond.not, label %.loopexit, label %41, !llvm.loop !20

.critedge:                                        ; preds = %16
  %105 = load ptr, ptr @ends, align 8, !tbaa !19
  %106 = getelementptr inbounds i32, ptr %105, i64 %9
  store i32 1, ptr %106, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 33, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %3) #8
  call void @_ZN3IntD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #8
  ret ptr null
}

declare noundef i32 @_Z6rmd160PKhmPh(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

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

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

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

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

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

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

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

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


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