; LLVM IR from tevador/RandomX :: src/dataset.ll (ZN7randomx15initDatasetItemEP13randomx_cachePhm)

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

%struct.randomx_cache = type { ptr, ptr, ptr, ptr, ptr, [8 x %"class.randomx::SuperscalarProgram"], %"class.std::vector", %"class.std::__cxx11::basic_string", ptr }
%"class.randomx::SuperscalarProgram" = type { [512 x %"class.randomx::Instruction"], i32, i32, double, i32, i32, i32, i32, i32, i32, [8 x i32], [8 x i32] }
%"class.randomx::Instruction" = type { i8, i8, i8, i8, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_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] }

; 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
define dso_local void @_ZN7randomx15initDatasetItemEP13randomx_cachePhm(ptr noundef %0, ptr noundef %1, i64 noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca [8 x i64], align 16
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i64 %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 64, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %14 = load i64, ptr %6, align 8, !tbaa !9
  store i64 %14, ptr %9, align 8, !tbaa !9
  %15 = load i64, ptr %6, align 8, !tbaa !9
  %16 = add i64 %15, 1
  %17 = mul i64 %16, 6364136223846793005
  %18 = getelementptr inbounds [8 x i64], ptr %7, i64 0, i64 0
  store i64 %17, ptr %18, align 16, !tbaa !9
  %19 = getelementptr inbounds [8 x i64], ptr %7, i64 0, i64 0
  %20 = load i64, ptr %19, align 16, !tbaa !9
  %21 = xor i64 %20, -9148333072579190276
  %22 = getelementptr inbounds [8 x i64], ptr %7, i64 0, i64 1
  store i64 %21, ptr %22, align 8, !tbaa !9
  %23 = getelementptr inbounds [8 x i64], ptr %7, i64 0, i64 0
  %24 = load i64, ptr %23, align 16, !tbaa !9
  %25 = xor i64 %24, -6381431487974942650
  %26 = getelementptr inbounds [8 x i64], ptr %7, i64 0, i64 2
  store i64 %25, ptr %26, align 16, !tbaa !9
  %27 = getelementptr inbounds [8 x i64], ptr %7, i64 0, i64 0
  %28 = load i64, ptr %27, align 16, !tbaa !9
  %29 = xor i64 %28, -9140414860584924836
  %30 = getelementptr inbounds [8 x i64], ptr %7, i64 0, i64 3
  store i64 %29, ptr %30, align 8, !tbaa !9
  %31 = getelementptr inbounds [8 x i64], ptr %7, i64 0, i64 0
  %32 = load i64, ptr %31, align 16, !tbaa !9
  %33 = xor i64 %32, 5281919268842080866
  %34 = getelementptr inbounds [8 x i64], ptr %7, i64 0, i64 4
  store i64 %33, ptr %34, align 16, !tbaa !9
  %35 = getelementptr inbounds [8 x i64], ptr %7, i64 0, i64 0
  %36 = load i64, ptr %35, align 16, !tbaa !9
  %37 = xor i64 %36, -7910590639137690612
  %38 = getelementptr inbounds [8 x i64], ptr %7, i64 0, i64 5
  store i64 %37, ptr %38, align 8, !tbaa !9
  %39 = getelementptr inbounds [8 x i64], ptr %7, i64 0, i64 0
  %40 = load i64, ptr %39, align 16, !tbaa !9
  %41 = xor i64 %40, 3398623926847679864
  %42 = getelementptr inbounds [8 x i64], ptr %7, i64 0, i64 6
  store i64 %41, ptr %42, align 16, !tbaa !9
  %43 = getelementptr inbounds [8 x i64], ptr %7, i64 0, i64 0
  %44 = load i64, ptr %43, align 16, !tbaa !9
  %45 = xor i64 %44, -8897639553701190322
  %46 = getelementptr inbounds [8 x i64], ptr %7, i64 0, i64 7
  store i64 %45, ptr %46, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !11
  br label %47

47:                                               ; preds = %91, %3
  %48 = load i32, ptr %10, align 4, !tbaa !11
  %49 = icmp ult i32 %48, 8
  br i1 %49, label %51, label %50

50:                                               ; preds = %47
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %94

51:                                               ; preds = %47
  %52 = load i64, ptr %9, align 8, !tbaa !9
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.randomx_cache, ptr %53, i32 0, i32 0
  %55 = load ptr, ptr %54, align 8, !tbaa !13
  %56 = call noundef ptr @_ZN7randomxL11getMixBlockEmPh(i64 noundef %52, ptr noundef %55)
  store ptr %56, ptr %8, align 8, !tbaa !5
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.prefetch.p0(ptr %57, i32 0, i32 0, i32 1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.randomx_cache, ptr %58, i32 0, i32 5
  %60 = load i32, ptr %10, align 4, !tbaa !11
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds [8 x %"class.randomx::SuperscalarProgram"], ptr %59, i64 0, i64 %61
  store ptr %62, ptr %12, align 8, !tbaa !5
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.randomx_cache, ptr %64, i32 0, i32 6
  call void @_ZN7randomx18executeSuperscalarERA8_mRNS_18SuperscalarProgramEPSt6vectorImSaImEE(ptr noundef nonnull align 8 dereferenceable(64) %7, ptr noundef nonnull align 8 dereferenceable(4200) %63, ptr noundef %65)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !11
  br label %66

66:                                               ; preds = %82, %51
  %67 = load i32, ptr %13, align 4, !tbaa !11
  %68 = icmp ult i32 %67, 8
  br i1 %68, label %70, label %69

69:                                               ; preds = %66
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %85

70:                                               ; preds = %66
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = load i32, ptr %13, align 4, !tbaa !11
  %73 = mul i32 8, %72
  %74 = zext i32 %73 to i64
  %75 = getelementptr inbounds i8, ptr %71, i64 %74
  %76 = call noundef i64 @_ZL13load64_nativePKv(ptr noundef %75)
  %77 = load i32, ptr %13, align 4, !tbaa !11
  %78 = zext i32 %77 to i64
  %79 = getelementptr inbounds [8 x i64], ptr %7, i64 0, i64 %78
  %80 = load i64, ptr %79, align 8, !tbaa !9
  %81 = xor i64 %80, %76
  store i64 %81, ptr %79, align 8, !tbaa !9
  br label %82

82:                                               ; preds = %70
  %83 = load i32, ptr %13, align 4, !tbaa !11
  %84 = add i32 %83, 1
  store i32 %84, ptr %13, align 4, !tbaa !11
  br label %66, !llvm.loop !21

85:                                               ; preds = %69
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  %87 = call noundef i32 @_ZN7randomx18SuperscalarProgram18getAddressRegisterEv(ptr noundef nonnull align 8 dereferenceable(4200) %86)
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [8 x i64], ptr %7, i64 0, i64 %88
  %90 = load i64, ptr %89, align 8, !tbaa !9
  store i64 %90, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %91

91:                                               ; preds = %85
  %92 = load i32, ptr %10, align 4, !tbaa !11
  %93 = add i32 %92, 1
  store i32 %93, ptr %10, align 4, !tbaa !11
  br label %47, !llvm.loop !23

94:                                               ; preds = %50
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %95, ptr align 16 %7, i64 64, i1 false)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #7
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZN7randomxL11getMixBlockEmPh(i64 noundef, ptr noundef) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @llvm.prefetch.p0(ptr nocapture readonly, i32 immarg, i32 immarg, i32 immarg) #3

declare void @_ZN7randomx18executeSuperscalarERA8_mRNS_18SuperscalarProgramEPSt6vectorImSaImEE(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(4200), ptr noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL13load64_nativePKv(ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7randomx18SuperscalarProgram18getAddressRegisterEv(ptr noundef nonnull align 8 dereferenceable(4200)) #5 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTS13randomx_cache", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !7, i64 40, !15, i64 33640, !19, i64 33664, !6, i64 33696}
!15 = !{!"_ZTSSt6vectorImSaImEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseImSaImEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseImSaImEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseImSaImEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !20, i64 0, !10, i64 8, !7, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}


; 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.randomx::SuperscalarProgram" = type { [512 x %"class.randomx::Instruction"], i32, i32, double, i32, i32, i32, i32, i32, i32, [8 x i32], [8 x i32] }
%"class.randomx::Instruction" = type { i8, i8, i8, i8, i32 }

; 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
define dso_local void @_ZN7randomx15initDatasetItemEP13randomx_cachePhm(ptr noundef %0, ptr nocapture noundef writeonly %1, i64 noundef %2) local_unnamed_addr #1 {
  %4 = alloca [8 x i64], align 16
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #7
  %5 = mul i64 %2, 6364136223846793005
  %6 = add i64 %5, 6364136223846793005
  store i64 %6, ptr %4, align 16, !tbaa !5
  %7 = xor i64 %6, -9148333072579190276
  %8 = getelementptr inbounds i8, ptr %4, i64 8
  store i64 %7, ptr %8, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %4, i64 16
  %10 = getelementptr inbounds i8, ptr %4, i64 24
  %11 = getelementptr inbounds i8, ptr %4, i64 32
  %12 = getelementptr inbounds i8, ptr %4, i64 40
  %13 = insertelement <4 x i64> poison, i64 %6, i64 0
  %14 = shufflevector <4 x i64> %13, <4 x i64> poison, <4 x i32> zeroinitializer
  %15 = xor <4 x i64> %14, <i64 -6381431487974942650, i64 -9140414860584924836, i64 5281919268842080866, i64 -7910590639137690612>
  store <4 x i64> %15, ptr %9, align 16, !tbaa !5
  %16 = xor i64 %6, 3398623926847679864
  %17 = getelementptr inbounds i8, ptr %4, i64 48
  store i64 %16, ptr %17, align 16, !tbaa !5
  %18 = xor i64 %6, -8897639553701190322
  %19 = getelementptr inbounds i8, ptr %4, i64 56
  store i64 %18, ptr %19, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %0, i64 40
  %21 = getelementptr inbounds i8, ptr %0, i64 33640
  br label %23

22:                                               ; preds = %23
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(64) %1, ptr noundef nonnull align 16 dereferenceable(64) %4, i64 64, i1 false)
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #7
  ret void

23:                                               ; preds = %3, %23
  %indvars.iv = phi i64 [ 0, %3 ], [ %indvars.iv.next, %23 ]
  %.01721 = phi i64 [ %2, %3 ], [ %61, %23 ]
  %24 = load ptr, ptr %0, align 8, !tbaa !9
  %25 = call noundef ptr @_ZN7randomxL11getMixBlockEmPh(i64 noundef %.01721, ptr noundef %24)
  call void @llvm.prefetch.p0(ptr %25, i32 0, i32 0, i32 1)
  %26 = getelementptr inbounds [8 x %"class.randomx::SuperscalarProgram"], ptr %20, i64 0, i64 %indvars.iv
  call void @_ZN7randomx18executeSuperscalarERA8_mRNS_18SuperscalarProgramEPSt6vectorImSaImEE(ptr noundef nonnull align 8 dereferenceable(64) %4, ptr noundef nonnull align 8 dereferenceable(4200) %26, ptr noundef nonnull %21)
  %27 = call noundef i64 @_ZL13load64_nativePKv(ptr noundef %25)
  %28 = load i64, ptr %4, align 16, !tbaa !5
  %29 = xor i64 %28, %27
  store i64 %29, ptr %4, align 16, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %25, i64 8
  %31 = call noundef i64 @_ZL13load64_nativePKv(ptr noundef nonnull %30)
  %32 = load i64, ptr %8, align 8, !tbaa !5
  %33 = xor i64 %32, %31
  store i64 %33, ptr %8, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %25, i64 16
  %35 = call noundef i64 @_ZL13load64_nativePKv(ptr noundef nonnull %34)
  %36 = load i64, ptr %9, align 16, !tbaa !5
  %37 = xor i64 %36, %35
  store i64 %37, ptr %9, align 16, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %25, i64 24
  %39 = call noundef i64 @_ZL13load64_nativePKv(ptr noundef nonnull %38)
  %40 = load i64, ptr %10, align 8, !tbaa !5
  %41 = xor i64 %40, %39
  store i64 %41, ptr %10, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %25, i64 32
  %43 = call noundef i64 @_ZL13load64_nativePKv(ptr noundef nonnull %42)
  %44 = load i64, ptr %11, align 16, !tbaa !5
  %45 = xor i64 %44, %43
  store i64 %45, ptr %11, align 16, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %25, i64 40
  %47 = call noundef i64 @_ZL13load64_nativePKv(ptr noundef nonnull %46)
  %48 = load i64, ptr %12, align 8, !tbaa !5
  %49 = xor i64 %48, %47
  store i64 %49, ptr %12, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %25, i64 48
  %51 = call noundef i64 @_ZL13load64_nativePKv(ptr noundef nonnull %50)
  %52 = load i64, ptr %17, align 16, !tbaa !5
  %53 = xor i64 %52, %51
  store i64 %53, ptr %17, align 16, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %25, i64 56
  %55 = call noundef i64 @_ZL13load64_nativePKv(ptr noundef nonnull %54)
  %56 = load i64, ptr %19, align 8, !tbaa !5
  %57 = xor i64 %56, %55
  store i64 %57, ptr %19, align 8, !tbaa !5
  %58 = call noundef i32 @_ZN7randomx18SuperscalarProgram18getAddressRegisterEv(ptr noundef nonnull align 8 dereferenceable(4200) %26)
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [8 x i64], ptr %4, i64 0, i64 %59
  %61 = load i64, ptr %60, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 8
  br i1 %exitcond.not, label %22, label %23, !llvm.loop !18
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZN7randomxL11getMixBlockEmPh(i64 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @llvm.prefetch.p0(ptr nocapture readonly, i32 immarg, i32 immarg, i32 immarg) #3

declare void @_ZN7randomx18executeSuperscalarERA8_mRNS_18SuperscalarProgramEPSt6vectorImSaImEE(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(4200), ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i64 @_ZL13load64_nativePKv(ptr noundef) local_unnamed_addr #2

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

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

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 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite) }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS13randomx_cache", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !7, i64 40, !12, i64 33640, !16, i64 33664, !11, i64 33696}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"_ZTSSt6vectorImSaImEE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseImSaImEE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseImSaImEE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseImSaImEE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !6, i64 8, !7, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !11, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass