; LLVM IR from tevador/RandomX :: src/tests (benchmark)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%class.AtomicHash = type { [4 x %"struct.std::atomic.0"] }
%"struct.std::atomic.0" = type { %"struct.std::__atomic_base.1" }
%"struct.std::__atomic_base.1" = type { i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<randomx_vm *, std::allocator<randomx_vm *>>::_Vector_impl" }
%"struct.std::_Vector_base<randomx_vm *, std::allocator<randomx_vm *>>::_Vector_impl" = type { %"struct.std::_Vector_base<randomx_vm *, std::allocator<randomx_vm *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<randomx_vm *, std::allocator<randomx_vm *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.2" = type { %"struct.std::_Vector_base.3" }
%"struct.std::_Vector_base.3" = type { %"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl" }
%"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%class.Stopwatch = type <{ %"class.std::chrono::time_point", i64, i8, [7 x i8] }>
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.std::thread" = type { %"class.std::thread::id" }
%"class.std::thread::id" = type { i64 }
%"class.std::reference_wrapper" = type { ptr }
%"class.std::reference_wrapper.11" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.20 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZTISt9exception = external constant ptr
@_ZTI15MemoryException = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.63 = external hidden unnamed_addr constant [34 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@.str.64 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [80 x i8], align 1
@_ZTI19CacheAllocException = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTI21DatasetAllocException = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.66 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [68 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10printUsagePKc(ptr noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca i8, align 1
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i64, align 8
  %22 = alloca i32, align 4
  %23 = alloca [4 x i8], align 1
  %24 = alloca i32, align 4
  %25 = alloca %"struct.std::atomic", align 4
  %26 = alloca %class.AtomicHash, align 8
  %27 = alloca %"class.std::vector", align 8
  %28 = alloca %"class.std::vector.2", align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca i32, align 4
  %32 = alloca ptr, align 8
  %33 = alloca i32, align 4
  %34 = alloca %"class.std::__cxx11::basic_string", align 8
  %35 = alloca ptr, align 8
  %36 = alloca %class.Stopwatch, align 8
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca %"class.std::thread", align 8
  %44 = alloca ptr, align 8
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca ptr, align 8
  %48 = alloca i32, align 4
  %49 = alloca i32, align 4
  %50 = alloca %"class.std::thread", align 8
  %51 = alloca %"class.std::reference_wrapper", align 8
  %52 = alloca %"class.std::reference_wrapper.11", align 8
  %53 = alloca i32, align 4
  %54 = alloca %"class.std::reference_wrapper", align 8
  %55 = alloca %"class.std::reference_wrapper.11", align 8
  %56 = alloca double, align 8
  %57 = alloca i32, align 4
  %58 = alloca ptr, align 8
  %59 = alloca ptr, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #11
  %60 = load i32, ptr %4, align 4, !tbaa !5
  %61 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z10readOptionPKciPPcRb(ptr noundef @.str.20, i32 noundef %60, ptr noundef %61, ptr noundef nonnull align 1 dereferenceable(1) %6)
  %62 = load i32, ptr %4, align 4, !tbaa !5
  %63 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z10readOptionPKciPPcRb(ptr noundef @.str.21, i32 noundef %62, ptr noundef %63, ptr noundef nonnull align 1 dereferenceable(1) %7)
  %64 = load i32, ptr %4, align 4, !tbaa !5
  %65 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z10readOptionPKciPPcRb(ptr noundef @.str.22, i32 noundef %64, ptr noundef %65, ptr noundef nonnull align 1 dereferenceable(1) %8)
  %66 = load i32, ptr %4, align 4, !tbaa !5
  %67 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z13readIntOptionPKciPPcRii(ptr noundef @.str.23, i32 noundef %66, ptr noundef %67, ptr noundef nonnull align 4 dereferenceable(4) %19, i32 noundef 1)
  %68 = load i32, ptr %4, align 4, !tbaa !5
  %69 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z16readUInt64OptionPKciPPcRmm(ptr noundef @.str.24, i32 noundef %68, ptr noundef %69, ptr noundef nonnull align 8 dereferenceable(8) %21, i64 noundef 0)
  %70 = load i32, ptr %4, align 4, !tbaa !5
  %71 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z13readIntOptionPKciPPcRii(ptr noundef @.str.25, i32 noundef %70, ptr noundef %71, ptr noundef nonnull align 4 dereferenceable(4) %18, i32 noundef 1000)
  %72 = load i32, ptr %4, align 4, !tbaa !5
  %73 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z13readIntOptionPKciPPcRii(ptr noundef @.str.26, i32 noundef %72, ptr noundef %73, ptr noundef nonnull align 4 dereferenceable(4) %20, i32 noundef 1)
  %74 = load i32, ptr %4, align 4, !tbaa !5
  %75 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z13readIntOptionPKciPPcRii(ptr noundef @.str.27, i32 noundef %74, ptr noundef %75, ptr noundef nonnull align 4 dereferenceable(4) %22, i32 noundef 0)
  %76 = load i32, ptr %4, align 4, !tbaa !5
  %77 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z10readOptionPKciPPcRb(ptr noundef @.str.28, i32 noundef %76, ptr noundef %77, ptr noundef nonnull align 1 dereferenceable(1) %10)
  %78 = load i8, ptr %10, align 1, !tbaa !11, !range !13, !noundef !14
  %79 = trunc i8 %78 to i1
  br i1 %79, label %83, label %80

80:                                               ; preds = %2
  %81 = load i32, ptr %4, align 4, !tbaa !5
  %82 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z10readOptionPKciPPcRb(ptr noundef @.str.29, i32 noundef %81, ptr noundef %82, ptr noundef nonnull align 1 dereferenceable(1) %10)
  br label %83

83:                                               ; preds = %80, %2
  %84 = load i32, ptr %4, align 4, !tbaa !5
  %85 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z10readOptionPKciPPcRb(ptr noundef @.str.30, i32 noundef %84, ptr noundef %85, ptr noundef nonnull align 1 dereferenceable(1) %11)
  %86 = load i32, ptr %4, align 4, !tbaa !5
  %87 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z10readOptionPKciPPcRb(ptr noundef @.str.31, i32 noundef %86, ptr noundef %87, ptr noundef nonnull align 1 dereferenceable(1) %9)
  %88 = load i32, ptr %4, align 4, !tbaa !5
  %89 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z10readOptionPKciPPcRb(ptr noundef @.str.32, i32 noundef %88, ptr noundef %89, ptr noundef nonnull align 1 dereferenceable(1) %12)
  %90 = load i32, ptr %4, align 4, !tbaa !5
  %91 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z10readOptionPKciPPcRb(ptr noundef @.str.33, i32 noundef %90, ptr noundef %91, ptr noundef nonnull align 1 dereferenceable(1) %14)
  %92 = load i32, ptr %4, align 4, !tbaa !5
  %93 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z10readOptionPKciPPcRb(ptr noundef @.str.34, i32 noundef %92, ptr noundef %93, ptr noundef nonnull align 1 dereferenceable(1) %15)
  %94 = load i32, ptr %4, align 4, !tbaa !5
  %95 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z10readOptionPKciPPcRb(ptr noundef @.str.35, i32 noundef %94, ptr noundef %95, ptr noundef nonnull align 1 dereferenceable(1) %16)
  %96 = load i32, ptr %4, align 4, !tbaa !5
  %97 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z10readOptionPKciPPcRb(ptr noundef @.str.36, i32 noundef %96, ptr noundef %97, ptr noundef nonnull align 1 dereferenceable(1) %17)
  %98 = load i32, ptr %4, align 4, !tbaa !5
  %99 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_Z10readOptionPKciPPcRb(ptr noundef @.str.37, i32 noundef %98, ptr noundef %99, ptr noundef nonnull align 1 dereferenceable(1) %13)
  %100 = load i32, ptr %22, align 4, !tbaa !5
  call void @_ZL7store32Pvj(ptr noundef %23, i32 noundef %100)
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.38)
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %101, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %103 = load i8, ptr %9, align 1, !tbaa !11, !range !13, !noundef !14
  %104 = trunc i8 %103 to i1
  br i1 %104, label %105, label %109

105:                                              ; preds = %83
  %106 = load ptr, ptr %5, align 8, !tbaa !9
  %107 = getelementptr inbounds ptr, ptr %106, i64 0
  %108 = load ptr, ptr %107, align 8, !tbaa !9
  call void @_Z10printUsagePKc(ptr noundef %108)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %813

109:                                              ; preds = %83
  %110 = load i8, ptr %7, align 1, !tbaa !11, !range !13, !noundef !14
  %111 = trunc i8 %110 to i1
  br i1 %111, label %125, label %112

112:                                              ; preds = %109
  %113 = load i8, ptr %8, align 1, !tbaa !11, !range !13, !noundef !14
  %114 = trunc i8 %113 to i1
  br i1 %114, label %125, label %115

115:                                              ; preds = %112
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.39)
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %116, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.40)
  %119 = load ptr, ptr %5, align 8, !tbaa !9
  %120 = getelementptr inbounds ptr, ptr %119, i64 0
  %121 = load ptr, ptr %120, align 8, !tbaa !9
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %118, ptr noundef %121)
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %122, ptr noundef @.str.41)
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %813

125:                                              ; preds = %112, %109
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #11
  call void @llvm.memset.p0.i64(ptr align 4 %25, i8 0, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #11
  call void @_ZN10AtomicHashC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26)
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #11
  call void @_ZNSt6vectorIP10randomx_vmSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #11
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #11
  call void @_ZNSt6vectorISt6threadSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #11
  %126 = load i8, ptr %16, align 1, !tbaa !11, !range !13, !noundef !14
  %127 = trunc i8 %126 to i1
  br i1 %127, label %128, label %136

128:                                              ; preds = %125
  %129 = call noundef i32 @_ZNSt6thread20hardware_concurrencyEv() #11
  store i32 %129, ptr %20, align 4, !tbaa !5
  %130 = invoke i32 @randomx_get_flags()
          to label %131 unwind label %132

131:                                              ; preds = %128
  store i32 %130, ptr %31, align 4, !tbaa !15
  br label %161

132:                                              ; preds = %276, %270, %268, %265, %263, %258, %255, %253, %250, %248, %243, %240, %238, %235, %232, %227, %225, %220, %217, %215, %212, %210, %205, %201, %199, %196, %194, %189, %186, %184, %179, %176, %170, %164, %157, %151, %145, %139, %128
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %32, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %33, align 4
  br label %812

136:                                              ; preds = %125
  store i32 0, ptr %31, align 4, !tbaa !15
  %137 = load i8, ptr %14, align 1, !tbaa !11, !range !13, !noundef !14
  %138 = trunc i8 %137 to i1
  br i1 %138, label %139, label %142

139:                                              ; preds = %136
  %140 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZoRR13randomx_flagsS_(ptr noundef nonnull align 4 dereferenceable(4) %31, i32 noundef 32)
          to label %141 unwind label %132

141:                                              ; preds = %139
  br label %142

142:                                              ; preds = %141, %136
  %143 = load i8, ptr %15, align 1, !tbaa !11, !range !13, !noundef !14
  %144 = trunc i8 %143 to i1
  br i1 %144, label %145, label %148

145:                                              ; preds = %142
  %146 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZoRR13randomx_flagsS_(ptr noundef nonnull align 4 dereferenceable(4) %31, i32 noundef 64)
          to label %147 unwind label %132

147:                                              ; preds = %145
  br label %148

148:                                              ; preds = %147, %142
  %149 = load i8, ptr %6, align 1, !tbaa !11, !range !13, !noundef !14
  %150 = trunc i8 %149 to i1
  br i1 %150, label %154, label %151

151:                                              ; preds = %148
  %152 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZoRR13randomx_flagsS_(ptr noundef nonnull align 4 dereferenceable(4) %31, i32 noundef 2)
          to label %153 unwind label %132

153:                                              ; preds = %151
  br label %154

154:                                              ; preds = %153, %148
  %155 = load i8, ptr %11, align 1, !tbaa !11, !range !13, !noundef !14
  %156 = trunc i8 %155 to i1
  br i1 %156, label %157, label %160

157:                                              ; preds = %154
  %158 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZoRR13randomx_flagsS_(ptr noundef nonnull align 4 dereferenceable(4) %31, i32 noundef 8)
          to label %159 unwind label %132

159:                                              ; preds = %157
  br label %160

160:                                              ; preds = %159, %154
  br label %161

161:                                              ; preds = %160, %131
  %162 = load i8, ptr %10, align 1, !tbaa !11, !range !13, !noundef !14
  %163 = trunc i8 %162 to i1
  br i1 %163, label %164, label %167

164:                                              ; preds = %161
  %165 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZoRR13randomx_flagsS_(ptr noundef nonnull align 4 dereferenceable(4) %31, i32 noundef 1)
          to label %166 unwind label %132

166:                                              ; preds = %164
  br label %167

167:                                              ; preds = %166, %161
  %168 = load i8, ptr %7, align 1, !tbaa !11, !range !13, !noundef !14
  %169 = trunc i8 %168 to i1
  br i1 %169, label %170, label %173

170:                                              ; preds = %167
  %171 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZoRR13randomx_flagsS_(ptr noundef nonnull align 4 dereferenceable(4) %31, i32 noundef 4)
          to label %172 unwind label %132

172:                                              ; preds = %170
  br label %173

173:                                              ; preds = %172, %167
  %174 = load i8, ptr %12, align 1, !tbaa !11, !range !13, !noundef !14
  %175 = trunc i8 %174 to i1
  br i1 %175, label %176, label %179

176:                                              ; preds = %173
  %177 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZoRR13randomx_flagsS_(ptr noundef nonnull align 4 dereferenceable(4) %31, i32 noundef 16)
          to label %178 unwind label %132

178:                                              ; preds = %176
  br label %179

179:                                              ; preds = %178, %173
  %180 = load i32, ptr %31, align 4, !tbaa !15
  %181 = invoke noundef i32 @_Zan13randomx_flagsS_(i32 noundef %180, i32 noundef 64)
          to label %182 unwind label %132

182:                                              ; preds = %179
  %183 = icmp ne i32 %181, 0
  br i1 %183, label %184, label %189

184:                                              ; preds = %182
  %185 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.42)
          to label %186 unwind label %132

186:                                              ; preds = %184
  %187 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %185, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %188 unwind label %132

188:                                              ; preds = %186
  br label %205

189:                                              ; preds = %182
  %190 = load i32, ptr %31, align 4, !tbaa !15
  %191 = invoke noundef i32 @_Zan13randomx_flagsS_(i32 noundef %190, i32 noundef 32)
          to label %192 unwind label %132

192:                                              ; preds = %189
  %193 = icmp ne i32 %191, 0
  br i1 %193, label %194, label %199

194:                                              ; preds = %192
  %195 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.43)
          to label %196 unwind label %132

196:                                              ; preds = %194
  %197 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %195, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %198 unwind label %132

198:                                              ; preds = %196
  br label %204

199:                                              ; preds = %192
  %200 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.44)
          to label %201 unwind label %132

201:                                              ; preds = %199
  %202 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %200, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %203 unwind label %132

203:                                              ; preds = %201
  br label %204

204:                                              ; preds = %203, %198
  br label %205

205:                                              ; preds = %204, %188
  %206 = load i32, ptr %31, align 4, !tbaa !15
  %207 = invoke noundef i32 @_Zan13randomx_flagsS_(i32 noundef %206, i32 noundef 4)
          to label %208 unwind label %132

208:                                              ; preds = %205
  %209 = icmp ne i32 %207, 0
  br i1 %209, label %210, label %215

210:                                              ; preds = %208
  %211 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.45)
          to label %212 unwind label %132

212:                                              ; preds = %210
  %213 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %211, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %214 unwind label %132

214:                                              ; preds = %212
  br label %220

215:                                              ; preds = %208
  %216 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.46)
          to label %217 unwind label %132

217:                                              ; preds = %215
  %218 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %216, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %219 unwind label %132

219:                                              ; preds = %217
  br label %220

220:                                              ; preds = %219, %214
  %221 = load i32, ptr %31, align 4, !tbaa !15
  %222 = invoke noundef i32 @_Zan13randomx_flagsS_(i32 noundef %221, i32 noundef 8)
          to label %223 unwind label %132

223:                                              ; preds = %220
  %224 = icmp ne i32 %222, 0
  br i1 %224, label %225, label %238

225:                                              ; preds = %223
  %226 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.47)
          to label %227 unwind label %132

227:                                              ; preds = %225
  %228 = load i32, ptr %31, align 4, !tbaa !15
  %229 = invoke noundef i32 @_Zan13randomx_flagsS_(i32 noundef %228, i32 noundef 16)
          to label %230 unwind label %132

230:                                              ; preds = %227
  %231 = icmp ne i32 %229, 0
  br i1 %231, label %232, label %235

232:                                              ; preds = %230
  %233 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.48)
          to label %234 unwind label %132

234:                                              ; preds = %232
  br label %235

235:                                              ; preds = %234, %230
  %236 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %237 unwind label %132

237:                                              ; preds = %235
  br label %243

238:                                              ; preds = %223
  %239 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.49)
          to label %240 unwind label %132

240:                                              ; preds = %238
  %241 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %239, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %242 unwind label %132

242:                                              ; preds = %240
  br label %243

243:                                              ; preds = %242, %237
  %244 = load i32, ptr %31, align 4, !tbaa !15
  %245 = invoke noundef i32 @_Zan13randomx_flagsS_(i32 noundef %244, i32 noundef 2)
          to label %246 unwind label %132

246:                                              ; preds = %243
  %247 = icmp ne i32 %245, 0
  br i1 %247, label %248, label %253

248:                                              ; preds = %246
  %249 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.50)
          to label %250 unwind label %132

250:                                              ; preds = %248
  %251 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %249, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %252 unwind label %132

252:                                              ; preds = %250
  br label %258

253:                                              ; preds = %246
  %254 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.51)
          to label %255 unwind label %132

255:                                              ; preds = %253
  %256 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %254, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %257 unwind label %132

257:                                              ; preds = %255
  br label %258

258:                                              ; preds = %257, %252
  %259 = load i32, ptr %31, align 4, !tbaa !15
  %260 = invoke noundef i32 @_Zan13randomx_flagsS_(i32 noundef %259, i32 noundef 1)
          to label %261 unwind label %132

261:                                              ; preds = %258
  %262 = icmp ne i32 %260, 0
  br i1 %262, label %263, label %268

263:                                              ; preds = %261
  %264 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.52)
          to label %265 unwind label %132

265:                                              ; preds = %263
  %266 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %264, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %267 unwind label %132

267:                                              ; preds = %265
  br label %273

268:                                              ; preds = %261
  %269 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.53)
          to label %270 unwind label %132

270:                                              ; preds = %268
  %271 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %269, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %272 unwind label %132

272:                                              ; preds = %270
  br label %273

273:                                              ; preds = %272, %267
  %274 = load i64, ptr %21, align 8, !tbaa !17
  %275 = icmp ne i64 %274, 0
  br i1 %275, label %276, label %296

276:                                              ; preds = %273
  %277 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.54)
          to label %278 unwind label %132

278:                                              ; preds = %276
  call void @llvm.lifetime.start.p0(i64 32, ptr %34) #11
  %279 = load i64, ptr %21, align 8, !tbaa !17
  invoke void @_Z14mask_to_stringB5cxx11m(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %34, i64 noundef %279)
          to label %280 unwind label %287

280:                                              ; preds = %278
  %281 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %277, ptr noundef nonnull align 8 dereferenceable(32) %34)
          to label %282 unwind label %291

282:                                              ; preds = %280
  %283 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %281, ptr noundef @.str.55)
          to label %284 unwind label %291

284:                                              ; preds = %282
  %285 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %283, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %286 unwind label %291

286:                                              ; preds = %284
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %34) #11
  br label %296

287:                                              ; preds = %278
  %288 = landingpad { ptr, i32 }
          cleanup
  %289 = extractvalue { ptr, i32 } %288, 0
  store ptr %289, ptr %32, align 8
  %290 = extractvalue { ptr, i32 } %288, 1
  store i32 %290, ptr %33, align 4
  br label %295

291:                                              ; preds = %284, %282, %280
  %292 = landingpad { ptr, i32 }
          cleanup
  %293 = extractvalue { ptr, i32 } %292, 0
  store ptr %293, ptr %32, align 8
  %294 = extractvalue { ptr, i32 } %292, 1
  store i32 %294, ptr %33, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %34) #11
  br label %295

295:                                              ; preds = %291, %287
  call void @llvm.lifetime.end.p0(i64 32, ptr %34) #11
  br label %812

296:                                              ; preds = %286, %273
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #11
  %297 = load i8, ptr %17, align 1, !tbaa !11, !range !13, !noundef !14
  %298 = trunc i8 %297 to i1
  br i1 %298, label %299, label %313

299:                                              ; preds = %296
  %300 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %301 = trunc i8 %300 to i1
  br i1 %301, label %302, label %311

302:                                              ; preds = %299
  %303 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.56)
          to label %304 unwind label %307

304:                                              ; preds = %302
  %305 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %303, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %306 unwind label %307

306:                                              ; preds = %304
  store ptr @_Z4mineILb0ELb1EEvP10randomx_vmRSt6atomicIjER10AtomicHashjii, ptr %35, align 8, !tbaa !9
  br label %312

307:                                              ; preds = %348, %346, %339, %337, %334, %332, %327, %323, %321, %318, %316, %304, %302
  %308 = landingpad { ptr, i32 }
          cleanup
  %309 = extractvalue { ptr, i32 } %308, 0
  store ptr %309, ptr %32, align 8
  %310 = extractvalue { ptr, i32 } %308, 1
  store i32 %310, ptr %33, align 4
  br label %811

311:                                              ; preds = %299
  store ptr @_Z4mineILb0ELb0EEvP10randomx_vmRSt6atomicIjER10AtomicHashjii, ptr %35, align 8, !tbaa !9
  br label %312

312:                                              ; preds = %311, %306
  br label %327

313:                                              ; preds = %296
  %314 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %315 = trunc i8 %314 to i1
  br i1 %315, label %316, label %321

316:                                              ; preds = %313
  %317 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.56)
          to label %318 unwind label %307

318:                                              ; preds = %316
  %319 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %317, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %320 unwind label %307

320:                                              ; preds = %318
  store ptr @_Z4mineILb0ELb1EEvP10randomx_vmRSt6atomicIjER10AtomicHashjii, ptr %35, align 8, !tbaa !9
  br label %326

321:                                              ; preds = %313
  %322 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.57)
          to label %323 unwind label %307

323:                                              ; preds = %321
  %324 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %322, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %325 unwind label %307

325:                                              ; preds = %323
  store ptr @_Z4mineILb1ELb0EEvP10randomx_vmRSt6atomicIjER10AtomicHashjii, ptr %35, align 8, !tbaa !9
  br label %326

326:                                              ; preds = %325, %320
  br label %327

327:                                              ; preds = %326, %312
  %328 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.58)
          to label %329 unwind label %307

329:                                              ; preds = %327
  %330 = load i8, ptr %7, align 1, !tbaa !11, !range !13, !noundef !14
  %331 = trunc i8 %330 to i1
  br i1 %331, label %332, label %346

332:                                              ; preds = %329
  %333 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.59)
          to label %334 unwind label %307

334:                                              ; preds = %332
  %335 = load i32, ptr %20, align 4, !tbaa !5
  %336 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %333, i32 noundef %335)
          to label %337 unwind label %307

337:                                              ; preds = %334
  %338 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %336, ptr noundef @.str.60)
          to label %339 unwind label %307

339:                                              ; preds = %337
  %340 = load i32, ptr %20, align 4, !tbaa !5
  %341 = icmp sgt i32 %340, 1
  %342 = zext i1 %341 to i64
  %343 = select i1 %341, ptr @.str.61, ptr @.str.55
  %344 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %338, ptr noundef %343)
          to label %345 unwind label %307

345:                                              ; preds = %339
  br label %346

346:                                              ; preds = %345, %329
  %347 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.62)
          to label %348 unwind label %307

348:                                              ; preds = %346
  %349 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %347, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %350 unwind label %307

350:                                              ; preds = %348
  %351 = load i32, ptr %31, align 4, !tbaa !15
  %352 = invoke noundef ptr @_ZN7randomx15selectArgonImplE13randomx_flags(i32 noundef %351)
          to label %353 unwind label %358

353:                                              ; preds = %350
  %354 = icmp eq ptr null, %352
  br i1 %354, label %355, label %366

355:                                              ; preds = %353
  %356 = call ptr @__cxa_allocate_exception(i64 16) #11
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %356, ptr noundef @.str.63)
          to label %357 unwind label %362

357:                                              ; preds = %355
  invoke void @__cxa_throw(ptr %356, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #12
          to label %823 unwind label %358

358:                                              ; preds = %386, %384, %379, %374, %366, %357, %350
  %359 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  %360 = extractvalue { ptr, i32 } %359, 0
  store ptr %360, ptr %32, align 8
  %361 = extractvalue { ptr, i32 } %359, 1
  store i32 %361, ptr %33, align 4
  br label %744

362:                                              ; preds = %355
  %363 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  %364 = extractvalue { ptr, i32 } %363, 0
  store ptr %364, ptr %32, align 8
  %365 = extractvalue { ptr, i32 } %363, 1
  store i32 %365, ptr %33, align 4
  call void @__cxa_free_exception(ptr %356) #11
  br label %744

366:                                              ; preds = %353
  %367 = load i32, ptr %31, align 4, !tbaa !15
  %368 = invoke noundef i32 @_Zan13randomx_flagsS_(i32 noundef %367, i32 noundef 8)
          to label %369 unwind label %358

369:                                              ; preds = %366
  %370 = icmp ne i32 %368, 0
  br i1 %370, label %371, label %379

371:                                              ; preds = %369
  br i1 true, label %379, label %372

372:                                              ; preds = %371
  %373 = call ptr @__cxa_allocate_exception(i64 16) #11
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %373, ptr noundef @.str.64)
          to label %374 unwind label %375

374:                                              ; preds = %372
  invoke void @__cxa_throw(ptr %373, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #12
          to label %823 unwind label %358

375:                                              ; preds = %372
  %376 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  %377 = extractvalue { ptr, i32 } %376, 0
  store ptr %377, ptr %32, align 8
  %378 = extractvalue { ptr, i32 } %376, 1
  store i32 %378, ptr %33, align 4
  call void @__cxa_free_exception(ptr %373) #11
  br label %744

379:                                              ; preds = %371, %369
  %380 = load i32, ptr %31, align 4, !tbaa !15
  %381 = invoke noundef i32 @_Zan13randomx_flagsS_(i32 noundef %380, i32 noundef 8)
          to label %382 unwind label %358

382:                                              ; preds = %379
  %383 = icmp ne i32 %381, 0
  br i1 %383, label %389, label %384

384:                                              ; preds = %382
  %385 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.65)
          to label %386 unwind label %358

386:                                              ; preds = %384
  %387 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %385, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %388 unwind label %358

388:                                              ; preds = %386
  br label %389

389:                                              ; preds = %388, %382
  call void @llvm.lifetime.start.p0(i64 24, ptr %36) #11
  invoke void @_ZN9StopwatchC2Eb(ptr noundef nonnull align 8 dereferenceable(17) %36, i1 noundef zeroext true)
          to label %390 unwind label %398

390:                                              ; preds = %389
  %391 = load i32, ptr %31, align 4, !tbaa !15
  %392 = invoke ptr @randomx_alloc_cache(i32 noundef %391)
          to label %393 unwind label %398

393:                                              ; preds = %390
  store ptr %392, ptr %30, align 8, !tbaa !9
  %394 = load ptr, ptr %30, align 8, !tbaa !9
  %395 = icmp eq ptr %394, null
  br i1 %395, label %396, label %402

396:                                              ; preds = %393
  %397 = call ptr @__cxa_allocate_exception(i64 8) #11
  call void @llvm.memset.p0.i64(ptr align 16 %397, i8 0, i64 8, i1 false)
  call void @_ZN19CacheAllocExceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %397) #11
  invoke void @__cxa_throw(ptr %397, ptr @_ZTI19CacheAllocException, ptr @_ZNSt9exceptionD2Ev) #12
          to label %823 unwind label %398

398:                                              ; preds = %578, %576, %574, %571, %569, %514, %512, %509, %507, %505, %503, %501, %499, %497, %413, %407, %402, %396, %390, %389
  %399 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  %400 = extractvalue { ptr, i32 } %399, 0
  store ptr %400, ptr %32, align 8
  %401 = extractvalue { ptr, i32 } %399, 1
  store i32 %401, ptr %33, align 4
  br label %743

402:                                              ; preds = %393
  %403 = load ptr, ptr %30, align 8, !tbaa !9
  invoke void @randomx_init_cache(ptr noundef %403, ptr noundef %23, i64 noundef 4)
          to label %404 unwind label %398

404:                                              ; preds = %402
  %405 = load i8, ptr %7, align 1, !tbaa !11, !range !13, !noundef !14
  %406 = trunc i8 %405 to i1
  br i1 %406, label %407, label %497

407:                                              ; preds = %404
  %408 = load i32, ptr %31, align 4, !tbaa !15
  %409 = invoke ptr @randomx_alloc_dataset(i32 noundef %408)
          to label %410 unwind label %398

410:                                              ; preds = %407
  store ptr %409, ptr %29, align 8, !tbaa !9
  %411 = load ptr, ptr %29, align 8, !tbaa !9
  %412 = icmp eq ptr %411, null
  br i1 %412, label %413, label %415

413:                                              ; preds = %410
  %414 = call ptr @__cxa_allocate_exception(i64 8) #11
  call void @llvm.memset.p0.i64(ptr align 16 %414, i8 0, i64 8, i1 false)
  call void @_ZN21DatasetAllocExceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %414) #11
  invoke void @__cxa_throw(ptr %414, ptr @_ZTI21DatasetAllocException, ptr @_ZNSt9exceptionD2Ev) #12
          to label %823 unwind label %398

415:                                              ; preds = %410
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #11
  %416 = invoke i64 @randomx_dataset_item_count()
          to label %417 unwind label %433

417:                                              ; preds = %415
  %418 = trunc i64 %416 to i32
  store i32 %418, ptr %37, align 4, !tbaa !5
  %419 = load i32, ptr %20, align 4, !tbaa !5
  %420 = icmp sgt i32 %419, 1
  br i1 %420, label %421, label %487

421:                                              ; preds = %417
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #11
  %422 = load i32, ptr %37, align 4, !tbaa !5
  %423 = load i32, ptr %20, align 4, !tbaa !5
  %424 = udiv i32 %422, %423
  store i32 %424, ptr %38, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #11
  %425 = load i32, ptr %37, align 4, !tbaa !5
  %426 = load i32, ptr %20, align 4, !tbaa !5
  %427 = urem i32 %425, %426
  store i32 %427, ptr %39, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #11
  store i32 0, ptr %40, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #11
  store i32 0, ptr %41, align 4, !tbaa !5
  br label %428

428:                                              ; preds = %454, %421
  %429 = load i32, ptr %41, align 4, !tbaa !5
  %430 = load i32, ptr %20, align 4, !tbaa !5
  %431 = icmp slt i32 %429, %430
  br i1 %431, label %437, label %432

432:                                              ; preds = %428
  store i32 2, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #11
  br label %466

433:                                              ; preds = %493, %487, %415
  %434 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  %435 = extractvalue { ptr, i32 } %434, 0
  store ptr %435, ptr %32, align 8
  %436 = extractvalue { ptr, i32 } %434, 1
  store i32 %436, ptr %33, align 4
  br label %496

437:                                              ; preds = %428
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #11
  %438 = load i32, ptr %38, align 4, !tbaa !5
  %439 = load i32, ptr %41, align 4, !tbaa !5
  %440 = load i32, ptr %20, align 4, !tbaa !5
  %441 = sub nsw i32 %440, 1
  %442 = icmp eq i32 %439, %441
  br i1 %442, label %443, label %445

443:                                              ; preds = %437
  %444 = load i32, ptr %39, align 4, !tbaa !5
  br label %446

445:                                              ; preds = %437
  br label %446

446:                                              ; preds = %445, %443
  %447 = phi i32 [ %444, %443 ], [ 0, %445 ]
  %448 = add i32 %438, %447
  store i32 %448, ptr %42, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #11
  store ptr @randomx_init_dataset, ptr %44, align 8, !tbaa !9
  invoke void @_ZNSt6threadC2IPFvP15randomx_datasetP13randomx_cachemmEJRS2_RS4_RjS9_EvEEOT_DpOT0_(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 4 dereferenceable(4) %40, ptr noundef nonnull align 4 dereferenceable(4) %42)
          to label %449 unwind label %457

449:                                              ; preds = %446
  invoke void @_ZNSt6vectorISt6threadSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(8) %43)
          to label %450 unwind label %461

450:                                              ; preds = %449
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %43) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #11
  %451 = load i32, ptr %42, align 4, !tbaa !5
  %452 = load i32, ptr %40, align 4, !tbaa !5
  %453 = add i32 %452, %451
  store i32 %453, ptr %40, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #11
  br label %454

454:                                              ; preds = %450
  %455 = load i32, ptr %41, align 4, !tbaa !5
  %456 = add nsw i32 %455, 1
  store i32 %456, ptr %41, align 4, !tbaa !5
  br label %428, !llvm.loop !19

457:                                              ; preds = %446
  %458 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  %459 = extractvalue { ptr, i32 } %458, 0
  store ptr %459, ptr %32, align 8
  %460 = extractvalue { ptr, i32 } %458, 1
  store i32 %460, ptr %33, align 4
  br label %465

461:                                              ; preds = %449
  %462 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  %463 = extractvalue { ptr, i32 } %462, 0
  store ptr %463, ptr %32, align 8
  %464 = extractvalue { ptr, i32 } %462, 1
  store i32 %464, ptr %33, align 4
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %43) #11
  br label %465

465:                                              ; preds = %461, %457
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #11
  br label %486

466:                                              ; preds = %432
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #11
  store i32 0, ptr %45, align 4, !tbaa !5
  br label %467

467:                                              ; preds = %478, %466
  %468 = load i32, ptr %45, align 4, !tbaa !5
  %469 = zext i32 %468 to i64
  %470 = call noundef i64 @_ZNKSt6vectorISt6threadSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #11
  %471 = icmp ult i64 %469, %470
  br i1 %471, label %473, label %472

472:                                              ; preds = %467
  store i32 5, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #11
  br label %485

473:                                              ; preds = %467
  %474 = load i32, ptr %45, align 4, !tbaa !5
  %475 = zext i32 %474 to i64
  %476 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt6threadSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %475) #11
  invoke void @_ZNSt6thread4joinEv(ptr noundef nonnull align 8 dereferenceable(8) %476)
          to label %477 unwind label %481

477:                                              ; preds = %473
  br label %478

478:                                              ; preds = %477
  %479 = load i32, ptr %45, align 4, !tbaa !5
  %480 = add i32 %479, 1
  store i32 %480, ptr %45, align 4, !tbaa !5
  br label %467, !llvm.loop !21

481:                                              ; preds = %473
  %482 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  %483 = extractvalue { ptr, i32 } %482, 0
  store ptr %483, ptr %32, align 8
  %484 = extractvalue { ptr, i32 } %482, 1
  store i32 %484, ptr %33, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #11
  br label %486

485:                                              ; preds = %472
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #11
  br label %493

486:                                              ; preds = %481, %465
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #11
  br label %496

487:                                              ; preds = %417
  %488 = load ptr, ptr %29, align 8, !tbaa !9
  %489 = load ptr, ptr %30, align 8, !tbaa !9
  %490 = load i32, ptr %37, align 4, !tbaa !5
  %491 = zext i32 %490 to i64
  invoke void @randomx_init_dataset(ptr noundef %488, ptr noundef %489, i64 noundef 0, i64 noundef %491)
          to label %492 unwind label %433

492:                                              ; preds = %487
  br label %493

493:                                              ; preds = %492, %485
  %494 = load ptr, ptr %30, align 8, !tbaa !9
  invoke void @randomx_release_cache(ptr noundef %494)
          to label %495 unwind label %433

495:                                              ; preds = %493
  store ptr null, ptr %30, align 8, !tbaa !9
  call void @_ZNSt6vectorISt6threadSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #11
  br label %497

496:                                              ; preds = %486, %433
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #11
  br label %743

497:                                              ; preds = %495, %404
  %498 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.66)
          to label %499 unwind label %398

499:                                              ; preds = %497
  %500 = invoke noundef double @_ZNK9Stopwatch10getElapsedEv(ptr noundef nonnull align 8 dereferenceable(17) %36)
          to label %501 unwind label %398

501:                                              ; preds = %499
  %502 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %498, double noundef %500)
          to label %503 unwind label %398

503:                                              ; preds = %501
  %504 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %502, ptr noundef @.str.67)
          to label %505 unwind label %398

505:                                              ; preds = %503
  %506 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %504, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %507 unwind label %398

507:                                              ; preds = %505
  %508 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.68)
          to label %509 unwind label %398

509:                                              ; preds = %507
  %510 = load i32, ptr %19, align 4, !tbaa !5
  %511 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %508, i32 noundef %510)
          to label %512 unwind label %398

512:                                              ; preds = %509
  %513 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %511, ptr noundef @.str.69)
          to label %514 unwind label %398

514:                                              ; preds = %512
  %515 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %513, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %516 unwind label %398

516:                                              ; preds = %514
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #11
  store i32 0, ptr %46, align 4, !tbaa !5
  br label %517

517:                                              ; preds = %565, %516
  %518 = load i32, ptr %46, align 4, !tbaa !5
  %519 = load i32, ptr %19, align 4, !tbaa !5
  %520 = icmp slt i32 %518, %519
  br i1 %520, label %522, label %521

521:                                              ; preds = %517
  store i32 8, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #11
  br label %569

522:                                              ; preds = %517
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #11
  %523 = load i32, ptr %31, align 4, !tbaa !15
  %524 = load ptr, ptr %30, align 8, !tbaa !9
  %525 = load ptr, ptr %29, align 8, !tbaa !9
  %526 = invoke ptr @randomx_create_vm(i32 noundef %523, ptr noundef %524, ptr noundef %525)
          to label %527 unwind label %538

527:                                              ; preds = %522
  store ptr %526, ptr %47, align 8, !tbaa !9
  %528 = load ptr, ptr %47, align 8, !tbaa !9
  %529 = icmp eq ptr %528, null
  br i1 %529, label %530, label %563

530:                                              ; preds = %527
  %531 = load i32, ptr %31, align 4, !tbaa !15
  %532 = invoke noundef i32 @_Zan13randomx_flagsS_(i32 noundef %531, i32 noundef 2)
          to label %533 unwind label %538

533:                                              ; preds = %530
  %534 = icmp ne i32 %532, 0
  br i1 %534, label %535, label %546

535:                                              ; preds = %533
  %536 = call ptr @__cxa_allocate_exception(i64 16) #11
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %536, ptr noundef @.str.70)
          to label %537 unwind label %542

537:                                              ; preds = %535
  invoke void @__cxa_throw(ptr %536, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #12
          to label %823 unwind label %538

538:                                              ; preds = %563, %558, %551, %537, %530, %522
  %539 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  %540 = extractvalue { ptr, i32 } %539, 0
  store ptr %540, ptr %32, align 8
  %541 = extractvalue { ptr, i32 } %539, 1
  store i32 %541, ptr %33, align 4
  br label %568

542:                                              ; preds = %535
  %543 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  %544 = extractvalue { ptr, i32 } %543, 0
  store ptr %544, ptr %32, align 8
  %545 = extractvalue { ptr, i32 } %543, 1
  store i32 %545, ptr %33, align 4
  call void @__cxa_free_exception(ptr %536) #11
  br label %568

546:                                              ; preds = %533
  %547 = load i8, ptr %10, align 1, !tbaa !11, !range !13, !noundef !14
  %548 = trunc i8 %547 to i1
  br i1 %548, label %549, label %556

549:                                              ; preds = %546
  %550 = call ptr @__cxa_allocate_exception(i64 16) #11
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %550, ptr noundef @.str.71)
          to label %551 unwind label %552

551:                                              ; preds = %549
  invoke void @__cxa_throw(ptr %550, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #12
          to label %823 unwind label %538

552:                                              ; preds = %549
  %553 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  %554 = extractvalue { ptr, i32 } %553, 0
  store ptr %554, ptr %32, align 8
  %555 = extractvalue { ptr, i32 } %553, 1
  store i32 %555, ptr %33, align 4
  call void @__cxa_free_exception(ptr %550) #11
  br label %568

556:                                              ; preds = %546
  %557 = call ptr @__cxa_allocate_exception(i64 16) #11
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %557, ptr noundef @.str.72)
          to label %558 unwind label %559

558:                                              ; preds = %556
  invoke void @__cxa_throw(ptr %557, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #12
          to label %823 unwind label %538

559:                                              ; preds = %556
  %560 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  %561 = extractvalue { ptr, i32 } %560, 0
  store ptr %561, ptr %32, align 8
  %562 = extractvalue { ptr, i32 } %560, 1
  store i32 %562, ptr %33, align 4
  call void @__cxa_free_exception(ptr %557) #11
  br label %568

563:                                              ; preds = %527
  invoke void @_ZNSt6vectorIP10randomx_vmSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(8) %47)
          to label %564 unwind label %538

564:                                              ; preds = %563
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #11
  br label %565

565:                                              ; preds = %564
  %566 = load i32, ptr %46, align 4, !tbaa !5
  %567 = add nsw i32 %566, 1
  store i32 %567, ptr %46, align 4, !tbaa !5
  br label %517, !llvm.loop !22

568:                                              ; preds = %559, %552, %542, %538
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #11
  br label %743

569:                                              ; preds = %521
  %570 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.73)
          to label %571 unwind label %398

571:                                              ; preds = %569
  %572 = load i32, ptr %18, align 4, !tbaa !5
  %573 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %570, i32 noundef %572)
          to label %574 unwind label %398

574:                                              ; preds = %571
  %575 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %573, ptr noundef @.str.74)
          to label %576 unwind label %398

576:                                              ; preds = %574
  %577 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %575, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %578 unwind label %398

578:                                              ; preds = %576
  invoke void @_ZN9Stopwatch7restartEv(ptr noundef nonnull align 8 dereferenceable(17) %36)
          to label %579 unwind label %398

579:                                              ; preds = %578
  %580 = load i32, ptr %19, align 4, !tbaa !5
  %581 = icmp sgt i32 %580, 1
  br i1 %581, label %582, label %643

582:                                              ; preds = %579
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #11
  store i32 0, ptr %48, align 4, !tbaa !5
  br label %583

583:                                              ; preds = %610, %582
  %584 = load i32, ptr %48, align 4, !tbaa !5
  %585 = zext i32 %584 to i64
  %586 = call noundef i64 @_ZNKSt6vectorIP10randomx_vmSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #11
  %587 = icmp ult i64 %585, %586
  br i1 %587, label %589, label %588

588:                                              ; preds = %583
  store i32 11, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #11
  br label %623

589:                                              ; preds = %583
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #11
  store i32 -1, ptr %49, align 4, !tbaa !5
  %590 = load i64, ptr %21, align 8, !tbaa !17
  %591 = icmp ne i64 %590, 0
  br i1 %591, label %592, label %600

592:                                              ; preds = %589
  %593 = load i64, ptr %21, align 8, !tbaa !17
  %594 = invoke noundef i32 @_Z15cpuid_from_maskmRKj(i64 noundef %593, ptr noundef nonnull align 4 dereferenceable(4) %48)
          to label %595 unwind label %596

595:                                              ; preds = %592
  store i32 %594, ptr %49, align 4, !tbaa !5
  br label %600

596:                                              ; preds = %592
  %597 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  %598 = extractvalue { ptr, i32 } %597, 0
  store ptr %598, ptr %32, align 8
  %599 = extractvalue { ptr, i32 } %597, 1
  store i32 %599, ptr %33, align 4
  br label %622

600:                                              ; preds = %595, %589
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #11
  %601 = load i32, ptr %48, align 4, !tbaa !5
  %602 = zext i32 %601 to i64
  %603 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10randomx_vmSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %602) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #11
  %604 = call ptr @_ZSt3refISt6atomicIjEESt17reference_wrapperIT_ERS3_(ptr noundef nonnull align 4 dereferenceable(4) %25) #11
  %605 = getelementptr inbounds %"class.std::reference_wrapper", ptr %51, i32 0, i32 0
  store ptr %604, ptr %605, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #11
  %606 = call ptr @_ZSt3refI10AtomicHashESt17reference_wrapperIT_ERS2_(ptr noundef nonnull align 8 dereferenceable(32) %26) #11
  %607 = getelementptr inbounds %"class.std::reference_wrapper.11", ptr %52, i32 0, i32 0
  store ptr %606, ptr %607, align 8
  invoke void @_ZNSt6threadC2IRPFvP10randomx_vmRSt6atomicIjER10AtomicHashjiiEJRS2_St17reference_wrapperIS4_ESC_IS6_ERiRjSF_EvEEOT_DpOT0_(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %603, ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %48, ptr noundef nonnull align 4 dereferenceable(4) %49)
          to label %608 unwind label %613

608:                                              ; preds = %600
  invoke void @_ZNSt6vectorISt6threadSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(8) %50)
          to label %609 unwind label %617

609:                                              ; preds = %608
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %50) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #11
  br label %610

610:                                              ; preds = %609
  %611 = load i32, ptr %48, align 4, !tbaa !5
  %612 = add i32 %611, 1
  store i32 %612, ptr %48, align 4, !tbaa !5
  br label %583, !llvm.loop !23

613:                                              ; preds = %600
  %614 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  %615 = extractvalue { ptr, i32 } %614, 0
  store ptr %615, ptr %32, align 8
  %616 = extractvalue { ptr, i32 } %614, 1
  store i32 %616, ptr %33, align 4
  br label %621

617:                                              ; preds = %608
  %618 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  %619 = extractvalue { ptr, i32 } %618, 0
  store ptr %619, ptr %32, align 8
  %620 = extractvalue { ptr, i32 } %618, 1
  store i32 %620, ptr %33, align 4
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %50) #11
  br label %621

621:                                              ; preds = %617, %613
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #11
  br label %622

622:                                              ; preds = %621, %596
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #11
  br label %743

623:                                              ; preds = %588
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #11
  store i32 0, ptr %53, align 4, !tbaa !5
  br label %624

624:                                              ; preds = %635, %623
  %625 = load i32, ptr %53, align 4, !tbaa !5
  %626 = zext i32 %625 to i64
  %627 = call noundef i64 @_ZNKSt6vectorISt6threadSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #11
  %628 = icmp ult i64 %626, %627
  br i1 %628, label %630, label %629

629:                                              ; preds = %624
  store i32 14, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #11
  br label %642

630:                                              ; preds = %624
  %631 = load i32, ptr %53, align 4, !tbaa !5
  %632 = zext i32 %631 to i64
  %633 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt6threadSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %632) #11
  invoke void @_ZNSt6thread4joinEv(ptr noundef nonnull align 8 dereferenceable(8) %633)
          to label %634 unwind label %638

634:                                              ; preds = %630
  br label %635

635:                                              ; preds = %634
  %636 = load i32, ptr %53, align 4, !tbaa !5
  %637 = add i32 %636, 1
  store i32 %637, ptr %53, align 4, !tbaa !5
  br label %624, !llvm.loop !24

638:                                              ; preds = %630
  %639 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  %640 = extractvalue { ptr, i32 } %639, 0
  store ptr %640, ptr %32, align 8
  %641 = extractvalue { ptr, i32 } %639, 1
  store i32 %641, ptr %33, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #11
  br label %743

642:                                              ; preds = %629
  br label %659

643:                                              ; preds = %579
  %644 = load ptr, ptr %35, align 8, !tbaa !9
  %645 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10randomx_vmSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef 0) #11
  %646 = load ptr, ptr %645, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #11
  %647 = call ptr @_ZSt3refISt6atomicIjEESt17reference_wrapperIT_ERS3_(ptr noundef nonnull align 4 dereferenceable(4) %25) #11
  %648 = getelementptr inbounds %"class.std::reference_wrapper", ptr %54, i32 0, i32 0
  store ptr %647, ptr %648, align 8
  %649 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt17reference_wrapperISt6atomicIjEEcvRS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %54) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #11
  %650 = call ptr @_ZSt3refI10AtomicHashESt17reference_wrapperIT_ERS2_(ptr noundef nonnull align 8 dereferenceable(32) %26) #11
  %651 = getelementptr inbounds %"class.std::reference_wrapper.11", ptr %55, i32 0, i32 0
  store ptr %650, ptr %651, align 8
  %652 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt17reference_wrapperI10AtomicHashEcvRS0_Ev(ptr noundef nonnull align 8 dereferenceable(8) %55) #11
  %653 = load i32, ptr %18, align 4, !tbaa !5
  invoke void %644(ptr noundef %646, ptr noundef nonnull align 4 dereferenceable(4) %649, ptr noundef nonnull align 8 dereferenceable(32) %652, i32 noundef %653, i32 noundef 0, i32 noundef -1)
          to label %654 unwind label %655

654:                                              ; preds = %643
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #11
  br label %659

655:                                              ; preds = %643
  %656 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  %657 = extractvalue { ptr, i32 } %656, 0
  store ptr %657, ptr %32, align 8
  %658 = extractvalue { ptr, i32 } %656, 1
  store i32 %658, ptr %33, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #11
  br label %743

659:                                              ; preds = %654, %642
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #11
  %660 = invoke noundef double @_ZNK9Stopwatch10getElapsedEv(ptr noundef nonnull align 8 dereferenceable(17) %36)
          to label %661 unwind label %668

661:                                              ; preds = %659
  store double %660, ptr %56, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #11
  store i32 0, ptr %57, align 4, !tbaa !5
  br label %662

662:                                              ; preds = %678, %661
  %663 = load i32, ptr %57, align 4, !tbaa !5
  %664 = zext i32 %663 to i64
  %665 = call noundef i64 @_ZNKSt6vectorIP10randomx_vmSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #11
  %666 = icmp ult i64 %664, %665
  br i1 %666, label %672, label %667

667:                                              ; preds = %662
  store i32 17, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #11
  br label %685

668:                                              ; preds = %738, %736, %730, %728, %725, %723, %716, %714, %708, %706, %696, %694, %691, %688, %659
  %669 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  %670 = extractvalue { ptr, i32 } %669, 0
  store ptr %670, ptr %32, align 8
  %671 = extractvalue { ptr, i32 } %669, 1
  store i32 %671, ptr %33, align 4
  br label %742

672:                                              ; preds = %662
  %673 = load i32, ptr %57, align 4, !tbaa !5
  %674 = zext i32 %673 to i64
  %675 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10randomx_vmSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %674) #11
  %676 = load ptr, ptr %675, align 8, !tbaa !9
  invoke void @randomx_destroy_vm(ptr noundef %676)
          to label %677 unwind label %681

677:                                              ; preds = %672
  br label %678

678:                                              ; preds = %677
  %679 = load i32, ptr %57, align 4, !tbaa !5
  %680 = add i32 %679, 1
  store i32 %680, ptr %57, align 4, !tbaa !5
  br label %662, !llvm.loop !27

681:                                              ; preds = %672
  %682 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  %683 = extractvalue { ptr, i32 } %682, 0
  store ptr %683, ptr %32, align 8
  %684 = extractvalue { ptr, i32 } %682, 1
  store i32 %684, ptr %33, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #11
  br label %742

685:                                              ; preds = %667
  %686 = load i8, ptr %7, align 1, !tbaa !11, !range !13, !noundef !14
  %687 = trunc i8 %686 to i1
  br i1 %687, label %688, label %691

688:                                              ; preds = %685
  %689 = load ptr, ptr %29, align 8, !tbaa !9
  invoke void @randomx_release_dataset(ptr noundef %689)
          to label %690 unwind label %668

690:                                              ; preds = %688
  br label %694

691:                                              ; preds = %685
  %692 = load ptr, ptr %30, align 8, !tbaa !9
  invoke void @randomx_release_cache(ptr noundef %692)
          to label %693 unwind label %668

693:                                              ; preds = %691
  br label %694

694:                                              ; preds = %693, %690
  %695 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.75)
          to label %696 unwind label %668

696:                                              ; preds = %694
  invoke void @_ZN10AtomicHash5printERSo(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout)
          to label %697 unwind label %668

697:                                              ; preds = %696
  %698 = load i32, ptr %18, align 4, !tbaa !5
  %699 = icmp eq i32 %698, 1000
  br i1 %699, label %700, label %711

700:                                              ; preds = %697
  %701 = load i32, ptr %22, align 4, !tbaa !5
  %702 = icmp eq i32 %701, 0
  br i1 %702, label %703, label %711

703:                                              ; preds = %700
  %704 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %705 = trunc i8 %704 to i1
  br i1 %705, label %711, label %706

706:                                              ; preds = %703
  %707 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.76)
          to label %708 unwind label %668

708:                                              ; preds = %706
  %709 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %707, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %710 unwind label %668

710:                                              ; preds = %708
  br label %711

711:                                              ; preds = %710, %703, %700, %697
  %712 = load i8, ptr %7, align 1, !tbaa !11, !range !13, !noundef !14
  %713 = trunc i8 %712 to i1
  br i1 %713, label %728, label %714

714:                                              ; preds = %711
  %715 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.77)
          to label %716 unwind label %668

716:                                              ; preds = %714
  %717 = load double, ptr %56, align 8, !tbaa !25
  %718 = fmul double 1.000000e+03, %717
  %719 = load i32, ptr %18, align 4, !tbaa !5
  %720 = sitofp i32 %719 to double
  %721 = fdiv double %718, %720
  %722 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %715, double noundef %721)
          to label %723 unwind label %668

723:                                              ; preds = %716
  %724 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %722, ptr noundef @.str.78)
          to label %725 unwind label %668

725:                                              ; preds = %723
  %726 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %724, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %727 unwind label %668

727:                                              ; preds = %725
  br label %741

728:                                              ; preds = %711
  %729 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.77)
          to label %730 unwind label %668

730:                                              ; preds = %728
  %731 = load i32, ptr %18, align 4, !tbaa !5
  %732 = sitofp i32 %731 to double
  %733 = load double, ptr %56, align 8, !tbaa !25
  %734 = fdiv double %732, %733
  %735 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %729, double noundef %734)
          to label %736 unwind label %668

736:                                              ; preds = %730
  %737 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %735, ptr noundef @.str.79)
          to label %738 unwind label %668

738:                                              ; preds = %736
  %739 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %737, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %740 unwind label %668

740:                                              ; preds = %738
  br label %741

741:                                              ; preds = %740, %727
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #11
  br label %809

742:                                              ; preds = %681, %668
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #11
  br label %743

743:                                              ; preds = %742, %655, %638, %622, %568, %496, %398
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #11
  br label %744

744:                                              ; preds = %743, %375, %362, %358
  %745 = load i32, ptr %33, align 4
  %746 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTI15MemoryException) #11
  %747 = icmp eq i32 %745, %746
  br i1 %747, label %748, label %769

748:                                              ; preds = %744
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #11
  %749 = load ptr, ptr %32, align 8
  %750 = call ptr @__cxa_begin_catch(ptr %749) #11
  store ptr %750, ptr %59, align 8
  %751 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.80)
          to label %752 unwind label %797

752:                                              ; preds = %748
  %753 = load ptr, ptr %59, align 8, !tbaa !9
  %754 = load ptr, ptr %753, align 8, !tbaa !28
  %755 = getelementptr inbounds ptr, ptr %754, i64 2
  %756 = load ptr, ptr %755, align 8
  %757 = call noundef ptr %756(ptr noundef nonnull align 8 dereferenceable(8) %753) #11
  %758 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %751, ptr noundef %757)
          to label %759 unwind label %797

759:                                              ; preds = %752
  %760 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %758, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %761 unwind label %797

761:                                              ; preds = %759
  %762 = load i8, ptr %10, align 1, !tbaa !11, !range !13, !noundef !14
  %763 = trunc i8 %762 to i1
  br i1 %763, label %764, label %801

764:                                              ; preds = %761
  %765 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.81)
          to label %766 unwind label %797

766:                                              ; preds = %764
  %767 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %765, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %768 unwind label %797

768:                                              ; preds = %766
  br label %801

769:                                              ; preds = %744
  %770 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #11
  %771 = icmp eq i32 %745, %770
  br i1 %771, label %772, label %811

772:                                              ; preds = %769
  call void @llvm.lifetime.start.p0(i64 8, ptr %58) #11
  %773 = load ptr, ptr %32, align 8
  %774 = call ptr @__cxa_begin_catch(ptr %773) #11
  store ptr %774, ptr %58, align 8
  %775 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.80)
          to label %776 unwind label %786

776:                                              ; preds = %772
  %777 = load ptr, ptr %58, align 8, !tbaa !9
  %778 = load ptr, ptr %777, align 8, !tbaa !28
  %779 = getelementptr inbounds ptr, ptr %778, i64 2
  %780 = load ptr, ptr %779, align 8
  %781 = call noundef ptr %780(ptr noundef nonnull align 8 dereferenceable(8) %777) #11
  %782 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %775, ptr noundef %781)
          to label %783 unwind label %786

783:                                              ; preds = %776
  %784 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %782, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %785 unwind label %786

785:                                              ; preds = %783
  store i32 1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  invoke void @__cxa_end_catch()
          to label %790 unwind label %791

786:                                              ; preds = %783, %776, %772
  %787 = landingpad { ptr, i32 }
          cleanup
  %788 = extractvalue { ptr, i32 } %787, 0
  store ptr %788, ptr %32, align 8
  %789 = extractvalue { ptr, i32 } %787, 1
  store i32 %789, ptr %33, align 4
  invoke void @__cxa_end_catch()
          to label %795 unwind label %820

790:                                              ; preds = %785
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #11
  br label %810

791:                                              ; preds = %785
  %792 = landingpad { ptr, i32 }
          cleanup
  %793 = extractvalue { ptr, i32 } %792, 0
  store ptr %793, ptr %32, align 8
  %794 = extractvalue { ptr, i32 } %792, 1
  store i32 %794, ptr %33, align 4
  br label %796

795:                                              ; preds = %786
  br label %796

796:                                              ; preds = %795, %791
  call void @llvm.lifetime.end.p0(i64 8, ptr %58) #11
  br label %811

797:                                              ; preds = %766, %764, %759, %752, %748
  %798 = landingpad { ptr, i32 }
          cleanup
  %799 = extractvalue { ptr, i32 } %798, 0
  store ptr %799, ptr %32, align 8
  %800 = extractvalue { ptr, i32 } %798, 1
  store i32 %800, ptr %33, align 4
  invoke void @__cxa_end_catch()
          to label %807 unwind label %820

801:                                              ; preds = %768, %761
  store i32 1, ptr %3, align 4
  store i32 1, ptr %24, align 4
  invoke void @__cxa_end_catch()
          to label %802 unwind label %803

802:                                              ; preds = %801
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #11
  br label %810

803:                                              ; preds = %801
  %804 = landingpad { ptr, i32 }
          cleanup
  %805 = extractvalue { ptr, i32 } %804, 0
  store ptr %805, ptr %32, align 8
  %806 = extractvalue { ptr, i32 } %804, 1
  store i32 %806, ptr %33, align 4
  br label %808

807:                                              ; preds = %797
  br label %808

808:                                              ; preds = %807, %803
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #11
  br label %811

809:                                              ; preds = %741
  store i32 0, ptr %3, align 4
  store i32 1, ptr %24, align 4
  br label %810

810:                                              ; preds = %809, %802, %790
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #11
  call void @_ZNSt6vectorISt6threadSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #11
  call void @_ZNSt6vectorIP10randomx_vmSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #11
  br label %813

811:                                              ; preds = %808, %796, %769, %307
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #11
  br label %812

812:                                              ; preds = %811, %295, %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #11
  call void @_ZNSt6vectorISt6threadSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %28) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #11
  call void @_ZNSt6vectorIP10randomx_vmSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #11
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #11
  br label %815

813:                                              ; preds = %810, %115, %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #11
  %814 = load i32, ptr %3, align 4
  ret i32 %814

815:                                              ; preds = %812
  %816 = load ptr, ptr %32, align 8
  %817 = load i32, ptr %33, align 4
  %818 = insertvalue { ptr, i32 } poison, ptr %816, 0
  %819 = insertvalue { ptr, i32 } %818, i32 %817, 1
  resume { ptr, i32 } %819

820:                                              ; preds = %797, %786
  %821 = landingpad { ptr, i32 }
          catch ptr null
  %822 = extractvalue { ptr, i32 } %821, 0
  call void @__clang_call_terminate(ptr %822) #13
  unreachable

823:                                              ; preds = %558, %551, %537, %413, %396, %374, %357
  unreachable
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z10readOptionPKciPPcRb(ptr noundef, i32 noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z13readIntOptionPKciPPcRii(ptr noundef, i32 noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z16readUInt64OptionPKciPPcRmm(ptr noundef, i32 noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL7store32Pvj(ptr noundef, i32 noundef) #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10AtomicHashC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP10randomx_vmSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt6threadSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #6 align 2

; Function Attrs: nounwind
declare noundef i32 @_ZNSt6thread20hardware_concurrencyEv() #7

declare i32 @randomx_get_flags() #8

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZoRR13randomx_flagsS_(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Zan13randomx_flagsS_(i32 noundef, i32 noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #2

declare void @_Z14mask_to_stringB5cxx11m(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, i64 noundef) #8

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4mineILb0ELb1EEvP10randomx_vmRSt6atomicIjER10AtomicHashjii(ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4mineILb0ELb0EEvP10randomx_vmRSt6atomicIjER10AtomicHashjii(ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4mineILb1ELb0EEvP10randomx_vmRSt6atomicIjER10AtomicHashjii(ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, i32 noundef) #1

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #8

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN7randomx15selectArgonImplE13randomx_flags(i32 noundef) #2

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #8

declare void @__cxa_free_exception(ptr)

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

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9StopwatchC2Eb(ptr noundef nonnull align 8 dereferenceable(17), i1 noundef zeroext) unnamed_addr #1 align 2

declare ptr @randomx_alloc_cache(i32 noundef) #8

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN19CacheAllocExceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4 align 2

declare void @randomx_init_cache(ptr noundef, ptr noundef, i64 noundef) #8

declare ptr @randomx_alloc_dataset(i32 noundef) #8

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN21DatasetAllocExceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4 align 2

; Function Attrs: nounwind
declare void @_ZNSt9exceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #7

declare i64 @randomx_dataset_item_count() #8

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt6threadSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

declare void @randomx_init_dataset(ptr noundef, ptr noundef, i64 noundef, i64 noundef) #8

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6threadC2IPFvP15randomx_datasetP13randomx_cachemmEJRS2_RS4_RjS9_EvEEOT_DpOT0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6 align 2

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

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

declare void @_ZNSt6thread4joinEv(ptr noundef nonnull align 8 dereferenceable(8)) #8

declare void @randomx_release_cache(ptr noundef) #8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt6threadSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #6 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK9Stopwatch10getElapsedEv(ptr noundef nonnull align 8 dereferenceable(17)) #1 align 2

declare ptr @randomx_create_vm(i32 noundef, ptr noundef, ptr noundef) #8

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP10randomx_vmSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9Stopwatch7restartEv(ptr noundef nonnull align 8 dereferenceable(17)) #6 align 2

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

declare noundef i32 @_Z15cpuid_from_maskmRKj(i64 noundef, ptr noundef nonnull align 4 dereferenceable(4)) #8

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZSt3refISt6atomicIjEESt17reference_wrapperIT_ERS3_(ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZSt3refI10AtomicHashESt17reference_wrapperIT_ERS2_(ptr noundef nonnull align 8 dereferenceable(32)) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6threadC2IRPFvP10randomx_vmRSt6atomicIjER10AtomicHashjiiEJRS2_St17reference_wrapperIS4_ESC_IS6_ERiRjSF_EvEEOT_DpOT0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt17reference_wrapperISt6atomicIjEEcvRS1_Ev(ptr noundef nonnull align 8 dereferenceable(8)) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt17reference_wrapperI10AtomicHashEcvRS0_Ev(ptr noundef nonnull align 8 dereferenceable(8)) #6 align 2

declare void @randomx_destroy_vm(ptr noundef) #8

declare void @randomx_release_dataset(ptr noundef) #8

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10AtomicHash5printERSo(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #9

declare ptr @__cxa_begin_catch(ptr)

declare void @__cxa_end_catch()

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #10

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt6threadSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP10randomx_vmSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #6 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"_ZTS13randomx_flags", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}
!25 = !{!26, !26, i64 0}
!26 = !{!"double", !7, i64 0}
!27 = distinct !{!27, !20}
!28 = !{!29, !29, i64 0}
!29 = !{!"vtable pointer", !8, i64 0}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%class.AtomicHash = type { [4 x %"struct.std::atomic.0"] }
%"struct.std::atomic.0" = type { %"struct.std::__atomic_base.1" }
%"struct.std::__atomic_base.1" = type { i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<randomx_vm *, std::allocator<randomx_vm *>>::_Vector_impl" }
%"struct.std::_Vector_base<randomx_vm *, std::allocator<randomx_vm *>>::_Vector_impl" = type { %"struct.std::_Vector_base<randomx_vm *, std::allocator<randomx_vm *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<randomx_vm *, std::allocator<randomx_vm *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.2" = type { %"struct.std::_Vector_base.3" }
%"struct.std::_Vector_base.3" = type { %"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl" }
%"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::thread, std::allocator<std::thread>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%class.Stopwatch = type <{ %"class.std::chrono::time_point", i64, i8, [7 x i8] }>
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.std::thread" = type { %"class.std::thread::id" }
%"class.std::thread::id" = type { i64 }
%"class.std::reference_wrapper" = type { ptr }
%"class.std::reference_wrapper.11" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.20 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [5 x i8], align 1
@_ZTISt9exception = external constant ptr
@_ZTI15MemoryException = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.63 = external hidden unnamed_addr constant [34 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@.str.65 = external hidden unnamed_addr constant [80 x i8], align 1
@_ZTI19CacheAllocException = external dso_local constant { ptr, ptr, ptr }, align 8
@_ZTI21DatasetAllocException = external dso_local constant { ptr, ptr, ptr }, align 8
@.str.66 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [68 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z10printUsagePKc(ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef range(i32 0, 2) i32 @main(i32 noundef %0, ptr noundef %1) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca i8, align 1
  %4 = alloca i8, align 1
  %5 = alloca i8, align 1
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  %20 = alloca [4 x i8], align 1
  %21 = alloca %"struct.std::atomic", align 4
  %22 = alloca %class.AtomicHash, align 8
  %23 = alloca %"class.std::vector", align 8
  %24 = alloca %"class.std::vector.2", align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca ptr, align 8
  %30 = alloca %class.Stopwatch, align 8
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca %"class.std::thread", align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca %"class.std::thread", align 8
  %39 = alloca %"class.std::reference_wrapper", align 8
  %40 = alloca %"class.std::reference_wrapper.11", align 8
  %41 = alloca %"class.std::reference_wrapper", align 8
  %42 = alloca %"class.std::reference_wrapper.11", align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %10) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #10
  call void @_Z10readOptionPKciPPcRb(ptr noundef nonnull @.str.20, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %3)
  call void @_Z10readOptionPKciPPcRb(ptr noundef nonnull @.str.21, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %4)
  call void @_Z10readOptionPKciPPcRb(ptr noundef nonnull @.str.22, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %5)
  call void @_Z13readIntOptionPKciPPcRii(ptr noundef nonnull @.str.23, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %16, i32 noundef 1)
  call void @_Z16readUInt64OptionPKciPPcRmm(ptr noundef nonnull @.str.24, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(8) %18, i64 noundef 0)
  call void @_Z13readIntOptionPKciPPcRii(ptr noundef nonnull @.str.25, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %15, i32 noundef 1000)
  call void @_Z13readIntOptionPKciPPcRii(ptr noundef nonnull @.str.26, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %17, i32 noundef 1)
  call void @_Z13readIntOptionPKciPPcRii(ptr noundef nonnull @.str.27, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %19, i32 noundef 0)
  call void @_Z10readOptionPKciPPcRb(ptr noundef nonnull @.str.28, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %7)
  %43 = load i8, ptr %7, align 1, !tbaa !5, !range !9, !noundef !10
  %44 = trunc nuw i8 %43 to i1
  br i1 %44, label %46, label %45

45:                                               ; preds = %2
  call void @_Z10readOptionPKciPPcRb(ptr noundef nonnull @.str.29, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %7)
  br label %46

46:                                               ; preds = %45, %2
  call void @_Z10readOptionPKciPPcRb(ptr noundef nonnull @.str.30, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %8)
  call void @_Z10readOptionPKciPPcRb(ptr noundef nonnull @.str.31, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %6)
  call void @_Z10readOptionPKciPPcRb(ptr noundef nonnull @.str.32, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %9)
  call void @_Z10readOptionPKciPPcRb(ptr noundef nonnull @.str.33, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %11)
  call void @_Z10readOptionPKciPPcRb(ptr noundef nonnull @.str.34, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %12)
  call void @_Z10readOptionPKciPPcRb(ptr noundef nonnull @.str.35, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %13)
  call void @_Z10readOptionPKciPPcRb(ptr noundef nonnull @.str.36, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %14)
  call void @_Z10readOptionPKciPPcRb(ptr noundef nonnull @.str.37, i32 noundef %0, ptr noundef %1, ptr noundef nonnull align 1 dereferenceable(1) %10)
  %47 = load i32, ptr %19, align 4, !tbaa !11
  call void @_ZL7store32Pvj(ptr noundef nonnull %20, i32 noundef %47)
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.38)
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %50 = load i8, ptr %6, align 1, !tbaa !5, !range !9, !noundef !10
  %51 = trunc nuw i8 %50 to i1
  br i1 %51, label %52, label %54

52:                                               ; preds = %46
  %53 = load ptr, ptr %1, align 8, !tbaa !13
  call void @_Z10printUsagePKc(ptr noundef %53)
  br label %527

54:                                               ; preds = %46
  %55 = load i8, ptr %4, align 1, !tbaa !5, !range !9, !noundef !10
  %56 = trunc nuw i8 %55 to i1
  br i1 %56, label %68, label %57

57:                                               ; preds = %54
  %58 = load i8, ptr %5, align 1, !tbaa !5, !range !9, !noundef !10
  %59 = trunc nuw i8 %58 to i1
  br i1 %59, label %68, label %60

60:                                               ; preds = %57
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.39)
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.40)
  %64 = load ptr, ptr %1, align 8, !tbaa !13
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef %64)
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef nonnull @.str.41)
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %66, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %527

68:                                               ; preds = %57, %54
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #10
  store i32 0, ptr %21, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #10
  call void @_ZN10AtomicHashC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #10
  call void @_ZNSt6vectorIP10randomx_vmSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %24) #10
  call void @_ZNSt6vectorISt6threadSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %25) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #10
  %69 = load i8, ptr %13, align 1, !tbaa !5, !range !9, !noundef !10
  %70 = trunc nuw i8 %69 to i1
  br i1 %70, label %71, label %79

71:                                               ; preds = %68
  %72 = call noundef i32 @_ZNSt6thread20hardware_concurrencyEv() #10
  store i32 %72, ptr %17, align 4, !tbaa !11
  %73 = invoke i32 @randomx_get_flags()
          to label %74 unwind label %75

74:                                               ; preds = %71
  store i32 %73, ptr %27, align 4, !tbaa !15
  br label %99

75:                                               ; preds = %.invoke157, %.invoke156, %.invoke155, %.invoke154, %.invoke149, %.invoke148, %.invoke147, %.invoke146, %.invoke, %151, %137, %135, %130, %112, %107, %102, %97, %92, %87, %82, %71
  %76 = landingpad { ptr, i32 }
          cleanup
  %77 = extractvalue { ptr, i32 } %76, 0
  %78 = extractvalue { ptr, i32 } %76, 1
  br label %524

79:                                               ; preds = %68
  store i32 0, ptr %27, align 4, !tbaa !15
  %80 = load i8, ptr %11, align 1, !tbaa !5, !range !9, !noundef !10
  %81 = trunc nuw i8 %80 to i1
  br i1 %81, label %82, label %84

82:                                               ; preds = %79
  %83 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZoRR13randomx_flagsS_(ptr noundef nonnull align 4 dereferenceable(4) %27, i32 noundef 32)
          to label %84 unwind label %75

84:                                               ; preds = %82, %79
  %85 = load i8, ptr %12, align 1, !tbaa !5, !range !9, !noundef !10
  %86 = trunc nuw i8 %85 to i1
  br i1 %86, label %87, label %89

87:                                               ; preds = %84
  %88 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZoRR13randomx_flagsS_(ptr noundef nonnull align 4 dereferenceable(4) %27, i32 noundef 64)
          to label %89 unwind label %75

89:                                               ; preds = %87, %84
  %90 = load i8, ptr %3, align 1, !tbaa !5, !range !9, !noundef !10
  %91 = trunc nuw i8 %90 to i1
  br i1 %91, label %94, label %92

92:                                               ; preds = %89
  %93 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZoRR13randomx_flagsS_(ptr noundef nonnull align 4 dereferenceable(4) %27, i32 noundef 2)
          to label %94 unwind label %75

94:                                               ; preds = %92, %89
  %95 = load i8, ptr %8, align 1, !tbaa !5, !range !9, !noundef !10
  %96 = trunc nuw i8 %95 to i1
  br i1 %96, label %97, label %99

97:                                               ; preds = %94
  %98 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZoRR13randomx_flagsS_(ptr noundef nonnull align 4 dereferenceable(4) %27, i32 noundef 8)
          to label %99 unwind label %75

99:                                               ; preds = %94, %97, %74
  %100 = load i8, ptr %7, align 1, !tbaa !5, !range !9, !noundef !10
  %101 = trunc nuw i8 %100 to i1
  br i1 %101, label %102, label %104

102:                                              ; preds = %99
  %103 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZoRR13randomx_flagsS_(ptr noundef nonnull align 4 dereferenceable(4) %27, i32 noundef 1)
          to label %104 unwind label %75

104:                                              ; preds = %102, %99
  %105 = load i8, ptr %4, align 1, !tbaa !5, !range !9, !noundef !10
  %106 = trunc nuw i8 %105 to i1
  br i1 %106, label %107, label %109

107:                                              ; preds = %104
  %108 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZoRR13randomx_flagsS_(ptr noundef nonnull align 4 dereferenceable(4) %27, i32 noundef 4)
          to label %109 unwind label %75

109:                                              ; preds = %107, %104
  %110 = load i8, ptr %9, align 1, !tbaa !5, !range !9, !noundef !10
  %111 = trunc nuw i8 %110 to i1
  br i1 %111, label %112, label %114

112:                                              ; preds = %109
  %113 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZoRR13randomx_flagsS_(ptr noundef nonnull align 4 dereferenceable(4) %27, i32 noundef 16)
          to label %114 unwind label %75

114:                                              ; preds = %112, %109
  %115 = load i32, ptr %27, align 4, !tbaa !15
  %116 = call noundef i32 @_Zan13randomx_flagsS_(i32 noundef %115, i32 noundef 64)
  %.not = icmp eq i32 %116, 0
  br i1 %.not, label %117, label %.invoke157

117:                                              ; preds = %114
  %118 = load i32, ptr %27, align 4, !tbaa !15
  %119 = call noundef i32 @_Zan13randomx_flagsS_(i32 noundef %118, i32 noundef 32)
  %.not94 = icmp eq i32 %119, 0
  %.str.44..str.43 = select i1 %.not94, ptr @.str.44, ptr @.str.43
  br label %.invoke157

.invoke157:                                       ; preds = %117, %114
  %120 = phi ptr [ @.str.42, %114 ], [ %.str.44..str.43, %117 ]
  %121 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %120)
          to label %.invoke149 unwind label %75

.invoke149:                                       ; preds = %.invoke157
  %122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %121, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.invoke156 unwind label %75

.invoke156:                                       ; preds = %.invoke149
  %123 = load i32, ptr %27, align 4, !tbaa !15
  %124 = call noundef i32 @_Zan13randomx_flagsS_(i32 noundef %123, i32 noundef 4)
  %.not95 = icmp eq i32 %124, 0
  %.str.46..str.45 = select i1 %.not95, ptr @.str.46, ptr @.str.45
  %125 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %.str.46..str.45)
          to label %.invoke148 unwind label %75

.invoke148:                                       ; preds = %.invoke156
  %126 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %125, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %127 unwind label %75

127:                                              ; preds = %.invoke148
  %128 = load i32, ptr %27, align 4, !tbaa !15
  %129 = call noundef i32 @_Zan13randomx_flagsS_(i32 noundef %128, i32 noundef 8)
  %.not96 = icmp eq i32 %129, 0
  br i1 %.not96, label %137, label %130

130:                                              ; preds = %127
  %131 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.47)
          to label %132 unwind label %75

132:                                              ; preds = %130
  %133 = load i32, ptr %27, align 4, !tbaa !15
  %134 = call noundef i32 @_Zan13randomx_flagsS_(i32 noundef %133, i32 noundef 16)
  %.not97 = icmp eq i32 %134, 0
  br i1 %.not97, label %.invoke147, label %135

135:                                              ; preds = %132
  %136 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.48)
          to label %.invoke147 unwind label %75

137:                                              ; preds = %127
  %138 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.49)
          to label %.invoke147 unwind label %75

.invoke147:                                       ; preds = %137, %132, %135
  %139 = phi ptr [ @_ZSt4cout, %135 ], [ @_ZSt4cout, %132 ], [ %138, %137 ]
  %140 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %139, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.invoke155 unwind label %75

.invoke155:                                       ; preds = %.invoke147
  %141 = load i32, ptr %27, align 4, !tbaa !15
  %142 = call noundef i32 @_Zan13randomx_flagsS_(i32 noundef %141, i32 noundef 2)
  %.not98 = icmp eq i32 %142, 0
  %.str.51..str.50 = select i1 %.not98, ptr @.str.51, ptr @.str.50
  %143 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %.str.51..str.50)
          to label %.invoke146 unwind label %75

