; LLVM IR from tevador/RandomX :: src (jit_compiler_x86)

; 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.randomx::JitCompilerX86" = type <{ %"class.std::vector", [8 x i32], ptr, i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.randomx::ProgramConfiguration" = type { [2 x i64], i32, i32, i32, i32 }
%"class.randomx::Instruction" = type { i8, i8, i8, i8, i32 }

@_ZN7randomx12codeLoopLoadE = external dso_local global ptr, align 8
@_ZN7randomxL12prologueSizeE = external hidden global i32, align 4
@_ZN7randomxL12loopLoadSizeE = external hidden global i32, align 4
@_ZN7randomxL10REX_MOV_RRE = external hidden constant [2 x i8], align 1
@_ZN7randomxL11REX_XOR_EAXE = external hidden constant [2 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7randomx14JitCompilerX868emitByteEh(ptr noundef nonnull align 8 dereferenceable(68), i8 noundef zeroext) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7randomx14JitCompilerX8623generateProgramPrologueERNS_7ProgramERNS_20ProgramConfigurationE(ptr noundef nonnull align 8 dereferenceable(68) %0, ptr noundef nonnull align 8 dereferenceable(2176) %1, ptr noundef nonnull align 8 dereferenceable(32) %2) #3 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %10 = load ptr, ptr %4, align 8
  %11 = getelementptr inbounds %"class.randomx::JitCompilerX86", ptr %10, i32 0, i32 0
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %12

12:                                               ; preds = %21, %3
  %13 = load i32, ptr %7, align 4, !tbaa !9
  %14 = icmp ult i32 %13, 8
  br i1 %14, label %16, label %15

15:                                               ; preds = %12
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %24

16:                                               ; preds = %12
  %17 = getelementptr inbounds %"class.randomx::JitCompilerX86", ptr %10, i32 0, i32 1
  %18 = load i32, ptr %7, align 4, !tbaa !9
  %19 = zext i32 %18 to i64
  %20 = getelementptr inbounds [8 x i32], ptr %17, i64 0, i64 %19
  store i32 -1, ptr %20, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %16
  %22 = load i32, ptr %7, align 4, !tbaa !9
  %23 = add i32 %22, 1
  store i32 %23, ptr %7, align 4, !tbaa !9
  br label %12, !llvm.loop !11

24:                                               ; preds = %15
  %25 = load i32, ptr @_ZN7randomxL12prologueSizeE, align 4, !tbaa !9
  %26 = getelementptr inbounds %"class.randomx::JitCompilerX86", ptr %10, i32 0, i32 3
  store i32 %25, ptr %26, align 8, !tbaa !13
  %27 = getelementptr inbounds %"class.randomx::JitCompilerX86", ptr %10, i32 0, i32 2
  %28 = load ptr, ptr %27, align 8, !tbaa !19
  %29 = getelementptr inbounds %"class.randomx::JitCompilerX86", ptr %10, i32 0, i32 3
  %30 = load i32, ptr %29, align 8, !tbaa !13
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds i8, ptr %28, i64 %31
  %33 = getelementptr inbounds i8, ptr %32, i64 -48
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.randomx::ProgramConfiguration", ptr %34, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %33, ptr align 8 %35, i64 16, i1 false)
  %36 = getelementptr inbounds %"class.randomx::JitCompilerX86", ptr %10, i32 0, i32 2
  %37 = load ptr, ptr %36, align 8, !tbaa !19
  %38 = getelementptr inbounds %"class.randomx::JitCompilerX86", ptr %10, i32 0, i32 3
  %39 = load i32, ptr %38, align 8, !tbaa !13
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds i8, ptr %37, i64 %40
  %42 = load ptr, ptr @_ZN7randomx12codeLoopLoadE, align 8, !tbaa !5
  %43 = load i32, ptr @_ZN7randomxL12loopLoadSizeE, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %41, ptr align 1 %42, i64 %44, i1 false)
  %45 = load i32, ptr @_ZN7randomxL12loopLoadSizeE, align 4, !tbaa !9
  %46 = getelementptr inbounds %"class.randomx::JitCompilerX86", ptr %10, i32 0, i32 3
  %47 = load i32, ptr %46, align 8, !tbaa !13
  %48 = add nsw i32 %47, %45
  store i32 %48, ptr %46, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %73, %24
  %50 = load i32, ptr %8, align 4, !tbaa !9
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = call noundef i32 @_ZN7randomx7Program7getSizeEv(ptr noundef nonnull align 8 dereferenceable(2176) %51)
  %53 = icmp ult i32 %50, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %76

55:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = load i32, ptr %8, align 4, !tbaa !9
  %58 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7randomx7ProgramclEi(ptr noundef nonnull align 8 dereferenceable(2176) %56, i32 noundef %57)
  store ptr %58, ptr %9, align 8, !tbaa !5
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = getelementptr inbounds %"class.randomx::Instruction", ptr %59, i32 0, i32 2
  %61 = load i8, ptr %60, align 2, !tbaa !20
  %62 = zext i8 %61 to i32
  %63 = srem i32 %62, 8
  %64 = trunc i32 %63 to i8
  store i8 %64, ptr %60, align 2, !tbaa !20
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = getelementptr inbounds %"class.randomx::Instruction", ptr %65, i32 0, i32 1
  %67 = load i8, ptr %66, align 1, !tbaa !22
  %68 = zext i8 %67 to i32
  %69 = srem i32 %68, 8
  %70 = trunc i32 %69 to i8
  store i8 %70, ptr %66, align 1, !tbaa !22
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN7randomx14JitCompilerX8612generateCodeERNS_11InstructionEi(ptr noundef nonnull align 8 dereferenceable(68) %10, ptr noundef nonnull align 4 dereferenceable(8) %71, i32 noundef %72)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %73

73:                                               ; preds = %55
  %74 = load i32, ptr %8, align 4, !tbaa !9
  %75 = add i32 %74, 1
  store i32 %75, ptr %8, align 4, !tbaa !9
  br label %49, !llvm.loop !23