.invoke146:                                       ; preds = %.invoke155
  %144 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %143, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.invoke154 unwind label %75

.invoke154:                                       ; preds = %.invoke146
  %145 = load i32, ptr %27, align 4, !tbaa !15
  %146 = call noundef i32 @_Zan13randomx_flagsS_(i32 noundef %145, i32 noundef 1)
  %.not99 = icmp eq i32 %146, 0
  %.str.53..str.52 = select i1 %.not99, ptr @.str.53, ptr @.str.52
  %147 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %.str.53..str.52)
          to label %.invoke unwind label %75

.invoke:                                          ; preds = %.invoke154
  %148 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %147, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %149 unwind label %75

149:                                              ; preds = %.invoke
  %150 = load i64, ptr %18, align 8, !tbaa !17
  %.not100 = icmp eq i64 %150, 0
  br i1 %.not100, label %167, label %151

151:                                              ; preds = %149
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.54)
          to label %153 unwind label %75

153:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %28) #10
  %154 = load i64, ptr %18, align 8, !tbaa !17
  invoke void @_Z14mask_to_stringB5cxx11m(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %28, i64 noundef %154)
          to label %155 unwind label %162

155:                                              ; preds = %153
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) %152, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %157 unwind label %164

157:                                              ; preds = %155
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %156, ptr noundef nonnull @.str.55)
          to label %159 unwind label %164

159:                                              ; preds = %157
  %160 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %158, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %161 unwind label %164

161:                                              ; preds = %159
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #10
  br label %167

162:                                              ; preds = %153
  %163 = landingpad { ptr, i32 }
          cleanup
  br label %166

164:                                              ; preds = %159, %157, %155
  %165 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #10
  br label %166

166:                                              ; preds = %164, %162
  %.pn = phi { ptr, i32 } [ %165, %164 ], [ %163, %162 ]
  %.068 = extractvalue { ptr, i32 } %.pn, 0
  %.074 = extractvalue { ptr, i32 } %.pn, 1
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %28) #10
  br label %524

167:                                              ; preds = %161, %149
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #10
  %168 = load i8, ptr %14, align 1, !tbaa !5, !range !9, !noundef !10
  %169 = trunc nuw i8 %168 to i1
  %170 = load i8, ptr %10, align 1, !tbaa !5, !range !9, !noundef !10
  %171 = trunc nuw i8 %170 to i1
  br i1 %169, label %172, label %183

172:                                              ; preds = %167
  br i1 %171, label %173, label %182

173:                                              ; preds = %172
  %174 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.56)
          to label %175 unwind label %178

175:                                              ; preds = %173
  %176 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %174, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %177 unwind label %178

177:                                              ; preds = %175
  store ptr @_Z4mineILb0ELb1EEvP10randomx_vmRSt6atomicIjER10AtomicHashjii, ptr %29, align 8, !tbaa !13
  br label %194

178:                                              ; preds = %213, %211, %206, %204, %201, %199, %194, %191, %189, %186, %184, %175, %173
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  %181 = extractvalue { ptr, i32 } %179, 1
  br label %523

182:                                              ; preds = %172
  store ptr @_Z4mineILb0ELb0EEvP10randomx_vmRSt6atomicIjER10AtomicHashjii, ptr %29, align 8, !tbaa !13
  br label %194

183:                                              ; preds = %167
  br i1 %171, label %184, label %189

184:                                              ; preds = %183
  %185 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.56)
          to label %186 unwind label %178

186:                                              ; preds = %184
  %187 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %185, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %188 unwind label %178

188:                                              ; preds = %186
  store ptr @_Z4mineILb0ELb1EEvP10randomx_vmRSt6atomicIjER10AtomicHashjii, ptr %29, align 8, !tbaa !13
  br label %194

189:                                              ; preds = %183
  %190 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.57)
          to label %191 unwind label %178

191:                                              ; preds = %189
  %192 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %190, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %193 unwind label %178

193:                                              ; preds = %191
  store ptr @_Z4mineILb1ELb0EEvP10randomx_vmRSt6atomicIjER10AtomicHashjii, ptr %29, align 8, !tbaa !13
  br label %194

194:                                              ; preds = %188, %193, %177, %182
  %195 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.58)
          to label %196 unwind label %178

196:                                              ; preds = %194
  %197 = load i8, ptr %4, align 1, !tbaa !5, !range !9, !noundef !10
  %198 = trunc nuw i8 %197 to i1
  br i1 %198, label %199, label %211

199:                                              ; preds = %196
  %200 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.59)
          to label %201 unwind label %178

201:                                              ; preds = %199
  %202 = load i32, ptr %17, align 4, !tbaa !11
  %203 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %200, i32 noundef %202)
          to label %204 unwind label %178

204:                                              ; preds = %201
  %205 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %203, ptr noundef nonnull @.str.60)
          to label %206 unwind label %178

206:                                              ; preds = %204
  %207 = load i32, ptr %17, align 4, !tbaa !11
  %208 = icmp sgt i32 %207, 1
  %209 = select i1 %208, ptr @.str.61, ptr @.str.55
  %210 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %205, ptr noundef nonnull %209)
          to label %211 unwind label %178

211:                                              ; preds = %206, %196
  %212 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.62)
          to label %213 unwind label %178

213:                                              ; preds = %211
  %214 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %212, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %215 unwind label %178

215:                                              ; preds = %213
  %216 = load i32, ptr %27, align 4, !tbaa !15
  %217 = invoke noundef ptr @_ZN7randomx15selectArgonImplE13randomx_flags(i32 noundef %216)
          to label %218 unwind label %223

218:                                              ; preds = %215
  %219 = icmp eq ptr %217, null
  br i1 %219, label %220, label %227

220:                                              ; preds = %218
  %221 = call ptr @__cxa_allocate_exception(i64 16) #10
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %221, ptr noundef nonnull @.str.63)
          to label %222 unwind label %225

222:                                              ; preds = %220
  invoke void @__cxa_throw(ptr nonnull %221, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #11
          to label %531 unwind label %223

223:                                              ; preds = %234, %232, %222, %215
  %224 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  br label %475

225:                                              ; preds = %220
  %226 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  call void @__cxa_free_exception(ptr %221) #10
  br label %475

227:                                              ; preds = %218
  %228 = load i32, ptr %27, align 4, !tbaa !15
  %229 = call noundef i32 @_Zan13randomx_flagsS_(i32 noundef %228, i32 noundef 8)
  %230 = load i32, ptr %27, align 4, !tbaa !15
  %231 = call noundef i32 @_Zan13randomx_flagsS_(i32 noundef %230, i32 noundef 8)
  %.not102 = icmp eq i32 %231, 0
  br i1 %.not102, label %232, label %236

232:                                              ; preds = %227
  %233 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.65)
          to label %234 unwind label %223

234:                                              ; preds = %232
  %235 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %233, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %236 unwind label %223

236:                                              ; preds = %234, %227
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %30) #10
  invoke void @_ZN9StopwatchC2Eb(ptr noundef nonnull align 8 dereferenceable(17) %30, i1 noundef zeroext true)
          to label %237 unwind label %244

237:                                              ; preds = %236
  %238 = load i32, ptr %27, align 4, !tbaa !15
  %239 = invoke ptr @randomx_alloc_cache(i32 noundef %238)
          to label %240 unwind label %244

240:                                              ; preds = %237
  store ptr %239, ptr %26, align 8, !tbaa !13
  %241 = icmp eq ptr %239, null
  br i1 %241, label %242, label %246

242:                                              ; preds = %240
  %243 = call ptr @__cxa_allocate_exception(i64 8) #10
  store i64 0, ptr %243, align 16
  call void @_ZN19CacheAllocExceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %243) #10
  br label %.invoke150

244:                                              ; preds = %.invoke150, %362, %360, %357, %._crit_edge132, %322, %320, %317, %315, %313, %311, %309, %307, %305, %250, %246, %237, %236
  %245 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  br label %474

246:                                              ; preds = %240
  invoke void @randomx_init_cache(ptr noundef nonnull %239, ptr noundef nonnull %20, i64 noundef 4)
          to label %247 unwind label %244

247:                                              ; preds = %246
  %248 = load i8, ptr %4, align 1, !tbaa !5, !range !9, !noundef !10
  %249 = trunc nuw i8 %248 to i1
  br i1 %249, label %250, label %305

250:                                              ; preds = %247
  %251 = load i32, ptr %27, align 4, !tbaa !15
  %252 = invoke ptr @randomx_alloc_dataset(i32 noundef %251)
          to label %253 unwind label %244

253:                                              ; preds = %250
  store ptr %252, ptr %25, align 8, !tbaa !13
  %254 = icmp eq ptr %252, null
  br i1 %254, label %255, label %259

255:                                              ; preds = %253
  %256 = call ptr @__cxa_allocate_exception(i64 8) #10
  store i64 0, ptr %256, align 16
  call void @_ZN21DatasetAllocExceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %256) #10
  br label %.invoke150

.invoke150:                                       ; preds = %242, %255
  %257 = phi ptr [ %256, %255 ], [ %243, %242 ]
  %258 = phi ptr [ @_ZTI21DatasetAllocException, %255 ], [ @_ZTI19CacheAllocException, %242 ]
  invoke void @__cxa_throw(ptr nonnull %257, ptr nonnull %258, ptr nonnull @_ZNSt9exceptionD2Ev) #11
          to label %.cont unwind label %244

.cont:                                            ; preds = %.invoke150
  unreachable

259:                                              ; preds = %253
  %260 = invoke i64 @randomx_dataset_item_count()
          to label %261 unwind label %268

261:                                              ; preds = %259
  %262 = load i32, ptr %17, align 4, !tbaa !11
  %263 = icmp sgt i32 %262, 1
  br i1 %263, label %.lr.ph.preheader, label %298

.lr.ph.preheader:                                 ; preds = %261
  %264 = trunc i64 %260 to i32
  %265 = udiv i32 %264, %262
  %266 = urem i32 %264, %262
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %31) #10
  store i32 0, ptr %31, align 4, !tbaa !11
  br label %.lr.ph

.preheader126:                                    ; preds = %276
  %267 = call noundef i64 @_ZNKSt6vectorISt6threadSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #10
  %.not142 = icmp eq i64 %267, 0
  br i1 %.not142, label %._crit_edge, label %.lr.ph129

268:                                              ; preds = %302, %298, %259
  %269 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  br label %474

.lr.ph:                                           ; preds = %.lr.ph.preheader, %276
  %270 = phi i32 [ %281, %276 ], [ %262, %.lr.ph.preheader ]
  %.073127 = phi i32 [ %280, %276 ], [ 0, %.lr.ph.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %32) #10
  %271 = add nsw i32 %270, -1
  %272 = icmp eq i32 %.073127, %271
  %273 = select i1 %272, i32 %266, i32 0
  %274 = add nuw i32 %273, %265
  store i32 %274, ptr %32, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %33) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %34) #10
  store ptr @randomx_init_dataset, ptr %34, align 8, !tbaa !13
  invoke void @_ZNSt6threadC2IPFvP15randomx_datasetP13randomx_cachemmEJRS2_RS4_RjS9_EvEEOT_DpOT0_(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 4 dereferenceable(4) %31, ptr noundef nonnull align 4 dereferenceable(4) %32)
          to label %275 unwind label %283

275:                                              ; preds = %.lr.ph
  invoke void @_ZNSt6vectorISt6threadSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %276 unwind label %285

276:                                              ; preds = %275
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %33) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %34) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #10
  %277 = load i32, ptr %32, align 4, !tbaa !11
  %278 = load i32, ptr %31, align 4, !tbaa !11
  %279 = add i32 %278, %277
  store i32 %279, ptr %31, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %32) #10
  %280 = add nuw nsw i32 %.073127, 1
  %281 = load i32, ptr %17, align 4, !tbaa !11
  %282 = icmp slt i32 %280, %281
  br i1 %282, label %.lr.ph, label %.preheader126, !llvm.loop !19

283:                                              ; preds = %.lr.ph
  %284 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  br label %287

285:                                              ; preds = %275
  %286 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %33) #10
  br label %287

287:                                              ; preds = %285, %283
  %.pn112 = phi { ptr, i32 } [ %286, %285 ], [ %284, %283 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %34) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %33) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %32) #10
  br label %297

._crit_edge:                                      ; preds = %290, %.preheader126
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %31) #10
  br label %302

.lr.ph129:                                        ; preds = %.preheader126, %290
  %288 = phi i64 [ %292, %290 ], [ 0, %.preheader126 ]
  %.072128 = phi i32 [ %291, %290 ], [ 0, %.preheader126 ]
  %289 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt6threadSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %288) #10
  invoke void @_ZNSt6thread4joinEv(ptr noundef nonnull align 8 dereferenceable(8) %289)
          to label %290 unwind label %295

290:                                              ; preds = %.lr.ph129
  %291 = add i32 %.072128, 1
  %292 = zext i32 %291 to i64
  %293 = call noundef i64 @_ZNKSt6vectorISt6threadSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #10
  %294 = icmp ugt i64 %293, %292
  br i1 %294, label %.lr.ph129, label %._crit_edge, !llvm.loop !21

295:                                              ; preds = %.lr.ph129
  %296 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  br label %297

297:                                              ; preds = %295, %287
  %.pn112.pn = phi { ptr, i32 } [ %.pn112, %287 ], [ %296, %295 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %31) #10
  br label %474

298:                                              ; preds = %261
  %299 = load ptr, ptr %25, align 8, !tbaa !13
  %300 = load ptr, ptr %26, align 8, !tbaa !13
  %301 = and i64 %260, 4294967295
  invoke void @randomx_init_dataset(ptr noundef %299, ptr noundef %300, i64 noundef 0, i64 noundef %301)
          to label %302 unwind label %268

302:                                              ; preds = %298, %._crit_edge
  %303 = load ptr, ptr %26, align 8, !tbaa !13
  invoke void @randomx_release_cache(ptr noundef %303)
          to label %304 unwind label %268

304:                                              ; preds = %302
  store ptr null, ptr %26, align 8, !tbaa !13
  call void @_ZNSt6vectorISt6threadSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #10
  br label %305

305:                                              ; preds = %304, %247
  %306 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.66)
          to label %307 unwind label %244

307:                                              ; preds = %305
  %308 = invoke noundef double @_ZNK9Stopwatch10getElapsedEv(ptr noundef nonnull align 8 dereferenceable(17) %30)
          to label %309 unwind label %244

309:                                              ; preds = %307
  %310 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %306, double noundef %308)
          to label %311 unwind label %244

311:                                              ; preds = %309
  %312 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %310, ptr noundef nonnull @.str.67)
          to label %313 unwind label %244

313:                                              ; preds = %311
  %314 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %312, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %315 unwind label %244

315:                                              ; preds = %313
  %316 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.68)
          to label %317 unwind label %244

317:                                              ; preds = %315
  %318 = load i32, ptr %16, align 4, !tbaa !11
  %319 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %316, i32 noundef %318)
          to label %320 unwind label %244

320:                                              ; preds = %317
  %321 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %319, ptr noundef nonnull @.str.69)
          to label %322 unwind label %244

322:                                              ; preds = %320
  %323 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %321, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.preheader124 unwind label %244

.preheader124:                                    ; preds = %322
  %324 = load i32, ptr %16, align 4, !tbaa !11
  %325 = icmp sgt i32 %324, 0
  br i1 %325, label %.lr.ph131, label %._crit_edge132

._crit_edge132:                                   ; preds = %352, %.preheader124
  %326 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.73)
          to label %357 unwind label %244

.lr.ph131:                                        ; preds = %.preheader124, %352
  %.071130 = phi i32 [ %353, %352 ], [ 0, %.preheader124 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %35) #10
  %327 = load i32, ptr %27, align 4, !tbaa !15
  %328 = load ptr, ptr %26, align 8, !tbaa !13
  %329 = load ptr, ptr %25, align 8, !tbaa !13
  %330 = invoke ptr @randomx_create_vm(i32 noundef %327, ptr noundef %328, ptr noundef %329)
          to label %331 unwind label %.loopexit125

331:                                              ; preds = %.lr.ph131
  store ptr %330, ptr %35, align 8, !tbaa !13
  %332 = icmp eq ptr %330, null
  br i1 %332, label %333, label %351

333:                                              ; preds = %331
  %334 = load i32, ptr %27, align 4, !tbaa !15
  %335 = call noundef i32 @_Zan13randomx_flagsS_(i32 noundef %334, i32 noundef 2)
  %.not109 = icmp eq i32 %335, 0
  br i1 %.not109, label %341, label %336

336:                                              ; preds = %333
  %337 = call ptr @__cxa_allocate_exception(i64 16) #10
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %337, ptr noundef nonnull @.str.70)
          to label %.invoke151 unwind label %339

.invoke151:                                       ; preds = %336, %348, %345
  %338 = phi ptr [ %344, %345 ], [ %344, %348 ], [ %337, %336 ]
  invoke void @__cxa_throw(ptr nonnull %338, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #11
          to label %.cont152 unwind label %.loopexit.split-lp

.cont152:                                         ; preds = %.invoke151
  unreachable

.loopexit125:                                     ; preds = %.lr.ph131, %351
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  br label %356

.loopexit.split-lp:                               ; preds = %.invoke151
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  br label %356

339:                                              ; preds = %336
  %340 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  call void @__cxa_free_exception(ptr %337) #10
  br label %356

341:                                              ; preds = %333
  %342 = load i8, ptr %7, align 1, !tbaa !5, !range !9, !noundef !10
  %343 = trunc nuw i8 %342 to i1
  %344 = call ptr @__cxa_allocate_exception(i64 16) #10
  br i1 %343, label %345, label %348

345:                                              ; preds = %341
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %344, ptr noundef nonnull @.str.71)
          to label %.invoke151 unwind label %346

346:                                              ; preds = %345
  %347 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  call void @__cxa_free_exception(ptr %344) #10
  br label %356

348:                                              ; preds = %341
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %344, ptr noundef nonnull @.str.72)
          to label %.invoke151 unwind label %349

349:                                              ; preds = %348
  %350 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  call void @__cxa_free_exception(ptr %344) #10
  br label %356

351:                                              ; preds = %331
  invoke void @_ZNSt6vectorIP10randomx_vmSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(8) %35)
          to label %352 unwind label %.loopexit125

352:                                              ; preds = %351
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %35) #10
  %353 = add nuw nsw i32 %.071130, 1
  %354 = load i32, ptr %16, align 4, !tbaa !11
  %355 = icmp slt i32 %353, %354
  br i1 %355, label %.lr.ph131, label %._crit_edge132, !llvm.loop !22

356:                                              ; preds = %.loopexit125, %.loopexit.split-lp, %349, %346, %339
  %.pn110 = phi { ptr, i32 } [ %340, %339 ], [ %347, %346 ], [ %350, %349 ], [ %lpad.loopexit, %.loopexit125 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %35) #10
  br label %474

357:                                              ; preds = %._crit_edge132
  %358 = load i32, ptr %15, align 4, !tbaa !11
  %359 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %326, i32 noundef %358)
          to label %360 unwind label %244

360:                                              ; preds = %357
  %361 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %359, ptr noundef nonnull @.str.74)
          to label %362 unwind label %244

362:                                              ; preds = %360
  %363 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %361, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %364 unwind label %244

364:                                              ; preds = %362
  call void @_ZN9Stopwatch7restartEv(ptr noundef nonnull align 8 dereferenceable(17) %30)
  %365 = load i32, ptr %16, align 4, !tbaa !11
  %366 = icmp sgt i32 %365, 1
  br i1 %366, label %367, label %404

367:                                              ; preds = %364
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %36) #10
  store i32 0, ptr %36, align 4, !tbaa !11
  %368 = call noundef i64 @_ZNKSt6vectorIP10randomx_vmSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #10
  %.not143 = icmp eq i64 %368, 0
  br i1 %.not143, label %._crit_edge135, label %.lr.ph134

._crit_edge135:                                   ; preds = %383, %367
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #10
  %369 = call noundef i64 @_ZNKSt6vectorISt6threadSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #10
  %.not144 = icmp eq i64 %369, 0
  br i1 %.not144, label %.loopexit, label %.lr.ph138

.lr.ph134:                                        ; preds = %367, %383
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %37) #10
  store i32 -1, ptr %37, align 4, !tbaa !11
  %370 = load i64, ptr %18, align 8, !tbaa !17
  %.not105 = icmp eq i64 %370, 0
  br i1 %.not105, label %376, label %371

371:                                              ; preds = %.lr.ph134
  %372 = invoke noundef i32 @_Z15cpuid_from_maskmRKj(i64 noundef %370, ptr noundef nonnull align 4 dereferenceable(4) %36)
          to label %373 unwind label %374

373:                                              ; preds = %371
  store i32 %372, ptr %37, align 4, !tbaa !11
  br label %376

374:                                              ; preds = %371
  %375 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  br label %394

376:                                              ; preds = %373, %.lr.ph134
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %38) #10
  %377 = load i32, ptr %36, align 4, !tbaa !11
  %378 = zext i32 %377 to i64
  %379 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10randomx_vmSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %378) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %39) #10
  %380 = call ptr @_ZSt3refISt6atomicIjEESt17reference_wrapperIT_ERS3_(ptr noundef nonnull align 4 dereferenceable(4) %21) #10
  store ptr %380, ptr %39, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %40) #10
  %381 = call ptr @_ZSt3refI10AtomicHashESt17reference_wrapperIT_ERS2_(ptr noundef nonnull align 8 dereferenceable(32) %22) #10
  store ptr %381, ptr %40, align 8
  invoke void @_ZNSt6threadC2IRPFvP10randomx_vmRSt6atomicIjER10AtomicHashjiiEJRS2_St17reference_wrapperIS4_ESC_IS6_ERiRjSF_EvEEOT_DpOT0_(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %379, ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %36, ptr noundef nonnull align 4 dereferenceable(4) %37)
          to label %382 unwind label %389

382:                                              ; preds = %376
  invoke void @_ZNSt6vectorISt6threadSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(8) %38)
          to label %383 unwind label %391

383:                                              ; preds = %382
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %38) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %40) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %39) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #10
  %384 = load i32, ptr %36, align 4, !tbaa !11
  %385 = add i32 %384, 1
  store i32 %385, ptr %36, align 4, !tbaa !11
  %386 = zext i32 %385 to i64
  %387 = call noundef i64 @_ZNKSt6vectorIP10randomx_vmSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #10
  %388 = icmp ugt i64 %387, %386
  br i1 %388, label %.lr.ph134, label %._crit_edge135, !llvm.loop !23

389:                                              ; preds = %376
  %390 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  br label %393

391:                                              ; preds = %382
  %392 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %38) #10
  br label %393

393:                                              ; preds = %391, %389
  %.pn106 = phi { ptr, i32 } [ %392, %391 ], [ %390, %389 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %40) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %39) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %38) #10
  br label %394

394:                                              ; preds = %393, %374
  %.pn106.pn = phi { ptr, i32 } [ %.pn106, %393 ], [ %375, %374 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #10
  br label %474

.lr.ph138:                                        ; preds = %._crit_edge135, %397
  %395 = phi i64 [ %399, %397 ], [ 0, %._crit_edge135 ]
  %.070136 = phi i32 [ %398, %397 ], [ 0, %._crit_edge135 ]
  %396 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt6threadSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %395) #10
  invoke void @_ZNSt6thread4joinEv(ptr noundef nonnull align 8 dereferenceable(8) %396)
          to label %397 unwind label %402

397:                                              ; preds = %.lr.ph138
  %398 = add i32 %.070136, 1
  %399 = zext i32 %398 to i64
  %400 = call noundef i64 @_ZNKSt6vectorISt6threadSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #10
  %401 = icmp ugt i64 %400, %399
  br i1 %401, label %.lr.ph138, label %.loopexit, !llvm.loop !24

402:                                              ; preds = %.lr.ph138
  %403 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  br label %474

404:                                              ; preds = %364
  %405 = load ptr, ptr %29, align 8, !tbaa !13
  %406 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10randomx_vmSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef 0) #10
  %407 = load ptr, ptr %406, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %41) #10
  %408 = call ptr @_ZSt3refISt6atomicIjEESt17reference_wrapperIT_ERS3_(ptr noundef nonnull align 4 dereferenceable(4) %21) #10
  store ptr %408, ptr %41, align 8
  %409 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt17reference_wrapperISt6atomicIjEEcvRS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %41) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %42) #10
  %410 = call ptr @_ZSt3refI10AtomicHashESt17reference_wrapperIT_ERS2_(ptr noundef nonnull align 8 dereferenceable(32) %22) #10
  store ptr %410, ptr %42, align 8
  %411 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt17reference_wrapperI10AtomicHashEcvRS0_Ev(ptr noundef nonnull align 8 dereferenceable(8) %42) #10
  %412 = load i32, ptr %15, align 4, !tbaa !11
  invoke void %405(ptr noundef %407, ptr noundef nonnull align 4 dereferenceable(4) %409, ptr noundef nonnull align 8 dereferenceable(32) %411, i32 noundef %412, i32 noundef 0, i32 noundef -1)
          to label %413 unwind label %414