76:                                               ; preds = %54
  call void @_ZN7randomx14JitCompilerX864emitILm2EEEvRAT__Kh(ptr noundef nonnull align 8 dereferenceable(68) %10, ptr noundef nonnull align 1 dereferenceable(2) @_ZN7randomxL10REX_MOV_RRE)
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.randomx::ProgramConfiguration", ptr %77, i32 0, i32 3
  %79 = load i32, ptr %78, align 8, !tbaa !24
  %80 = add i32 192, %79
  %81 = trunc i32 %80 to i8
  call void @_ZN7randomx14JitCompilerX868emitByteEh(ptr noundef nonnull align 8 dereferenceable(68) %10, i8 noundef zeroext %81)
  call void @_ZN7randomx14JitCompilerX864emitILm2EEEvRAT__Kh(ptr noundef nonnull align 8 dereferenceable(68) %10, ptr noundef nonnull align 1 dereferenceable(2) @_ZN7randomxL11REX_XOR_EAXE)
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.randomx::ProgramConfiguration", ptr %82, i32 0, i32 4
  %84 = load i32, ptr %83, align 4, !tbaa !26
  %85 = add i32 192, %84
  %86 = trunc i32 %85 to i8
  call void @_ZN7randomx14JitCompilerX868emitByteEh(ptr noundef nonnull align 8 dereferenceable(68) %10, i8 noundef zeroext %86)
  ret void
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZN7randomx7ProgramclEi(ptr noundef nonnull align 8 dereferenceable(2176), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7randomx14JitCompilerX8612generateCodeERNS_11InstructionEi(ptr noundef nonnull align 8 dereferenceable(68), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef) #3 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !10, i64 64}
!14 = !{!"_ZTSN7randomx14JitCompilerX86E", !15, i64 0, !7, i64 24, !6, i64 56, !10, i64 64}
!15 = !{!"_ZTSSt6vectorIiSaIiEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!14, !6, i64 56}
!20 = !{!21, !7, i64 2}
!21 = !{!"_ZTSN7randomx11InstructionE", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !10, i64 4}
!22 = !{!21, !7, i64 1}
!23 = distinct !{!23, !12}
!24 = !{!25, !10, i64 24}
!25 = !{!"_ZTSN7randomx20ProgramConfigurationE", !7, i64 0, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!26 = !{!25, !10, i64 28}


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

@_ZN7randomx12codeLoopLoadE = external dso_local local_unnamed_addr global ptr, align 8
@_ZN7randomxL12prologueSizeE = external hidden local_unnamed_addr global i32, align 4
@_ZN7randomxL12loopLoadSizeE = external hidden local_unnamed_addr global i32, align 4
@_ZN7randomxL10REX_MOV_RRE = external hidden constant [2 x i8], align 1
@_ZN7randomxL11REX_XOR_EAXE = external hidden constant [2 x i8], align 1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7randomx14JitCompilerX868emitByteEh(ptr noundef nonnull align 8 dereferenceable(68), i8 noundef zeroext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7randomx14JitCompilerX8623generateProgramPrologueERNS_7ProgramERNS_20ProgramConfigurationE(ptr noundef nonnull align 8 dereferenceable(68) %0, ptr noundef nonnull align 8 dereferenceable(2176) %1, ptr nocapture noundef nonnull readonly align 8 dereferenceable(32) %2) local_unnamed_addr #2 align 2 {
  tail call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %4, i8 -1, i64 32, i1 false), !tbaa !5
  %5 = load i32, ptr @_ZN7randomxL12prologueSizeE, align 4, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 64
  store i32 %5, ptr %6, align 8, !tbaa !9
  %7 = getelementptr inbounds i8, ptr %0, i64 56
  %8 = load ptr, ptr %7, align 8, !tbaa !16
  %9 = sext i32 %5 to i64
  %10 = getelementptr inbounds i8, ptr %8, i64 %9
  %11 = getelementptr inbounds i8, ptr %10, i64 -48
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %2, i64 16, i1 false)
  %12 = load ptr, ptr %7, align 8, !tbaa !16
  %13 = load i32, ptr %6, align 8, !tbaa !9
  %14 = sext i32 %13 to i64
  %15 = getelementptr inbounds i8, ptr %12, i64 %14
  %16 = load ptr, ptr @_ZN7randomx12codeLoopLoadE, align 8, !tbaa !17
  %17 = load i32, ptr @_ZN7randomxL12loopLoadSizeE, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %15, ptr align 1 %16, i64 %18, i1 false)
  %19 = load i32, ptr @_ZN7randomxL12loopLoadSizeE, align 4, !tbaa !5
  %20 = load i32, ptr %6, align 8, !tbaa !9
  %21 = add nsw i32 %20, %19
  store i32 %21, ptr %6, align 8, !tbaa !9
  %22 = tail call noundef i32 @_ZN7randomx7Program7getSizeEv(ptr noundef nonnull align 8 dereferenceable(2176) %1)
  %.not = icmp eq i32 %22, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %3
  tail call void @_ZN7randomx14JitCompilerX864emitILm2EEEvRAT__Kh(ptr noundef nonnull align 8 dereferenceable(68) %0, ptr noundef nonnull align 1 dereferenceable(2) @_ZN7randomxL10REX_MOV_RRE)
  %23 = getelementptr inbounds i8, ptr %2, i64 24
  %24 = load i32, ptr %23, align 8, !tbaa !18
  %25 = trunc i32 %24 to i8
  %26 = add i8 %25, -64
  tail call void @_ZN7randomx14JitCompilerX868emitByteEh(ptr noundef nonnull align 8 dereferenceable(68) %0, i8 noundef zeroext %26)
  tail call void @_ZN7randomx14JitCompilerX864emitILm2EEEvRAT__Kh(ptr noundef nonnull align 8 dereferenceable(68) %0, ptr noundef nonnull align 1 dereferenceable(2) @_ZN7randomxL11REX_XOR_EAXE)
  %27 = getelementptr inbounds i8, ptr %2, i64 28
  %28 = load i32, ptr %27, align 4, !tbaa !20
  %29 = trunc i32 %28 to i8
  %30 = add i8 %29, -64
  tail call void @_ZN7randomx14JitCompilerX868emitByteEh(ptr noundef nonnull align 8 dereferenceable(68) %0, i8 noundef zeroext %30)
  ret void

.lr.ph:                                           ; preds = %3, %.lr.ph
  %.01517 = phi i32 [ %38, %.lr.ph ], [ 0, %3 ]
  %31 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZN7randomx7ProgramclEi(ptr noundef nonnull align 8 dereferenceable(2176) %1, i32 noundef %.01517)
  %32 = getelementptr inbounds i8, ptr %31, i64 2
  %33 = load i8, ptr %32, align 2, !tbaa !21
  %34 = and i8 %33, 7
  store i8 %34, ptr %32, align 2, !tbaa !21
  %35 = getelementptr inbounds i8, ptr %31, i64 1
  %36 = load i8, ptr %35, align 1, !tbaa !23
  %37 = and i8 %36, 7
  store i8 %37, ptr %35, align 1, !tbaa !23
  tail call void @_ZN7randomx14JitCompilerX8612generateCodeERNS_11InstructionEi(ptr noundef nonnull align 8 dereferenceable(68) %0, ptr noundef nonnull align 4 dereferenceable(8) %31, i32 noundef %.01517)
  %38 = add nuw i32 %.01517, 1
  %39 = tail call noundef i32 @_ZN7randomx7Program7getSizeEv(ptr noundef nonnull align 8 dereferenceable(2176) %1)
  %40 = icmp ult i32 %38, %39
  br i1 %40, label %.lr.ph, label %._crit_edge, !llvm.loop !24
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7randomx7Program7getSizeEv(ptr noundef nonnull align 8 dereferenceable(2176)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZN7randomx7ProgramclEi(ptr noundef nonnull align 8 dereferenceable(2176), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7randomx14JitCompilerX8612generateCodeERNS_11InstructionEi(ptr noundef nonnull align 8 dereferenceable(68), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef) local_unnamed_addr #2 align 2

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

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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, !6, i64 64}
!10 = !{!"_ZTSN7randomx14JitCompilerX86E", !11, i64 0, !7, i64 24, !15, i64 56, !6, i64 64}
!11 = !{!"_ZTSSt6vectorIiSaIiEE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!10, !15, i64 56}
!17 = !{!15, !15, i64 0}
!18 = !{!19, !6, i64 24}
!19 = !{!"_ZTSN7randomx20ProgramConfigurationE", !7, i64 0, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28}
!20 = !{!19, !6, i64 28}
!21 = !{!22, !7, i64 2}
!22 = !{!"_ZTSN7randomx11InstructionE", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !6, i64 4}
!23 = !{!22, !7, i64 1}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


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