413:                                              ; preds = %404
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %42) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %41) #10
  br label %.loopexit

414:                                              ; preds = %404
  %415 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %42) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %41) #10
  br label %474

.loopexit:                                        ; preds = %397, %._crit_edge135, %413
  %416 = invoke noundef double @_ZNK9Stopwatch10getElapsedEv(ptr noundef nonnull align 8 dereferenceable(17) %30)
          to label %.preheader unwind label %420

.preheader:                                       ; preds = %.loopexit
  %417 = call noundef i64 @_ZNKSt6vectorIP10randomx_vmSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #10
  %.not145 = icmp eq i64 %417, 0
  br i1 %.not145, label %._crit_edge141, label %.lr.ph140

._crit_edge141:                                   ; preds = %425, %.preheader
  %418 = load i8, ptr %4, align 1, !tbaa !5, !range !9, !noundef !10
  %419 = trunc nuw i8 %418 to i1
  br i1 %419, label %432, label %434

420:                                              ; preds = %.invoke158, %.invoke153, %464, %462, %456, %454, %449, %447, %438, %436, %434, %432, %.loopexit
  %421 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  br label %474

.lr.ph140:                                        ; preds = %.preheader, %425
  %422 = phi i64 [ %427, %425 ], [ 0, %.preheader ]
  %.067139 = phi i32 [ %426, %425 ], [ 0, %.preheader ]
  %423 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP10randomx_vmSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %23, i64 noundef %422) #10
  %424 = load ptr, ptr %423, align 8, !tbaa !13
  invoke void @randomx_destroy_vm(ptr noundef %424)
          to label %425 unwind label %430

425:                                              ; preds = %.lr.ph140
  %426 = add i32 %.067139, 1
  %427 = zext i32 %426 to i64
  %428 = call noundef i64 @_ZNKSt6vectorIP10randomx_vmSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #10
  %429 = icmp ugt i64 %428, %427
  br i1 %429, label %.lr.ph140, label %._crit_edge141, !llvm.loop !25

430:                                              ; preds = %.lr.ph140
  %431 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTI15MemoryException
          catch ptr @_ZTISt9exception
  br label %474

432:                                              ; preds = %._crit_edge141
  %433 = load ptr, ptr %25, align 8, !tbaa !13
  invoke void @randomx_release_dataset(ptr noundef %433)
          to label %436 unwind label %420

434:                                              ; preds = %._crit_edge141
  %435 = load ptr, ptr %26, align 8, !tbaa !13
  invoke void @randomx_release_cache(ptr noundef %435)
          to label %436 unwind label %420

436:                                              ; preds = %434, %432
  %437 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.75)
          to label %438 unwind label %420

438:                                              ; preds = %436
  invoke void @_ZN10AtomicHash5printERSo(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout)
          to label %439 unwind label %420

439:                                              ; preds = %438
  %440 = load i32, ptr %15, align 4, !tbaa !11
  %441 = icmp eq i32 %440, 1000
  %442 = load i32, ptr %19, align 4
  %443 = icmp eq i32 %442, 0
  %or.cond = select i1 %441, i1 %443, i1 false
  br i1 %or.cond, label %444, label %451

444:                                              ; preds = %439
  %445 = load i8, ptr %10, align 1, !tbaa !5, !range !9, !noundef !10
  %446 = trunc nuw i8 %445 to i1
  br i1 %446, label %451, label %447

447:                                              ; preds = %444
  %448 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.76)
          to label %449 unwind label %420

449:                                              ; preds = %447
  %450 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %448, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %451 unwind label %420

451:                                              ; preds = %449, %444, %439
  %452 = load i8, ptr %4, align 1, !tbaa !5, !range !9, !noundef !10
  %453 = trunc nuw i8 %452 to i1
  br i1 %453, label %462, label %454

454:                                              ; preds = %451
  %455 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.77)
          to label %456 unwind label %420

456:                                              ; preds = %454
  %457 = fmul double %416, 1.000000e+03
  %458 = load i32, ptr %15, align 4, !tbaa !11
  %459 = sitofp i32 %458 to double
  %460 = fdiv double %457, %459
  %461 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %455, double noundef %460)
          to label %.invoke158 unwind label %420

462:                                              ; preds = %451
  %463 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.77)
          to label %464 unwind label %420

464:                                              ; preds = %462
  %465 = load i32, ptr %15, align 4, !tbaa !11
  %466 = sitofp i32 %465 to double
  %467 = fdiv double %466, %416
  %468 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %463, double noundef %467)
          to label %.invoke158 unwind label %420

.invoke158:                                       ; preds = %464, %456
  %469 = phi ptr [ %461, %456 ], [ %468, %464 ]
  %470 = phi ptr [ @.str.78, %456 ], [ @.str.79, %464 ]
  %471 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %469, ptr noundef nonnull %470)
          to label %.invoke153 unwind label %420

.invoke153:                                       ; preds = %.invoke158
  %472 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %471, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %473 unwind label %420

473:                                              ; preds = %.invoke153
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %30) #10
  br label %522

474:                                              ; preds = %420, %430, %268, %297, %414, %402, %394, %356, %244
  %.pn116 = phi { ptr, i32 } [ %245, %244 ], [ %.pn110, %356 ], [ %.pn106.pn, %394 ], [ %403, %402 ], [ %415, %414 ], [ %.pn112.pn, %297 ], [ %269, %268 ], [ %431, %430 ], [ %421, %420 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %30) #10
  br label %475

475:                                              ; preds = %474, %225, %223
  %.pn118 = phi { ptr, i32 } [ %224, %223 ], [ %226, %225 ], [ %.pn116, %474 ]
  %.9 = extractvalue { ptr, i32 } %.pn118, 0
  %.983 = extractvalue { ptr, i32 } %.pn118, 1
  %476 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTI15MemoryException) #10
  %477 = icmp eq i32 %.983, %476
  br i1 %477, label %478, label %496

478:                                              ; preds = %475
  %479 = call ptr @__cxa_begin_catch(ptr %.9) #10
  %480 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.80)
          to label %481 unwind label %516

481:                                              ; preds = %478
  %482 = load ptr, ptr %479, align 8, !tbaa !26
  %483 = getelementptr inbounds i8, ptr %482, i64 16
  %484 = load ptr, ptr %483, align 8
  %485 = call noundef ptr %484(ptr noundef nonnull align 8 dereferenceable(8) %479) #10
  %486 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %480, ptr noundef %485)
          to label %487 unwind label %516

487:                                              ; preds = %481
  %488 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %486, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %489 unwind label %516

489:                                              ; preds = %487
  %490 = load i8, ptr %7, align 1, !tbaa !5, !range !9, !noundef !10
  %491 = trunc nuw i8 %490 to i1
  br i1 %491, label %492, label %518

492:                                              ; preds = %489
  %493 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.81)
          to label %494 unwind label %516

494:                                              ; preds = %492
  %495 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %493, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %518 unwind label %516

496:                                              ; preds = %475
  %497 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #10
  %498 = icmp eq i32 %.983, %497
  br i1 %498, label %499, label %523

499:                                              ; preds = %496
  %500 = call ptr @__cxa_begin_catch(ptr %.9) #10
  %501 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.80)
          to label %502 unwind label %511

502:                                              ; preds = %499
  %503 = load ptr, ptr %500, align 8, !tbaa !26
  %504 = getelementptr inbounds i8, ptr %503, i64 16
  %505 = load ptr, ptr %504, align 8
  %506 = call noundef ptr %505(ptr noundef nonnull align 8 dereferenceable(8) %500) #10
  %507 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %501, ptr noundef %506)
          to label %508 unwind label %511

508:                                              ; preds = %502
  %509 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %507, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %510 unwind label %511

510:                                              ; preds = %508
  invoke void @__cxa_end_catch()
          to label %522 unwind label %513

511:                                              ; preds = %508, %502, %499
  %512 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %515 unwind label %528

513:                                              ; preds = %510
  %514 = landingpad { ptr, i32 }
          cleanup
  br label %515

515:                                              ; preds = %511, %513
  %.pn120 = phi { ptr, i32 } [ %514, %513 ], [ %512, %511 ]
  %.10 = extractvalue { ptr, i32 } %.pn120, 0
  %.1084 = extractvalue { ptr, i32 } %.pn120, 1
  br label %523

516:                                              ; preds = %494, %492, %487, %481, %478
  %517 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %521 unwind label %528

518:                                              ; preds = %494, %489
  invoke void @__cxa_end_catch()
          to label %522 unwind label %519

519:                                              ; preds = %518
  %520 = landingpad { ptr, i32 }
          cleanup
  br label %521

521:                                              ; preds = %516, %519
  %.pn122 = phi { ptr, i32 } [ %520, %519 ], [ %517, %516 ]
  %.11 = extractvalue { ptr, i32 } %.pn122, 0
  %.1185 = extractvalue { ptr, i32 } %.pn122, 1
  br label %523

522:                                              ; preds = %518, %510, %473
  %.0 = phi i32 [ 0, %473 ], [ 1, %510 ], [ 1, %518 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #10
  call void @_ZNSt6vectorISt6threadSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %24) #10
  call void @_ZNSt6vectorIP10randomx_vmSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #10
  br label %527

523:                                              ; preds = %521, %515, %496, %178
  %.1286 = phi i32 [ %.1185, %521 ], [ %.1084, %515 ], [ %.983, %496 ], [ %181, %178 ]
  %.12 = phi ptr [ %.11, %521 ], [ %.10, %515 ], [ %.9, %496 ], [ %180, %178 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #10
  br label %524

524:                                              ; preds = %523, %166, %75
  %.1387 = phi i32 [ %.1286, %523 ], [ %.074, %166 ], [ %78, %75 ]
  %.13 = phi ptr [ %.12, %523 ], [ %.068, %166 ], [ %77, %75 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %25) #10
  call void @_ZNSt6vectorISt6threadSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %24) #10
  call void @_ZNSt6vectorIP10randomx_vmSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #10
  %525 = insertvalue { ptr, i32 } poison, ptr %.13, 0
  %526 = insertvalue { ptr, i32 } %525, i32 %.1387, 1
  resume { ptr, i32 } %526

527:                                              ; preds = %522, %60, %52
  %.1 = phi i32 [ 0, %52 ], [ %.0, %522 ], [ 0, %60 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #10
  ret i32 %.1

528:                                              ; preds = %516, %511
  %529 = landingpad { ptr, i32 }
          catch ptr null
  %530 = extractvalue { ptr, i32 } %529, 0
  call void @__clang_call_terminate(ptr %530) #12
  unreachable

531:                                              ; preds = %222
  unreachable
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z10readOptionPKciPPcRb(ptr noundef, i32 noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z13readIntOptionPKciPPcRii(ptr noundef, i32 noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z16readUInt64OptionPKciPPcRmm(ptr noundef, i32 noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZL7store32Pvj(ptr noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10AtomicHashC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP10randomx_vmSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt6threadSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

; Function Attrs: nounwind
declare noundef i32 @_ZNSt6thread20hardware_concurrencyEv() local_unnamed_addr #6

declare i32 @randomx_get_flags() local_unnamed_addr #7

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZoRR13randomx_flagsS_(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Zan13randomx_flagsS_(i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

declare void @_Z14mask_to_stringB5cxx11m(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, i64 noundef) local_unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4mineILb0ELb1EEvP10randomx_vmRSt6atomicIjER10AtomicHashjii(ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4mineILb0ELb0EEvP10randomx_vmRSt6atomicIjER10AtomicHashjii(ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4mineILb1ELb0EEvP10randomx_vmRSt6atomicIjER10AtomicHashjii(ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef, i32 noundef) #1

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN7randomx15selectArgonImplE13randomx_flags(i32 noundef) local_unnamed_addr #2

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #7

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN9StopwatchC2Eb(ptr noundef nonnull align 8 dereferenceable(17), i1 noundef zeroext) unnamed_addr #1 align 2

declare ptr @randomx_alloc_cache(i32 noundef) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN19CacheAllocExceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4 align 2

declare void @randomx_init_cache(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #7

declare ptr @randomx_alloc_dataset(i32 noundef) local_unnamed_addr #7

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN21DatasetAllocExceptionC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4 align 2

; Function Attrs: nounwind
declare void @_ZNSt9exceptionD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #6

declare i64 @randomx_dataset_item_count() local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt6threadSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

declare void @randomx_init_dataset(ptr noundef, ptr noundef, i64 noundef, i64 noundef) #7

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6threadC2IPFvP15randomx_datasetP13randomx_cachemmEJRS2_RS4_RjS9_EvEEOT_DpOT0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5 align 2

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

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

declare void @_ZNSt6thread4joinEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #7

declare void @randomx_release_cache(ptr noundef) local_unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt6threadSaIS0_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK9Stopwatch10getElapsedEv(ptr noundef nonnull align 8 dereferenceable(17)) local_unnamed_addr #1 align 2

declare ptr @randomx_create_vm(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIP10randomx_vmSaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9Stopwatch7restartEv(ptr noundef nonnull align 8 dereferenceable(17)) local_unnamed_addr #5 align 2

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

declare noundef i32 @_Z15cpuid_from_maskmRKj(i64 noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #7

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZSt3refISt6atomicIjEESt17reference_wrapperIT_ERS3_(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @_ZSt3refI10AtomicHashESt17reference_wrapperIT_ERS2_(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6threadC2IRPFvP10randomx_vmRSt6atomicIjER10AtomicHashjiiEJRS2_St17reference_wrapperIS4_ESC_IS6_ERiRjSF_EvEEOT_DpOT0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt17reference_wrapperISt6atomicIjEEcvRS1_Ev(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt17reference_wrapperI10AtomicHashEcvRS0_Ev(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

declare void @randomx_destroy_vm(ptr noundef) local_unnamed_addr #7

declare void @randomx_release_dataset(ptr noundef) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10AtomicHash5printERSo(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #8

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #9

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt6threadSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIP10randomx_vmSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { inlinehint 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 #3 = { mustprogress norecurse 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 = { inlinehint 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 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 "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 = { "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 = { nofree nosync nounwind memory(none) }
attributes #9 = { noinline noreturn nounwind uwtable "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 = { noreturn }
attributes #12 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i8 0, i8 2}
!10 = !{}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"_ZTS13randomx_flags", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = !{!27, !27, i64 0}
!27 = !{!"vtable pointer", !8, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass